Hello ! A question to all 'Wheel-reinventers': I can build the huffmantrees by hand (on paper) but how to code it? Are there any good URLs out there? Or does the spec supply sufficient information? I tried figure out how oggdec (debugging) does this, but I couldn't get the clou. Thank you Dominik --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> > Hello ! > A question to all 'Wheel-reinventers': > I can build the huffmantrees by hand (on paper) > but how to code it? Are there any good URLs > out there? Or does the spec supply sufficient information? > > I tried figure out how oggdec (debugging) does this, > but I couldn't get the clou.You can take a look at the J-Ogg sourcecode, where at least the code for building Huffmann trees is quite readable. You'll find info on CVS access to the source code on http://www.j-ogg.de/core/main?/download-sources.html and the Huffman class is in the ogg module. I can also mail you the code, if you can't use the CVS repository. Tor --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Dominik Kuhlen wrote:> Hello ! > A question to all 'Wheel-reinventers': > I can build the huffmantrees by hand (on paper) > but how to code it? Are there any good URLs > out there? Or does the spec supply sufficient information?Have a look at how rehuff does it (find the source to rehuff in the mailing list archives). <p>Segher --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.