X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-bad%2Fsys%2Fd3d11%2Fgstd3d11deinterlace.cpp;h=10abed9691833fec51aa9a664ba8d86a29295036;hb=9d9e59622f0531781a76e1d8ac96471cb14c6677;hp=99de8437b04de7c2d9bb65f7589c0c10532bbf4c;hpb=43c69ab2019b5ceed771649447ac38ca39121796;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp index 99de843..10abed9 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11deinterlace.cpp @@ -80,22 +80,6 @@ using namespace Microsoft::WRL; * 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 = @@ -2004,14 +1988,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 +2377,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); @@ -2445,6 +2429,9 @@ gst_d3d11_deinterlace_register (GstPlugin * plugin, GstD3D11Device * device, 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); @@ -2471,6 +2458,9 @@ gst_d3d11_deinterlace_register (GstPlugin * plugin, GstD3D11Device * device, 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);