mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
nvdec: Add support VP8/VP9 decoding
NVIDIA video decoder supports VP8 and VP9 decoding https://bugzilla.gnome.org/show_bug.cgi?id=795823
This commit is contained in:
parent
3740837c18
commit
3e5378163a
1 changed files with 5 additions and 1 deletions
|
@ -230,7 +230,7 @@ static GstStaticPadTemplate gst_nvdec_sink_template =
|
||||||
GST_STATIC_CAPS ("video/x-h264, stream-format=byte-stream, alignment=au; "
|
GST_STATIC_CAPS ("video/x-h264, stream-format=byte-stream, alignment=au; "
|
||||||
"video/x-h265, stream-format=byte-stream, alignment=au; "
|
"video/x-h265, stream-format=byte-stream, alignment=au; "
|
||||||
"video/mpeg, mpegversion={ 1, 2, 4 }, systemstream=false; "
|
"video/mpeg, mpegversion={ 1, 2, 4 }, systemstream=false; "
|
||||||
"image/jpeg")
|
"image/jpeg; video/x-vp8; video/x-vp9")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_nvdec_src_template =
|
static GstStaticPadTemplate gst_nvdec_src_template =
|
||||||
|
@ -542,6 +542,10 @@ gst_nvdec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state)
|
||||||
parser_params.CodecType = cudaVideoCodec_JPEG;
|
parser_params.CodecType = cudaVideoCodec_JPEG;
|
||||||
} else if (!g_strcmp0 (caps_name, "video/x-h265")) {
|
} else if (!g_strcmp0 (caps_name, "video/x-h265")) {
|
||||||
parser_params.CodecType = cudaVideoCodec_HEVC;
|
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 {
|
} else {
|
||||||
GST_ERROR_OBJECT (nvdec, "failed to determine codec type");
|
GST_ERROR_OBJECT (nvdec, "failed to determine codec type");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue