<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,<BR>I want to access to the motion vector of a macroblock in a previous reference frame.<BR>To do so (for an MB at position i_mb_x & i_mb_y) in the current frame,<BR>I think we should first load that MB to the cache using the following instruction:<BR> <BR>x264_macroblock_cache_load(h, i_mb_x, i_mb_y);<BR> <BR>and then we can use "h->mb.mv". Now, to access to a previous frame, <BR>I think we should first fetch that frame as our current frame and then<BR>we can do a similar operation to access to a specific MB. Am I right? <BR>If so, I think, to set a previous frame as our current frame, we can use this:<BR> <BR>h->fenc = h->fref0[0]; // to access to the first reference frame in list 0<BR> <BR>But what is your opinion? Thanks!</DIV></td></tr></table><br>