mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
lavc/qsvenc: add VP9 profiles
Signed-off-by: Zhong Li <zhongli_dev@126.com>
This commit is contained in:
parent
50c38e1a44
commit
2544f709ba
@ -76,6 +76,15 @@ static const struct profile_names hevc_profiles[] = {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct profile_names vp9_profiles[] = {
|
||||||
|
#if QSV_VERSION_ATLEAST(1, 19)
|
||||||
|
{ MFX_PROFILE_VP9_0, "0" },
|
||||||
|
{ MFX_PROFILE_VP9_1, "1" },
|
||||||
|
{ MFX_PROFILE_VP9_2, "2" },
|
||||||
|
{ MFX_PROFILE_VP9_3, "3" },
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
static const char *print_profile(enum AVCodecID codec_id, mfxU16 profile)
|
static const char *print_profile(enum AVCodecID codec_id, mfxU16 profile)
|
||||||
{
|
{
|
||||||
const struct profile_names *profiles;
|
const struct profile_names *profiles;
|
||||||
@ -97,6 +106,11 @@ static const char *print_profile(enum AVCodecID codec_id, mfxU16 profile)
|
|||||||
num_profiles = FF_ARRAY_ELEMS(hevc_profiles);
|
num_profiles = FF_ARRAY_ELEMS(hevc_profiles);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case AV_CODEC_ID_VP9:
|
||||||
|
profiles = vp9_profiles;
|
||||||
|
num_profiles = FF_ARRAY_ELEMS(vp9_profiles);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user