![]() |
![]() |
Functions | |
void | IMG_mad_16x16 (const unsigned char *restrict refImg, const unsigned char *restrict srcImg, int pitch, int h, int v, unsigned *restrict match) |
void IMG_mad_16x16 | ( | const unsigned char *restrict | refImg, | |
const unsigned char *restrict | srcImg, | |||
int | pitch, | |||
int | h, | |||
int | v, | |||
unsigned *restrict | match | |||
) |
(0,0) (h,0) (h+16,0) ;--------------+--------; ; search | ; ; space | ; ; | ; search area ;--------------+ ; within reference image (0,v) (h,v) ; ; ; ;-----------------------; (0, v+16) (v+16,h+16)
31 16 15 0 +----------------+----------------+ match[0]: | x | y | +----------------+----------------+ 31 0 +---------------------------------+ match[1]: | SAD value at location x, y | +---------------------------------+
refImg | Reference image | |
srcImg | 16x16 block image to look for | |
pitch | Width of reference image | |
h | Horizontal size of search area | |
v | Vertical size of search area (must be a multiple of 2) | |
match | Result: match[0] is packed x, y match[1] is MAD value |