* D3D11_VIDEO_PROCESSOR_STREAM::ppFutureSurfaces
*/
-/* g_queue_clear_full is available since 2.60 */
-#if !GLIB_CHECK_VERSION(2,60,0)
-#define g_queue_clear_full gst_d3d11_deinterlace_g_queue_clear_full
-static void
-gst_d3d11_deinterlace_g_queue_clear_full (GQueue * queue,
- GDestroyNotify free_func)
-{
- g_return_if_fail (queue != NULL);
-
- if (free_func != NULL)
- g_queue_foreach (queue, (GFunc) free_func, NULL);
-
- g_queue_clear (queue);
-}
-#endif
-
typedef enum
{
GST_D3D11_DEINTERLACE_METHOD_BLEND =
#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",
/* 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);
type_name, &type_info, (GTypeFlags) 0);
cdata->deinterlace_type = type;
+ if (index != 0)
+ gst_element_type_set_skip_documentation (type);
+
if (!gst_element_register (plugin, feature_name, GST_RANK_NONE, type))
GST_WARNING ("Failed to register plugin '%s'", type_name);
if (rank > 0 && index != 0)
rank--;
+ if (index != 0)
+ gst_element_type_set_skip_documentation (bin_type);
+
if (!gst_element_register (plugin, feature_name, rank, bin_type))
GST_WARNING ("Failed to register plugin '%s'", type_name);