mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
VP9: plugins: Add VP9 decoder
This commit is contained in:
parent
db877e015d
commit
6722c541a1
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
@ -78,6 +79,9 @@ static const char gst_vaapidecode_sink_caps_str[] =
|
|||
#endif
|
||||
#if USE_JPEG_DECODER
|
||||
GST_CAPS_CODEC("image/jpeg")
|
||||
#endif
|
||||
#if USE_VP9_DECODER
|
||||
GST_CAPS_CODEC("video/x-vp9")
|
||||
#endif
|
||||
;
|
||||
|
||||
|
@ -676,6 +680,11 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps)
|
|||
case GST_VAAPI_CODEC_VP8:
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue