comparison postproc/yuv2rgb.c @ 12657:9b8d635d53cc

bigendian fix
author alex
date Fri, 25 Jun 2004 17:05:35 +0000
parents b80f95e24c96
children d2aef091743c
comparison
equal deleted inserted replaced
12656:ecc8c794f000 12657:9b8d635d53cc
640 return -((-dividend + (divisor>>1)) / divisor); 640 return -((-dividend + (divisor>>1)) / divisor);
641 } 641 }
642 642
643 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation) 643 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
644 { 644 {
645 const int isRgb = IMGFMT_IS_RGB(c->dstFormat); 645 const int isRgb = IMGFMT_IS_BGR(c->dstFormat);
646 const int bpp = isRgb?IMGFMT_RGB_DEPTH(c->dstFormat):IMGFMT_BGR_DEPTH(c->dstFormat); 646 const int bpp = isRgb?IMGFMT_RGB_DEPTH(c->dstFormat):IMGFMT_BGR_DEPTH(c->dstFormat);
647 int i; 647 int i;
648 uint8_t table_Y[1024]; 648 uint8_t table_Y[1024];
649 uint32_t *table_32 = 0; 649 uint32_t *table_32 = 0;
650 uint16_t *table_16 = 0; 650 uint16_t *table_16 = 0;