[FFmpeg-devel] [PATCH]Improve rgb -> gray16 conversion
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Mar 6 10:14:03 CET 2014
HI!
Gray16 currently assumes MPEG-range, this is unexpected for most users.
Attached patch improves the dynamics of the gray16 output here, addresses
ticket #3422.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 4e73853..f2e4167 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1055,6 +1055,8 @@ static int handle_jpeg(enum AVPixelFormat *format)
*format = AV_PIX_FMT_YUV440P;
return 1;
case AV_PIX_FMT_GRAY8:
+ case AV_PIX_FMT_GRAY16LE:
+ case AV_PIX_FMT_GRAY16BE:
return 1;
default:
return 0;
More information about the ffmpeg-devel
mailing list