[Ffmpeg-devel] [PATCH] AVISynth support

Steve Lhomme steve.lhomme
Thu Aug 17 17:45:33 CEST 2006


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 :)

Steve
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yv12-support_v2.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060817/9e3f93d9/attachment.asc>



More information about the ffmpeg-devel mailing list