yuv2rgb_altivec_init_tables (c, inv_table);
yuv2rgb_altivec_init_tables (c, inv_table, brightness, contrast, saturation);
int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation){	int64_t crv =  inv_table[0];	int64_t cbu =  inv_table[1];	int64_t cgu = -inv_table[2];	int64_t cgv = -inv_table[3];	int64_t cy  = 1<<16;	int64_t oy  = 0;	if(isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;	memcpy(c->srcColorspaceTable, inv_table, sizeof(int)*4);	memcpy(c->dstColorspaceTable,     table, sizeof(int)*4);	c->brightness= brightness;	c->contrast  = contrast;	c->saturation= saturation;	c->srcRange  = srcRange;	c->dstRange  = dstRange;	c->uOffset=   0x0400040004000400LL;	c->vOffset=   0x0400040004000400LL;	if(!srcRange){		cy= (cy*255) / 219;		oy= 16<<16;	}	cy = (cy *contrast             )>>16;	crv= (crv*contrast * saturation)>>32;	cbu= (cbu*contrast * saturation)>>32;	cgu= (cgu*contrast * saturation)>>32;	cgv= (cgv*contrast * saturation)>>32;	oy -= 256*brightness;	c->yCoeff=    roundToInt16(cy *8192) * 0x0001000100010001ULL;	c->vrCoeff=   roundToInt16(crv*8192) * 0x0001000100010001ULL;	c->ubCoeff=   roundToInt16(cbu*8192) * 0x0001000100010001ULL;	c->vgCoeff=   roundToInt16(cgv*8192) * 0x0001000100010001ULL;	c->ugCoeff=   roundToInt16(cgu*8192) * 0x0001000100010001ULL;	c->yOffset=   roundToInt16(oy *   8) * 0x0001000100010001ULL;	yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation);	//FIXME factorize#ifdef HAVE_ALTIVEC	yuv2rgb_altivec_init_tables (c, inv_table);#endif		return 0;}