186 |
|
|
187 |
MACROBLOCK *const pMB = &pMBs[x + y * iWcount]; |
MACROBLOCK *const pMB = &pMBs[x + y * iWcount]; |
188 |
|
|
189 |
|
if (pMB->mode == MODE_NOT_CODED) |
190 |
|
continue; |
191 |
|
|
192 |
predMV = get_pmv2(pMBs, pParam->mb_width, 0, x, y, 0); |
predMV = get_pmv2(pMBs, pParam->mb_width, 0, x, y, 0); |
193 |
|
|
194 |
pMB->sad16 = |
pMB->sad16 = |
2891 |
*currMV = pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV; |
*currMV = pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV; |
2892 |
|
|
2893 |
} else { |
} else { |
2894 |
|
|
2895 |
|
bPredEq = get_ipmvdata(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
2896 |
|
|
2897 |
threshA = psad[0]; |
threshA = psad[0]; |
2898 |
threshB = threshA + 256; |
threshB = threshA + 256; |
2899 |
if (threshA < 512) |
if (threshA < 512) |
2903 |
if (threshB > 1792) |
if (threshB > 1792) |
2904 |
threshB = 1792; |
threshB = 1792; |
2905 |
|
|
|
bPredEq = get_ipmvdata(pMBs, iWcount, 0, x, y, 0, pmv, psad); |
|
2906 |
*currMV = pmv[0]; /* current best := prediction */ |
*currMV = pmv[0]; /* current best := prediction */ |
2907 |
} |
} |
2908 |
|
|