字典霍夫曼压缩算法有开源实现吗?
我正在开发一个处理 Mobipocket 格式电子书文件的库,并且我有 LZ77 风格的 PalmDoc 解压缩和压缩工作。然而,PalmDoc 压缩只是目前电子书上使用的两种文本压缩类型之一,另一种是 Dictionary Huffman 又名 huffcdic。
我发现了一对huffcdic 解码算法的实现,但我我希望能够压缩为相同的格式,但到目前为止我还没有找到任何如何做到这一点的示例。其他人已经弄清楚了这一点并发布了代码吗?
I'm working on a library to work with Mobipocket-format ebook files, and I have LZ77-style PalmDoc decompression and compression working. However, PalmDoc compression is only one of the two currently-used types of text compression being used on ebooks in the wild, the other being Dictionary Huffman aka huffcdic.
I've found a couple of implementations of the huffcdic decoding algorithm, but I'd like to be able to compress to the same format, and so far I haven't been able to find any examples of how to do that yet. Has someone else already figured this out and published the code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在尝试使用 http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/ebooks/compression/palmdoc.c 但压缩不会产生相同的结果,&有 3 - 4 个缺陷还请阅读一个相关线程 LZ77 压缩 palmdoc
i have been trying to use http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/ebooks/compression/palmdoc.c but compression doesnt produce identical results, & there are 3 - 4 descrepencies also read one related thread LZ77 compression of palmdoc