[libav-devel] [PATCH]: Video Decoder Acceleration (VDA) HWAccel module for Mac OS X

Ronald S. Bultje rsbultje at gmail.com
Wed Nov 2 17:48:25 CET 2011


Hi,

On Tue, Nov 1, 2011 at 7:45 AM, Sebastien Zwickert <dilaroga at gmail.com> wrote:
[..]
> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
> index 25c9ef9..3565496 100644
> --- a/libavutil/pixfmt.h
> +++ b/libavutil/pixfmt.h
> @@ -119,6 +119,8 @@ 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_VDA_VLD,    ///< HW decoding through VDA.
> +
>      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 should go at the end, else you break ABI and (worse) isBE() in
swscale won't behave as expected with the values below anymore.

Rest is OK.

Ronald


More information about the libav-devel mailing list