压缩(放气、gzipped)内容结构的可视化
我有一些与数据压缩相关的想法想要尝试,但我发现很难破译该标准在“现实生活中”如何应用的某些部分。我想查看一些示例压缩文件,以观察块的排列方式以及哈夫曼树的结构。
是否有任何工具可以帮助可视化给定的压缩文件(zip/gzip/deflate 等)?我正在想象类似树视图或某种形式的图形可视化工具的东西。
I have some ideas I would like to experiment with relating to data compression, but am finding it difficult to decipher some parts of how the standard are applied "in real life". I would like to look at some sample compressed files to observe how the the blocks are arranged and the huffman tree(s) are structured.
Are there any tools in existence which can help visualize this for a given compressed file (zip/gzip/deflate etc)? I'm picturing something like a tree view or some form of graph visualizer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我制作了一个“熵图像”工具。
entropy_image 工具替换每个像素
与(估计的)位数
使用范围编码或霍夫曼压缩对该像素进行编码是必要的。
我希望这不是世界上唯一的压缩可视化工具。
I made a "entropy image" tool.
The entropy_image tool replaces each pixel
with the (estimated) number of bits
necessary to encode that pixel using range coding or Huffman compression.
I hope this isn't the only compression visualization tool in the world.
您可能对此感兴趣(如果您仍然感兴趣的话:-P)
http://jvns.ca/blog/2013/10/24/day-16-gzip-plus-poetry-equals-awesome/
You might be interested in this (if you are still interested that is :-P)
http://jvns.ca/blog/2013/10/24/day-16-gzip-plus-poetry-equals-awesome/