[FFmpeg-devel] [PATCH] sws flags for ffmpeg

mark cox markcox
Tue May 22 22:34:34 CEST 2007

> I believe the reason the regression tests fail is that the colourspace
> conversions of swscale do not always match imgconvert. Some are more
> accurate, others are not. For example, one could 'upgrade' a 5-bit
> R-component to 8-bits by just doing R<<=3; or one could do R<<=3; R+=R>>5;
> The former is faster, the latter is more accurate. The algorithms in
> libswscale are not always exactly the same as they are in imgconvert.
> I don't think the regression tests fail because of scaling issues, only
> because of colourspace conversions. And if there is any scaling involved
> in
> the tests, we should use an swscaler that matches imgresample, although I
> am not sure if that is possible.

Thanks, that make sense.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list