search for: corner_x

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

Did you mean: corner_y
2005 Apr 19
0
mmx optimization
...e, but I'm have some problems, because I work with 16 bit per component and not 8 like theora. I know that it is off topic, but I'm posting to ask you a little help. I've got this 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; }...