diff mbox series

[FFmpeg-devel,v3,3/3] lavc/vaapi_vp9: add surface internal re-allocation capability

Message ID 20220823081929.413947-3-fei.w.wang@intel.com
State New
Headers show
Series [FFmpeg-devel,v3,1/3] lavc/decode: Warp get_hw_config function | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Wang, Fei W Aug. 23, 2022, 8:19 a.m. UTC
From: Linjie Fu <linjie.fu@intel.com>

Surfaces need to bound to a vaContext when context is created before
VAAPI 1.0.0, it need to reset context if surface change. So re-allocation
capability only available after VAAPI 1.0.0.

Detail changes in VAAPI:

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
1. add va check version 1.0.0

 libavcodec/vaapi_vp9.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series


diff --git a/libavcodec/vaapi_vp9.c b/libavcodec/vaapi_vp9.c
index 776382f683..7dce0250a0 100644
--- a/libavcodec/vaapi_vp9.c
+++ b/libavcodec/vaapi_vp9.c
@@ -181,5 +181,9 @@  const AVHWAccel ff_vp9_vaapi_hwaccel = {
     .uninit               = ff_vaapi_decode_uninit,
     .frame_params         = ff_vaapi_common_frame_params,
     .priv_data_size       = sizeof(VAAPIDecodeContext),
+#if VA_CHECK_VERSION(1, 0, 0)
     .caps_internal        = HWACCEL_CAP_ASYNC_SAFE,