enc_splines.h (708B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_ENC_SPLINES_H_ 7 #define LIB_JXL_ENC_SPLINES_H_ 8 9 #include <cstddef> 10 11 #include "lib/jxl/enc_ans_params.h" 12 #include "lib/jxl/enc_bit_writer.h" 13 #include "lib/jxl/image.h" 14 #include "lib/jxl/splines.h" 15 16 namespace jxl { 17 18 struct AuxOut; 19 20 // Only call if splines.HasAny(). 21 void EncodeSplines(const Splines& splines, BitWriter* writer, size_t layer, 22 const HistogramParams& histogram_params, AuxOut* aux_out); 23 24 Splines FindSplines(const Image3F& opsin); 25 26 } // namespace jxl 27 28 #endif // LIB_JXL_ENC_SPLINES_H_