2005-05-30 15:51:40 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000,2004 Wim Taymans <wim@fluendo.com>
|
|
|
|
*
|
|
|
|
* gstelement.h: Header for GstElement
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_ELEMENT_FACTORY_H__
|
|
|
|
#define __GST_ELEMENT_FACTORY_H__
|
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
typedef struct _GstElementFactory GstElementFactory;
|
|
|
|
typedef struct _GstElementFactoryClass GstElementFactoryClass;
|
|
|
|
|
2005-05-30 15:51:40 +00:00
|
|
|
#include <gst/gstconfig.h>
|
|
|
|
#include <gst/gstelement.h>
|
|
|
|
#include <gst/gstobject.h>
|
|
|
|
#include <gst/gstplugin.h>
|
|
|
|
#include <gst/gstpluginfeature.h>
|
|
|
|
#include <gst/gstiterator.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2010-03-25 17:57:40 +00:00
|
|
|
/* FIXME 0.11: Move GstElementDetails into a private header and use it internally
|
|
|
|
* in GstElementFactory, GstElementClass and the registry
|
|
|
|
*/
|
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
typedef struct _GstElementDetails GstElementDetails;
|
|
|
|
|
2005-09-02 17:23:06 +00:00
|
|
|
/**
|
|
|
|
* GstElementDetails:
|
|
|
|
* @longname: long, english name
|
2007-02-04 16:14:19 +00:00
|
|
|
* @klass: string describing the type of element, as an unordered list
|
|
|
|
* separated with slashes ('/'). See draft-klass.txt of the design docs
|
|
|
|
* for more details and common types
|
2005-09-02 17:23:06 +00:00
|
|
|
* @description: what the element is about
|
|
|
|
* @author: who wrote this thing?
|
|
|
|
*
|
|
|
|
* This struct defines the public information about a #GstElement. It contains
|
|
|
|
* meta-data about the element that is mostly for the benefit of editors.
|
2006-05-05 14:27:31 +00:00
|
|
|
*
|
2009-09-10 09:53:09 +00:00
|
|
|
* The @klass member can be used by applications to filter elements based
|
2006-05-05 14:27:31 +00:00
|
|
|
* on functionality.
|
2005-09-02 17:23:06 +00:00
|
|
|
*/
|
configure.ac: comment about refining the xml deps
Original commit message from CVS:
* configure.ac:
comment about refining the xml deps
* docs/manuals.mak:
comments about moving away from jade for docs
* gst/gst.c:
recommit the ifdefs to use the binary registry
* gst/gstbin.c: (gst_bin_change_state_func):
this break is obsolete
* gst/gstelementfactory.h:
better GST_ELEMENT_DETAILS docs, add comment about translation
* gst/gstinfo.h:
remove eol slash
* gst/gstobject.c: (gst_signal_object_get_type):
add G_UNLIKELY as usual
* gst/gstpad.c: (gst_pad_event_default):
add fall trhu comment
* gst/gstregistrybinary.c: (gst_registry_binary_write),
(gst_registry_binary_initialize_magic),
(gst_registry_binary_save_string),
(gst_registry_binary_save_pad_template),
(gst_registry_binary_save_feature),
(gst_registry_binary_save_plugin),
(gst_registry_binary_write_cache),
(gst_registry_binary_check_magic),
(gst_registry_binary_load_pad_template),
(gst_registry_binary_load_feature),
(gst_registry_binary_load_plugin),
(gst_registry_binary_read_cache):
comment typo and formatting
* gst/gstutils.c: (gst_element_state_get_name),
(gst_element_state_change_return_get_name):
remove obsolete breaks
* gst/gstvalue.c: (gst_date_get_type), (_gst_value_initialize):
add FIXME 0.11 and remove cpp comment
2007-01-29 15:54:09 +00:00
|
|
|
/* FIXME: need translatable stuff in here (how handle in registry)?
|
|
|
|
* can't we use _N("long name") in element implementations and use _(longname)
|
|
|
|
* in gst_element_factory_get_longname()
|
|
|
|
*/
|
2005-05-30 15:51:40 +00:00
|
|
|
struct _GstElementDetails
|
|
|
|
{
|
|
|
|
/*< public > */
|
2005-09-02 17:23:06 +00:00
|
|
|
gchar *longname;
|
|
|
|
gchar *klass;
|
|
|
|
gchar *description;
|
|
|
|
gchar *author;
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-06-09 13:54:27 +00:00
|
|
|
/*< private >*/
|
2005-05-30 15:51:40 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
|
|
|
};
|
|
|
|
|
2005-09-02 17:23:06 +00:00
|
|
|
/**
|
|
|
|
* GST_ELEMENT_DETAILS:
|
|
|
|
* @longname: long, english name
|
2007-02-04 16:14:19 +00:00
|
|
|
* @klass: string describing the type of element, as an unordered list
|
|
|
|
* separated with slashes ('/'). See draft-klass.txt of the design docs
|
|
|
|
* for more details and common types
|
2005-09-02 17:23:06 +00:00
|
|
|
* @description: what the element is about
|
configure.ac: comment about refining the xml deps
Original commit message from CVS:
* configure.ac:
comment about refining the xml deps
* docs/manuals.mak:
comments about moving away from jade for docs
* gst/gst.c:
recommit the ifdefs to use the binary registry
* gst/gstbin.c: (gst_bin_change_state_func):
this break is obsolete
* gst/gstelementfactory.h:
better GST_ELEMENT_DETAILS docs, add comment about translation
* gst/gstinfo.h:
remove eol slash
* gst/gstobject.c: (gst_signal_object_get_type):
add G_UNLIKELY as usual
* gst/gstpad.c: (gst_pad_event_default):
add fall trhu comment
* gst/gstregistrybinary.c: (gst_registry_binary_write),
(gst_registry_binary_initialize_magic),
(gst_registry_binary_save_string),
(gst_registry_binary_save_pad_template),
(gst_registry_binary_save_feature),
(gst_registry_binary_save_plugin),
(gst_registry_binary_write_cache),
(gst_registry_binary_check_magic),
(gst_registry_binary_load_pad_template),
(gst_registry_binary_load_feature),
(gst_registry_binary_load_plugin),
(gst_registry_binary_read_cache):
comment typo and formatting
* gst/gstutils.c: (gst_element_state_get_name),
(gst_element_state_change_return_get_name):
remove obsolete breaks
* gst/gstvalue.c: (gst_date_get_type), (_gst_value_initialize):
add FIXME 0.11 and remove cpp comment
2007-01-29 15:54:09 +00:00
|
|
|
* @author: who wrote this element
|
2005-09-02 17:23:06 +00:00
|
|
|
*
|
|
|
|
* Macro to initialize #GstElementDetails.
|
|
|
|
*/
|
2009-09-10 09:53:09 +00:00
|
|
|
#define GST_ELEMENT_DETAILS(longname,klass,description,author) \
|
2008-02-29 13:59:24 +00:00
|
|
|
{ longname, klass, description, author, {NULL} }
|
2005-09-02 17:23:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_IS_ELEMENT_DETAILS:
|
|
|
|
* @details: the #GstElementDetails to check
|
|
|
|
*
|
|
|
|
* Tests if element details are initialized.
|
|
|
|
*/
|
|
|
|
/* FIXME: what about adding '&& (*__gst_reserved==NULL)' */
|
2009-09-10 09:53:09 +00:00
|
|
|
#define GST_IS_ELEMENT_DETAILS(details) ( \
|
|
|
|
(details) && ((details)->longname != NULL) && ((details)->klass != NULL) \
|
2005-05-30 15:51:40 +00:00
|
|
|
&& ((details)->description != NULL) && ((details)->author != NULL))
|
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
#define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type())
|
|
|
|
#define GST_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ELEMENT_FACTORY,\
|
|
|
|
GstElementFactory))
|
|
|
|
#define GST_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ELEMENT_FACTORY,\
|
|
|
|
GstElementFactoryClass))
|
|
|
|
#define GST_IS_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ELEMENT_FACTORY))
|
|
|
|
#define GST_IS_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ELEMENT_FACTORY))
|
2006-06-12 09:11:44 +00:00
|
|
|
#define GST_ELEMENT_FACTORY_CAST(obj) ((GstElementFactory *)(obj))
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2005-11-24 09:44:07 +00:00
|
|
|
/**
|
|
|
|
* GstElementFactory:
|
|
|
|
*
|
|
|
|
* The opaque #GstElementFactory data structure.
|
|
|
|
*/
|
2005-05-30 15:51:40 +00:00
|
|
|
struct _GstElementFactory {
|
2009-09-10 09:53:09 +00:00
|
|
|
GstPluginFeature parent;
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GType type; /* unique GType of element or 0 if not loaded */
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2010-08-10 11:05:22 +00:00
|
|
|
/* FIXME-0.11: deprecate this in favour of meta_data */
|
2009-09-10 09:53:09 +00:00
|
|
|
GstElementDetails details;
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GList * staticpadtemplates;
|
|
|
|
guint numpadtemplates;
|
2005-05-30 15:51:40 +00:00
|
|
|
|
|
|
|
/* URI interface stuff */
|
2009-09-10 09:53:09 +00:00
|
|
|
guint uri_type;
|
|
|
|
gchar ** uri_protocols;
|
2005-10-15 15:30:24 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GList * interfaces; /* interfaces this element implements */
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2010-08-10 11:05:22 +00:00
|
|
|
/*< private >*/
|
|
|
|
/* FIXME-0.11: move up and replace details */
|
|
|
|
gpointer meta_data;
|
|
|
|
gpointer _gst_reserved[GST_PADDING - 1];
|
2005-05-30 15:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstElementFactoryClass {
|
|
|
|
GstPluginFeatureClass parent_class;
|
|
|
|
|
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
|
|
|
};
|
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GType gst_element_factory_get_type (void);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GstElementFactory * gst_element_factory_find (const gchar *name);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GType gst_element_factory_get_element_type (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_longname (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_klass (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_description (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_author (GstElementFactory *factory);
|
2010-08-10 11:05:22 +00:00
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_documentation_uri (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN gchar * gst_element_factory_get_icon_name (GstElementFactory *factory);
|
2009-09-10 09:53:09 +00:00
|
|
|
guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
|
|
|
|
G_CONST_RETURN GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
|
|
|
|
gint gst_element_factory_get_uri_type (GstElementFactory *factory);
|
|
|
|
gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory);
|
|
|
|
gboolean gst_element_factory_has_interface (GstElementFactory *factory,
|
2007-07-25 18:37:12 +00:00
|
|
|
const gchar *interfacename);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2009-09-10 09:53:09 +00:00
|
|
|
GstElement* gst_element_factory_create (GstElementFactory *factory,
|
|
|
|
const gchar *name);
|
|
|
|
GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
Makefile.am: Add check-exports target and run it as part of 'make check' (see #499140 and #493983).
Original commit message from CVS:
* Makefile.am:
Add check-exports target and run it as part of 'make check'
(see #499140 and #493983).
* gst/gst_private.h:
* gst/gstelementfactory.h:
* gst/gstghostpad.c: (gst_proxy_pad_class_init):
* gst/gstinfo.c: (_priv_gst_in_valgrind), (_gst_debug_init),
(_priv_gst_in_valgrind):
* gst/gstinfo.h: (GstLogFunction):
* gst/gsttypefind.c: (type_find_debug), (GST_CAT_DEFAULT),
(gst_type_find_register):
* gst/gsttypefindfactory.c: (type_find_debug), (GST_CAT_DEFAULT),
(gst_type_find_factory_get_type):
* libs/gst/controller/gstcontroller.c: (GST_CAT_DEFAULT),
(GST_CAT_DEFAULT), (parent_class), (priv_gst_controller_key),
(gst_controller_new_valist), (gst_controller_new_list),
(_gst_controller_dispose), (_gst_controller_class_init):
* libs/gst/controller/gstcontrolsource.c: (GST_CAT_DEFAULT):
* libs/gst/controller/gsthelper.c: (GST_CAT_DEFAULT),
(GST_CAT_DEFAULT), (gst_object_uncontrol_properties),
(gst_object_get_controller), (gst_object_set_controller),
(gst_object_suggest_next_sync), (gst_object_sync_values),
(gst_object_set_control_source), (gst_object_get_control_source),
(gst_object_get_value_arrays), (gst_object_get_value_array),
(gst_object_get_control_rate), (gst_object_set_control_rate):
* libs/gst/controller/gstinterpolation.c: (GST_CAT_DEFAULT):
* libs/gst/controller/lib.c: (GST_CAT_DEFAULT):
Make some functions that should be static static; rename some
private symbols so that they don't get exported; add some FIXME
comments so we can move accidentally exported functions into
our private section in 0.11.
* win32/common/libgstreamer.def:
Add gst_utils_get_timestamp().
2007-12-12 23:20:00 +00:00
|
|
|
/* FIXME 0.11: move these two into our private headers */
|
2005-05-30 15:51:40 +00:00
|
|
|
void __gst_element_factory_add_static_pad_template (GstElementFactory *elementfactory,
|
|
|
|
GstStaticPadTemplate *templ);
|
|
|
|
void __gst_element_factory_add_interface (GstElementFactory *elementfactory,
|
|
|
|
const gchar *interfacename);
|
2009-09-10 09:53:09 +00:00
|
|
|
gboolean gst_element_register (GstPlugin *plugin, const gchar *name,
|
|
|
|
guint rank, GType type);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
2010-08-16 17:01:15 +00:00
|
|
|
/* Factory list functions */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstFactoryListType:
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_DECODER: Decoder elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_ENCODER: Encoder elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_SINK: Sink elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_SRC: Source elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MUXER: Muxer elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_DEMUXER: Demuxer elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_PARSER: Parser elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_PAYLOADER: Payloader elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: Depayloader elements
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: Private, do not use
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: Elements handling video media types
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: Elements handling audio media types
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE: Elements handling image media types
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE: Elements handling subtitle media types
|
|
|
|
* @GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA: Elements handling metadata media types
|
|
|
|
*
|
|
|
|
* The type of #GstElementFactory to filter.
|
|
|
|
*
|
|
|
|
* All @GstFactoryListType up to @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS are exclusive.
|
|
|
|
*
|
|
|
|
* If one or more of the MEDIA types are specified, then only elements
|
|
|
|
* matching the specified media types will be selected.
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef guint64 GstElementFactoryListType;
|
|
|
|
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_DECODER (G_GUINT64_CONSTANT (1) << 0)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_ENCODER (G_GUINT64_CONSTANT (1) << 1)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_SINK (G_GUINT64_CONSTANT (1) << 2)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_SRC (G_GUINT64_CONSTANT (1) << 3)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MUXER (G_GUINT64_CONSTANT (1) << 4)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_DEMUXER (G_GUINT64_CONSTANT (1) << 5)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_PARSER (G_GUINT64_CONSTANT (1) << 6)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_PAYLOADER (G_GUINT64_CONSTANT (1) << 7)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER (G_GUINT64_CONSTANT (1) << 8)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_FORMATTER (G_GUINT64_CONSTANT (1) << 9)
|
|
|
|
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS (G_GUINT64_CONSTANT (1) << 48)
|
|
|
|
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO (G_GUINT64_CONSTANT (1) << 49)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO (G_GUINT64_CONSTANT (1) << 50)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE (G_GUINT64_CONSTANT (1) << 51)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE (G_GUINT64_CONSTANT (1) << 52)
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA (G_GUINT64_CONSTANT (1) << 53)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_ANY:
|
2010-09-13 08:17:34 +00:00
|
|
|
*
|
2010-08-16 17:01:15 +00:00
|
|
|
* Elements of any of the defined GST_ELEMENT_FACTORY_LIST types
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_ANY G_GUINT64_CONSTANT ((1 << 49) - 1)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY:
|
2010-09-13 08:17:34 +00:00
|
|
|
*
|
2010-08-16 17:01:15 +00:00
|
|
|
* Elements matching any of the defined GST_ELEMENT_FACTORY_TYPE_MEDIA types
|
|
|
|
*
|
|
|
|
* Note: Do not use this if you wish to not filter against any of the defined
|
|
|
|
* media types. If you wish to do this, simply don't specify any
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_MEDIA flag.
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY (~G_GUINT64_CONSTANT (0) << 48)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER:
|
2010-09-13 08:17:34 +00:00
|
|
|
*
|
2010-08-16 17:01:15 +00:00
|
|
|
* All encoders handling video or image media types
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER (GST_ELEMENT_FACTORY_TYPE_ENCODER | GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO | GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER:
|
2010-09-13 08:17:34 +00:00
|
|
|
*
|
2010-08-16 17:01:15 +00:00
|
|
|
* All encoders handling audio media types
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER (GST_ELEMENT_FACTORY_TYPE_ENCODER | GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS:
|
|
|
|
*
|
|
|
|
* All sinks handling audio, video or image media types
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS (GST_ELEMENT_FACTORY_TYPE_SINK | GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO | GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO | GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_ELEMENT_FACTORY_TYPE_DECODABLE:
|
|
|
|
*
|
|
|
|
* All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders)
|
|
|
|
*
|
|
|
|
* Since: 0.10.31
|
|
|
|
*/
|
|
|
|
#define GST_ELEMENT_FACTORY_TYPE_DECODABLE \
|
|
|
|
(GST_ELEMENT_FACTORY_TYPE_DECODER | GST_ELEMENT_FACTORY_TYPE_DEMUXER | GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER | GST_ELEMENT_FACTORY_TYPE_PARSER)
|
|
|
|
|
|
|
|
/* Element klass defines */
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_DECODER "Decoder"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_ENCODER "Encoder"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_SINK "Sink"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_SRC "Source"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MUXER "Muxer"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_DEMUXER "Demuxer"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_PARSER "Parser"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_PAYLOADER "Payloader"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER "Depayloader"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_FORMATTER "Formatter"
|
|
|
|
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_VIDEO "Video"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO "Audio"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE "Image"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE "Subtitle"
|
|
|
|
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA "Metadata"
|
|
|
|
|
|
|
|
gboolean gst_element_factory_list_is_type (GstElementFactory *factory,
|
|
|
|
GstElementFactoryListType type);
|
|
|
|
|
|
|
|
GList * gst_element_factory_list_get_elements (GstElementFactoryListType type,
|
|
|
|
GstRank minrank);
|
2005-05-30 15:51:40 +00:00
|
|
|
|
|
|
|
|
2010-08-16 17:01:15 +00:00
|
|
|
GList * gst_element_factory_list_filter (GList *list, const GstCaps *caps,
|
|
|
|
GstPadDirection direction,
|
|
|
|
gboolean subsetonly);
|
2005-05-30 15:51:40 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_ELEMENT_FACTORY_H__ */
|