[x264-devel] Re: Extracting the CABAC coder from x264 sources ?

tom at dbservice.com tom at dbservice.com
Sat Aug 12 09:51:57 CEST 2006


Quoting Loren Merritt <lorenm at u.washington.edu>:
>
> common/cabac.c is the back-end, which could be used independently.
>

I'm trying to use the encoder on it's own, too. It compiles/runs fine,  
but sometimes there are errors. I'm doing this:

loop:
    x264_cabac_encode_bypass(&cabac, i)
x264_cabac_encode_terminal(&cabac, i)
x264_cabac_encode_flush(&cabac)

loop:
    i = x264_cabac_decode_bypass(&cabac)
i = x264_cabac_decode_terminal(&cabac)

sometimes, depending on wheher I use 1/0 in encode_terminal(), the  
decoded sequence isn't correct. Is there anything special I have to  
look for?

thanks
tom

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list