<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:SimSun;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face=宋体><span
lang=EN-US style='font-size:10.5pt;font-family:SimSun;color:blue'>Thanks to
Siping, You do help me a lot<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=宋体><span
lang=EN-US style='font-size:10.5pt;font-family:SimSun;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=宋体><span
lang=EN-US style='font-size:10.5pt;font-family:SimSun;color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=宋体><span
style='font-size:10.0pt;font-family:SimSun;font-weight:bold'>发件人<span
lang=EN-US>:</span></span></font></b><font size=2 face=宋体><span
lang=EN-US style='font-size:10.0pt;font-family:SimSun'>
x264-devel-bounces@videolan.org [mailto:x264-devel-bounces@videolan.org] </span></font><b><font
size=2 face=宋体><span style='font-size:10.0pt;font-family:SimSun;
font-weight:bold'>代表 </span></font></b><font size=2 face=宋体><span
lang=EN-US style='font-size:10.0pt;font-family:SimSun'>SiPing Tao<br>
</span></font><b><font size=2 face=宋体><span style='font-size:
10.0pt;font-family:SimSun;font-weight:bold'>发送时间<span
lang=EN-US>:</span></span></font></b><font size=2 face=宋体><span
lang=EN-US style='font-size:10.0pt;font-family:SimSun'> <st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="22" Month="3" Year="2010" w:st="on">2010<span
lang=EN-US><span lang=EN-US>年3</span></span><span lang=EN-US><span
lang=EN-US>月22</span></span><span lang=EN-US><span lang=EN-US>日</span></span></st1:chsdate>
10:02<br>
</span></font><b><font size=2 face=宋体><span style='font-size:
10.0pt;font-family:SimSun;font-weight:bold'>收件人<span
lang=EN-US>:</span></span></font></b><font size=2 face=宋体><span
lang=EN-US style='font-size:10.0pt;font-family:SimSun'> Mailing list for x264
developers<br>
</span></font><b><font size=2 face=宋体><span style='font-size:
10.0pt;font-family:SimSun;font-weight:bold'>主题<span lang=EN-US>:</span></span></font></b><font
size=2 face=宋体><span lang=EN-US style='font-size:10.0pt;
font-family:SimSun'> Re: [x264-devel] Question about interpolate</span></font><span
lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Hi kenter,<br>
<br>
When I reading the x264 code, I find the same thing as you mentioned. Here is
my thinking of this problem.<br>
<br>
x264 interpolates (W+8*2)*(H+8*2) region, it's true, this is because only W*H
region is NOT enough. H.264/AVC standard defines the reference picture
interpolation process where padding samples also need to be interpolated.<br>
<br>
However, if the six input samples are the same value T, sub-pixel interpolation
result will be T too, so we don't need to interpolate the whole padding edge,
and simple expanding is OK for some samples. I think this is why x264
interplolates (W+8*2)*(H+8*2) region, and expands the rest of the samples.<br>
<br>
Hope this can help.<br>
<br>
Best Regards,<br>
Siping<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>-----Original
E-mail-----<br>
<b><span style='font-weight:bold'>From:</span></b> kenter <<a
href="mailto:kenter83@gmail.com">kenter83@gmail.com</a>><br>
<b><span style='font-weight:bold'>Sent Time:</span></b> 2010-3-19 14:57:24<br>
<b><span style='font-weight:bold'>To:</span></b> "Mailing list for x264
developers" <<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a>><br>
<b><span style='font-weight:bold'>Cc:</span></b> <br>
<b><span style='font-weight:bold'>Subject:</span></b> [x264-devel] Question
about interpolate<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Hi,<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'> I have a question about
interpolation. It seems <em><i><font face="Times New Roman">x264_frame_filter</font></i></em>
will interpolate one MB line for each invoke. However, I find it also interp
"margin" data as well. Let's suppose the dim of image is W*H and
margin is 32 for both x and y direction. The <em><i><font face="Times New Roman">x264_frame_filter</font></i></em>
will interpolate (W+10*2)*(H+8*2) sized region and in <em><i><font
face="Times New Roman">x264_frame_expand_border_filtered</font></i></em>, only
(W+4*2)*(H+8*2) sized region will be choosed as "right" and leave
other region to padding.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'> My question is that why we interp
so much data? Firstly, we can just interpolate W*H sized image, this can save
some computing power. Secondly, it seems the excrescent interpolate of data out
of image makes some difference to it's edge.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Thanks<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>