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

Tondeur Steven stondeur at etro.vub.ac.be
Sat Aug 12 15:26:03 CEST 2006


As far as I know, you don't have to perform a flush after encoding a terminal bit 0, only after a 1.


-----Original Message-----
From: x264-devel-bounce at videolan.org on behalf of tom at dbservice.com
Sent: Sat 8/12/2006 9:51 AM
To: x264-devel at videolan.org; Loren Merritt
Subject: [x264-devel] Re: Extracting the CABAC coder from x264 sources?
 
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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3399 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20060812/0ace4951/attachment.bin 


More information about the x264-devel mailing list