<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear all:</FONT></DIV>
<DIV><FONT face=Arial size=2>In x264 Inter encoding, when a MB is undergoing
analysis, eg,. x264_mb_analyse_inter_p16x16, interpolated half_pixel value are
used.</FONT></DIV>
<DIV><FONT face=Arial size=2>However, discouragingly, I couldn't find when these
value are calculated and store to h->mb.pic.p_fref[0][i_ref][1-3] before
analysis.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It hides somewhere, I know it. But
where?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If you got what I am trying to ask, you can skip
the following part.</FONT></DIV>
<DIV><FONT face=Arial size=2>Eg. in
function x264_mb_analyse_inter_p16x16</FONT></DIV>
<DIV><FONT face=Arial size=2>Macro </FONT><FONT face=Arial
size=2>LOAD_HPELS( m.p_fref, h->mb.pic.p_fref[0][i_ref], 0 );</FONT></DIV>
<DIV><FONT face=Arial size=2>seem to load half pixel value from
h->mb.pic.p_fref[0][i_ref] to m.p_fref.</FONT></DIV>
<DIV><FONT face=Arial size=2>Downwards, the values in m.p_fref[] is
used. </FONT></DIV>
<DIV><FONT face=Arial size=2>However I traced the code and didn't find where
h->mb.pic.p_fref[0][i_ref][0-3] is written before the function
x264_mb_analyse_inter_p16x16. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for patience.</FONT></DIV>
<DIV><FONT face=Arial size=2>Best wishes!</FONT></DIV>
<DIV><FONT face=Arial size=2>
Erkang</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>