2000-12-28 22:12:02 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
|
|
|
*
|
|
|
|
* gst.h: Main header for GStreamer, apps should include this
|
2000-01-30 09:03:00 +00:00
|
|
|
*
|
|
|
|
* 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_H__
|
|
|
|
#define __GST_H__
|
|
|
|
|
2001-01-14 21:55:41 +00:00
|
|
|
#include <glib.h>
|
2002-02-15 16:14:21 +00:00
|
|
|
#include <popt.h>
|
2001-01-14 21:55:41 +00:00
|
|
|
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstenumtypes.h>
|
|
|
|
#include <gst/gstversion.h>
|
2001-04-17 02:19:08 +00:00
|
|
|
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstbin.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
#include <gst/gstbuffer.h>
|
2003-12-22 01:58:20 +00:00
|
|
|
#include <gst/gstcaps.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstclock.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
#include <gst/gstelement.h>
|
2004-01-18 21:36:20 +00:00
|
|
|
#include <gst/gsterror.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstevent.h>
|
gst/gstutils.c: RPAD fixes all around.
Original commit message from CVS:
2005-06-08 Andy Wingo <wingo@pobox.com>
* gst/gstutils.c: RPAD fixes all around.
(gst_element_link_pads): Refcounting fixes.
* tools/gst-inspect.c:
* tools/gst-xmlinspect.c:
* parse/grammar.y:
* gst/base/gsttypefindhelper.c:
* gst/base/gstbasesink.c:
* gst/gstqueue.c: RPAD fixes.
* gst/gstghostpad.h:
* gst/gstghostpad.c: New ghost pad implementation as full proxy
pads. The tricky thing is they provide both source and sink
interfaces, since they proxy the internal pad for the external
pad, and vice versa. Implement with lower-level ProxyPad objects,
with the interior proxy pad as a child of the exterior ghost pad.
Should write a doc on this.
* gst/gstpad.h: s/RPAD/PAD/, s/RealPad/Pad/.
(gst_pad_set_name, gst_pad_set_parent): Macros removed, use
gst_object API.
* gst/gstpad.c: Big changes. No more stub base GstPad, now all
pads are real pads. No ghost pads in this file. Not documenting
the myriad s/RPAD/PAD/ and REALIZE fixes.
(gst_pad_class_init): Add properties for "direction" and
"template". Both are construct-only, so they can't change during
the life of the pad. Fixes properly deriving from GstPad.
(gst_pad_custom_new, gst_pad_custom_new_from_template): Gone. For
derived objects, just set properties when creating the objects via
g_object_new.
(gst_pad_get_parent): Implement as a function, return NULL if the
parent is not an element.
(gst_pad_get_real_parent, gst_pad_add_ghost_pad)
(gst_pad_remove_ghost_pad, gst_pad_realize): Removed.
* gst/gstobject.c (gst_object_class_init): Make name a construct
property. Don't set it in the object init.
* gst/gstelement.c (gst_element_add_pad): Don't allow adding pads
with UNKNOWN direction.
(gst_element_add_ghost_pad): Remove non-orthogonal API. Replace
with gst_element_add_pad (e, gst_ghost_pad_new (name, pad)).
(gst_element_remove_pad): Remove ghost-pad special cases.
(gst_element_pads_activate): Remove rpad cruft.
* gst/gstbin.c (gst_bin_change_state): Use gst_pad_get_parent to
catch the pad's-parent-not-an-element case.
* gst/gst.h: Include gstghostpad.h.
* gst/gst.c (init_post): No more real, ghost pads.
* gst/Makefile.am: Add gstghostpad.[ch].
* check/Makefile.am:
* check/gst/gstbin.c:
* check/gst/gstghostpad.c (test_ghost_pads): Check that linking
into a bin creates ghost pads, and that the refcounts are right.
Partly moved from gstbin.c.
2005-06-08 22:16:27 +00:00
|
|
|
#include <gst/gstghostpad.h>
|
2002-12-12 22:14:36 +00:00
|
|
|
#include <gst/gstindex.h>
|
more docs inlined, splitted gstindex.{c,h}
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/.cvsignore:
* gst/Makefile.am:
* gst/gst.h:
* gst/gstbin.c:
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_class_init):
* gst/gstindex.h:
* gst/gstindexfactory.c: (gst_index_factory_get_type),
(gst_index_factory_class_init), (gst_index_factory_init),
(gst_index_factory_finalize), (gst_index_factory_new),
(gst_index_factory_destroy), (gst_index_factory_find),
(gst_index_factory_create), (gst_index_factory_make):
* gst/gstindexfactory.h:
* gst/gstpluginfeature.c:
* gst/gstpluginfeature.h:
* libs/gst/controller/gstcontroller.c: (gst_controller_new_valist):
more docs inlined, splitted gstindex.{c,h}
2005-09-20 20:40:00 +00:00
|
|
|
#include <gst/gstindexfactory.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstinfo.h>
|
|
|
|
#include <gst/gstinterface.h>
|
2005-03-07 18:27:42 +00:00
|
|
|
#include <gst/gstiterator.h>
|
2005-09-20 08:25:32 +00:00
|
|
|
#include <gst/gstmarshal.h>
|
2005-03-21 17:34:02 +00:00
|
|
|
#include <gst/gstmessage.h>
|
check/Makefile.am: remove GstData checks
Original commit message from CVS:
* check/Makefile.am: remove GstData checks
* check/gst-libs/gdp.c: (START_TEST): fix for API changes
* gst/Makefile.am: add miniobject, remove data
* gst/gst.h: add miniobject, remove data
* gst/gstdata.c: remove
* gst/gstdata.h: remove
* gst/gstdata_private.h: remove
* gst/gsttypes.h: remove GstEvent and GstMessage
* gst/gstelement.c: (gst_element_post_message): fix for API changes
* gst/gstmarshal.list: change BOXED -> OBJECT
Implement GstMiniObject.
* gst/gstminiobject.c:
* gst/gstminiobject.h:
Modify to be subclasses of GstMiniObject.
* gst/gstbuffer.c: (_gst_buffer_initialize), (gst_buffer_get_type),
(gst_buffer_class_init), (gst_buffer_finalize), (_gst_buffer_copy),
(gst_buffer_init), (gst_buffer_new), (gst_buffer_new_and_alloc),
(gst_subbuffer_get_type), (gst_subbuffer_init),
(gst_buffer_create_sub), (gst_buffer_is_span_fast),
(gst_buffer_span):
* gst/gstbuffer.h:
* gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type),
(gst_event_class_init), (gst_event_init), (gst_event_finalize),
(_gst_event_copy), (gst_event_new):
* gst/gstevent.h:
* gst/gstmessage.c: (_gst_message_initialize),
(gst_message_get_type), (gst_message_class_init),
(gst_message_init), (gst_message_finalize), (_gst_message_copy),
(gst_message_new), (gst_message_new_error),
(gst_message_new_warning), (gst_message_new_tag),
(gst_message_new_state_changed), (gst_message_new_application):
* gst/gstmessage.h:
* gst/gstprobe.c: (gst_probe_perform),
(gst_probe_dispatcher_dispatch):
* gst/gstprobe.h:
* gst/gstquery.c: (_gst_query_initialize), (gst_query_get_type),
(gst_query_class_init), (gst_query_finalize), (gst_query_init),
(_gst_query_copy), (gst_query_new):
Update elements for GstData -> GstMiniObject changes
* gst/gstquery.h:
* gst/gstqueue.c: (gst_queue_finalize), (gst_queue_locked_flush),
(gst_queue_chain), (gst_queue_loop):
* gst/elements/gstbufferstore.c:
(gst_buffer_store_add_buffer_func),
(gst_buffer_store_cleared_func), (gst_buffer_store_get_buffer):
* gst/elements/gstfakesink.c: (gst_fakesink_class_init),
(gst_fakesink_render):
* gst/elements/gstfakesrc.c: (gst_fakesrc_class_init):
* gst/elements/gstfilesrc.c: (gst_mmap_buffer_get_type),
(gst_mmap_buffer_class_init), (gst_mmap_buffer_init),
(gst_mmap_buffer_finalize), (gst_filesrc_map_region),
(gst_filesrc_create_read):
* gst/elements/gstidentity.c: (gst_identity_class_init):
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_src_event), (free_entry_buffers),
(gst_type_find_element_handle_event):
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer):
* libs/gst/dataprotocol/dataprotocol.h:
* libs/gst/dataprotocol/dp-private.h:
2005-05-16 20:21:55 +00:00
|
|
|
#include <gst/gstminiobject.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstobject.h>
|
|
|
|
#include <gst/gstpad.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
#include <gst/gstpipeline.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstplugin.h>
|
gst/gstquery.h
Original commit message from CVS:
2005-05-06 Andy Wingo <wingo@pobox.com>
* gst/gstquery.h
* gst/gstquery.c (_gst_query_initialize): Extend GstQuery from
GstData, init a memchunk.
(standard_definitions): Add a few query types, deprecate a few.
(gst_query_get_type): New proc.
(_gst_query_copy, _gst_query_free, gst_query_new): GstData
implementation.
(gst_query_new_application, gst_query_get_structure): New public
procs.
* docs/design/draft-query.txt: Removed LINKS from the query types,
because all the rest can be dispatched to other pads -- seemed
ugly to have a query that couldn't be dispatched. internal_links
is fine as a pad method.
* gst/gstpad.h: Add query2 as a pad method, add the new functions
in gstpad.c, but maintain binary compatibility for the moment.
Will fix before 0.9 is out.
* gst/gstqueryutils.c:
* gst/gstqueryutils.h: New files, implement 3 methods for each
query type: parse_query, parse_response, and set. Probably need an
allocator as well.
* gst/gst.h: Add gstquery.h and gstqueryutils.h to the list.
* gst/elements/gstfilesink.c (gst_filesink_query2):
* gst/base/gstbasesrc.c (gst_basesrc_query2): Replace old query,
query_types, and formats methods.
* gst/gstpad.c (gst_pad_query2, gst_pad_query2_default)
(gst_pad_set_query2_function): New functions.
(gst_real_pad_init): Set query2_default as the default query2
function. Basically just dispatches to internally linked pads.
Needs review!
* gst/gstdata_private.h (_GST_DATA_INIT): Set data->refcount to 1
without using the atomic operations. Only one thread can possibly
be accessing the data at this point. Changed so as to avoid
gst_atomic operations.
2005-05-06 21:41:22 +00:00
|
|
|
#include <gst/gstquery.h>
|
|
|
|
#include <gst/gstqueryutils.h>
|
2005-09-20 06:28:33 +00:00
|
|
|
#include <gst/gstregistry.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gststructure.h>
|
|
|
|
#include <gst/gstsystemclock.h>
|
2005-09-07 13:22:16 +00:00
|
|
|
#include <gst/gsttaglist.h>
|
|
|
|
#include <gst/gsttagsetter.h>
|
2005-03-21 17:34:02 +00:00
|
|
|
#include <gst/gsttask.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gsttrace.h>
|
2003-10-28 20:25:30 +00:00
|
|
|
#include <gst/gsttypefind.h>
|
gst/: splitted gsttypefind into gsttypefind, gsttypefindfactory
Original commit message from CVS:
* gst/Makefile.am:
* gst/elements/gstbufferstore.h:
* gst/elements/gsttypefindelement.c:
* gst/elements/gsttypefindelement.h:
* gst/gst.h:
* gst/gsttypefind.c:
* gst/gsttypefind.h:
* gst/gsttypefindfactory.c: (gst_type_find_factory_get_type),
(gst_type_find_factory_class_init), (gst_type_find_factory_init),
(gst_type_find_factory_dispose),
(gst_type_find_factory_unload_thyself),
(gst_type_find_load_plugin), (gst_type_find_factory_get_list),
(gst_type_find_factory_get_caps),
(gst_type_find_factory_get_extensions),
(gst_type_find_factory_call_function):
* gst/gsttypefindfactory.h:
* gst/registries/gstlibxmlregistry.c:
* gst/registries/gstxmlregistry.c:
splitted gsttypefind into gsttypefind, gsttypefindfactory
2005-09-07 12:35:23 +00:00
|
|
|
#include <gst/gsttypefindfactory.h>
|
2003-01-16 21:22:06 +00:00
|
|
|
#include <gst/gsturi.h>
|
2003-02-10 20:32:32 +00:00
|
|
|
#include <gst/gsturitype.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
#include <gst/gstutils.h>
|
2003-11-03 09:10:07 +00:00
|
|
|
#include <gst/gstvalue.h>
|
2003-11-24 02:09:23 +00:00
|
|
|
#include <gst/gstxml.h>
|
2000-12-03 00:17:52 +00:00
|
|
|
|
2001-01-07 04:00:30 +00:00
|
|
|
#include <gst/gstparse.h>
|
|
|
|
|
2003-01-09 14:15:37 +00:00
|
|
|
/* API compatibility stuff */
|
|
|
|
#include <gst/gstcompat.h>
|
|
|
|
|
2002-07-08 19:07:30 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2004-08-31 17:14:03 +00:00
|
|
|
/* make our own type for poptOption because gtkdoc-1.2 can not handle functions
|
|
|
|
* with return types like 'struct abc'
|
2004-07-26 17:45:10 +00:00
|
|
|
* Filed as http://bugzilla.gnome.org/show_bug.cgi?id=148507
|
2004-08-31 17:14:03 +00:00
|
|
|
*
|
|
|
|
* Btw. popt provides a typedef, but it is:
|
|
|
|
* typedef struct poptOption *poptOption
|
2004-07-26 17:45:10 +00:00
|
|
|
*/
|
2004-02-03 14:59:32 +00:00
|
|
|
typedef struct poptOption GstPoptOption;
|
|
|
|
|
2004-06-12 13:45:17 +00:00
|
|
|
#ifndef GST_DISABLE_REGISTRY
|
2004-06-13 10:04:12 +00:00
|
|
|
GST_EXPORT gboolean _gst_registry_auto_load;
|
2004-06-12 13:45:17 +00:00
|
|
|
#endif
|
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
/* initialize GST */
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_init (int *argc, char **argv[]);
|
|
|
|
gboolean gst_init_check (int *argc, char **argv[]);
|
|
|
|
void gst_init_with_popt_table (int *argc, char **argv[],
|
|
|
|
const GstPoptOption
|
|
|
|
*popt_options);
|
|
|
|
gboolean gst_init_check_with_popt_table (int *argc, char **argv[],
|
|
|
|
const GstPoptOption
|
|
|
|
*popt_options);
|
2004-02-03 14:59:32 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
const GstPoptOption * gst_init_get_popt_table (void);
|
2005-07-11 15:10:40 +00:00
|
|
|
void gst_deinit (void);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2002-07-08 19:07:30 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
#endif /* __GST_H__ */
|