[FFmpeg-devel] How can I determine color_range from a filter?

Michael Niedermayer michaelni
Thu Jan 6 23:51:52 CET 2011

On Thu, Jan 06, 2011 at 02:22:11PM -0800, Larry Robinson wrote:
> I am writing a filter which will write time stamps on the video frames  
> to help with editing, by alpha-blending the digits onto the frame.
> In libavutil/pixfmt.h I see:
> PIX_FMT_YUVJ444P,  ///< planar YUV 4:4:4, 24bpp, full scale (JPEG),  
> deprecated in favor of PIX_FMT_YUV444P and setting color_range.
> This implies that for PIX_FMT_YUV444P (and a couple of others used by  
> JPEG) I need to look at color_range to correctly write the pixels.  As  
> far as I can tell (after 6 hours of study) there is no way to get from  
> an AVFilterLink (which I have in the filter) to the AVCodecContext where  
> color_range resides.  Any help would be appreciated!

We (or you) need to add color_range (and a few others) to where pix_fmt is
in avfilter approximately

a filter could also change color_range so AVCodecContext is not enough even
if it could be reached

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110106/1a0e344d/attachment.pgp>

More information about the ffmpeg-devel mailing list