summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-03-26 21:06:59 +0900
committerSeungha Yang <seungha@centricular.com>2021-03-26 22:04:19 +0900
commitc9518780fd0e5b719eb603d1bb6fd474932ccc7c (patch)
tree09fe50f9df1412cb4d7e40bd9904c993d18f2350
parentf74ed67ba0a9c17a2668a556f7616bd1bffb0f73 (diff)
downloadgstreamer-plugins-bad-c9518780fd0e5b719eb603d1bb6fd474932ccc7c.tar.gz
d3d11decoder: Do not hardcode the limit minimum resolution to 64
Decoder should be able to support lower resolution than 64x64 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2113>
-rw-r--r--sys/d3d11/gstd3d11h264dec.cpp8
-rw-r--r--sys/d3d11/gstd3d11h265dec.cpp8
-rw-r--r--sys/d3d11/gstd3d11mpeg2dec.cpp8
-rw-r--r--sys/d3d11/gstd3d11vp8dec.cpp8
-rw-r--r--sys/d3d11/gstd3d11vp9dec.cpp8
5 files changed, 20 insertions, 20 deletions
diff --git a/sys/d3d11/gstd3d11h264dec.cpp b/sys/d3d11/gstd3d11h264dec.cpp
index ddda33e9a..c08971838 100644
--- a/sys/d3d11/gstd3d11h264dec.cpp
+++ b/sys/d3d11/gstd3d11h264dec.cpp
@@ -1330,11 +1330,11 @@ gst_d3d11_h264_dec_register (GstPlugin * plugin, GstD3D11Device * device,
/* To cover both landscape and portrait, select max value */
resolution = MAX (max_width, max_height);
gst_caps_set_simple (sink_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
gst_caps_set_simple (src_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
type_info.class_data =
gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps);
diff --git a/sys/d3d11/gstd3d11h265dec.cpp b/sys/d3d11/gstd3d11h265dec.cpp
index 0bdc58e6c..bf2d5ec91 100644
--- a/sys/d3d11/gstd3d11h265dec.cpp
+++ b/sys/d3d11/gstd3d11h265dec.cpp
@@ -1527,11 +1527,11 @@ gst_d3d11_h265_dec_register (GstPlugin * plugin, GstD3D11Device * device,
/* To cover both landscape and portrait, select max value */
resolution = MAX (max_width, max_height);
gst_caps_set_simple (sink_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
gst_caps_set_simple (src_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
/* Copy src caps to append other capsfeatures */
src_caps_copy = gst_caps_copy (src_caps);
diff --git a/sys/d3d11/gstd3d11mpeg2dec.cpp b/sys/d3d11/gstd3d11mpeg2dec.cpp
index 7ed4d6b1c..87d9224a8 100644
--- a/sys/d3d11/gstd3d11mpeg2dec.cpp
+++ b/sys/d3d11/gstd3d11mpeg2dec.cpp
@@ -1021,11 +1021,11 @@ gst_d3d11_mpeg2_dec_register (GstPlugin * plugin, GstD3D11Device * device,
gst_caps_set_simple (src_caps, "format", G_TYPE_STRING, "NV12", NULL);
gst_caps_set_simple (sink_caps,
- "width", GST_TYPE_INT_RANGE, 64, 1920,
- "height", GST_TYPE_INT_RANGE, 64, 1920, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, 1920,
+ "height", GST_TYPE_INT_RANGE, 1, 1920, NULL);
gst_caps_set_simple (src_caps,
- "width", GST_TYPE_INT_RANGE, 64, 1920,
- "height", GST_TYPE_INT_RANGE, 64, 1920, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, 1920,
+ "height", GST_TYPE_INT_RANGE, 1, 1920, NULL);
type_info.class_data =
gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps);
diff --git a/sys/d3d11/gstd3d11vp8dec.cpp b/sys/d3d11/gstd3d11vp8dec.cpp
index d70080fb9..126d1eaf8 100644
--- a/sys/d3d11/gstd3d11vp8dec.cpp
+++ b/sys/d3d11/gstd3d11vp8dec.cpp
@@ -917,11 +917,11 @@ gst_d3d11_vp8_dec_register (GstPlugin * plugin, GstD3D11Device * device,
/* To cover both landscape and portrait, select max value */
resolution = MAX (max_width, max_height);
gst_caps_set_simple (sink_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
gst_caps_set_simple (src_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
type_info.class_data =
gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps);
diff --git a/sys/d3d11/gstd3d11vp9dec.cpp b/sys/d3d11/gstd3d11vp9dec.cpp
index 5cce338a9..72c823469 100644
--- a/sys/d3d11/gstd3d11vp9dec.cpp
+++ b/sys/d3d11/gstd3d11vp9dec.cpp
@@ -1220,11 +1220,11 @@ gst_d3d11_vp9_dec_register (GstPlugin * plugin, GstD3D11Device * device,
/* To cover both landscape and portrait, select max value */
resolution = MAX (max_width, max_height);
gst_caps_set_simple (sink_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
gst_caps_set_simple (src_caps,
- "width", GST_TYPE_INT_RANGE, 64, resolution,
- "height", GST_TYPE_INT_RANGE, 64, resolution, NULL);
+ "width", GST_TYPE_INT_RANGE, 1, resolution,
+ "height", GST_TYPE_INT_RANGE, 1, resolution, NULL);
type_info.class_data =
gst_d3d11_decoder_class_data_new (device, sink_caps, src_caps);