From 5790bbba61a296785e92521e8c662bb6881e4f64 Mon Sep 17 00:00:00 2001 From: BtbN Date: Sun, 20 Dec 2015 01:22:35 +0100 Subject: vaapi: add VP9 profile entires --- video/decode/vaapi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video') diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index 3fa0fd4759..edc95f5a29 100644 --- a/video/decode/vaapi.c +++ b/video/decode/vaapi.c @@ -109,6 +109,7 @@ static const struct va_native_display disp_x11 = { #endif #define HAS_HEVC VA_CHECK_VERSION(0, 38, 0) +#define HAS_VP9 VA_CHECK_VERSION(0, 38, 1) #define PE(av_codec_id, ff_profile, vdp_profile) \ {AV_CODEC_ID_ ## av_codec_id, FF_PROFILE_ ## ff_profile, \ @@ -132,6 +133,9 @@ static const struct hwdec_profile_entry profiles[] = { #if HAS_HEVC PE(HEVC, HEVC_MAIN, HEVCMain), PE(HEVC, HEVC_MAIN_10, HEVCMain10), +#endif +#if HAS_VP9 + PE(VP9, VP9_0, VP9Profile0), #endif {0} }; @@ -156,6 +160,9 @@ static const char *str_va_profile(VAProfile profile) PROFILE(HEVCMain); PROFILE(HEVCMain10); #endif +#if HAS_VP9 + PROFILE(VP9Profile0); +#endif #undef PROFILE } return ""; -- cgit v1.2.3