mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
utils: only enable VP8 profiles for newer VA-API versions.
VP8 decoding API appeared in VA-API >= 0.35.0. So, disable mappings involving VP8 codec on earlier versions of the API.
This commit is contained in:
parent
f0d3d9cd3c
commit
800bfc1add
2 changed files with 5 additions and 0 deletions
|
@ -126,8 +126,10 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = {
|
||||||
"image/jpeg", "baseline"
|
"image/jpeg", "baseline"
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
#if VA_CHECK_VERSION(0,35,0)
|
||||||
{GST_VAAPI_PROFILE_VP8, VAProfileVP8Version0_3,
|
{GST_VAAPI_PROFILE_VP8, VAProfileVP8Version0_3,
|
||||||
"video/x-vp8", "Version0_3"},
|
"video/x-vp8", "Version0_3"},
|
||||||
|
#endif
|
||||||
{ 0, }
|
{ 0, }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -145,6 +145,9 @@ string_of_VAProfile (VAProfile profile)
|
||||||
MAP (VC1Simple);
|
MAP (VC1Simple);
|
||||||
MAP (VC1Main);
|
MAP (VC1Main);
|
||||||
MAP (VC1Advanced);
|
MAP (VC1Advanced);
|
||||||
|
#if VA_CHECK_VERSION(0,35,0)
|
||||||
|
MAP (VP8Version0_3);
|
||||||
|
#endif
|
||||||
#undef MAP
|
#undef MAP
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue