[FFmpeg-devel] [RFC] RGB conversion from YUV in swscaler
Kostya
kostya.shishkov
Tue Nov 6 20:39:36 CET 2007
I believe this is another case of RGB/BGR confusion in MPlayer
that rooted in swscaler.
Can somebody verify YUV conversion to RGB 15/16 and anything
else (with and without --disable-mmx)? If it's true it may
involve further BGR24/BGR32 renaming :(
-------------- next part --------------
Index: libswscale/yuv2rgb.c
===================================================================
--- libswscale/yuv2rgb.c (revision 24969)
+++ libswscale/yuv2rgb.c (working copy)
@@ -696,7 +696,7 @@
int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
{
- const int isRgb = isBGR(c->dstFormat);
+ const int isRgb = isRGB(c->dstFormat);
const int bpp = fmt_depth(c->dstFormat);
int i;
uint8_t table_Y[1024];
More information about the ffmpeg-devel
mailing list