X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvaapi.h;h=ceb7904bea886f7054a1f13917e66f0dfe18a172;hb=851960f6f8cf1f946fe42fa36cf6598fac68072c;hp=39e88259d641a7d17c99e8f2d6966013d7ec6234;hpb=3e8651a7ccd8e89cc2f162cf614a3c9f7f4d9fcf;p=ffmpeg diff --git a/libavcodec/vaapi.h b/libavcodec/vaapi.h index 39e88259d64..ceb7904bea8 100644 --- a/libavcodec/vaapi.h +++ b/libavcodec/vaapi.h @@ -32,6 +32,12 @@ #include +#include "libavutil/attributes.h" + +#include "version.h" + +#if FF_API_VAAPI_CONTEXT + /** * @defgroup lavc_codec_hwaccel_vaapi VA API Decoding * @ingroup lavc_codec_hwaccel @@ -46,7 +52,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 @@ -170,4 +179,6 @@ struct vaapi_context { /* @} */ +#endif /* FF_API_VAAPI_CONTEXT */ + #endif /* AVCODEC_VAAPI_H */