VP9: plugins: Add VP9 decoder
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 6 Nov 2015 13:19:38 +0000 (15:19 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 6 Nov 2015 13:19:38 +0000 (15:19 +0200)
gst/vaapi/gstvaapidecode.c

index 3c944de..6be9eb1 100644 (file)
@@ -49,6 +49,7 @@
 #include <gst/vaapi/gstvaapidecoder_vc1.h>
 #include <gst/vaapi/gstvaapidecoder_vp8.h>
 #include <gst/vaapi/gstvaapidecoder_h265.h>
+#include <gst/vaapi/gstvaapidecoder_vp9.h>
 
 #define GST_PLUGIN_NAME "vaapidecode"
 #define GST_PLUGIN_DESC "A VA-API based video decoder"
@@ -79,6 +80,9 @@ static const char gst_vaapidecode_sink_caps_str[] =
 #if USE_JPEG_DECODER
     GST_CAPS_CODEC("image/jpeg")
 #endif
+#if USE_VP9_DECODER
+    GST_CAPS_CODEC("video/x-vp9")
+#endif
     ;
 
 static const char gst_vaapidecode_src_caps_str[] =
@@ -677,6 +681,11 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps)
       decode->decoder = gst_vaapi_decoder_vp8_new (dpy, caps);
       break;
 #endif
+#if USE_VP9_DECODER
+    case GST_VAAPI_CODEC_VP9:
+      decode->decoder = gst_vaapi_decoder_vp9_new (dpy, caps);
+      break;
+#endif
     default:
       decode->decoder = NULL;
       break;