entropy_coding.h (750B)
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_ENTROPY_CODING_H_ 7 #define LIB_JPEGLI_ENTROPY_CODING_H_ 8 9 #include "lib/jpegli/common.h" 10 11 namespace jpegli { 12 13 size_t MaxNumTokensPerMCURow(j_compress_ptr cinfo); 14 15 size_t EstimateNumTokens(j_compress_ptr cinfo, size_t mcu_y, size_t ysize_mcus, 16 size_t num_tokens, size_t max_per_row); 17 18 void TokenizeJpeg(j_compress_ptr cinfo); 19 20 void CopyHuffmanTables(j_compress_ptr cinfo); 21 22 void OptimizeHuffmanCodes(j_compress_ptr cinfo); 23 24 void InitEntropyCoder(j_compress_ptr cinfo); 25 26 } // namespace jpegli 27 28 #endif // LIB_JPEGLI_ENTROPY_CODING_H_