From: Seungha Yang Date: Sat, 15 Jan 2022 17:21:43 +0000 (+0900) Subject: d3d11deinterlace: Do not restrict minimum resolution to 64x64 X-Git-Tag: 1.20.0~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f97ab9edf779989158f6bab43293ace881558839;p=platform%2Fupstream%2Fgstreamer.git d3d11deinterlace: Do not restrict minimum resolution to 64x64 The value 64 was completely arbitrary one, and this element will be able to support smaller resolutions Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp index 1dd3a3b..4add8be 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp @@ -2004,14 +2004,14 @@ static GstElementClass *bin_parent_class = NULL; #define GST_D3D11_DEINTERLACE_BIN_CAPS_MAKE(format) \ "video/x-raw, " \ "format = (string) " format ", " \ - "width = (int) [64, 8192], " \ - "height = (int) [64, 8192] " + "width = (int) [1, 8192], " \ + "height = (int) [1, 8192] " #define GST_D3D11_DEINTERLACE_BIN_CAPS_MAKE_WITH_FEATURES(features,format) \ "video/x-raw(" features "), " \ "format = (string) " format ", " \ - "width = (int) [64, 8192], " \ - "height = (int) [64, 8192] " + "width = (int) [1, 8192], " \ + "height = (int) [1, 8192] " static GstStaticPadTemplate bin_sink_template_caps = GST_STATIC_PAD_TEMPLATE ("sink", @@ -2393,8 +2393,8 @@ gst_d3d11_deinterlace_register (GstPlugin * plugin, GstD3D11Device * device, /* FIXME: Check supported resolution, it would be different from * supported max texture dimension */ gst_caps_set_simple (caps, - "width", GST_TYPE_INT_RANGE, 64, 8192, - "height", GST_TYPE_INT_RANGE, 64, 8192, NULL); + "width", GST_TYPE_INT_RANGE, 1, 8192, + "height", GST_TYPE_INT_RANGE, 1, 8192, NULL); gst_caps_set_value (caps, "format", supported_formats); g_value_unset (supported_formats); g_free (supported_formats);