summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-11-06 14:57:00 +0200
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-11-06 14:57:00 +0200
commita3d63724dd4634c537e075475ff089457bc5669d (patch)
treef318f4a652ddfd983c5cac385d655d3cae6896e2
parent608a045ba1fb46930e62b90063d7a4a57cc4c6c6 (diff)
downloadgst-vaapi-a3d63724dd4634c537e075475ff089457bc5669d.tar.gz
VP9: gstvaapiprofile: Add profile definitions
-rw-r--r--gst-libs/gst/vaapi/gstvaapiprofile.c6
-rw-r--r--gst-libs/gst/vaapi/gstvaapiprofile.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiprofile.c b/gst-libs/gst/vaapi/gstvaapiprofile.c
index 731bee36..650bea5a 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 00e07691..8bc340e2 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;
/**