summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-08-24 23:30:29 +0100
committerMark Thompson <sw@jkqxz.net>2017-01-17 23:06:46 +0000
commit2a4a8653b6ca77ed1c9cec1336c55d291ef545b6 (patch)
tree3841d6d6be3756b943b6ec8802aa2ba2c2b75bcb /libavcodec/vaapi.h
parent542a65d0b33abf81e5087ec9142bb11a54f23cde (diff)
lavc: Remove old vaapi decode infrastructure
Deprecates struct vaapi_context and the installed header vaapi.h, to be removed at the next version bump. (cherry picked from commit 851960f6f8cf1f946fe42fa36cf6598fac68072c)
Diffstat (limited to 'libavcodec/vaapi.h')
-rw-r--r--libavcodec/vaapi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/vaapi.h b/libavcodec/vaapi.h
index 7a29f6f881..e68912d93b 100644
--- a/libavcodec/vaapi.h
+++ b/libavcodec/vaapi.h
@@ -34,6 +34,8 @@
#include "libavutil/attributes.h"
#include "version.h"
+#if FF_API_STRUCT_VAAPI_CONTEXT
+
/**
* @defgroup lavc_codec_hwaccel_vaapi VA API Decoding
* @ingroup lavc_codec_hwaccel
@@ -48,7 +50,10 @@
* during initialization or through each AVCodecContext.get_buffer()
* function call. In any case, they must be valid prior to calling
* decoding functions.
+ *
+ * Deprecated: use AVCodecContext.hw_frames_ctx instead.
*/
+attribute_deprecated
struct vaapi_context {
/**
* Window system dependent data
@@ -186,4 +191,6 @@ struct vaapi_context {
/* @} */
+#endif /* FF_API_STRUCT_VAAPI_CONTEXT */
+
#endif /* AVCODEC_VAAPI_H */