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_GROUP_H_ 7 #define LIB_JXL_ENC_GROUP_H_ 8 9 #include <stddef.h> 10 #include <stdint.h> 11 12 #include "lib/jxl/aux_out_fwd.h" 13 #include "lib/jxl/base/status.h" 14 #include "lib/jxl/enc_bit_writer.h" 15 #include "lib/jxl/enc_cache.h" 16 17 namespace jxl { 18 19 // Fills DC 20 void ComputeCoefficients(size_t group_idx, PassesEncoderState* enc_state, 21 const Image3F& opsin, Image3F* dc); 22 23 Status EncodeGroupTokenizedCoefficients(size_t group_idx, size_t pass_idx, 24 size_t histogram_idx, 25 const PassesEncoderState& enc_state, 26 BitWriter* writer, AuxOut* aux_out); 27 28 } // namespace jxl 29 30 #endif // LIB_JXL_ENC_GROUP_H_ 31