--- motion_est.c 2002/09/12 18:53:11 1.48 +++ motion_est.c 2002/09/21 11:59:22 1.50 @@ -153,9 +153,6 @@ MACROBLOCK *const pMB = &pMBs[x + y * iWcount]; - if (pMB->mode == MODE_NOT_CODED) - continue; - predMV = get_pmv2(pMBs, pParam->mb_width, 0, x, y, 0); pMB->sad16 = @@ -359,8 +356,8 @@ { iMinSAD=iSAD; currMV->x=(X); currMV->y=(Y); iDirection=(D); iFound=0; } } \ } +#if 0 /* too slow and not fully functional at the moment */ -/* int32_t ZeroSearch16( const uint8_t * const pRef, const uint8_t * const pRefH, @@ -399,7 +396,7 @@ return iSAD; } -*/ +#endif /* 0 */ int32_t Diamond16_MainSearch(const uint8_t * const pRef, @@ -842,9 +839,13 @@ } while (1); //forever } + return iMinSAD; } +/* Disabled bframe specific code */ +#if 0 + #define CHECK_MV16_F_INTERPOL(X,Y) { \ if ( ((X) <= f_max_dx) && ((X) >= f_min_dx) \ && ((Y) <= f_max_dy) && ((Y) >= f_min_dy) ) \ @@ -901,6 +902,7 @@ { iMinSAD=iSAD; b_currMV->x=(X); b_currMV->y=(Y); iFound=0;} } \ } + int32_t Diamond16_InterpolMainSearch(const uint8_t * const f_pRef, const uint8_t * const f_pRefH, @@ -1089,6 +1091,7 @@ return iMinSAD; } +#endif /* 0 */ int32_t AdvDiamond8_MainSearch(const uint8_t * const pRef, @@ -2785,7 +2788,8 @@ } - +/* Disabled bframe specific code */ +# if 0 int32_t PMVfastIntSearch16(const uint8_t * const pRef, const uint8_t * const pRefH, @@ -3076,4 +3080,4 @@ currPMV->y = currMV->y - center_y; return iMinSAD; } - +#endif /* 0 */