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 */ |