gstvaapiporfile: Add more VP9 profile definitions

https://bugzilla.gnome.org/show_bug.cgi?id=764082
This commit is contained in:
Sreerenj Balachandran 2016-04-01 13:57:45 +03:00
parent 45145d73dd
commit 4e5cf53ee0
2 changed files with 22 additions and 5 deletions

View file

@ -132,8 +132,16 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = {
"video/x-h265", "main-10"},
#endif
#if VA_CHECK_VERSION(0,38,0)
{GST_VAAPI_PROFILE_VP9, VAProfileVP9Profile0,
"video/x-vp9", NULL},
{GST_VAAPI_PROFILE_VP9_0, VAProfileVP9Profile0,
"video/x-vp9", "profile0"},
#endif
#if VA_CHECK_VERSION(0,39,0)
{GST_VAAPI_PROFILE_VP9_1, VAProfileVP9Profile1,
"video/x-vp9", "profile1"},
{GST_VAAPI_PROFILE_VP9_2, VAProfileVP9Profile2,
"video/x-vp9", "profile2"},
{GST_VAAPI_PROFILE_VP9_3, VAProfileVP9Profile3,
"video/x-vp9", "profile3"},
#endif
{0,}
};

View file

@ -131,8 +131,14 @@ typedef enum {
* H.265 main 10 profile [A.3.3]
* @GST_VAAPI_PROFILE_H265_MAIN_STILL_PICTURE:
* H.265 main still picture profile [A.3.4]
* @GST_VAAPI_PROFILE_VP9:
* VP9 prfile 0
* @GST_VAAPI_PROFILE_VP9_0:
* VP9 prfile 0, bitdepth=8, 420
* @GST_VAAPI_PROFILE_VP9_1:
* VP9 prfile 1, bitdepth=8, 422/444/440/RGB
* @GST_VAAPI_PROFILE_VP9_2:
* VP9 prfile 2, bitdepth=10/12, 420
* @GST_VAAPI_PROFILE_VP9_3:
* VP9 prfile 3 bitdepth=10/12, 422/444/440/RGB
*
* The set of all profiles for #GstVaapiProfile.
*/
@ -169,7 +175,10 @@ typedef enum {
GST_VAAPI_PROFILE_H265_MAIN10 = GST_VAAPI_MAKE_PROFILE(H265,2),
GST_VAAPI_PROFILE_H265_MAIN_STILL_PICTURE =
GST_VAAPI_MAKE_PROFILE(H265,3),
GST_VAAPI_PROFILE_VP9 = GST_VAAPI_MAKE_PROFILE(VP9,1),
GST_VAAPI_PROFILE_VP9_0 = GST_VAAPI_MAKE_PROFILE(VP9,1),
GST_VAAPI_PROFILE_VP9_1 = GST_VAAPI_MAKE_PROFILE(VP9,2),
GST_VAAPI_PROFILE_VP9_2 = GST_VAAPI_MAKE_PROFILE(VP9,3),
GST_VAAPI_PROFILE_VP9_3 = GST_VAAPI_MAKE_PROFILE(VP9,4),
} GstVaapiProfile;
/**