Hi Chen...<br><br>Thanks for the reply ....<br>You are referring to some document, Could you tell me which document you are telling. <br><br>As per my understanding the H.264 standard we have to add 'rbsp_stop_one_bit' that's equal to '1' to the end of slice.<br>
I was assuming the cb->i_low |= 1 is doing the same thing..but I am NOT sure.<br><br>/* I have checked document, I think this bit do not use by decoder.<br>
so we set it to "cb->i_low |= 1 << 10;" */<br>So why we are adding this...if it is not used by decoder.<br><br>And if you would tell where we are checking for byte alignment and putting <br>'rbsp_alignment_zero_bit' in the code.<br>
<br>Thanks in advance.<br>
<br><br><br><div class="gmail_quote">2008/11/12 chen <span dir="ltr"><<a href="mailto:chenm003@163.com">chenm003@163.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
This question I send some month ago, but nobody give us answer.<br>
I have checked document, I think this bit do not use by decoder.<br>
so we set it to "cb->i_low |= 1 << 10;"<br>
<br>
======= 2008-11-12 13:26:49 =======<br>
<div class="Ih2E3d"><br>
>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<br>
>(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>
>Why this is related to frame number and what is this magic number<br>
>'0x35a4e4f5'.<br>
>As per my understanding the standard 'i_low' has no relation with frame<br>
>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>
</div>= = = = = = = = = = = = = = = = = = = =<br>
<font color="#888888"><br>
chen<br>
<a href="mailto:chenm003@163.com">chenm003@163.com</a><br>
2008-11-12<br>
</font><div><div></div><div class="Wj3C7c"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Deepak Singh<br><br><br>