angelzhang
9th December 2004, 02:33
hi,everyone
in the Jm 8.6 reference code, nonzero coeffcients' levels are decoded in function readSyntaxElement_level_VLCN, and i can't find in the code about the following formula descripted in the standard.
levelCode=(level_prefix<<suffixLength)+level_suffix
and from the code, we can get the rule of escape data which can be get by the formula: (numPrefix<<(vlc-1))+1. coeffcient's level can get with the escape data and vlcnum length bits read from bitstream.
then what's the corresponding relationship between them?
thanks in advance
angel
in the Jm 8.6 reference code, nonzero coeffcients' levels are decoded in function readSyntaxElement_level_VLCN, and i can't find in the code about the following formula descripted in the standard.
levelCode=(level_prefix<<suffixLength)+level_suffix
and from the code, we can get the rule of escape data which can be get by the formula: (numPrefix<<(vlc-1))+1. coeffcient's level can get with the escape data and vlcnum length bits read from bitstream.
then what's the corresponding relationship between them?
thanks in advance
angel