]> git.sesse.net Git - ffmpeg/commitdiff
lavu: Add a pixel format for new VDA hwaccel
authorAnton Khirnov <anton@khirnov.net>
Thu, 6 Mar 2014 13:07:42 +0000 (14:07 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 11 May 2014 12:59:59 +0000 (14:59 +0200)
The current hwaccel is broken and cannot be fixed in a compatible
way. It will be deprecated and replaced with a new one.

doc/APIchanges
libavutil/pixdesc.c
libavutil/pixfmt.h
libavutil/version.h

index f392c53d01ebfcb6ae5177b874d24323044843d7..91ec1067c749f757f000a8081bbb4f8e4f7d685d 100644 (file)
@@ -13,6 +13,9 @@ libavutil:     2013-12-xx
 
 API changes, most recent first:
 
+2014-xx-xx - xxxxxxx - lavu 53.14.0 - pixfmt.h
+  Add AV_PIX_FMT_VDA for new-style VDA acceleration.
+
 2014-04-xx - xxxxxxx - lavc 55.50.3 - avcodec.h
   Deprecate CODEC_FLAG_MV0. It is replaced by the flag "mv0" in the
   "mpv_flags" private option of the mpegvideo encoders.
index 80c97b0096ca409ef153f58af7d9e6c74888c3bc..ced3e466341e14697cca6ff029929a412012ecd0 100644 (file)
@@ -1494,6 +1494,10 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
         },
         .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE,
     },
+    [AV_PIX_FMT_VDA] = {
+        .name = "vda",
+        .flags = AV_PIX_FMT_FLAG_HWACCEL,
+    },
 };
 
 FF_DISABLE_DEPRECATION_WARNINGS
index bfd16e64e26267d0ca8bdf451e846a8672769f20..99a926f00f934818503bc83bd210d8738b185535 100644 (file)
@@ -198,6 +198,7 @@ enum AVPixelFormat {
 
     AV_PIX_FMT_YVYU422,   ///< packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
 
+    AV_PIX_FMT_VDA,          ///< HW acceleration through VDA, data[3] contains a CVPixelBufferRef
     AV_PIX_FMT_NB,        ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
 
 #if FF_API_PIX_FMT
index 9d3e7f31fc5e601c900c8513c958733696d992db..43e7947121393175e53de101cd8958fbc059b824 100644 (file)
@@ -54,7 +54,7 @@
  */
 
 #define LIBAVUTIL_VERSION_MAJOR 53
-#define LIBAVUTIL_VERSION_MINOR 13
+#define LIBAVUTIL_VERSION_MINOR 14
 #define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \