【发布时间】:2020-06-08 17:15:01
【问题描述】:
我只是想知道是否有任何动态霍夫曼位打包的好例子。我不太了解有关位打包的 RFC 材料。我在 Stack Overflow 中找到了很多很好的静态霍夫曼示例,但似乎缺少动态示例。
在 RFC 1951 第 3.1.1 节中
* Data elements are packed into bytes in order of
increasing bit number within the byte, i.e., starting
with the least-significant bit of the byte.
* Data elements other than Huffman codes are packed
starting with the least-significant bit of the data
element.
* Huffman codes are packed starting with the most-
significant bit of the code.
我对@987654322@ 和Data Elements other than Huffman Codes. 之间的数据打包反转感到困惑什么构成Huffman Codes 和Data Elements other than Huffman Codes。 codelengths, hlit, hclen, hdist, actual compressed data 属于哪个组?谢谢。
【问题讨论】:
标签: compression gzip zlib deflate inflate