[x264-devel] About meory space for padding border

r z adv992009 at googlemail.com
Wed Jan 19 14:49:00 CET 2011


Hi,

I am new to x264 code and studying it. Could anyone tell me why the padding
border needs to be doubled when interlaced flag is set?

in x264_frame_new(),

 int i_padv = PADV << h->param.b_interlaced;


As far as I understand,  the padv is the vertical height in pixels for
padding border at top/bottom, padh is the horizontal width in pixels for
padding border at left/right.

so the start postion of the original pixel of one frame is, buffer_addr +
stride*padv+padh, as the code in the x264 source.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110119/81a1952e/attachment.html>


More information about the x264-devel mailing list