[Ffmpeg-devel] [PATCH] AVISynth support

Michael Niedermayer michaelni
Thu Aug 17 22:10:59 CEST 2006


Hi

On Thu, Aug 17, 2006 at 05:45:33PM +0200, Steve Lhomme wrote:
> Michael Niedermayer wrote:
> >>>>Index: libavutil/avutil.h
> >>>>===================================================================
> >>>>--- libavutil/avutil.h	(revision 6005)
> >>>>+++ libavutil/avutil.h	(working copy)
> >>>>@@ -70,6 +70,7 @@
> >>>>    PIX_FMT_XVMC_MPEG2_IDCT,
> >>>>    PIX_FMT_UYVY422,   ///< Packed pixel, Cb Y0 Cr Y1
> >>>>    PIX_FMT_UYVY411,   ///< Packed pixel, Cb Y0 Y1 Cr Y2 Y3
> >>>>+    PIX_FMT_YVU420P,   ///< Planar YUV 4:2:0 (1 Cb & Cr sample per 2x2 
> >>>>Y samples)
> >>>>    PIX_FMT_NB,
> >>>>};
> >>>PIX_FMT_YVU420P is PIX_FMT_YUV420P with the pointers to the U and V
> >>>planes exchanged it doesnt need an new format id and neither needs a
> >>>memcpy() based conversation routine, exchanging the pointers is enough
> >>Exchanging the pointer ok, but where ? 
> >
> >in the raw video decoder
> >
> >
> >>If that's in the demuxer it's 
> >>possible (even though it's ugly).
> >
> >i dont want to know how you are going to exchange pointers in the demuxer
> >considering that these pointers arent in the demuxer
> >
> >
> >>If it's somewhere else, how do you 
> >>know you're dealing with YUV420P or YVU420P if they use the same ID ?
> >
> >codec_tag
> 
> OK, here is a patch to do that. It's much faster this way too :)

patch looks ok

[...]
-- 
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