https://wiki.multimedia.cx/index.php?title=VLC_readers&feed=atom&action=historyVLC readers - Revision history2024-03-29T12:55:47ZRevision history for this page on the wikiMediaWiki 1.39.5https://wiki.multimedia.cx/index.php?title=VLC_readers&diff=6508&oldid=prevKostya: Some start to documenting different VLC readers implementations2006-12-03T05:30:12Z<p>Some start to documenting different VLC readers implementations</p>
<p><b>New page</b></p><div>Here will be a collection of different approaches used by diverse codecs to read variable-length codes from bitstream:<br />
<br />
<br />
== [[Fraps]] ==<br />
Huffman tree has its nodes pointing to the root and thus operating like state machine:<br />
<br />
get bit<br />
move to the one of node children depending of bit read<br />
output current node value<br />
if node value was '-1' then stay at the current position, else move further<br />
repeat until all needed values are decoded<br />
<br />
== [[Intel Music Coder]] ==<br />
This reader has special reordering table to sort symbols in ascending codeword lengths:<br />
<br />
for(i = 0; i < symbols; i++){<br />
sym = reorder[i];<br />
if(show_bits(code_length[sym]) == code[sym]){<br />
return sym;<br />
}<br />
}</div>Kostya