iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/decode.c
/* plot_422_v:
 *  Plots a 8x16 MCU block for 422 mode.
 */
Plots a 8x16 MCU block for 422 mode.
Plots a 8x16 MCU block for 422 mode .
static void
plot_422_v(intptr_t addr, int pitch, short *y1, short *y2, short *y3, short *y4, short *cb, short *cr)
{
	int x, y, d;
	short *y1_ptr = y1, *y2_ptr = y2, *cb_ptr = cb, *cr_ptr = cr;
	(void)y3;
	(void)y4;
	for (y = 0; y < 8; y++) {
		for (x = 0; x < 8; x += 4) {
			ycbcr2rgb(addr, *y1_ptr, *cb_ptr, *cr_ptr, *(y1_ptr + 1), *(cb_ptr + 1), *(cr_ptr + 1), *(y1_ptr + 2), *(cb_ptr + 2), *(cr_ptr + 2), *(y1_ptr + 3), *(cb_ptr + 3), *(cr_ptr + 3));
			ycbcr2rgb(addr + (pitch * 8), *y2_ptr, *(cb_ptr + 32), *(cr_ptr + 32), *(y2_ptr + 1), *(cb_ptr + 33), *(cr_ptr + 33), *(y2_ptr + 2), *(cb_ptr + 34), *(cr_ptr + 34), *(y2_ptr + 3), *(cb_ptr + 35), *(cr_ptr + 35));
			y1_ptr += 4;
			y2_ptr += 4;
			cb_ptr += 4;
			cr_ptr += 4;
			addr += 12;
		}
		d = (!(y & 1)) * 8;
		cb_ptr -= d;
		cr_ptr -= d;
		addr += (pitch - 24);
	}
}
static void plot_422_v ( intptr_t addr , int pitch , short * y1 , short * y2 , short * y3 , short * y4 , short * cb , short * cr ) { int x , y , d ; short * y1_ptr = y1 , * y2_ptr = y2 , * cb_ptr = cb , * cr_ptr = cr ; ( void ) y3 ; ( void ) y4 ; for ( y = 0 ; y < 8 ; y ++ ) { for ( x = 0 ; x < 8 ; x += 4 ) { ycbcr2rgb ( addr , * y1_ptr , * cb_ptr , * cr_ptr , * ( y1_ptr + 1 ) , * ( cb_ptr + 1 ) , * ( cr_ptr + 1 ) , * ( y1_ptr + 2 ) , * ( cb_ptr + 2 ) , * ( cr_ptr + 2 ) , * ( y1_ptr + 3 ) , * ( cb_ptr + 3 ) , * ( cr_ptr + 3 ) ) ; ycbcr2rgb ( addr + ( pitch * 8 ) , * y2_ptr , * ( cb_ptr + 32 ) , * ( cr_ptr + 32 ) , * ( y2_ptr + 1 ) , * ( cb_ptr + 33 ) , * ( cr_ptr + 33 ) , * ( y2_ptr + 2 ) , * ( cb_ptr + 34 ) , * ( cr_ptr + 34 ) , * ( y2_ptr + 3 ) , * ( cb_ptr + 35 ) , * ( cr_ptr + 35 ) ) ; y1_ptr += 4 ; y2_ptr += 4 ; cb_ptr += 4 ; cr_ptr += 4 ; addr += 12 ; } d = ( ! ( y & 1 ) ) * 8 ; cb_ptr -= d ; cr_ptr -= d ; addr += ( pitch - 24 ) ; } }
plot_422_v:
  Plots a 8x16 MCU block for 422 mode.
plot_422_v : Plots a 8x16 MCU block for 422 mode .