We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5facfb commit 2c42166Copy full SHA for 2c42166
src/huffman.rs
@@ -1,13 +1,12 @@
1
+//! Rudimentary utility for reading Canonical Huffman Codes.
2
+//! Based off https://github.com/webmproject/libwebp/blob/7f8472a610b61ec780ef0a8873cd954ac512a505/src/utils/huffman.c
3
+
4
use std::io::BufRead;
5
6
use crate::decoder::DecodingError;
7
8
use super::lossless::BitReader;
9
-/// Rudimentary utility for reading Canonical Huffman Codes.
-/// Based off https://github.com/webmproject/libwebp/blob/7f8472a610b61ec780ef0a8873cd954ac512a505/src/utils/huffman.c
-///
10
-
11
const MAX_ALLOWED_CODE_LENGTH: usize = 15;
12
const MAX_TABLE_BITS: u8 = 10;
13
0 commit comments