[x264-devel] Re: CABAC state representation
Johannes Ballé
os at xn--ball-epa.net
Wed Dec 6 16:19:05 CET 2006
Am Mittwoch, 6. Dezember 2006 15:00 schrieben Sie:
> Can anybody explain, maybe in pseudo code, how I get from a given
> x264_cabac_t.state[] value to the corresponding value in the ffmpeg state
> table?
I think I found it:
if( state <= 63 )
state = 2 * ( 63 - state ) + 0;
else
state = 2 * ( state - 64 ) + 1;
Sorry for the inconvenience.
--
' '' ' ''' ' '' ' ''' ' '' ' ''' ' '' ' ''' ' '' ' ''' ' '' ' ''' ' '' ' ''' '
Johannes Ballé
RWTH Aachen University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20061206/a3f30fe5/attachment.pgp
More information about the x264-devel
mailing list