/* 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);
/* 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);
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);
/* 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);
/* 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);