21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: estimation_common.c,v 1.4 2004-04-20 06:10:40 syskin Exp $ |
* $Id: estimation_common.c,v 1.5 2004-07-08 07:12:54 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
351 |
} |
} |
352 |
|
|
353 |
void |
void |
354 |
xvid_me_SubpelRefine(SearchData * const data, CheckFunc * const CheckCandidate, int dir) |
xvid_me_SubpelRefine(VECTOR centerMV, SearchData * const data, CheckFunc * const CheckCandidate, int dir) |
355 |
{ |
{ |
356 |
/* Do a half-pel or q-pel refinement */ |
/* Do a half-pel or q-pel refinement */ |
|
const VECTOR centerMV = data->qpel_precision ? *data->currentQMV : *data->currentMV; |
|
357 |
|
|
358 |
CHECK_CANDIDATE(centerMV.x, centerMV.y - 1, dir); |
CHECK_CANDIDATE(centerMV.x, centerMV.y - 1, dir); |
359 |
CHECK_CANDIDATE(centerMV.x + 1, centerMV.y - 1, dir); |
CHECK_CANDIDATE(centerMV.x + 1, centerMV.y - 1, dir); |