GstAutoplug

Name

GstAutoplug -- Provide automatic element selection.

Synopsis


#include <gst/gst.h>


#define     GST_AUTOPLUG_MAX_COST
guint       (*GstAutoplugCostFunction)      (gpointer src,
                                             gpointer dest,
                                             gpointer data);
GList*      (*GstAutoplugListFunction)      (gpointer data);
GList*      gst_autoplug_caps               (GstCaps *srccaps,
                                             GstCaps *sinkcaps);
GList*      gst_autoplug_pads               (GstPad *srcpad,
                                             GstPad *sinkpad);
GList*      gst_autoplug_caps_list          (GList *srccaps,
                                             GList *sinkcaps);

Description

The autoplugger can select a list of elements that are needed to convert a certain GstCaps to another one.

Details

GST_AUTOPLUG_MAX_COST

#define GST_AUTOPLUG_MAX_COST 999999

The maximum cost of a certain connection.


GstAutoplugCostFunction ()

guint       (*GstAutoplugCostFunction)      (gpointer src,
                                             gpointer dest,
                                             gpointer data);

Calculate the cost between two elements.

src :the source element
dest :the destination element
data :optional user data
Returns :the cost for a connection between the two elements


GstAutoplugListFunction ()

GList*      (*GstAutoplugListFunction)      (gpointer data);

Get a list of all elements. These elements will be used in autoplugging.

data :user data
Returns :a GList of elements


gst_autoplug_caps ()

GList*      gst_autoplug_caps               (GstCaps *srccaps,
                                             GstCaps *sinkcaps);

Perform autoplugging between the two given caps.

srccaps : the source caps
sinkcaps : the sink caps
Returns : a list of elementfactories that can connect the two caps


gst_autoplug_pads ()

GList*      gst_autoplug_pads               (GstPad *srcpad,
                                             GstPad *sinkpad);

Perform autoplugging between the two given pads.

srcpad : the source pad
sinkpad : the sink pad
Returns : a list of elementfactories that can connect the two pads


gst_autoplug_caps_list ()

GList*      gst_autoplug_caps_list          (GList *srccaps,
                                             GList *sinkcaps);

Perform autoplugging between the two given caps lists.

srccaps : the source caps list
sinkcaps : the sink caps list
Returns : a list of elementfactories that can connect the two caps lists