1388 |
if ((Data->chroma) && (!(GlobalFlags & XVID_MODEDECISION_BITS))) { |
if ((Data->chroma) && (!(GlobalFlags & XVID_MODEDECISION_BITS))) { |
1389 |
// chroma is only used for comparsion to INTER. if the comparsion will be done in BITS domain, there is no reason to compute it |
// chroma is only used for comparsion to INTER. if the comparsion will be done in BITS domain, there is no reason to compute it |
1390 |
int sumx = 0, sumy = 0; |
int sumx = 0, sumy = 0; |
1391 |
const int div = Data->qpel ? 2 : 0; |
const int div = Data->qpel ? 2 : 1; |
1392 |
const VECTOR * const mv = Data->qpel ? pMB->qmvs : pMB->mvs; |
const VECTOR * const mv = Data->qpel ? pMB->qmvs : pMB->mvs; |
1393 |
|
|
1394 |
for (i = 0; i < 4; i++) { |
for (i = 0; i < 4; i++) { |
2256 |
sSAD /= blocks; |
sSAD /= blocks; |
2257 |
s = (10*s) / blocks; |
s = (10*s) / blocks; |
2258 |
|
|
2259 |
if (s > 4) sSAD += (s - 2) * (160 - 2*b_thresh); //static block - looks bad when in bframe... |
if (s > 4) sSAD += (s - 2) * (60 - 2*b_thresh); //static block - looks bad when in bframe... |
2260 |
|
|
2261 |
if (sSAD > InterThresh ) return P_VOP; |
if (sSAD > InterThresh ) return P_VOP; |
2262 |
emms(); |
emms(); |