]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vaapi.h
lavc: Remove old vaapi decode infrastructure
[ffmpeg] / libavcodec / vaapi.h
index 39e88259d641a7d17c99e8f2d6966013d7ec6234..ceb7904bea886f7054a1f13917e66f0dfe18a172 100644 (file)
 
 #include <stdint.h>
 
+#include "libavutil/attributes.h"
+
+#include "version.h"
+
+#if FF_API_VAAPI_CONTEXT
+
 /**
  * @defgroup lavc_codec_hwaccel_vaapi VA API Decoding
  * @ingroup lavc_codec_hwaccel
  * 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
@@ -170,4 +179,6 @@ struct vaapi_context {
 
 /* @} */
 
+#endif /* FF_API_VAAPI_CONTEXT */
+
 #endif /* AVCODEC_VAAPI_H */