d3d11deinterlace: Do not restrict minimum resolution to 64x64
authorSeungha Yang <seungha@centricular.com>
Sat, 15 Jan 2022 17:21:43 +0000 (02:21 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 15 Jan 2022 17:23:55 +0000 (02:23 +0900)
The value 64 was completely arbitrary one, and this element
will be able to support smaller resolutions

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1528>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp

index 1dd3a3b..4add8be 100644 (file)
@@ -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);