GstTypeFindFactory

GstTypeFindFactory —

Synopsis


#include <gst/gst.h>


            GstTypeFindFactory;
GList*      gst_type_find_factory_get_list  (void);
gchar**     gst_type_find_factory_get_extensions
                                            (GstTypeFindFactory *factory);
GstCaps*    gst_type_find_factory_get_caps  (GstTypeFindFactory *factory);
void        gst_type_find_factory_call_function
                                            (GstTypeFindFactory *factory,
                                             GstTypeFind *find);


Object Hierarchy


  GObject
   +----GstObject
         +----GstPluginFeature
               +----GstTypeFindFactory

Description

Details

GstTypeFindFactory

typedef struct _GstTypeFindFactory GstTypeFindFactory;

Object that stores information about a typefind function.


gst_type_find_factory_get_list ()

GList*      gst_type_find_factory_get_list  (void);

Gets the list of all registered typefind factories. You must free the list using g_list_free.

Returns : the list of all registered GstTypeFindFactory.

gst_type_find_factory_get_extensions ()

gchar**     gst_type_find_factory_get_extensions
                                            (GstTypeFindFactory *factory);

Gets the extensions associated with a GstTypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using g_stdupv(). This function may return NULL to indicate a 0-length list.

factory : A GstTypeFindFactory
Returns : a NULL-terminated array of extensions associated with this factory

gst_type_find_factory_get_caps ()

GstCaps*    gst_type_find_factory_get_caps  (GstTypeFindFactory *factory);

Gets the GstCaps associated with a typefind factory.

factory : A GstTypeFindFactory
Returns : The GstCaps associated with this factory

gst_type_find_factory_call_function ()

void        gst_type_find_factory_call_function
                                            (GstTypeFindFactory *factory,
                                             GstTypeFind *find);

Calls the GstTypeFindFunction associated with this factory.

factory : A GstTypeFindFactory
find : A properly setup GstTypeFind entry. The get_data and suggest_type members must be set.