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: motion_est.c,v 1.58.2.33 2003-09-04 18:40:02 Isibaar Exp $ |
* $Id: motion_est.c,v 1.58.2.34 2003-09-05 10:01:50 Isibaar Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
1005 |
|
|
1006 |
second_best = *data->currentMV; |
second_best = *data->currentMV; |
1007 |
|
|
1008 |
if(data->qpel_precision) |
if(data->qpel_precision) { |
1009 |
second_best.x *= 2; second_best.y *= 2; |
second_best.x *= 2; second_best.y *= 2; |
1010 |
|
} |
1011 |
|
|
1012 |
data->currentMV[0] = centerMV; |
data->currentMV[0] = centerMV; |
1013 |
*data->iMinSAD = best_sad; |
*data->iMinSAD = best_sad; |
1159 |
pMB->mcsel = 0; |
pMB->mcsel = 0; |
1160 |
|
|
1161 |
/* INTER <-> INTER4V decision */ |
/* INTER <-> INTER4V decision */ |
1162 |
if ((Data->iMinSAD[0] + 125 < Data->iMinSAD[1] + |
if ((Data->iMinSAD[0] + 50 < Data->iMinSAD[1] + |
1163 |
Data->iMinSAD[2] + Data->iMinSAD[3] + Data->iMinSAD[4])) { /* normal, fast, SAD-based mode decision */ |
Data->iMinSAD[2] + Data->iMinSAD[3] + Data->iMinSAD[4])) { /* normal, fast, SAD-based mode decision */ |
1164 |
if (inter4v == 0 || Data->iMinSAD[0] < Data->iMinSAD[1] + Data->iMinSAD[2] + |
if (inter4v == 0 || Data->iMinSAD[0] < Data->iMinSAD[1] + Data->iMinSAD[2] + |
1165 |
Data->iMinSAD[3] + Data->iMinSAD[4] + IMV16X16 * (int32_t)iQuant) { |
Data->iMinSAD[3] + Data->iMinSAD[4] + IMV16X16 * (int32_t)iQuant) { |