From 3e5378163a0423ee6f4f9c8bdd2b904d54445d7e Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 5 May 2018 14:37:06 +0900 Subject: [PATCH] nvdec: Add support VP8/VP9 decoding NVIDIA video decoder supports VP8 and VP9 decoding https://bugzilla.gnome.org/show_bug.cgi?id=795823 --- sys/nvdec/gstnvdec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/nvdec/gstnvdec.c b/sys/nvdec/gstnvdec.c index cfb6f82478..119ed132fe 100644 --- a/sys/nvdec/gstnvdec.c +++ b/sys/nvdec/gstnvdec.c @@ -230,7 +230,7 @@ static GstStaticPadTemplate gst_nvdec_sink_template = GST_STATIC_CAPS ("video/x-h264, stream-format=byte-stream, alignment=au; " "video/x-h265, stream-format=byte-stream, alignment=au; " "video/mpeg, mpegversion={ 1, 2, 4 }, systemstream=false; " - "image/jpeg") + "image/jpeg; video/x-vp8; video/x-vp9") ); static GstStaticPadTemplate gst_nvdec_src_template = @@ -542,6 +542,10 @@ gst_nvdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state) parser_params.CodecType = cudaVideoCodec_JPEG; } else if (!g_strcmp0 (caps_name, "video/x-h265")) { parser_params.CodecType = cudaVideoCodec_HEVC; + } else if (!g_strcmp0 (caps_name, "video/x-vp8")) { + parser_params.CodecType = cudaVideoCodec_VP8; + } else if (!g_strcmp0 (caps_name, "video/x-vp9")) { + parser_params.CodecType = cudaVideoCodec_VP9; } else { GST_ERROR_OBJECT (nvdec, "failed to determine codec type"); return FALSE;