gboolean gst_deinterlace_method_supported (GType type, GstVideoFormat format, gint width, gint height) { GstDeinterlaceMethodClass *klass = GST_DEINTERLACE_METHOD_CLASS (g_type_class_ref (type)); gboolean ret; if (format == GST_VIDEO_FORMAT_UNKNOWN) ret = TRUE; else ret = klass->supported (klass, format, width, height); g_type_class_unref (klass); return ret; }