Hi Loren,<br><br>Thanks for the reply.<br><br>But Still for my understanding I didn't get answers of my other questions...<br><br>1) Could you tell me where we are adding the end_of_slice (rbsp_stop_one_bit) flag.<br><br>
2) In function void x264_cabac_encode_flush( x264_t *h, x264_cabac_t *cb )<br><br>cb->i_low |= (0x35a4e4f5 >> (h->i_frame & 31) & 1) << 10; <br>
<br>
<br clear="all">Why this is related to frame number and what is this magic number '0x35a4e4f5'.<br>As per my understanding the standard 'i_low' has no relation with frame number.<br><br>3) on the same function() the line<br>
cb->i_low |= 1; <br><br>I am NOT getting why we are doing this.Is this end_of_slice flag? <br><br>It will be very helpful if you could explain it.<br><br>Thanks in advance...<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 12:03 AM, Loren Merritt <span dir="ltr"><<a href="mailto:lorenm@u.washington.edu">lorenm@u.washington.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Tue, 11 Nov 2008, Deepak Singh wrote:<br>
<br>
> While using x264 code I found that "rbsp_alignment_zero_bit" at the end of<br>
> the slice sometimes coming rbsp_alignemnt_zero_bit = 1, and sometimes<br>
> rbsp_alignemnt_zero_bit = 0 while Only allowable value is 0.<br>
<br>
</div>Then you're misparsing where the slice ends. rbsp_alignment_zero_bit is<br>
not merely required to be 0, it's syntactically impossible to make it any<br>
other value. The last 1 and any 0s thereafter are the rbsp_trailing_bits,<br>
and all data before that is part of the payload.<br>
The whole point of rbsp_trailing is so that you can know (to single-bit<br>
precision) where the payload ends. If there were another way to know which<br>
bit is the last bit, the standard wouldn't have included rbsp_trailing.<br>
<font color="#888888"><br>
--Loren Merritt<br>
_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Deepak Singh<br><br><br>