From a3d63724dd4634c537e075475ff089457bc5669d Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 6 Nov 2015 14:57:00 +0200 Subject: [PATCH] VP9: gstvaapiprofile: Add profile definitions --- gst-libs/gst/vaapi/gstvaapiprofile.c | 6 ++++++ gst-libs/gst/vaapi/gstvaapiprofile.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapiprofile.c b/gst-libs/gst/vaapi/gstvaapiprofile.c index 731bee3..650bea5 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofile.c +++ b/gst-libs/gst/vaapi/gstvaapiprofile.c @@ -67,6 +67,7 @@ static const GstVaapiCodecMap gst_vaapi_codecs[] = { { GST_VAAPI_CODEC_JPEG, "jpeg" }, { GST_VAAPI_CODEC_VP8, "vp8" }, { GST_VAAPI_CODEC_H265, "h265" }, + { GST_VAAPI_CODEC_VP9, "vp9" }, { 0, } }; @@ -160,6 +161,11 @@ static const GstVaapiProfileMap gst_vaapi_profiles[] = { "video/x-h265", "main10" }, #endif +#if VA_CHECK_VERSION(0,38,0) + { GST_VAAPI_PROFILE_VP9, VAProfileVP9Profile0, + "video/x-vp9", NULL + }, +#endif { 0, } }; diff --git a/gst-libs/gst/vaapi/gstvaapiprofile.h b/gst-libs/gst/vaapi/gstvaapiprofile.h index 00e0769..8bc340e 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofile.h +++ b/gst-libs/gst/vaapi/gstvaapiprofile.h @@ -40,6 +40,7 @@ G_BEGIN_DECLS * @GST_VAAPI_CODEC_VC1: VC-1 Advanced profile (SMPTE 421M) * @GST_VAAPI_CODEC_JPEG: JPEG (ITU-T 81) * @GST_VAAPI_CODEC_H265: H.265 aka MPEG-H Part 2 (ITU-T H.265) + * @GST_VAAPI_CODEC_VP9: VP9 (libvpx) * * The set of all codecs for #GstVaapiCodec. */ @@ -54,6 +55,7 @@ typedef enum { GST_VAAPI_CODEC_JPEG = GST_MAKE_FOURCC('J','P','G',0), GST_VAAPI_CODEC_VP8 = GST_MAKE_FOURCC('V','P','8',0), GST_VAAPI_CODEC_H265 = GST_MAKE_FOURCC('2','6','5',0), + GST_VAAPI_CODEC_VP9 = GST_MAKE_FOURCC('V','P','9',0), } GstVaapiCodec; /** @@ -129,6 +131,8 @@ 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 * * The set of all profiles for #GstVaapiProfile. */ @@ -165,6 +169,7 @@ 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), } GstVaapiProfile; /** -- 2.7.4