0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vaapi: add VP9 profile entires

This commit is contained in:
BtbN 2015-12-20 01:22:35 +01:00 committed by wm4
parent f1a2610c4f
commit 5790bbba61

View File

@ -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 "<unknown>";