From: Shi Yan Date: Thu, 4 Apr 2019 20:19:42 +0000 (+0000) Subject: Increase nvenc's encoding height to 4096 X-Git-Tag: 1.19.3~507^2~3448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f769758e9ae076902edfe00fbead2c7ba7fe15fd;p=platform%2Fupstream%2Fgstreamer.git Increase nvenc's encoding height to 4096 According to https://developer.nvidia.com/nvidia-video-codec-sdk the minimum resolution nvenc supports should be 4096x4096 --- diff --git a/sys/nvenc/gstnvh264enc.c b/sys/nvenc/gstnvh264enc.c index 84641c9..5bae280 100644 --- a/sys/nvenc/gstnvh264enc.c +++ b/sys/nvenc/gstnvh264enc.c @@ -45,7 +45,7 @@ G_DEFINE_TYPE (GstNvH264Enc, gst_nv_h264_enc, GST_TYPE_NV_BASE_ENC); ";" \ "video/x-raw(memory:GLMemory), " \ "format = (string) { NV12, Y444 }, " \ - "width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " \ + "width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " \ "framerate = (fraction) [0, MAX]," \ "interlace-mode = { progressive, mixed, interleaved } " #else @@ -57,7 +57,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw, " "format = (string) { NV12, I420 }, " // TODO: YV12, Y444 support - "width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " + "width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " "framerate = (fraction) [0, MAX]," "interlace-mode = { progressive, mixed, interleaved } " GL_CAPS_STR @@ -67,7 +67,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h264, " - "width = (int) [ 1, 4096 ], height = (int) [ 1, 2160 ], " + "width = (int) [ 1, 4096 ], height = (int) [ 1, 4096 ], " "framerate = (fraction) [0/1, MAX], " "stream-format = (string) byte-stream, " // TODO: avc support "alignment = (string) au, " diff --git a/sys/nvenc/gstnvh265enc.c b/sys/nvenc/gstnvh265enc.c index f05313e..74ec02c 100644 --- a/sys/nvenc/gstnvh265enc.c +++ b/sys/nvenc/gstnvh265enc.c @@ -46,7 +46,7 @@ G_DEFINE_TYPE (GstNvH265Enc, gst_nv_h265_enc, GST_TYPE_NV_BASE_ENC); ";" \ "video/x-raw(memory:GLMemory), " \ "format = (string) { NV12, Y444 }, " \ - "width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " \ + "width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " \ "framerate = (fraction) [0, MAX] " #else #define GL_CAPS_STR "" @@ -57,7 +57,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw, " "format = (string) { NV12, I420 }, " // TODO: YV12, Y444 support - "width = (int) [ 16, 4096 ], height = (int) [ 16, 2160 ], " + "width = (int) [ 16, 4096 ], height = (int) [ 16, 4096 ], " "framerate = (fraction) [0, MAX] " GL_CAPS_STR )); @@ -66,7 +66,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-h265, " - "width = (int) [ 1, 4096 ], height = (int) [ 1, 2160 ], " + "width = (int) [ 1, 4096 ], height = (int) [ 1, 4096 ], " "framerate = (fraction) [0/1, MAX], " "stream-format = (string) byte-stream, " "alignment = (string) au, "