summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBtbN <btbn@btbn.de>2015-12-20 01:22:35 +0100
committerwm4 <wm4@nowhere>2015-12-20 10:40:06 +0100
commit5790bbba61a296785e92521e8c662bb6881e4f64 (patch)
tree7cee4469c7efbe4a525fd84401d33d2e96217ea4
parentf1a2610c4fcb1a943bf64f3a737afcf1b9c0bfdb (diff)
downloadmpv-5790bbba61a296785e92521e8c662bb6881e4f64.tar.bz2
mpv-5790bbba61a296785e92521e8c662bb6881e4f64.tar.xz
vaapi: add VP9 profile entires
-rw-r--r--video/decode/vaapi.c7
1 files changed, 7 insertions, 0 deletions
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, \
@@ -133,6 +134,9 @@ static const struct hwdec_profile_entry profiles[] = {
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 "<unknown>";