mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
parent
d422cacb53
commit
50b3d1770f
2 changed files with 66 additions and 13 deletions
|
@ -110,15 +110,15 @@ gst_autoplug_signal_new_object (GstAutoplug *autoplug, GstObject *object)
|
|||
|
||||
/**
|
||||
* gst_autoplug_to_caps:
|
||||
* @autoplug: The autoplugger perform the autoplugging
|
||||
* @srccaps: The source cpabilities
|
||||
* @sinkcaps: The target capabilities
|
||||
* @...: more target capabilities
|
||||
* @autoplug: The autoplugger performing the autoplugging.
|
||||
* @srccaps: The source capabilities.
|
||||
* @sinkcaps: The target capabilities.
|
||||
* @...: more target capabilities.
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the sink caps.
|
||||
*
|
||||
* Returns: A new Element that connects the src caps to the sink caps.
|
||||
* Returns: A new #GstElement that connects the src caps to the sink caps.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, ...)
|
||||
|
@ -138,17 +138,42 @@ gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps
|
|||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_caps_valist:
|
||||
* @autoplug: The autoplugger performing the autoplugging.
|
||||
* @srccaps: The source capabilities.
|
||||
* @sinkcaps: The target capabilities.
|
||||
* @va_list: more target capabilities.
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the sink caps.
|
||||
*
|
||||
* Returns: A new #GstElement that connects the src caps to the sink caps.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_caps_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args)
|
||||
{
|
||||
GstAutoplugClass *oclass;
|
||||
GstElement *element = NULL;
|
||||
|
||||
oclass = GST_AUTOPLUG_CLASS (G_OBJECT_GET_CLASS(autoplug));
|
||||
if (oclass->autoplug_to_caps)
|
||||
element = (oclass->autoplug_to_caps) (autoplug, srccaps, sinkcaps, args);
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_renderers:
|
||||
* @autoplug: The autoplugger perform the autoplugging
|
||||
* @srccaps: The source cpabilities
|
||||
* @target: The target element
|
||||
* @...: more target elements
|
||||
* @autoplug: The autoplugger performing the autoplugging.
|
||||
* @srccaps: The source capabilities.
|
||||
* @target: The target element.
|
||||
* @...: more target elements.
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the target elements.
|
||||
*
|
||||
* Returns: A new Element that connects the src caps to the target elements.
|
||||
* Returns: A new #GstElement that connects the src caps to the target elements.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *target, ...)
|
||||
|
@ -168,6 +193,31 @@ gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *
|
|||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_autoplug_to_renderers_valist:
|
||||
* @autoplug: The autoplugger performing the autoplugging.
|
||||
* @srccaps: The source capabilities.
|
||||
* @target: The target element .
|
||||
* @va_list: more target elements.
|
||||
*
|
||||
* Perform the autoplugging procedure on the given autoplugger.
|
||||
* The src caps will be connected to the target elements.
|
||||
*
|
||||
* Returns: A new #GstElement that connects the src caps to the target elements.
|
||||
*/
|
||||
GstElement*
|
||||
gst_autoplug_to_renderers_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *target, va_list args)
|
||||
{
|
||||
GstAutoplugClass *oclass;
|
||||
GstElement *element = NULL;
|
||||
|
||||
oclass = GST_AUTOPLUG_CLASS (G_OBJECT_GET_CLASS(autoplug));
|
||||
if (oclass->autoplug_to_renderers)
|
||||
element = (oclass->autoplug_to_renderers) (autoplug, srccaps, target, args);
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
static void gst_autoplug_factory_class_init (GstAutoplugFactoryClass *klass);
|
||||
static void gst_autoplug_factory_init (GstAutoplugFactory *factory);
|
||||
|
||||
|
|
|
@ -72,9 +72,12 @@ GType gst_autoplug_get_type (void);
|
|||
|
||||
void gst_autoplug_signal_new_object (GstAutoplug *autoplug, GstObject *object);
|
||||
|
||||
GstElement* gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, ...);
|
||||
GstElement* gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, ...);
|
||||
GstElement* gst_autoplug_to_caps (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, ...);
|
||||
GstElement* gst_autoplug_to_caps_valist (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args);
|
||||
GstElement* gst_autoplug_to_renderers (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, ...);
|
||||
GstElement* gst_autoplug_to_renderers_valist (GstAutoplug *autoplug, GstCaps *srccaps,
|
||||
GstElement *target, va_list args);
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue