libjxl

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

quant.h (604B)


      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_JPEGLI_QUANT_H_
      7 #define LIB_JPEGLI_QUANT_H_
      8 
      9 #include "lib/jpegli/common.h"
     10 
     11 namespace jpegli {
     12 
     13 void SetQuantMatrices(j_compress_ptr cinfo, float distances[NUM_QUANT_TBLS],
     14                       bool add_two_chroma_tables);
     15 
     16 enum QuantPass {
     17   NO_SEARCH,
     18   SEARCH_FIRST_PASS,
     19   SEARCH_SECOND_PASS,
     20 };
     21 
     22 void InitQuantizer(j_compress_ptr cinfo, QuantPass pass);
     23 
     24 }  // namespace jpegli
     25 
     26 #endif  // LIB_JPEGLI_QUANT_H_