libjxl

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

enc_palette.h (737B)


      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_MODULAR_TRANSFORM_ENC_PALETTE_H_
      7 #define LIB_JXL_MODULAR_TRANSFORM_ENC_PALETTE_H_
      8 
      9 #include "lib/jxl/fields.h"
     10 #include "lib/jxl/modular/encoding/context_predict.h"
     11 #include "lib/jxl/modular/modular_image.h"
     12 
     13 namespace jxl {
     14 
     15 Status FwdPalette(Image &input, uint32_t begin_c, uint32_t end_c,
     16                   uint32_t &nb_colors, uint32_t &nb_deltas, bool ordered,
     17                   bool lossy, Predictor &predictor,
     18                   const weighted::Header &wp_header);
     19 
     20 }  // namespace jxl
     21 
     22 #endif  // LIB_JXL_MODULAR_TRANSFORM_ENC_PALETTE_H_