[FFmpeg-devel] [PATCH] swscale: treat gray as a jpeg style format

wm4 nfxjfg at googlemail.com
Sat Jul 6 14:54:21 CEST 2013


On Sat, 6 Jul 2013 13:46:34 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> > Maybe I'm missing something, but isn't the range supposed to be
> > controlled by the parameters passed to sws_setColorspaceDetails?
> 
> yes, does this patch break that somehow ?
> or am i misunderstanding what you meant ?

As far as I can tell it never worked, and it was hardcoded to use
limited range. So if your patch works as advertised, it would be more
correct in some cases.

IMO it should still respect sws_setColorspaceDetails, because a GRAY8
image could be the Y plane extracted from a yuv420p image, which would
require treating it as limited range.


More information about the ffmpeg-devel mailing list