Backed out 3 changesets (bug 1790375) for causing wd failures on fetch_error.py....
[gecko.git] / third_party / jpeg-xl / lib / jpegli / entropy_coding.h
bloba552219ec388ed2fd18da29a29b109cffec73a76
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.
6 #ifndef LIB_JPEGLI_ENTROPY_CODING_H_
7 #define LIB_JPEGLI_ENTROPY_CODING_H_
9 #include "lib/jpegli/common.h"
11 namespace jpegli {
13 size_t MaxNumTokensPerMCURow(j_compress_ptr cinfo);
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);
18 void TokenizeJpeg(j_compress_ptr cinfo);
20 void CopyHuffmanTables(j_compress_ptr cinfo);
22 void OptimizeHuffmanCodes(j_compress_ptr cinfo);
24 void InitEntropyCoder(j_compress_ptr cinfo);
26 } // namespace jpegli
28 #endif // LIB_JPEGLI_ENTROPY_CODING_H_