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.7 2004-07-08 07:12:54 syskin Exp $ |
* $Id: estimation_bvop.c,v 1.8 2004-07-10 11:23:41 syskin Exp $ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
525 |
{ |
{ |
526 |
int k; |
int k; |
527 |
|
|
528 |
|
pMB->mode = MODE_DIRECT; /* just to initialize it */ |
529 |
|
|
530 |
if (!Data->chroma) { |
if (!Data->chroma) { |
531 |
int dx = 0, dy = 0, b_dx = 0, b_dy = 0; |
int dx = 0, dy = 0, b_dx = 0, b_dy = 0; |
532 |
int32_t sum; |
int32_t sum; |
558 |
stride); |
stride); |
559 |
|
|
560 |
if (sum >= MAX_CHROMA_SAD_FOR_SKIP * (int)Data->iQuant) return; /* no skip */ |
if (sum >= MAX_CHROMA_SAD_FOR_SKIP * (int)Data->iQuant) return; /* no skip */ |
561 |
|
} else { |
562 |
|
int sum = Data->chromaSAD; /* chroma-sad SAD caching keeps it there */ |
563 |
|
|
564 |
|
if (sum >= MAX_CHROMA_SAD_FOR_SKIP * (int)Data->iQuant) return; /* no skip */ |
565 |
} |
} |
566 |
|
|
567 |
/* skip */ |
/* skip */ |