[FFmpeg-devel] [PATCH 02/15] Add pixel formats for 9- and 10-bit yuv420p.

Tomas Härdin tomas.hardin
Fri Mar 11 10:09:03 CET 2011


Oskar Arvidsson skrev 2011-03-10 23:27:
> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> index 8ec91c8..76d5367 100644
> --- a/libavutil/pixfmt.h
> +++ b/libavutil/pixfmt.h
> @@ -119,6 +119,10 @@ enum PixelFormat {
>       PIX_FMT_VAAPI_IDCT, ///<  HW acceleration through VA API at IDCT entry-point, Picture.data[3] contains a vaapi_render_state struct which contains fields extracted from headers
>       PIX_FMT_VAAPI_VLD,  ///<  HW decoding through VA API, Picture.data[3] contains a vaapi_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
>
> +    PIX_FMT_YUV420P9LE,   ///<  planar YUV 4:2:0, 13.5bpp, (1 Cr&  Cb sample per 2x2 Y samples), little-endian
> +    PIX_FMT_YUV420P9BE,   ///<  planar YUV 4:2:0, 13.5bpp, (1 Cr&  Cb sample per 2x2 Y samples), big-endian
> +    PIX_FMT_YUV420P10LE,  ///<  planar YUV 4:2:0, 15bpp, (1 Cr&  Cb sample per 2x2 Y samples), little-endian
> +    PIX_FMT_YUV420P10BE,  ///<  planar YUV 4:2:0, 15bpp, (1 Cr&  Cb sample per 2x2 Y samples), big-endian
>       PIX_FMT_YUV420P16LE,  ///<  planar YUV 4:2:0, 24bpp, (1 Cr&  Cb sample per 2x2 Y samples), little-endian
>       PIX_FMT_YUV420P16BE,  ///<  planar YUV 4:2:0, 24bpp, (1 Cr&  Cb sample per 2x2 Y samples), big-endian
>       PIX_FMT_YUV422P16LE,  ///<  planar YUV 4:2:2, 32bpp, (1 Cr&  Cb sample per 2x1 Y samples), little-endian

This breaks ABI compatibility - put them at the end of the enum

Can't find much else wrong with this patch, except maybe one might want 
to use 16-bit as Carl suggested.

/Tomas



More information about the ffmpeg-devel mailing list