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_bvop.c,v 1.2 2004-03-22 22:36:24 edgomez Exp $ |
* $Id: estimation_bvop.c,v 1.2.2.1 2004-05-25 14:14:55 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
678 |
if (pMB->mode == MODE_DIRECT_NONE_MV) return *Data->iMinSAD; /* skipped */ |
if (pMB->mode == MODE_DIRECT_NONE_MV) return *Data->iMinSAD; /* skipped */ |
679 |
} |
} |
680 |
|
|
|
*Data->iMinSAD += Data->lambda16; |
|
681 |
skip_sad = *Data->iMinSAD; |
skip_sad = *Data->iMinSAD; |
682 |
|
|
683 |
if (!(MotionFlags & XVID_ME_SKIP_DELTASEARCH)) { |
if (!(MotionFlags & XVID_ME_SKIP_DELTASEARCH)) { |
690 |
xvid_me_SubpelRefine(Data, CheckCandidate); |
xvid_me_SubpelRefine(Data, CheckCandidate); |
691 |
} |
} |
692 |
|
|
693 |
|
*Data->iMinSAD += Data->lambda16; |
694 |
*best_sad = *Data->iMinSAD; |
*best_sad = *Data->iMinSAD; |
695 |
|
|
696 |
if (Data->qpel || b_mb->mode == MODE_INTER4V) pMB->mode = MODE_DIRECT; |
if (Data->qpel || b_mb->mode == MODE_INTER4V) pMB->mode = MODE_DIRECT; |