diff options
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vaapi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index 33dfb365b8..f88e44661e 100644 --- a/video/decode/vaapi.c +++ b/video/decode/vaapi.c @@ -65,6 +65,8 @@ struct priv { struct mp_image_pool *sw_pool; }; +#define HAS_HEVC VA_CHECK_VERSION(0, 38, 0) + #define PE(av_codec_id, ff_profile, vdp_profile) \ {AV_CODEC_ID_ ## av_codec_id, FF_PROFILE_ ## ff_profile, \ VAProfile ## vdp_profile} @@ -84,6 +86,10 @@ static const struct hwdec_profile_entry profiles[] = { PE(WMV3, VC1_ADVANCED, VC1Advanced), PE(WMV3, VC1_MAIN, VC1Main), PE(WMV3, VC1_SIMPLE, VC1Simple), +#if HAS_HEVC + PE(HEVC, HEVC_MAIN, HEVCMain), + PE(HEVC, HEVC_MAIN_10, HEVCMain10), +#endif {0} }; @@ -103,6 +109,10 @@ static const char *str_va_profile(VAProfile profile) PROFILE(VC1Simple); PROFILE(VC1Main); PROFILE(VC1Advanced); +#if HAS_HEVC + PROFILE(HEVCMain); + PROFILE(HEVCMain10); +#endif #undef PROFILE } return "<unknown>"; |