color_quantize.h (696B)
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_COLOR_QUANTIZE_H_ 7 #define LIB_JPEGLI_COLOR_QUANTIZE_H_ 8 9 #include "lib/jpegli/common.h" 10 11 namespace jpegli { 12 13 void ChooseColorMap1Pass(j_decompress_ptr cinfo); 14 15 void ChooseColorMap2Pass(j_decompress_ptr cinfo); 16 17 void CreateInverseColorMap(j_decompress_ptr cinfo); 18 19 void CreateOrderedDitherTables(j_decompress_ptr cinfo); 20 21 void InitFSDitherState(j_decompress_ptr cinfo); 22 23 int LookupColorIndex(j_decompress_ptr cinfo, const JSAMPLE* pixel); 24 25 } // namespace jpegli 26 27 #endif // LIB_JPEGLI_COLOR_QUANTIZE_H_