Home || Visual Search || Applications || Architecture || 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 1130 of file KfrMotionExtractor.h.

References BYTE, and MVBLOCKSIZE.

Referenced by DiamondSearch16(), and FullSearch16().

01132     {
01133         int i,j;
01134         int SAD = 0;
01135         BYTE* refBlock = refframe + fy*framewidth + fx;
01136 
01137         // i: fx direction (width)
01138         // j: fy direction (height)
01139         for (j=0;j<MVBLOCKSIZE;j++)
01140             for (i=0;i<MVBLOCKSIZE;i++)
01141             {
01142                 int diff = block[j*framewidth+i] - refBlock[j*framewidth+i];
01143                 diff = abs(diff);
01144                 SAD+=diff;
01145             }
01146         return SAD;
01147     }


Generated on Thu Jan 13 09:22:01 2011 for ImpalaSrc by  doxygen 1.5.1