[FFmpeg-devel] [PATCH] Take colorspace into account when scaling in ffmpeg

Michael Niedermayer michaelni
Fri Feb 5 19:47:54 CET 2010


On Fri, Feb 05, 2010 at 12:09:16PM -0500, David Conrad wrote:
> On Jan 25, 2010, at 7:19 AM, Michael Niedermayer wrote:
> 
> > On Wed, Jan 20, 2010 at 06:32:25AM -0500, David Conrad wrote:
> >> Hi,
> >> 
> >> This takes source colorspace into account in ffmpeg.c. It obviously doesn't do anything unless doing a yuv->rgb conversion.
> >> 
> > 
> >> commit 53d6a0c2318da47ed2114eb2e14f8308b457b776
> >> Author: David Conrad <lessen42 at gmail.com>
> >> Date:   Wed Jan 20 06:18:19 2010 -0500
> >> 
> >>    Take into account colorspace and color_range for swscale conversion
> > 
> > ok if a concatenated jpeg->mpeg->jpeg style has been tested
> > also maybe you want to look at libavfilter that likely also needs to be
> > updated
> 
> This doesn't work because sws_getColorspaceDetails doesn't work if the destination is a yuv format, would it be OK to allow it for all formats even if not everything is supported?

hmm, swscale doesnt support it probably, making sws_setColorspaceDetails()
succeed even though sws wont honor the values seems wrong

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100205/07ac47c5/attachment.pgp>



More information about the ffmpeg-devel mailing list