[FFmpeg-devel] [PATCH] add yuva420p support

Michael Niedermayer michaelni
Mon Sep 24 14:08:45 CEST 2007


Hi

On Mon, Sep 24, 2007 at 01:48:22PM +0200, Aurelien Jacobs wrote:
> Hi,
> 
> I'm currently implementing support for VP6A inside the vp6 codec. This
> will output planar YUV with an additional alpha plan.
> The attached patch add support for this new colorspace. For now this
> colorspace is displayed and converted the same way as yuv420p
> (ie. ignoring the alpha plan). Adding support for converting yuva420p
> to yuv420p into libswscale, using the alpha plan information and
> rendering on a uniform color background would be great, but is not
> implemented for now.
> 
> Is this patch OK ?
[...]
> Index: libavutil/avutil.h
> ===================================================================
> --- libavutil/avutil.h	(revision 10550)
> +++ libavutil/avutil.h	(working copy)
> @@ -105,6 +105,7 @@
>      PIX_FMT_GRAY16LE,  ///<        Y        , 16bpp, little-endian
>      PIX_FMT_YUV440P,   ///< Planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
>      PIX_FMT_YUVJ440P,  ///< Planar YUV 4:4:0 full scale (jpeg)
> +    PIX_FMT_YUVA420P,  ///< Planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) + one alpha plane (same resolution as Y plane)

its not 12bpp
also id write (1 Cr & Cb sample per 2x2 Y & A samples)

the rest of the patch looks ok

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

Democracy is the form of government in which you can choose your dictator
-------------- 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/20070924/d86b0069/attachment.pgp>



More information about the ffmpeg-devel mailing list