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_pvop.c,v 1.1.2.5 2003-10-28 23:47:29 Isibaar Exp $ |
* $Id: estimation_pvop.c,v 1.1.2.7 2003-11-18 21:41:21 edgomez Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
828 |
pParam->width, pParam->height, Data->iFcode, 2, 0); |
pParam->width, pParam->height, Data->iFcode, 2, 0); |
829 |
Data->qpel_precision = 1; |
Data->qpel_precision = 1; |
830 |
if (MotionFlags & XVID_ME_QUARTERPELREFINE16) { |
if (MotionFlags & XVID_ME_QUARTERPELREFINE16) { |
831 |
|
*Data->iMinSAD2 = 256 * 4096; |
832 |
if(MotionFlags & XVID_ME_FASTREFINE16) |
if(MotionFlags & XVID_ME_FASTREFINE16) |
833 |
SubpelRefine_Fast(Data, CheckCandidate16_qpel); |
SubpelRefine_Fast(Data, CheckCandidate16_qpel); |
834 |
else |
else |
1014 |
MAX((&pMBs[x + (y-1) * pParam->mb_width])->sad16, |
MAX((&pMBs[x + (y-1) * pParam->mb_width])->sad16, |
1015 |
MAX((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, |
MAX((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, |
1016 |
prevMB->sad16))); |
prevMB->sad16))); |
1017 |
} |
} else { |
|
else { |
|
1018 |
stat_thresh = MIN((&pMBs[(x-1) + y * pParam->mb_width])->sad16, |
stat_thresh = MIN((&pMBs[(x-1) + y * pParam->mb_width])->sad16, |
1019 |
MIN((&pMBs[x + (y-1) * pParam->mb_width])->sad16, |
MIN((&pMBs[x + (y-1) * pParam->mb_width])->sad16, |
1020 |
MIN((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, |
MIN((&pMBs[(x+1) + (y-1) * pParam->mb_width])->sad16, |