summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_decode.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-08-24 23:30:29 +0100
committerMark Thompson <sw@jkqxz.net>2016-08-30 22:16:01 +0100
commit851960f6f8cf1f946fe42fa36cf6598fac68072c (patch)
tree2bf1a3b7e140bc1fc1cf4d71e24a5c08423d7fa4 /libavcodec/vaapi_decode.h
parent3e8651a7ccd8e89cc2f162cf614a3c9f7f4d9fcf (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.
Diffstat (limited to 'libavcodec/vaapi_decode.h')
-rw-r--r--libavcodec/vaapi_decode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h
index 7882925a25..08b212d030 100644
--- a/libavcodec/vaapi_decode.h
+++ b/libavcodec/vaapi_decode.h
@@ -26,7 +26,11 @@
#include "libavutil/hwcontext_vaapi.h"
#include "avcodec.h"
+
+#include "version.h"
+#if FF_API_VAAPI_CONTEXT
#include "vaapi.h"
+#endif
static inline VASurfaceID ff_vaapi_get_surface_id(AVFrame *pic)
{
@@ -54,9 +58,11 @@ typedef struct VAAPIDecodeContext {
VAConfigID va_config;
VAContextID va_context;
+#if FF_API_VAAPI_CONTEXT
int have_old_context;
struct vaapi_context *old_context;
AVBufferRef *device_ref;
+#endif
AVHWDeviceContext *device;
AVVAAPIDeviceContext *hwctx;