[Ffmpeg-devel] Adding support for YUVJ formats in libswscale

Michael Niedermayer michaelni
Sat Sep 16 21:52:43 CEST 2006


Hi

On Sat, Sep 16, 2006 at 07:58:53PM +0200, Luca Abeni wrote:
> Hi all,
> 
> I was thinking about supporting PIX_FMT_YUVJ420P & friends in
> libswscale, and I had a look at mplayer code...
> 
> It seems to me that libswscale already provides support for the jpeg
> variant of the YUV formats through the sws_setColorspaceDetails() call,
> but I have some questions:
> 1) The doxygen comment seems to be wrong (probably outdated?): it talks
> about a "fullRange" parameter that is not present. Instead, I can see
> the "srcRange" and "dstRange"... Are they the ranges of the source and
> destination colorspace?

yes


> 2) Am I right in thinking that I have to set such parameters to 1 for
> YUVJ formats, and to 0 for YUV formats? 

yes


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

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list