2000-12-28 22:12:02 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
2001-01-19 02:23:35 +00:00
|
|
|
* 2000 Wim Taymans <wim.taymans@chello.be>
|
2000-12-28 22:12:02 +00:00
|
|
|
*
|
|
|
|
* gstpad.h: Header for GstPad object
|
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_PAD_H__
|
|
|
|
#define __GST_PAD_H__
|
|
|
|
|
2001-10-17 10:21:27 +00:00
|
|
|
#include <gst/gstconfig.h>
|
2001-02-16 13:13:16 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
#include <gst/gstobject.h>
|
|
|
|
#include <gst/gstbuffer.h>
|
2003-12-22 01:58:20 +00:00
|
|
|
#include <gst/gstcaps.h>
|
2001-12-19 02:19:00 +00:00
|
|
|
#include <gst/gstevent.h>
|
2002-11-02 13:31:31 +00:00
|
|
|
#include <gst/gstprobe.h>
|
2002-12-30 17:42:11 +00:00
|
|
|
#include <gst/gstquery.h>
|
2005-03-21 17:34:02 +00:00
|
|
|
#include <gst/gsttask.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2000-12-28 22:12:02 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2004-06-13 10:04:12 +00:00
|
|
|
GST_EXPORT GType _gst_pad_type;
|
|
|
|
GST_EXPORT GType _gst_real_pad_type;
|
|
|
|
GST_EXPORT GType _gst_ghost_pad_type;
|
2001-10-17 10:21:27 +00:00
|
|
|
|
2005-01-13 15:29:40 +00:00
|
|
|
/*
|
2001-10-17 10:21:27 +00:00
|
|
|
* Pad base class
|
|
|
|
*/
|
2005-01-13 15:29:40 +00:00
|
|
|
#define GST_TYPE_PAD (_gst_pad_type)
|
2001-06-25 01:20:11 +00:00
|
|
|
#define GST_IS_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD))
|
2001-10-17 10:21:27 +00:00
|
|
|
#define GST_IS_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_REAL_PAD || \
|
|
|
|
G_OBJECT_TYPE(obj) == GST_TYPE_GHOST_PAD)
|
2002-12-19 21:31:03 +00:00
|
|
|
#define GST_IS_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD))
|
2003-12-13 16:58:29 +00:00
|
|
|
#define GST_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD, GstPad))
|
|
|
|
#define GST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD, GstPadClass))
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_PAD_CAST(obj) ((GstPad*)(obj))
|
2001-10-17 10:21:27 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/*
|
2001-10-17 10:21:27 +00:00
|
|
|
* Real Pads
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_REAL_PAD (_gst_real_pad_type)
|
2001-06-25 01:20:11 +00:00
|
|
|
#define GST_IS_REAL_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_REAL_PAD))
|
2001-10-17 10:21:27 +00:00
|
|
|
#define GST_IS_REAL_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_REAL_PAD)
|
2002-12-19 21:31:03 +00:00
|
|
|
#define GST_IS_REAL_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_REAL_PAD))
|
2003-12-13 16:58:29 +00:00
|
|
|
#define GST_REAL_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_REAL_PAD, GstRealPad))
|
|
|
|
#define GST_REAL_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_REAL_PAD, GstRealPadClass))
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_REAL_PAD_CAST(obj) ((GstRealPad*)(obj))
|
2001-10-17 10:21:27 +00:00
|
|
|
|
2005-01-13 15:29:40 +00:00
|
|
|
/*
|
2001-10-17 10:21:27 +00:00
|
|
|
* Ghost Pads
|
|
|
|
*/
|
|
|
|
#define GST_TYPE_GHOST_PAD (_gst_ghost_pad_type)
|
2001-06-25 01:20:11 +00:00
|
|
|
#define GST_IS_GHOST_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GHOST_PAD))
|
2001-10-17 10:21:27 +00:00
|
|
|
#define GST_IS_GHOST_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_GHOST_PAD)
|
2002-12-19 21:31:03 +00:00
|
|
|
#define GST_IS_GHOST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GHOST_PAD))
|
2003-12-13 16:58:29 +00:00
|
|
|
#define GST_GHOST_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GHOST_PAD, GstGhostPad))
|
|
|
|
#define GST_GHOST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GHOST_PAD, GstGhostPadClass))
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_GHOST_PAD_CAST(obj) ((GstGhostPad*)(obj))
|
2001-10-17 10:21:27 +00:00
|
|
|
|
WARNING: Don't grab this updated unless you're really, REALLY sure.
Original commit message from CVS:
WARNING: Don't grab this updated unless you're really, REALLY sure.
WARNING: Wait for the next one.
Whole lotta changes here, including a few random bits:
examples/*/Makefile: updated to use `libtool gcc`, not just `gcc`
gst/
gstbuffer.h: updated to new flag style
gst.c, gstdebug.h: added new debugging for function ptrs
gstpipeline.c: set type of parent_class to the class, not the object
gstthread.c: ditto
plugins/
cdparanoia/cdparanoia.c: added an argument type, updated some defaults
cobin/spindentity.c: updated to new do/while loopfunction style
mp3encode/lame/gstlame.c: argument types, whole lotta lame options
tests/: various changes
Now, for the big changes: Once again, the scheduling system has changed.
And once again, it broke a whole bunch of things. The gist of the change
is that there is now a function pointer for gst_pad_push and gst_pad_pull,
instead of a hard-wired function. Well, currently they are functions, but
that's for debugging purposes only, they just call the function pointer
after spewing lots of DEBUG().
This changed the GstPad structure a bit, and the GstPad API as well.
Where elements used to provide chain() and pull() functions, they provide
chain() and get() functions. gst_pad_set_pull[region]_function has been
changed to get_pad_set_get[region]_function. This means all the elements
out there that used to have pull functions need to be updated. The calls
to that function have been changed in the normal elements, but the names
of the functions passed is still _pull[region](), which is an aesthetic
issue more than anything.
As for what doesn't work yet, just about anything dealing with Connections
is hosed, meaning threaded stuff won't work. This will be fixed about 12
hours from now, after I've slept, etc. The simplefake.c test works in
both cothreaded and chained cases, but not much else will work due to the
Connection problem. Needless to say, don't grab this unless you *need*
these features *now*, else wait to update this stuff until tomorrow.
I'm going to sleep now.
2000-12-16 10:18:09 +00:00
|
|
|
|
2001-12-15 18:15:13 +00:00
|
|
|
/*typedef struct _GstPad GstPad; */
|
|
|
|
/*typedef struct _GstPadClass GstPadClass;*/
|
2001-01-19 02:23:35 +00:00
|
|
|
typedef struct _GstRealPad GstRealPad;
|
|
|
|
typedef struct _GstRealPadClass GstRealPadClass;
|
|
|
|
typedef struct _GstGhostPad GstGhostPad;
|
|
|
|
typedef struct _GstGhostPadClass GstGhostPadClass;
|
2001-12-15 18:15:13 +00:00
|
|
|
/*typedef struct _GstPadTemplate GstPadTemplate;*/
|
|
|
|
/*typedef struct _GstPadTemplateClass GstPadTemplateClass;*/
|
2003-12-22 01:39:35 +00:00
|
|
|
typedef struct _GstStaticPadTemplate GstStaticPadTemplate;
|
2003-12-23 21:39:35 +00:00
|
|
|
typedef struct _GstPadLink GstPadLink;
|
2001-01-19 02:23:35 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2005-03-21 17:34:02 +00:00
|
|
|
GST_PAD_LINK_NOSCHED = -5, /* pads cannot cooperate in scheduling */
|
|
|
|
GST_PAD_LINK_NOFORMAT = -4, /* pads do not have common format */
|
|
|
|
GST_PAD_LINK_REFUSED = -3, /* refused for some reason */
|
|
|
|
GST_PAD_LINK_WRONG_DIRECTION = -2, /* pads have wrong direction */
|
|
|
|
GST_PAD_LINK_WAS_LINKED = -1, /* pad was already linked */
|
|
|
|
GST_PAD_LINK_OK = 0, /* link ok */
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstPadLinkReturn;
|
2001-02-05 17:16:23 +00:00
|
|
|
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
#define GST_PAD_LINK_FAILED(ret) ((ret) < GST_PAD_LINK_OK)
|
|
|
|
#define GST_PAD_LINK_SUCCESSFUL(ret) ((ret) >= GST_PAD_LINK_OK)
|
2003-12-23 21:39:35 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_FLOW_OK = 0, /* data passing was ok */
|
|
|
|
GST_FLOW_RESEND = 1, /* resend buffer, possibly with new caps */
|
|
|
|
GST_FLOW_ERROR = -1, /* some (fatal) error occured */
|
|
|
|
GST_FLOW_NOT_CONNECTED = -2, /* pad is not connected */
|
|
|
|
GST_FLOW_NOT_NEGOTIATED = -3, /* pad is not negotiated */
|
|
|
|
GST_FLOW_WRONG_STATE = -4, /* pad is in wrong state */
|
|
|
|
GST_FLOW_UNEXPECTED = -5, /* did not expect anything, this is not fatal */
|
|
|
|
GST_FLOW_NOT_SUPPORTED = -6 /* function not supported */
|
|
|
|
} GstFlowReturn;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GST_ACTIVATE_NONE,
|
|
|
|
GST_ACTIVATE_PUSH,
|
|
|
|
GST_ACTIVATE_PULL,
|
|
|
|
} GstActivateMode;
|
|
|
|
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
#define GST_PAD_MODE_ACTIVATE(mode) ((mode) != GST_ACTIVATE_NONE)
|
|
|
|
|
2002-12-30 17:42:11 +00:00
|
|
|
/* convenience functions */
|
2002-11-29 17:05:13 +00:00
|
|
|
#ifdef G_HAVE_ISO_VARARGS
|
2002-12-30 17:42:11 +00:00
|
|
|
#define GST_PAD_QUERY_TYPE_FUNCTION(functionname, ...) GST_QUERY_TYPE_FUNCTION (GstPad *, functionname, __VA_ARGS__);
|
2005-01-13 15:29:40 +00:00
|
|
|
#define GST_PAD_FORMATS_FUNCTION(functionname, ...) GST_FORMATS_FUNCTION (GstPad *, functionname, __VA_ARGS__);
|
|
|
|
#define GST_PAD_EVENT_MASK_FUNCTION(functionname, ...) GST_EVENT_MASK_FUNCTION (GstPad *, functionname, __VA_ARGS__);
|
2002-11-29 17:05:13 +00:00
|
|
|
#elif defined(G_HAVE_GNUC_VARARGS)
|
2002-12-30 17:42:11 +00:00
|
|
|
#define GST_PAD_QUERY_TYPE_FUNCTION(functionname, a...) GST_QUERY_TYPE_FUNCTION (GstPad *, functionname, a);
|
2005-01-13 15:29:40 +00:00
|
|
|
#define GST_PAD_FORMATS_FUNCTION(functionname, a...) GST_FORMATS_FUNCTION (GstPad *, functionname, a);
|
2002-12-30 17:42:11 +00:00
|
|
|
#define GST_PAD_EVENT_MASK_FUNCTION(functionname, a...) GST_EVENT_MASK_FUNCTION (GstPad *, functionname, a);
|
2002-11-29 17:05:13 +00:00
|
|
|
#endif
|
2002-07-25 18:12:12 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/* pad states */
|
|
|
|
typedef gboolean (*GstPadActivateFunction) (GstPad *pad, GstActivateMode mode);
|
2005-01-13 15:29:40 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/* data passing */
|
|
|
|
typedef void (*GstPadLoopFunction) (GstPad *pad);
|
|
|
|
typedef GstFlowReturn (*GstPadChainFunction) (GstPad *pad, GstBuffer *buffer);
|
|
|
|
typedef GstFlowReturn (*GstPadGetRangeFunction) (GstPad *pad, guint64 offset,
|
|
|
|
guint length, GstBuffer **buffer);
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
typedef gboolean (*GstPadCheckGetRangeFunction) (GstPad *pad);
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef gboolean (*GstPadEventFunction) (GstPad *pad, GstEvent *event);
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
|
|
|
/* convert/query/format functions */
|
2005-01-13 15:29:40 +00:00
|
|
|
typedef gboolean (*GstPadConvertFunction) (GstPad *pad,
|
|
|
|
GstFormat src_format, gint64 src_value,
|
2004-03-15 14:43:35 +00:00
|
|
|
GstFormat *dest_format, gint64 *dest_value);
|
|
|
|
typedef gboolean (*GstPadQueryFunction) (GstPad *pad, GstQueryType type,
|
2005-01-13 15:29:40 +00:00
|
|
|
GstFormat *format, gint64 *value);
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef GList* (*GstPadIntLinkFunction) (GstPad *pad);
|
|
|
|
typedef const GstFormat* (*GstPadFormatsFunction) (GstPad *pad);
|
|
|
|
typedef const GstEventMask* (*GstPadEventMaskFunction) (GstPad *pad);
|
|
|
|
typedef const GstQueryType* (*GstPadQueryTypeFunction) (GstPad *pad);
|
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/* linking */
|
2005-03-21 17:34:02 +00:00
|
|
|
typedef GstPadLinkReturn (*GstPadLinkFunction) (GstPad *pad, GstPad *peer);
|
|
|
|
typedef void (*GstPadUnlinkFunction) (GstPad *pad);
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
|
|
|
/* caps nego */
|
2005-03-21 17:34:02 +00:00
|
|
|
typedef GstCaps* (*GstPadGetCapsFunction) (GstPad *pad);
|
|
|
|
typedef gboolean (*GstPadSetCapsFunction) (GstPad *pad, GstCaps *caps);
|
|
|
|
typedef gboolean (*GstPadAcceptCapsFunction) (GstPad *pad, GstCaps *caps);
|
|
|
|
typedef GstCaps* (*GstPadFixateCapsFunction) (GstPad *pad, GstCaps *caps);
|
|
|
|
typedef GstBuffer* (*GstPadBufferAllocFunction) (GstPad *pad, guint64 offset, guint size,
|
|
|
|
GstCaps *caps);
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/* misc */
|
2005-03-21 17:34:02 +00:00
|
|
|
typedef gboolean (*GstPadDispatcherFunction) (GstPad *pad, gpointer data);
|
|
|
|
|
|
|
|
typedef void (*GstPadBlockCallback) (GstPad *pad, gboolean blocked, gpointer user_data);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
|
|
|
typedef enum {
|
2000-01-30 09:03:00 +00:00
|
|
|
GST_PAD_UNKNOWN,
|
|
|
|
GST_PAD_SRC,
|
2002-07-09 10:27:22 +00:00
|
|
|
GST_PAD_SINK
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstPadDirection;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2005-03-07 18:27:42 +00:00
|
|
|
GST_PAD_ACTIVE = GST_OBJECT_FLAG_LAST,
|
2005-03-21 17:34:02 +00:00
|
|
|
GST_PAD_BLOCKED,
|
|
|
|
GST_PAD_FLUSHING,
|
|
|
|
GST_PAD_IN_GETCAPS,
|
|
|
|
GST_PAD_IN_SETCAPS,
|
2000-12-15 01:57:34 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
GST_PAD_FLAG_LAST = GST_OBJECT_FLAG_LAST + 8
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstPadFlags;
|
2000-11-25 07:02:55 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstPad {
|
2005-01-13 15:29:40 +00:00
|
|
|
GstObject object;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-01-13 15:29:40 +00:00
|
|
|
gpointer element_private;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-01-13 15:29:40 +00:00
|
|
|
GstPadTemplate *padtemplate; /* the template for this pad */
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2001-01-19 02:23:35 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstPadClass {
|
2001-01-19 02:23:35 +00:00
|
|
|
GstObjectClass parent_class;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2001-01-19 02:23:35 +00:00
|
|
|
};
|
2000-12-09 09:13:09 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstRealPad {
|
2005-01-13 15:29:40 +00:00
|
|
|
GstPad pad;
|
2001-01-19 02:23:35 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/* direction cannot change after creating the pad */
|
|
|
|
GstPadDirection direction;
|
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/*< public >*/ /* with STREAM_LOCK */
|
|
|
|
/* streaming rec_lock */
|
|
|
|
GStaticRecMutex *stream_rec_lock;
|
|
|
|
GstTask *task;
|
|
|
|
/*< public >*/ /* with PREROLL_LOCK */
|
|
|
|
GMutex *preroll_lock;
|
|
|
|
GCond *preroll_cond;
|
|
|
|
|
|
|
|
/*< public >*/ /* with LOCK */
|
|
|
|
/* block cond, mutex is from the object */
|
|
|
|
GCond *block_cond;
|
|
|
|
GstPadBlockCallback block_callback;
|
|
|
|
gpointer block_data;
|
|
|
|
|
2002-09-01 20:31:45 +00:00
|
|
|
/* the pad capabilities */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstCaps *caps;
|
|
|
|
GstCaps *appfilter;
|
|
|
|
GstPadGetCapsFunction getcapsfunc;
|
|
|
|
GstPadSetCapsFunction setcapsfunc;
|
|
|
|
GstPadAcceptCapsFunction acceptcapsfunc;
|
|
|
|
GstPadFixateCapsFunction fixatecapsfunc;
|
|
|
|
|
|
|
|
GstPadActivateFunction activatefunc;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/* pad link */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstPadLinkFunction linkfunc;
|
|
|
|
GstPadUnlinkFunction unlinkfunc;
|
|
|
|
GstRealPad *peer;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
gpointer sched_private;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* data transport functions */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstPadLoopFunction loopfunc;
|
|
|
|
GstPadChainFunction chainfunc;
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
GstPadCheckGetRangeFunction checkgetrangefunc;
|
2005-03-21 17:34:02 +00:00
|
|
|
GstPadGetRangeFunction getrangefunc;
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadEventFunction eventfunc;
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadEventMaskFunction eventmaskfunc;
|
2002-07-24 21:04:50 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/* ghostpads */
|
|
|
|
GList *ghostpads;
|
|
|
|
guint32 ghostpads_cookie;
|
2002-07-24 21:04:50 +00:00
|
|
|
|
|
|
|
/* query/convert/formats functions */
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadConvertFunction convertfunc;
|
|
|
|
GstPadQueryFunction queryfunc;
|
|
|
|
GstPadFormatsFunction formatsfunc;
|
|
|
|
GstPadQueryTypeFunction querytypefunc;
|
|
|
|
GstPadIntLinkFunction intlinkfunc;
|
2002-07-24 21:04:50 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
GstPadBufferAllocFunction bufferallocfunc;
|
2002-11-02 13:31:31 +00:00
|
|
|
|
2005-01-13 15:29:40 +00:00
|
|
|
GstProbeDispatcher probedisp;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/*< private >*/
|
2004-02-04 21:35:39 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2000-01-30 09:03:00 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstRealPadClass {
|
2005-01-13 15:29:40 +00:00
|
|
|
GstPadClass parent_class;
|
2000-11-25 07:02:55 +00:00
|
|
|
|
|
|
|
/* signal callbacks */
|
2005-01-13 15:29:40 +00:00
|
|
|
void (*linked) (GstPad *pad, GstPad *peer);
|
|
|
|
void (*unlinked) (GstPad *pad, GstPad *peer);
|
2005-03-21 17:34:02 +00:00
|
|
|
void (*request_link) (GstPad *pad);
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
2004-02-04 21:35:39 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2000-01-30 09:03:00 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstGhostPad {
|
2001-01-19 02:23:35 +00:00
|
|
|
GstPad pad;
|
|
|
|
|
|
|
|
GstRealPad *realpad;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2001-01-19 02:23:35 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstGhostPadClass {
|
2001-01-19 02:23:35 +00:00
|
|
|
GstPadClass parent_class;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2001-01-19 02:23:35 +00:00
|
|
|
};
|
|
|
|
|
2001-01-19 09:37:32 +00:00
|
|
|
|
|
|
|
/***** helper macros *****/
|
|
|
|
/* GstPad */
|
2001-01-29 00:06:02 +00:00
|
|
|
#define GST_PAD_NAME(pad) (GST_OBJECT_NAME(pad))
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_PAD_PARENT(pad) (GST_ELEMENT_CAST(GST_OBJECT_PARENT(pad)))
|
|
|
|
#define GST_PAD_ELEMENT_PRIVATE(pad) (GST_PAD_CAST(pad)->element_private)
|
|
|
|
#define GST_PAD_PAD_TEMPLATE(pad) (GST_PAD_CAST(pad)->padtemplate)
|
2001-01-19 09:37:32 +00:00
|
|
|
|
|
|
|
/* GstRealPad */
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_RPAD_DIRECTION(pad) (GST_REAL_PAD_CAST(pad)->direction)
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_RPAD_TASK(pad) (GST_REAL_PAD_CAST(pad)->task)
|
|
|
|
#define GST_RPAD_ACTIVATEFUNC(pad) (GST_REAL_PAD_CAST(pad)->activatefunc)
|
|
|
|
#define GST_RPAD_LOOPFUNC(pad) (GST_REAL_PAD_CAST(pad)->loopfunc)
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_RPAD_CHAINFUNC(pad) (GST_REAL_PAD_CAST(pad)->chainfunc)
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
#define GST_RPAD_CHECKGETRANGEFUNC(pad) (GST_REAL_PAD_CAST(pad)->checkgetrangefunc)
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_RPAD_GETRANGEFUNC(pad) (GST_REAL_PAD_CAST(pad)->getrangefunc)
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_RPAD_EVENTFUNC(pad) (GST_REAL_PAD_CAST(pad)->eventfunc)
|
|
|
|
#define GST_RPAD_CONVERTFUNC(pad) (GST_REAL_PAD_CAST(pad)->convertfunc)
|
|
|
|
#define GST_RPAD_QUERYFUNC(pad) (GST_REAL_PAD_CAST(pad)->queryfunc)
|
|
|
|
#define GST_RPAD_INTLINKFUNC(pad) (GST_REAL_PAD_CAST(pad)->intlinkfunc)
|
|
|
|
#define GST_RPAD_FORMATSFUNC(pad) (GST_REAL_PAD_CAST(pad)->formatsfunc)
|
|
|
|
#define GST_RPAD_QUERYTYPEFUNC(pad) (GST_REAL_PAD_CAST(pad)->querytypefunc)
|
|
|
|
#define GST_RPAD_EVENTMASKFUNC(pad) (GST_REAL_PAD_CAST(pad)->eventmaskfunc)
|
|
|
|
|
|
|
|
#define GST_RPAD_PEER(pad) (GST_REAL_PAD_CAST(pad)->peer)
|
|
|
|
#define GST_RPAD_LINKFUNC(pad) (GST_REAL_PAD_CAST(pad)->linkfunc)
|
|
|
|
#define GST_RPAD_UNLINKFUNC(pad) (GST_REAL_PAD_CAST(pad)->unlinkfunc)
|
|
|
|
|
|
|
|
#define GST_RPAD_CAPS(pad) (GST_REAL_PAD_CAST(pad)->caps)
|
|
|
|
#define GST_RPAD_APPFILTER(pad) (GST_REAL_PAD_CAST(pad)->appfilter)
|
|
|
|
#define GST_RPAD_GETCAPSFUNC(pad) (GST_REAL_PAD_CAST(pad)->getcapsfunc)
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_RPAD_SETCAPSFUNC(pad) (GST_REAL_PAD_CAST(pad)->setcapsfunc)
|
|
|
|
#define GST_RPAD_ACCEPTCAPSFUNC(pad) (GST_REAL_PAD_CAST(pad)->acceptcapsfunc)
|
|
|
|
#define GST_RPAD_FIXATECAPSFUNC(pad) (GST_REAL_PAD_CAST(pad)->fixatecapsfunc)
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
|
|
|
#define GST_RPAD_BUFFERALLOCFUNC(pad) (GST_REAL_PAD_CAST(pad)->bufferallocfunc)
|
|
|
|
|
|
|
|
#define GST_RPAD_IS_LINKED(pad) (GST_RPAD_PEER(pad) != NULL)
|
|
|
|
#define GST_RPAD_IS_ACTIVE(pad) (GST_FLAG_IS_SET (pad, GST_PAD_ACTIVE))
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_RPAD_IS_BLOCKED(pad) (GST_FLAG_IS_SET (pad, GST_PAD_BLOCKED))
|
|
|
|
#define GST_RPAD_IS_FLUSHING(pad) (GST_FLAG_IS_SET (pad, GST_PAD_FLUSHING))
|
|
|
|
#define GST_RPAD_IS_IN_GETCAPS(pad) (GST_FLAG_IS_SET (pad, GST_PAD_IN_GETCAPS))
|
|
|
|
#define GST_RPAD_IS_IN_SETCAPS(pad) (GST_FLAG_IS_SET (pad, GST_PAD_IN_SETCAPS))
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_RPAD_IS_USABLE(pad) (GST_RPAD_IS_LINKED (pad) && \
|
|
|
|
GST_RPAD_IS_ACTIVE(pad) && GST_RPAD_IS_ACTIVE(GST_RPAD_PEER (pad)))
|
|
|
|
#define GST_RPAD_IS_SRC(pad) (GST_RPAD_DIRECTION(pad) == GST_PAD_SRC)
|
|
|
|
#define GST_RPAD_IS_SINK(pad) (GST_RPAD_DIRECTION(pad) == GST_PAD_SINK)
|
2001-01-19 09:37:32 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_STREAM_GET_LOCK(pad) (GST_PAD_REALIZE(pad)->stream_rec_lock)
|
|
|
|
#define GST_STREAM_LOCK(pad) (g_static_rec_mutex_lock(GST_STREAM_GET_LOCK(pad)))
|
|
|
|
#define GST_STREAM_TRYLOCK(pad) (g_static_rec_mutex_trylock(GST_STREAM_GET_LOCK(pad)))
|
|
|
|
#define GST_STREAM_UNLOCK(pad) (g_static_rec_mutex_unlock(GST_STREAM_GET_LOCK(pad)))
|
|
|
|
|
|
|
|
#define GST_PREROLL_GET_LOCK(pad) (GST_PAD_REALIZE(pad)->preroll_lock)
|
|
|
|
#define GST_PREROLL_LOCK(pad) (g_mutex_lock(GST_PREROLL_GET_LOCK(pad)))
|
|
|
|
#define GST_PREROLL_TRYLOCK(pad) (g_mutex_trylock(GST_PREROLL_GET_LOCK(pad)))
|
|
|
|
#define GST_PREROLL_UNLOCK(pad) (g_mutex_unlock(GST_PREROLL_GET_LOCK(pad)))
|
|
|
|
#define GST_PREROLL_GET_COND(pad) (GST_PAD_REALIZE(pad)->preroll_cond)
|
|
|
|
#define GST_PREROLL_WAIT(pad) g_cond_wait (GST_PREROLL_GET_COND (pad), GST_PREROLL_GET_LOCK (pad))
|
|
|
|
#define GST_PREROLL_TIMED_WAIT(pad, timeval) g_cond_timed_wait (GST_PREROLL_GET_COND (pad), GST_PREROLL_GET_LOCK (pad),\
|
|
|
|
timeval)
|
|
|
|
#define GST_PREROLL_SIGNAL(pad) g_cond_signal (GST_PREROLL_GET_COND (pad));
|
|
|
|
#define GST_PREROLL_BROADCAST(pad) g_cond_broadcast (GST_PREROLL_GET_COND (pad));
|
|
|
|
|
|
|
|
#define GST_PAD_BLOCK_GET_COND(pad) (GST_PAD_REALIZE(pad)->block_cond)
|
|
|
|
#define GST_PAD_BLOCK_WAIT(pad) (g_cond_wait(GST_PAD_BLOCK_GET_COND (pad), GST_GET_LOCK (pad)))
|
|
|
|
#define GST_PAD_BLOCK_SIGNAL(pad) (g_cond_signal(GST_PAD_BLOCK_GET_COND (pad)))
|
|
|
|
|
2001-01-19 09:37:32 +00:00
|
|
|
/* GstGhostPad */
|
|
|
|
#define GST_GPAD_REALPAD(pad) (((GstGhostPad *)(pad))->realpad)
|
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/* Generic, be VERY carefull with these macros as the ghostpad could be lost */
|
2003-09-16 09:57:31 +00:00
|
|
|
#define GST_PAD_REALIZE(pad) (GST_IS_REAL_PAD(pad) ? ((GstRealPad *)(pad)) : GST_GPAD_REALPAD(pad))
|
2001-01-19 09:37:32 +00:00
|
|
|
#define GST_PAD_DIRECTION(pad) GST_RPAD_DIRECTION(GST_PAD_REALIZE(pad))
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_PAD_CAPS(pad) GST_RPAD_CAPS(GST_PAD_REALIZE (pad))
|
|
|
|
#define GST_PAD_APPFILTER(pad) GST_RPAD_APPFILTER(GST_PAD_REALIZE (pad))
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_PAD_PEER(pad) GST_PAD_CAST(GST_RPAD_PEER(GST_PAD_REALIZE(pad)))
|
2001-01-19 09:37:32 +00:00
|
|
|
|
|
|
|
/* Some check functions (unused?) */
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_PAD_IS_LINKED(pad) (GST_RPAD_IS_LINKED(GST_PAD_REALIZE(pad)))
|
|
|
|
#define GST_PAD_IS_ACTIVE(pad) (GST_RPAD_IS_ACTIVE(GST_PAD_REALIZE(pad)))
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_PAD_IS_BLOCKED(pad) (GST_RPAD_IS_BLOCKED(GST_PAD_REALIZE(pad)))
|
|
|
|
#define GST_PAD_IS_NEGOTIATING(pad) (GST_RPAD_IS_NEGOTIATING(GST_PAD_REALIZE(pad)))
|
|
|
|
#define GST_PAD_IS_IN_GETCAPS(pad) (GST_RPAD_IS_IN_GETCAPS(GST_PAD_REALIZE(pad)))
|
|
|
|
#define GST_PAD_IS_IN_SETCAPS(pad) (GST_RPAD_IS_IN_SETCAPS(GST_PAD_REALIZE(pad)))
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_PAD_IS_USABLE(pad) (GST_RPAD_IS_USABLE(GST_PAD_REALIZE(pad)))
|
2005-03-21 17:34:02 +00:00
|
|
|
#define GST_PAD_CAN_PULL(pad) (GST_RPAD_CAN_PULL(GST_PAD_REALIZE(pad)))
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
#define GST_PAD_IS_SRC(pad) (GST_RPAD_IS_SRC(GST_PAD_REALIZE(pad)))
|
|
|
|
#define GST_PAD_IS_SINK(pad) (GST_RPAD_IS_SINK(GST_PAD_REALIZE(pad)))
|
2001-01-19 09:37:32 +00:00
|
|
|
|
|
|
|
/***** PadTemplate *****/
|
2002-04-11 20:35:18 +00:00
|
|
|
#define GST_TYPE_PAD_TEMPLATE (gst_pad_template_get_type ())
|
|
|
|
#define GST_PAD_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD_TEMPLATE,GstPadTemplate))
|
|
|
|
#define GST_PAD_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD_TEMPLATE,GstPadTemplateClass))
|
2002-05-08 20:40:48 +00:00
|
|
|
#define GST_IS_PAD_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD_TEMPLATE))
|
2002-12-19 21:31:03 +00:00
|
|
|
#define GST_IS_PAD_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD_TEMPLATE))
|
2000-12-28 00:18:26 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
2000-12-12 19:29:43 +00:00
|
|
|
GST_PAD_ALWAYS,
|
|
|
|
GST_PAD_SOMETIMES,
|
2002-07-09 10:27:22 +00:00
|
|
|
GST_PAD_REQUEST
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstPadPresence;
|
2000-12-12 19:29:43 +00:00
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
#define GST_PAD_TEMPLATE_NAME_TEMPLATE(templ) (((GstPadTemplate *)(templ))->name_template)
|
|
|
|
#define GST_PAD_TEMPLATE_DIRECTION(templ) (((GstPadTemplate *)(templ))->direction)
|
2002-05-08 20:40:48 +00:00
|
|
|
#define GST_PAD_TEMPLATE_PRESENCE(templ) (((GstPadTemplate *)(templ))->presence)
|
2002-04-11 20:35:18 +00:00
|
|
|
#define GST_PAD_TEMPLATE_CAPS(templ) (((GstPadTemplate *)(templ))->caps)
|
2002-01-13 22:22:42 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_PAD_TEMPLATE_FIXED = GST_OBJECT_FLAG_LAST,
|
2003-02-02 19:58:11 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GST_PAD_TEMPLATE_FLAG_LAST = GST_OBJECT_FLAG_LAST + 4
|
|
|
|
} GstPadTemplateFlags;
|
2003-02-02 19:58:11 +00:00
|
|
|
|
2003-02-06 23:22:03 +00:00
|
|
|
#define GST_PAD_TEMPLATE_IS_FIXED(templ) (GST_FLAG_IS_SET(templ, GST_PAD_TEMPLATE_FIXED))
|
2001-03-12 21:02:12 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstPadTemplate {
|
|
|
|
GstObject object;
|
2000-12-28 00:18:26 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
gchar *name_template;
|
|
|
|
GstPadDirection direction;
|
|
|
|
GstPadPresence presence;
|
|
|
|
GstCaps *caps;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2000-12-12 19:29:43 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstPadTemplateClass {
|
|
|
|
GstObjectClass parent_class;
|
2000-12-28 00:18:26 +00:00
|
|
|
|
|
|
|
/* signal callbacks */
|
2004-03-15 14:43:35 +00:00
|
|
|
void (*pad_created) (GstPadTemplate *templ, GstPad *pad);
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2000-12-28 00:18:26 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstStaticPadTemplate {
|
|
|
|
gchar *name_template;
|
|
|
|
GstPadDirection direction;
|
|
|
|
GstPadPresence presence;
|
|
|
|
GstStaticCaps static_caps;
|
2003-12-22 01:39:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#define GST_STATIC_PAD_TEMPLATE(padname, dir, pres, caps) \
|
|
|
|
{ \
|
|
|
|
/* name_template */ padname, \
|
|
|
|
/* direction */ dir, \
|
|
|
|
/* presence */ pres, \
|
|
|
|
/* caps */ caps \
|
|
|
|
}
|
2001-04-16 21:45:02 +00:00
|
|
|
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GType gst_pad_get_type (void);
|
|
|
|
GType gst_real_pad_get_type (void);
|
|
|
|
GType gst_ghost_pad_get_type (void);
|
2000-12-12 19:29:43 +00:00
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* creating pads */
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPad* gst_pad_new (const gchar *name, GstPadDirection direction);
|
|
|
|
GstPad* gst_pad_new_from_template (GstPadTemplate *templ, const gchar *name);
|
|
|
|
GstPad* gst_pad_custom_new (GType type, const gchar *name, GstPadDirection direction);
|
|
|
|
GstPad* gst_pad_custom_new_from_template (GType type, GstPadTemplate *templ, const gchar *name);
|
2000-11-01 13:49:41 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
#define gst_pad_get_name(pad) gst_object_get_name(GST_OBJECT(pad))
|
|
|
|
#define gst_pad_set_name(pad,name) gst_object_set_name(GST_OBJECT(pad),name)
|
|
|
|
#define gst_pad_get_parent(pad) GST_ELEMENT(gst_object_get_parent(GST_OBJECT(pad)))
|
|
|
|
#define gst_pad_set_parent(pad,parent) gst_object_set_parent(GST_OBJECT(pad),parent)
|
|
|
|
GstElement* gst_pad_get_real_parent (GstPad *pad);
|
|
|
|
|
2001-08-06 20:37:21 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadDirection gst_pad_get_direction (GstPad *pad);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
gboolean gst_pad_set_active (GstPad *pad, GstActivateMode mode);
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
gboolean gst_pad_peer_set_active (GstPad *pad, GstActivateMode mode);
|
2004-03-15 14:43:35 +00:00
|
|
|
gboolean gst_pad_is_active (GstPad *pad);
|
2005-03-21 17:34:02 +00:00
|
|
|
gboolean gst_pad_set_blocked (GstPad *pad, gboolean blocked);
|
|
|
|
gboolean gst_pad_set_blocked_async (GstPad *pad, gboolean blocked,
|
|
|
|
GstPadBlockCallback callback, gpointer user_data);
|
|
|
|
gboolean gst_pad_is_blocked (GstPad *pad);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_set_element_private (GstPad *pad, gpointer priv);
|
|
|
|
gpointer gst_pad_get_element_private (GstPad *pad);
|
2001-01-11 22:03:01 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadTemplate* gst_pad_get_pad_template (GstPad *pad);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
void gst_pad_set_bufferalloc_function (GstPad *pad, GstPadBufferAllocFunction bufalloc);
|
|
|
|
GstBuffer* gst_pad_alloc_buffer (GstPad *pad, guint64 offset, gint size,
|
|
|
|
GstCaps *caps);
|
2001-04-16 21:45:02 +00:00
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* data passing setup functions */
|
2005-03-21 17:34:02 +00:00
|
|
|
void gst_pad_set_activate_function (GstPad *pad, GstPadActivateFunction activate);
|
|
|
|
void gst_pad_set_loop_function (GstPad *pad, GstPadLoopFunction loop);
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_set_chain_function (GstPad *pad, GstPadChainFunction chain);
|
2005-03-21 17:34:02 +00:00
|
|
|
void gst_pad_set_getrange_function (GstPad *pad, GstPadGetRangeFunction get);
|
gst/: More work on the generic source base class, implement seeking, query.
Original commit message from CVS:
* gst/base/README:
* gst/base/gstbasesrc.c: (gst_basesrc_get_type),
(gst_basesrc_init), (gst_basesrc_get_formats), (gst_basesrc_query),
(gst_basesrc_get_event_mask), (gst_basesrc_do_seek),
(gst_basesrc_event_handler), (gst_basesrc_get_range_unlocked),
(gst_basesrc_check_get_range), (gst_basesrc_loop),
(gst_basesrc_unlock), (gst_basesrc_get_size), (gst_basesrc_start),
(gst_basesrc_stop), (gst_basesrc_activate),
(gst_basesrc_change_state), (basesrc_find_peek),
(basesrc_find_suggest), (gst_basesrc_type_find):
* gst/base/gstbasesrc.h:
* gst/elements/gstfilesrc.c: (gst_filesrc_base_init),
(gst_filesrc_class_init), (gst_filesrc_init),
(gst_filesrc_finalize), (gst_filesrc_set_location),
(gst_filesrc_set_property), (gst_filesrc_get_property),
(gst_filesrc_free_parent_mmap), (gst_filesrc_map_region),
(gst_filesrc_map_small_region), (gst_filesrc_create_mmap),
(gst_filesrc_create_read), (gst_filesrc_create),
(gst_filesrc_get_size), (gst_filesrc_start), (gst_filesrc_stop):
* gst/elements/gstfilesrc.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_set_checkgetrange_function), (gst_pad_check_pull_range),
(gst_pad_pull_range):
* gst/gstpad.h:
More work on the generic source base class, implement seeking,
query.
Make filesrc extend the base source class.
Added gst_pad_set_checkgetrange_function to GstPad.
2005-04-06 17:30:48 +00:00
|
|
|
void gst_pad_set_checkgetrange_function (GstPad *pad, GstPadCheckGetRangeFunction check);
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_set_event_function (GstPad *pad, GstPadEventFunction event);
|
|
|
|
void gst_pad_set_event_mask_function (GstPad *pad, GstPadEventMaskFunction mask_func);
|
|
|
|
G_CONST_RETURN GstEventMask*
|
|
|
|
gst_pad_get_event_masks (GstPad *pad);
|
|
|
|
G_CONST_RETURN GstEventMask*
|
|
|
|
gst_pad_get_event_masks_default (GstPad *pad);
|
2002-07-24 21:04:50 +00:00
|
|
|
|
2003-01-09 14:15:37 +00:00
|
|
|
/* pad links */
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_set_link_function (GstPad *pad, GstPadLinkFunction link);
|
|
|
|
void gst_pad_set_unlink_function (GstPad *pad, GstPadUnlinkFunction unlink);
|
2002-01-28 00:51:39 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
GstPadLinkReturn gst_pad_link (GstPad *srcpad, GstPad *sinkpad);
|
|
|
|
GstPadLinkReturn gst_pad_link_filtered (GstPad *srcpad, GstPad *sinkpad,
|
|
|
|
const GstCaps *filtercaps);
|
|
|
|
GstPadLinkReturn gst_pad_relink_filtered (GstPad *srcpad, GstPad *sinkpad,
|
|
|
|
const GstCaps *filtercaps);
|
|
|
|
gboolean gst_pad_unlink (GstPad *srcpad, GstPad *sinkpad);
|
2004-03-15 14:43:35 +00:00
|
|
|
gboolean gst_pad_is_linked (GstPad *pad);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPad* gst_pad_get_peer (GstPad *pad);
|
2005-03-07 18:27:42 +00:00
|
|
|
GstPad* gst_pad_realize (GstPad *pad);
|
2002-07-24 21:04:50 +00:00
|
|
|
|
|
|
|
/* capsnego functions */
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_set_getcaps_function (GstPad *pad, GstPadGetCapsFunction getcaps);
|
2005-03-21 17:34:02 +00:00
|
|
|
void gst_pad_set_acceptcaps_function (GstPad *pad, GstPadAcceptCapsFunction acceptcaps);
|
|
|
|
void gst_pad_set_fixatecaps_function (GstPad *pad, GstPadFixateCapsFunction fixatecaps);
|
|
|
|
void gst_pad_set_setcaps_function (GstPad *pad, GstPadSetCapsFunction setcaps);
|
2003-04-17 22:29:31 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
G_CONST_RETURN GstCaps* gst_pad_get_pad_template_caps (GstPad *pad);
|
|
|
|
|
|
|
|
/* capsnego function for connected/unconnected pads */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstCaps * gst_pad_get_caps (GstPad * pad);
|
|
|
|
GstCaps* gst_pad_fixate_caps (GstPad * pad, GstCaps *caps);
|
|
|
|
gboolean gst_pad_accept_caps (GstPad * pad, GstCaps *caps);
|
|
|
|
gboolean gst_pad_set_caps (GstPad * pad, GstCaps *caps);
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
GstCaps * gst_pad_peer_get_caps (GstPad * pad);
|
2005-03-21 17:34:02 +00:00
|
|
|
gboolean gst_pad_peer_accept_caps (GstPad * pad, GstCaps *caps);
|
2005-03-07 18:27:42 +00:00
|
|
|
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
/* capsnego for connected pads */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstCaps * gst_pad_get_allowed_caps (GstPad * srcpad);
|
|
|
|
GstCaps * gst_pad_get_negotiated_caps (GstPad * pad);
|
|
|
|
GstCaps * gst_pad_get_filter_caps (GstPad * pad);
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* data passing functions */
|
2005-03-21 17:34:02 +00:00
|
|
|
GstFlowReturn gst_pad_push (GstPad *pad, GstBuffer *buffer);
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
gboolean gst_pad_check_pull_range (GstPad *pad);
|
2005-03-21 17:34:02 +00:00
|
|
|
GstFlowReturn gst_pad_pull_range (GstPad *pad, guint64 offset, guint size,
|
|
|
|
GstBuffer **buffer);
|
|
|
|
gboolean gst_pad_push_event (GstPad *pad, GstEvent *event);
|
2004-03-15 14:43:35 +00:00
|
|
|
gboolean gst_pad_send_event (GstPad *pad, GstEvent *event);
|
|
|
|
gboolean gst_pad_event_default (GstPad *pad, GstEvent *event);
|
2005-03-21 17:34:02 +00:00
|
|
|
|
|
|
|
/* pad tasks */
|
|
|
|
gboolean gst_pad_start_task (GstPad *pad);
|
|
|
|
gboolean gst_pad_pause_task (GstPad *pad);
|
|
|
|
gboolean gst_pad_stop_task (GstPad *pad);
|
2002-05-26 21:54:27 +00:00
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* convert/query/format functions */
|
2005-01-13 15:29:40 +00:00
|
|
|
void gst_pad_set_formats_function (GstPad *pad,
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadFormatsFunction formats);
|
|
|
|
G_CONST_RETURN GstFormat*
|
|
|
|
gst_pad_get_formats (GstPad *pad);
|
|
|
|
G_CONST_RETURN GstFormat*
|
|
|
|
gst_pad_get_formats_default (GstPad *pad);
|
|
|
|
|
|
|
|
void gst_pad_set_convert_function (GstPad *pad, GstPadConvertFunction convert);
|
2005-01-13 15:29:40 +00:00
|
|
|
gboolean gst_pad_convert (GstPad *pad,
|
|
|
|
GstFormat src_format, gint64 src_value,
|
2004-03-15 14:43:35 +00:00
|
|
|
GstFormat *dest_format, gint64 *dest_value);
|
2005-01-13 15:29:40 +00:00
|
|
|
gboolean gst_pad_convert_default (GstPad *pad,
|
|
|
|
GstFormat src_format, gint64 src_value,
|
2004-03-15 14:43:35 +00:00
|
|
|
GstFormat *dest_format, gint64 *dest_value);
|
|
|
|
|
|
|
|
void gst_pad_set_query_function (GstPad *pad, GstPadQueryFunction query);
|
|
|
|
void gst_pad_set_query_type_function (GstPad *pad, GstPadQueryTypeFunction type_func);
|
|
|
|
G_CONST_RETURN GstQueryType*
|
|
|
|
gst_pad_get_query_types (GstPad *pad);
|
|
|
|
G_CONST_RETURN GstQueryType*
|
|
|
|
gst_pad_get_query_types_default (GstPad *pad);
|
|
|
|
gboolean gst_pad_query (GstPad *pad, GstQueryType type,
|
|
|
|
GstFormat *format, gint64 *value);
|
2005-01-13 15:29:40 +00:00
|
|
|
gboolean gst_pad_query_default (GstPad *pad, GstQueryType type,
|
|
|
|
GstFormat *format, gint64 *value);
|
2004-03-15 14:43:35 +00:00
|
|
|
|
|
|
|
void gst_pad_set_internal_link_function (GstPad *pad, GstPadIntLinkFunction intlink);
|
|
|
|
GList* gst_pad_get_internal_links (GstPad *pad);
|
2005-01-13 15:29:40 +00:00
|
|
|
GList* gst_pad_get_internal_links_default (GstPad *pad);
|
|
|
|
|
2002-07-24 21:04:50 +00:00
|
|
|
/* misc helper functions */
|
2005-01-13 15:29:40 +00:00
|
|
|
gboolean gst_pad_dispatcher (GstPad *pad, GstPadDispatcherFunction dispatch,
|
2004-03-15 14:43:35 +00:00
|
|
|
gpointer data);
|
2001-11-14 21:08:44 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/* probes */
|
2002-11-02 13:31:31 +00:00
|
|
|
#define gst_pad_add_probe(pad, probe) \
|
2005-01-13 15:29:40 +00:00
|
|
|
(gst_probe_dispatcher_add_probe (&(GST_PAD_REALIZE (pad)->probedisp), probe))
|
2002-11-02 13:31:31 +00:00
|
|
|
#define gst_pad_remove_probe(pad, probe) \
|
2005-01-13 15:29:40 +00:00
|
|
|
(gst_probe_dispatcher_remove_probe (&(GST_PAD_REALIZE (pad)->probedisp), probe))
|
2001-08-06 20:37:21 +00:00
|
|
|
|
2001-10-17 10:21:27 +00:00
|
|
|
#ifndef GST_DISABLE_LOADSAVE
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_pad_load_and_link (xmlNodePtr self, GstObject *parent);
|
2001-10-17 10:21:27 +00:00
|
|
|
#endif
|
2000-01-30 09:03:00 +00:00
|
|
|
|
|
|
|
|
2001-01-20 02:57:46 +00:00
|
|
|
/* ghostpads */
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPad* gst_ghost_pad_new (const gchar *name, GstPad *pad);
|
2001-01-19 02:23:35 +00:00
|
|
|
|
|
|
|
|
2000-12-28 00:18:26 +00:00
|
|
|
/* templates and factories */
|
2004-03-15 14:43:35 +00:00
|
|
|
GType gst_pad_template_get_type (void);
|
2000-12-28 00:18:26 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
|
2005-01-13 15:29:40 +00:00
|
|
|
GstPadDirection direction, GstPadPresence presence,
|
2004-03-15 14:43:35 +00:00
|
|
|
GstCaps *caps);
|
2003-06-10 18:23:51 +00:00
|
|
|
|
2004-03-30 07:36:19 +00:00
|
|
|
GstPadTemplate * gst_static_pad_template_get (GstStaticPadTemplate *pad_template);
|
gst/: Make gst_caps_replace() work like other _replace() functions.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_base_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_chain_unlocked):
* gst/base/gsttypefindhelper.c: (helper_find_suggest),
(gst_type_find_helper):
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_have_type), (gst_type_find_element_init),
(stop_typefinding), (gst_type_find_element_handle_event),
(find_suggest), (gst_type_find_element_chain),
(gst_type_find_element_checkgetrange),
(gst_type_find_element_getrange), (do_typefind),
(gst_type_find_element_activate):
* gst/gstbuffer.c: (_gst_buffer_sub_free),
(gst_buffer_default_free), (gst_buffer_default_copy),
(gst_buffer_set_caps):
* gst/gstcaps.c: (gst_caps_ref), (gst_caps_unref),
(gst_caps_replace):
* gst/gstmessage.c: (gst_message_new),
(gst_message_new_state_changed):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_set_checkgetrange_function),
(gst_pad_link_prepare_filtered), (gst_pad_relink_filtered),
(gst_pad_set_caps), (gst_pad_check_pull_range),
(gst_pad_pull_range), (gst_static_pad_template_get_caps):
* gst/gstpad.h:
* gst/gsttypefind.c: (gst_type_find_register):
Make gst_caps_replace() work like other _replace() functions.
Use _caps_replace() where possible.
Make sure _message_new() initialises its field.
Add gst_static_pad_template_get_caps()
2005-04-20 09:10:42 +00:00
|
|
|
GstCaps* gst_static_pad_template_get_caps (GstStaticPadTemplate *templ);
|
gst/: Simplify pad activation.
Original commit message from CVS:
* gst/base/Makefile.am:
* gst/base/README:
* gst/base/gstbasesink.c: (gst_basesink_get_type),
(gst_basesink_base_init), (gst_basesink_class_init),
(gst_basesink_pad_getcaps), (gst_basesink_init),
(gst_basesink_activate), (gst_basesink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasetransform.c: (gst_base_transform_get_type),
(gst_base_transform_base_init), (gst_base_transform_finalize),
(gst_base_transform_class_init), (gst_base_transform_init),
(gst_base_transform_proxy_getcaps), (gst_base_transform_setcaps),
(gst_base_transform_event), (gst_base_transform_getrange),
(gst_base_transform_chain), (gst_base_transform_handle_buffer),
(gst_base_transform_set_property),
(gst_base_transform_get_property),
(gst_base_transform_sink_activate),
(gst_base_transform_src_activate),
(gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/elements/gstidentity.c: (gst_identity_finalize),
(gst_identity_class_init), (gst_identity_init),
(gst_identity_event), (gst_identity_check_perfect),
(gst_identity_transform), (gst_identity_set_property),
(gst_identity_get_property), (gst_identity_change_state):
* gst/elements/gstidentity.h:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_lost_state), (gst_element_pads_activate):
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active),
(gst_pad_check_pull_range), (gst_pad_pull_range):
* gst/gstpad.h:
Simplify pad activation.
Added function to check if pull_range can be performed.
Error out when pulling inactive or flushing pads.
Removed const from refcounted types as it does not make sense.
Simplify pad templates in basesink
Added base class for simple 1-to-1 transforms.
Make identity subclass the base transform.
2005-03-29 16:18:12 +00:00
|
|
|
GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
|
2000-12-12 19:29:43 +00:00
|
|
|
|
2003-02-10 20:32:32 +00:00
|
|
|
#ifndef GST_DISABLE_LOADSAVE
|
2005-01-13 15:29:40 +00:00
|
|
|
xmlNodePtr gst_ghost_pad_save_thyself (GstPad *pad,
|
|
|
|
xmlNodePtr parent);
|
2003-02-10 20:32:32 +00:00
|
|
|
#endif
|
2001-05-25 21:00:07 +00:00
|
|
|
|
gst/gstpad.c: implement enforcing discont events before buffers are passed. This allows state changes of only some el...
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_new),
(gst_pad_link_free), (gst_pad_link_try), (_invent_event),
(gst_pad_pull):
implement enforcing discont events before buffers are passed. This
allows state changes of only some elements and later correctly going
on where they left off (or in short: you can now set audio sinks to
NULL to release the device when the pipeline is paused)
* gst/gstpad.c: (gst_pad_call_chain_function),
(gst_pad_call_get_function):
* gst/gstpad.h:
add gst_pad_call_chain_function and gst_pad_call_get_function for
scheduler interaction. They are required because of the changes
above.
* gst/schedulers/entryscheduler.c: (get_buffer),
(gst_entry_scheduler_chain_wrapper),
(gst_entry_scheduler_get_wrapper),
(gst_entry_scheduler_state_transition),
(gst_entry_scheduler_pad_link):
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_chain_wrapper),
(gst_basic_scheduler_src_wrapper),
(gst_basic_scheduler_chainhandler_proxy),
(gst_basic_scheduler_gethandler_proxy),
(gst_basic_scheduler_cothreaded_chain),
(gst_basic_scheduler_chain_elements):
* gst/schedulers/gstoptimalscheduler.c:
(get_group_schedule_function), (pad_clear_queued),
(gst_opt_scheduler_pad_link):
use the new functions instead of calling get/chain-functions
directly.
2004-04-16 01:36:37 +00:00
|
|
|
|
2002-07-08 19:22:02 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2001-01-29 00:06:02 +00:00
|
|
|
#endif /* __GST_PAD_H__ */
|