Mehul Tikekar
unread,Jan 19, 2011, 12:30:23 PM1/19/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webm-d...@webmproject.org
Hi,
In section 7.3 of the bitstream guide, init_bool_decoder() reads 24 bytes into value when it is supposed to read in 2 bytes. I compared this with the libvpx source code, and the two ought to match when VP8_BD_VALUE_SIZE is 16. This is because the read_bool function in the guide does SPLIT = split << 8, while the actual vp8dx_decode_bool does bigsplit = split << (VP8_BD_VALUE_SIZE - 8). And when VP8_BD_VALUE_SIZE is 16, you'll see that vp8dx_start_decode_c reads in 2 bytes.
Also, on the encoder side, the flush_bool_encoder function does some strange things while the source code in dboolhuff.c simply encodes 32 0's. The two are probably equivalent, but clearly the actual code is easier to understand.
Regards,
Mehul