iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/decode.c
/* plot_422_h:
 *  Plots a 16x8 MCU block for 422 mode.
 */
Plots a 16x8 MCU block for 422 mode.
Plots a 16x8 MCU block for 422 mode .
static void
plot_422_h(intptr_t addr, int pitch, short *y1, short *y2, short *y3, short *y4, short *cb, short *cr)
{
	int x, y;
	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, *cr_ptr, *(y1_ptr + 2), *(cb_ptr + 1), *(cr_ptr + 1), *(y1_ptr + 3), *(cb_ptr + 1), *(cr_ptr + 1));
			ycbcr2rgb(addr + 24, *y2_ptr, *(cb_ptr + 4), *(cr_ptr + 4), *(y2_ptr + 1), *(cb_ptr + 4), *(cr_ptr + 4), *(y2_ptr + 2), *(cb_ptr + 5), *(cr_ptr + 5), *(y2_ptr + 3), *(cb_ptr + 5), *(cr_ptr + 5));
			y1_ptr += 4;
			y2_ptr += 4;
			cb_ptr += 2;
			cr_ptr += 2;
			addr += 12;
		}
		cb_ptr += 4;
		cr_ptr += 4;
		addr += (pitch - 24);
	}
}
static void plot_422_h ( intptr_t addr , int pitch , short * y1 , short * y2 , short * y3 , short * y4 , short * cb , short * cr ) { int x , y ; 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 , * cr_ptr , * ( y1_ptr + 2 ) , * ( cb_ptr + 1 ) , * ( cr_ptr + 1 ) , * ( y1_ptr + 3 ) , * ( cb_ptr + 1 ) , * ( cr_ptr + 1 ) ) ; ycbcr2rgb ( addr + 24 , * y2_ptr , * ( cb_ptr + 4 ) , * ( cr_ptr + 4 ) , * ( y2_ptr + 1 ) , * ( cb_ptr + 4 ) , * ( cr_ptr + 4 ) , * ( y2_ptr + 2 ) , * ( cb_ptr + 5 ) , * ( cr_ptr + 5 ) , * ( y2_ptr + 3 ) , * ( cb_ptr + 5 ) , * ( cr_ptr + 5 ) ) ; y1_ptr += 4 ; y2_ptr += 4 ; cb_ptr += 2 ; cr_ptr += 2 ; addr += 12 ; } cb_ptr += 4 ; cr_ptr += 4 ; addr += ( pitch - 24 ) ; } }
plot_422_h:
  Plots a 16x8 MCU block for 422 mode.
plot_422_h : Plots a 16x8 MCU block for 422 mode .