[Vorbis-dev] Reg. vorbis_staticbook_unpack

Shashank Khanvilkar shashank at mia.ece.uic.edu
Wed Aug 17 13:22:52 PDT 2005


Hi,
All help is appreciated.

I am looking at the function "vorbis_staticbook_unpack" in codebook.c
I guess this function just reads the codebooks in some structure 
(static_codebook) and does not actually map the codewords to the 
codevalues.

Does anyone know what functions can I use in this function to actually 
view this mapping? I just want to display something like below: I can 
already decode lines beginging with "[SK]". Lookat lines begining with 
"[XXX]" only.




[SK] +------Codebook [1] --------
[SK] Codebook Dimensions = 1
[SK] Codebook Entries = 64
[SK] Unordered
[SK] codeword-lengths: 1, 5, 11, 14, 4, 11, 13, 14, 10, 14, 13, 14, 14, 
14, 13, 13, 2, 6, 11, 13, 5, 11, 12, 13, 11, 12, 13, 13, 13, 13, 13, 13, 
4, 8, 12, 13, 5, 9, 11, 13, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 
13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
[SK] NO Mapping
[XXX] --------------------------------------------
[XXX] | codeword              | codevalue        |
[XXX] --------------------------------------------
[XXX] |   0                    |  0               |
[XXX] |   00001                |  1               |
...etc

Thanks



More information about the Vorbis-dev mailing list