search for: orig_mb

Displaying 1 result from an estimated 1 matches for "orig_mb".

Did you mean: orig_ax
2005 Apr 19
0
mmx optimization
...is function that calculates the sad: si32 sad_4x4 (macroblock_t * mb, ui8 x, ui8 y) { ui8 i, j; si32 corner_x, corner_y, sad; corner_x = x << 2; corner_y = y << 2; sad = 0; for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) sad += abs (mb->orig_mb[corner_x + i][corner_y + j] - mb->pred_mb[corner_x + i][corner_y + j]); return sad; } where mb->orig_mb and mb->pred_mb are arrays of short int and not unsigned char. I cannot therefore use psadbw, because it works on 8 bit data. I've currently rewritten the functi...