VLC readers
From MultimediaWiki
Revision as of 05:30, 3 December 2006; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Here will be a collection of different approaches used by diverse codecs to read variable-length codes from bitstream:
[edit]
Fraps
Huffman tree has its nodes pointing to the root and thus operating like state machine:
get bit move to the one of node children depending of bit read output current node value if node value was '-1' then stay at the current position, else move further repeat until all needed values are decoded
[edit]
Intel Music Coder
This reader has special reordering table to sort symbols in ascending codeword lengths:
for(i = 0; i < symbols; i++){
sym = reorder[i];
if(show_bits(code_length[sym]) == code[sym]){
return sym;
}
}
