mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
vaapi: av1dec: Use named profiles to replace the numeric ones.
Use named AV1 profiles (i.e., main, high) to replace the old "0" and "1" profiles. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1491>
This commit is contained in:
parent
d334c08b55
commit
428a9a6c01
1 changed files with 18 additions and 2 deletions
|
@ -156,10 +156,26 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = {
|
||||||
{GST_VAAPI_PROFILE_VP9_3, VAProfileVP9Profile3,
|
{GST_VAAPI_PROFILE_VP9_3, VAProfileVP9Profile3,
|
||||||
"video/x-vp9", "3"},
|
"video/x-vp9", "3"},
|
||||||
#if VA_CHECK_VERSION(1,8,0)
|
#if VA_CHECK_VERSION(1,8,0)
|
||||||
|
/* Spec A.2:
|
||||||
|
"Main" compliant decoders must be able to decode streams with
|
||||||
|
seq_profile equal to 0.
|
||||||
|
"High" compliant decoders must be able to decode streams with
|
||||||
|
seq_profile less than or equal to 1.
|
||||||
|
"Professional" compliant decoders must be able to decode streams
|
||||||
|
with seq_profile less than or equal to 2.
|
||||||
|
|
||||||
|
The correct relationship between profile "main" "high" "professional"
|
||||||
|
and seq_profile "0" "1" "2" should be:
|
||||||
|
main <------> { 0 }
|
||||||
|
high <------> { main, 1 }
|
||||||
|
professional <------> { high, 2 }
|
||||||
|
|
||||||
|
So far, all vaapi decoders can support "0" when they support "1",
|
||||||
|
we just map "0" to "main" and "1" to "high" in caps string. */
|
||||||
{GST_VAAPI_PROFILE_AV1_0, VAProfileAV1Profile0,
|
{GST_VAAPI_PROFILE_AV1_0, VAProfileAV1Profile0,
|
||||||
"video/x-av1", "0"},
|
"video/x-av1", "main"},
|
||||||
{GST_VAAPI_PROFILE_AV1_1, VAProfileAV1Profile1,
|
{GST_VAAPI_PROFILE_AV1_1, VAProfileAV1Profile1,
|
||||||
"video/x-av1", "1"},
|
"video/x-av1", "high"},
|
||||||
#endif
|
#endif
|
||||||
{0,}
|
{0,}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue