libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

enc_group.h (923B)


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