[FFmpeg-cvslog] lavu: Add a pixel format for new VDA hwaccel
Anton Khirnov
git at videolan.org
Mon May 12 00:58:00 CEST 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 6 14:07:42 2014 +0100| [66e6c8a7b4e3ac926302529606bd3e323c28b20f] | committer: Luca Barbato
lavu: Add a pixel format for new VDA hwaccel
The current hwaccel is broken and cannot be fixed in a compatible
way. It will be deprecated and replaced with a new one.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66e6c8a7b4e3ac926302529606bd3e323c28b20f
---
doc/APIchanges | 3 +++
libavutil/pixdesc.c | 4 ++++
libavutil/pixfmt.h | 1 +
libavutil/version.h | 2 +-
4 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index f392c53..91ec106 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -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.
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 80c97b0..ced3e46 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -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
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index bfd16e6..99a926f 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -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
diff --git a/libavutil/version.h b/libavutil/version.h
index 9d3e7f3..43e7947 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -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, \
More information about the ffmpeg-cvslog
mailing list