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 |
|
|
3214 |
: mb->mvs[k].y - mb->directmv[k].y); |
: mb->mvs[k].y - mb->directmv[k].y); |
3215 |
|
|
3216 |
d_sad16 += |
d_sad16 += |
3217 |
sad8bi(frame->image.y + 2*(i+(k&1))*8 + 2*(j+(k>>1))*8*edged_width, |
sad8bi(frame->image.y + (2*i+(k&1))*8 + (2*j+(k>>1))*8*edged_width, |
3218 |
get_ref_mv(f_ref->y, f_refH->y, f_refV->y, f_refHV->y, |
get_ref_mv(f_ref->y, f_refH->y, f_refV->y, f_refHV->y, |
3219 |
2*(i+(k&1)), 2*(j+(k>>1)), 8, &mb->mvs[k], edged_width), |
(2*i+(k&1)), (2*j+(k>>1)), 8, &mb->mvs[k], edged_width), |
3220 |
get_ref_mv(b_ref->y, b_refH->y, b_refV->y, b_refHV->y, |
get_ref_mv(b_ref->y, b_refH->y, b_refV->y, b_refHV->y, |
3221 |
2*(i+(k&1)), 2*(j+(k>>1)), 8, &mb->b_mvs[k], edged_width), |
(2*i+(k&1)), (2*j+(k>>1)), 8, &mb->b_mvs[k], edged_width), |
3222 |
edged_width); |
edged_width); |
3223 |
} |
} |
3224 |
} |
} |