[Ffmpeg-devel] [PATCH] YVU9 support
Måns Rullgård
mru
Sun Mar 5 02:01:48 CET 2006
Fabrizio Gennari <fabrizio.ge at tiscali.it> writes:
> This patch adds support with AVI files with YVU9 video fourcc. This
> format is identical to YUV9, except the order of channels U and V is
> swapped
>
> Regards,
> Fabrizio
>
>
> ? yvupatch.txt
> Index: libavcodec/avcodec.h
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/avcodec.h,v
> retrieving revision 1.456
> diff -u -r1.456 avcodec.h
> --- libavcodec/avcodec.h 21 Feb 2006 22:05:13 -0000 1.456
> +++ libavcodec/avcodec.h 4 Mar 2006 23:27:57 -0000
> @@ -248,6 +248,7 @@
> PIX_FMT_YUV444P, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples)
> PIX_FMT_RGBA32, ///< Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness
> PIX_FMT_YUV410P, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples)
> + PIX_FMT_YVU410P, ///< Planar YVU 4:1:0 (1 Cr & Cb sample per 4x4 Y samples)
> PIX_FMT_YUV411P, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples)
Add new values at the end of the list instead so it avoids breaking
binary compatibility. Apart from that the patch looks good.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list