Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Core::VideoSet::KfrMotionExtractor::GetMotionError16 ( unsigned char *  refframe,
unsigned char *  block,
int  framewidth,
int  fx,
int  fy 
) [inline]

Definition at line 1123 of file KfrMotionExtractor.h.

References BYTE, and MVBLOCKSIZE.

Referenced by DiamondSearch16(), and FullSearch16().

01125     {
01126         int i,j;
01127         int SAD = 0;
01128         BYTE* refBlock = refframe + fy*framewidth + fx;
01129 
01130         // i: fx direction (width)
01131         // j: fy direction (height)
01132         for (j=0;j<MVBLOCKSIZE;j++)
01133             for (i=0;i<MVBLOCKSIZE;i++)
01134             {
01135                 int diff = block[j*framewidth+i] - refBlock[j*framewidth+i];
01136                 diff = abs(diff);
01137                 SAD+=diff;
01138             }
01139         return SAD;
01140     }


Generated on Fri Mar 19 11:30:23 2010 for ImpalaSrc by  doxygen 1.5.1