Blame gst/gstpad.h

Packit Service 963350
/* GStreamer
Packit Service 963350
 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
Packit Service 963350
 *                    2000 Wim Taymans <wim.taymans@chello.be>
Packit Service 963350
 *
Packit Service 963350
 * gstpad.h: Header for GstPad object
Packit Service 963350
 *
Packit Service 963350
 * This library is free software; you can redistribute it and/or
Packit Service 963350
 * modify it under the terms of the GNU Library General Public
Packit Service 963350
 * License as published by the Free Software Foundation; either
Packit Service 963350
 * version 2 of the License, or (at your option) any later version.
Packit Service 963350
 *
Packit Service 963350
 * This library is distributed in the hope that it will be useful,
Packit Service 963350
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 963350
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 963350
 * Library General Public License for more details.
Packit Service 963350
 *
Packit Service 963350
 * You should have received a copy of the GNU Library General Public
Packit Service 963350
 * License along with this library; if not, write to the
Packit Service 963350
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit Service 963350
 * Boston, MA 02110-1301, USA.
Packit Service 963350
 */
Packit Service 963350
Packit Service 963350
Packit Service 963350
#ifndef __GST_PAD_H__
Packit Service 963350
#define __GST_PAD_H__
Packit Service 963350
Packit Service 963350
#include <gst/gstconfig.h>
Packit Service 963350
Packit Service 963350
typedef struct _GstPad GstPad;
Packit Service 963350
typedef struct _GstPadPrivate GstPadPrivate;
Packit Service 963350
typedef struct _GstPadClass GstPadClass;
Packit Service 963350
typedef struct _GstPadProbeInfo GstPadProbeInfo;
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadDirection:
Packit Service 963350
 * @GST_PAD_UNKNOWN: direction is unknown.
Packit Service 963350
 * @GST_PAD_SRC: the pad is a source pad.
Packit Service 963350
 * @GST_PAD_SINK: the pad is a sink pad.
Packit Service 963350
 *
Packit Service 963350
 * The direction of a pad.
Packit Service 963350
 */
Packit Service 963350
typedef enum {
Packit Service 963350
  GST_PAD_UNKNOWN,
Packit Service 963350
  GST_PAD_SRC,
Packit Service 963350
  GST_PAD_SINK
Packit Service 963350
} GstPadDirection;
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadMode:
Packit Service 963350
 * @GST_PAD_MODE_NONE: Pad will not handle dataflow
Packit Service 963350
 * @GST_PAD_MODE_PUSH: Pad handles dataflow in downstream push mode
Packit Service 963350
 * @GST_PAD_MODE_PULL: Pad handles dataflow in upstream pull mode
Packit Service 963350
 *
Packit Service 963350
 * The status of a GstPad. After activating a pad, which usually happens when the
Packit Service 963350
 * parent element goes from READY to PAUSED, the GstPadMode defines if the
Packit Service 963350
 * pad operates in push or pull mode.
Packit Service 963350
 */
Packit Service 963350
typedef enum {
Packit Service 963350
  GST_PAD_MODE_NONE,
Packit Service 963350
  GST_PAD_MODE_PUSH,
Packit Service 963350
  GST_PAD_MODE_PULL
Packit Service 963350
} GstPadMode;
Packit Service 963350
Packit Service 963350
#include <glib.h>
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
const gchar   * gst_pad_mode_get_name (GstPadMode mode);
Packit Service 963350
Packit Service 963350
#include <gst/gstobject.h>
Packit Service 963350
#include <gst/gstbuffer.h>
Packit Service 963350
#include <gst/gstbufferlist.h>
Packit Service 963350
#include <gst/gstcaps.h>
Packit Service 963350
#include <gst/gstpadtemplate.h>
Packit Service 963350
#include <gst/gstevent.h>
Packit Service 963350
#include <gst/gstquery.h>
Packit Service 963350
#include <gst/gsttask.h>
Packit Service 963350
Packit Service 963350
G_BEGIN_DECLS
Packit Service 963350
Packit Service 963350
/*
Packit Service 963350
 * Pad base class
Packit Service 963350
 */
Packit Service 963350
#define GST_TYPE_PAD			(gst_pad_get_type ())
Packit Service 963350
#define GST_IS_PAD(obj)			(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD))
Packit Service 963350
#define GST_IS_PAD_CLASS(klass)		(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD))
Packit Service 963350
#define GST_PAD(obj)			(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD, GstPad))
Packit Service 963350
#define GST_PAD_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD, GstPadClass))
Packit Service 963350
#define GST_PAD_CAST(obj)		((GstPad*)(obj))
Packit Service 963350
Packit Service 963350
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadLinkReturn:
Packit Service 963350
 * @GST_PAD_LINK_OK		: link succeeded
Packit Service 963350
 * @GST_PAD_LINK_WRONG_HIERARCHY: pads have no common grandparent
Packit Service 963350
 * @GST_PAD_LINK_WAS_LINKED	: pad was already linked
Packit Service 963350
 * @GST_PAD_LINK_WRONG_DIRECTION: pads have wrong direction
Packit Service 963350
 * @GST_PAD_LINK_NOFORMAT	: pads do not have common format
Packit Service 963350
 * @GST_PAD_LINK_NOSCHED	: pads cannot cooperate in scheduling
Packit Service 963350
 * @GST_PAD_LINK_REFUSED	: refused for some reason
Packit Service 963350
 *
Packit Service 963350
 * Result values from gst_pad_link and friends.
Packit Service 963350
 */
Packit Service 963350
typedef enum {
Packit Service 963350
  GST_PAD_LINK_OK               =  0,
Packit Service 963350
  GST_PAD_LINK_WRONG_HIERARCHY  = -1,
Packit Service 963350
  GST_PAD_LINK_WAS_LINKED       = -2,
Packit Service 963350
  GST_PAD_LINK_WRONG_DIRECTION  = -3,
Packit Service 963350
  GST_PAD_LINK_NOFORMAT         = -4,
Packit Service 963350
  GST_PAD_LINK_NOSCHED          = -5,
Packit Service 963350
  GST_PAD_LINK_REFUSED          = -6
Packit Service 963350
} GstPadLinkReturn;
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_LINK_FAILED:
Packit Service 963350
 * @ret: the #GstPadLinkReturn value
Packit Service 963350
 *
Packit Service 963350
 * Macro to test if the given #GstPadLinkReturn value indicates a failed
Packit Service 963350
 * link step.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_LINK_FAILED(ret) ((ret) < GST_PAD_LINK_OK)
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_LINK_SUCCESSFUL:
Packit Service 963350
 * @ret: the #GstPadLinkReturn value
Packit Service 963350
 *
Packit Service 963350
 * Macro to test if the given #GstPadLinkReturn value indicates a successful
Packit Service 963350
 * link step.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_LINK_SUCCESSFUL(ret) ((ret) >= GST_PAD_LINK_OK)
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstFlowReturn:
Packit Service 963350
 * @GST_FLOW_OK:		 Data passing was ok.
Packit Service 963350
 * @GST_FLOW_NOT_LINKED:	 Pad is not linked.
Packit Service 963350
 * @GST_FLOW_FLUSHING:	         Pad is flushing.
Packit Service 963350
 * @GST_FLOW_EOS:                Pad is EOS.
Packit Service 963350
 * @GST_FLOW_NOT_NEGOTIATED:	 Pad is not negotiated.
Packit Service 963350
 * @GST_FLOW_ERROR:		 Some (fatal) error occurred. Element generating
Packit Service 963350
 *                               this error should post an error message with more
Packit Service 963350
 *                               details.
Packit Service 963350
 * @GST_FLOW_NOT_SUPPORTED:	 This operation is not supported.
Packit Service 963350
 * @GST_FLOW_CUSTOM_SUCCESS:	 Elements can use values starting from
Packit Service 963350
 *                               this (and higher) to define custom success
Packit Service 963350
 *                               codes.
Packit Service 963350
 * @GST_FLOW_CUSTOM_SUCCESS_1:	 Pre-defined custom success code (define your
Packit Service 963350
 *                               custom success code to this to avoid compiler
Packit Service 963350
 *                               warnings).
Packit Service 963350
 * @GST_FLOW_CUSTOM_SUCCESS_2:	 Pre-defined custom success code.
Packit Service 963350
 * @GST_FLOW_CUSTOM_ERROR:	 Elements can use values starting from
Packit Service 963350
 *                               this (and lower) to define custom error codes.
Packit Service 963350
 * @GST_FLOW_CUSTOM_ERROR_1:	 Pre-defined custom error code (define your
Packit Service 963350
 *                               custom error code to this to avoid compiler
Packit Service 963350
 *                               warnings).
Packit Service 963350
 * @GST_FLOW_CUSTOM_ERROR_2:	 Pre-defined custom error code.
Packit Service 963350
 *
Packit Service 963350
 * The result of passing data to a pad.
Packit Service 963350
 *
Packit Service 963350
 * Note that the custom return values should not be exposed outside of the
Packit Service 963350
 * element scope.
Packit Service 963350
 */
Packit Service 963350
typedef enum {
Packit Service 963350
  /* custom success starts here */
Packit Service 963350
  GST_FLOW_CUSTOM_SUCCESS_2 = 102,
Packit Service 963350
  GST_FLOW_CUSTOM_SUCCESS_1 = 101,
Packit Service 963350
  GST_FLOW_CUSTOM_SUCCESS = 100,
Packit Service 963350
Packit Service 963350
  /* core predefined */
Packit Service 963350
  GST_FLOW_OK		  =  0,
Packit Service 963350
  /* expected failures */
Packit Service 963350
  GST_FLOW_NOT_LINKED     = -1,
Packit Service 963350
  GST_FLOW_FLUSHING       = -2,
Packit Service 963350
  /* error cases */
Packit Service 963350
  GST_FLOW_EOS            = -3,
Packit Service 963350
  GST_FLOW_NOT_NEGOTIATED = -4,
Packit Service 963350
  GST_FLOW_ERROR	  = -5,
Packit Service 963350
  GST_FLOW_NOT_SUPPORTED  = -6,
Packit Service 963350
Packit Service 963350
  /* custom error starts here */
Packit Service 963350
  GST_FLOW_CUSTOM_ERROR   = -100,
Packit Service 963350
  GST_FLOW_CUSTOM_ERROR_1 = -101,
Packit Service 963350
  GST_FLOW_CUSTOM_ERROR_2 = -102
Packit Service 963350
} GstFlowReturn;
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
const gchar *         gst_flow_get_name (GstFlowReturn ret);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GQuark                gst_flow_to_quark (GstFlowReturn ret);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
const gchar *         gst_pad_link_get_name (GstPadLinkReturn ret);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadLinkCheck:
Packit Service 963350
 * @GST_PAD_LINK_CHECK_NOTHING: Don't check hierarchy or caps compatibility.
Packit Service 963350
 * @GST_PAD_LINK_CHECK_HIERARCHY: Check the pads have same parents/grandparents.
Packit Service 963350
 *   Could be omitted if it is already known that the two elements that own the
Packit Service 963350
 *   pads are in the same bin.
Packit Service 963350
 * @GST_PAD_LINK_CHECK_TEMPLATE_CAPS: Check if the pads are compatible by using
Packit Service 963350
 *   their template caps. This is much faster than @GST_PAD_LINK_CHECK_CAPS, but
Packit Service 963350
 *   would be unsafe e.g. if one pad has %GST_CAPS_ANY.
Packit Service 963350
 * @GST_PAD_LINK_CHECK_CAPS: Check if the pads are compatible by comparing the
Packit Service 963350
 *   caps returned by gst_pad_query_caps().
Packit Service 963350
 * @GST_PAD_LINK_CHECK_NO_RECONFIGURE: Disables pushing a reconfigure event when pads are
Packit Service 963350
 *   linked.
Packit Service 963350
 * @GST_PAD_LINK_CHECK_DEFAULT: The default checks done when linking
Packit Service 963350
 *   pads (i.e. the ones used by gst_pad_link()).
Packit Service 963350
 *
Packit Service 963350
 * The amount of checking to be done when linking pads. @GST_PAD_LINK_CHECK_CAPS
Packit Service 963350
 * and @GST_PAD_LINK_CHECK_TEMPLATE_CAPS are mutually exclusive. If both are
Packit Service 963350
 * specified, expensive but safe @GST_PAD_LINK_CHECK_CAPS are performed.
Packit Service 963350
 *
Packit Service 963350
 * > Only disable some of the checks if you are 100% certain you know the link
Packit Service 963350
 * > will not fail because of hierarchy/caps compatibility failures. If uncertain,
Packit Service 963350
 * > use the default checks (%GST_PAD_LINK_CHECK_DEFAULT) or the regular methods
Packit Service 963350
 * > for linking the pads.
Packit Service 963350
 */
Packit Service 963350
Packit Service 963350
typedef enum {
Packit Service 963350
  GST_PAD_LINK_CHECK_NOTHING       = 0,
Packit Service 963350
  GST_PAD_LINK_CHECK_HIERARCHY     = 1 << 0,
Packit Service 963350
  GST_PAD_LINK_CHECK_TEMPLATE_CAPS = 1 << 1,
Packit Service 963350
  GST_PAD_LINK_CHECK_CAPS          = 1 << 2,
Packit Service 963350
Packit Service 963350
Packit Service 963350
  /* Not really checks, more like flags
Packit Service 963350
   * Added here to avoid creating a new gst_pad_link_variant */
Packit Service 963350
  GST_PAD_LINK_CHECK_NO_RECONFIGURE = 1 << 3,
Packit Service 963350
Packit Service 963350
  GST_PAD_LINK_CHECK_DEFAULT       = GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS
Packit Service 963350
} GstPadLinkCheck;
Packit Service 963350
Packit Service 963350
/* pad states */
Packit Service 963350
/**
Packit Service 963350
 * GstPadActivateFunction:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 * @parent: the parent of @pad
Packit Service 963350
 *
Packit Service 963350
 * This function is called when the pad is activated during the element
Packit Service 963350
 * READY to PAUSED state change. By default this function will call the
Packit Service 963350
 * activate function that puts the pad in push mode but elements can
Packit Service 963350
 * override this function to activate the pad in pull mode if they wish.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad could be activated.
Packit Service 963350
 */
Packit Service 963350
typedef gboolean		(*GstPadActivateFunction)	(GstPad *pad, GstObject *parent);
Packit Service 963350
/**
Packit Service 963350
 * GstPadActivateModeFunction:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 * @parent: the parent of @pad
Packit Service 963350
 * @mode: the requested activation mode of @pad
Packit Service 963350
 * @active: activate or deactivate the pad.
Packit Service 963350
 *
Packit Service 963350
 * The prototype of the push and pull activate functions.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad could be activated or deactivated.
Packit Service 963350
 */
Packit Service 963350
typedef gboolean		(*GstPadActivateModeFunction)	(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstPadMode mode, gboolean active);
Packit Service 963350
Packit Service 963350
Packit Service 963350
/* data passing */
Packit Service 963350
/**
Packit Service 963350
 * GstPadChainFunction:
Packit Service 963350
 * @pad: the sink #GstPad that performed the chain.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @buffer: (transfer full): the #GstBuffer that is chained, not %NULL.
Packit Service 963350
 *
Packit Service 963350
 * A function that will be called on sinkpads when chaining buffers.
Packit Service 963350
 * The function typically processes the data contained in the buffer and
Packit Service 963350
 * either consumes the data or passes it on to the internally linked pad(s).
Packit Service 963350
 *
Packit Service 963350
 * The implementer of this function receives a refcount to @buffer and should
Packit Service 963350
 * gst_buffer_unref() when the buffer is no longer needed.
Packit Service 963350
 *
Packit Service 963350
 * When a chain function detects an error in the data stream, it must post an
Packit Service 963350
 * error on the bus and return an appropriate #GstFlowReturn value.
Packit Service 963350
 *
Packit Service 963350
 * Returns: #GST_FLOW_OK for success
Packit Service 963350
 */
Packit Service 963350
typedef GstFlowReturn		(*GstPadChainFunction)		(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstBuffer *buffer);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadChainListFunction:
Packit Service 963350
 * @pad: the sink #GstPad that performed the chain.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @list: (transfer full): the #GstBufferList that is chained, not %NULL.
Packit Service 963350
 *
Packit Service 963350
 * A function that will be called on sinkpads when chaining buffer lists.
Packit Service 963350
 * The function typically processes the data contained in the buffer list and
Packit Service 963350
 * either consumes the data or passes it on to the internally linked pad(s).
Packit Service 963350
 *
Packit Service 963350
 * The implementer of this function receives a refcount to @list and
Packit Service 963350
 * should gst_buffer_list_unref() when the list is no longer needed.
Packit Service 963350
 *
Packit Service 963350
 * When a chainlist function detects an error in the data stream, it must
Packit Service 963350
 * post an error on the bus and return an appropriate #GstFlowReturn value.
Packit Service 963350
 *
Packit Service 963350
 * Returns: #GST_FLOW_OK for success
Packit Service 963350
 */
Packit Service 963350
typedef GstFlowReturn		(*GstPadChainListFunction)	(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstBufferList *list);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadGetRangeFunction:
Packit Service 963350
 * @pad: the src #GstPad to perform the getrange on.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @offset: the offset of the range
Packit Service 963350
 * @length: the length of the range
Packit Service 963350
 * @buffer: a memory location to hold the result buffer, cannot be %NULL.
Packit Service 963350
 *
Packit Service 963350
 * This function will be called on source pads when a peer element
Packit Service 963350
 * request a buffer at the specified @offset and @length. If this function
Packit Service 963350
 * returns #GST_FLOW_OK, the result buffer will be stored in @buffer. The
Packit Service 963350
 * contents of @buffer is invalid for any other return value.
Packit Service 963350
 *
Packit Service 963350
 * This function is installed on a source pad with
Packit Service 963350
 * gst_pad_set_getrange_function() and can only be called on source pads after
Packit Service 963350
 * they are successfully activated with gst_pad_activate_mode() with the
Packit Service 963350
 * #GST_PAD_MODE_PULL.
Packit Service 963350
 *
Packit Service 963350
 * @offset and @length are always given in byte units. @offset must normally be a value
Packit Service 963350
 * between 0 and the length in bytes of the data available on @pad. The
Packit Service 963350
 * length (duration in bytes) can be retrieved with a #GST_QUERY_DURATION or with a
Packit Service 963350
 * #GST_QUERY_SEEKING.
Packit Service 963350
 *
Packit Service 963350
 * Any @offset larger or equal than the length will make the function return
Packit Service 963350
 * #GST_FLOW_EOS, which corresponds to EOS. In this case @buffer does not
Packit Service 963350
 * contain a valid buffer.
Packit Service 963350
 *
Packit Service 963350
 * The buffer size of @buffer will only be smaller than @length when @offset is
Packit Service 963350
 * near the end of the stream. In all other cases, the size of @buffer must be
Packit Service 963350
 * exactly the requested size.
Packit Service 963350
 *
Packit Service 963350
 * It is allowed to call this function with a 0 @length and valid @offset, in
Packit Service 963350
 * which case @buffer will contain a 0-sized buffer and the function returns
Packit Service 963350
 * #GST_FLOW_OK.
Packit Service 963350
 *
Packit Service 963350
 * When this function is called with a -1 @offset, the sequentially next buffer
Packit Service 963350
 * of length @length in the stream is returned.
Packit Service 963350
 *
Packit Service 963350
 * When this function is called with a -1 @length, a buffer with a default
Packit Service 963350
 * optimal length is returned in @buffer. The length might depend on the value
Packit Service 963350
 * of @offset.
Packit Service 963350
 *
Packit Service 963350
 * Returns: #GST_FLOW_OK for success and a valid buffer in @buffer. Any other
Packit Service 963350
 * return value leaves @buffer undefined.
Packit Service 963350
 */
Packit Service 963350
typedef GstFlowReturn		(*GstPadGetRangeFunction)	(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 guint64 offset, guint length,
Packit Service 963350
                                                                 GstBuffer **buffer);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadEventFunction:
Packit Service 963350
 * @pad: the #GstPad to handle the event.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @event: (transfer full): the #GstEvent to handle.
Packit Service 963350
 *
Packit Service 963350
 * Function signature to handle an event for the pad.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad could handle the event.
Packit Service 963350
 */
Packit Service 963350
typedef gboolean		(*GstPadEventFunction)		(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstEvent *event);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadEventFullFunction:
Packit Service 963350
 * @pad: the #GstPad to handle the event.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @event: (transfer full): the #GstEvent to handle.
Packit Service 963350
 *
Packit Service 963350
 * Function signature to handle an event for the pad.
Packit Service 963350
 *
Packit Service 963350
 * This variant is for specific elements that will take into account the
Packit Service 963350
 * last downstream flow return (from a pad push), in which case they can
Packit Service 963350
 * return it.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %GST_FLOW_OK if the event was handled properly, or any other
Packit Service 963350
 * #GstFlowReturn dependent on downstream state.
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.8
Packit Service 963350
 */
Packit Service 963350
typedef GstFlowReturn		(*GstPadEventFullFunction)	(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstEvent *event);
Packit Service 963350
Packit Service 963350
Packit Service 963350
/* internal links */
Packit Service 963350
/**
Packit Service 963350
 * GstPadIterIntLinkFunction:
Packit Service 963350
 * @pad: The #GstPad to query.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 *
Packit Service 963350
 * The signature of the internal pad link iterator function.
Packit Service 963350
 *
Packit Service 963350
 * Returns: a new #GstIterator that will iterate over all pads that are
Packit Service 963350
 * linked to the given pad on the inside of the parent element.
Packit Service 963350
 *
Packit Service 963350
 * the caller must call gst_iterator_free() after usage.
Packit Service 963350
 */
Packit Service 963350
typedef GstIterator*           (*GstPadIterIntLinkFunction)    (GstPad *pad, GstObject *parent);
Packit Service 963350
Packit Service 963350
/* generic query function */
Packit Service 963350
/**
Packit Service 963350
 * GstPadQueryFunction:
Packit Service 963350
 * @pad: the #GstPad to query.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @query: the #GstQuery object to execute
Packit Service 963350
 *
Packit Service 963350
 * The signature of the query function.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the query could be performed.
Packit Service 963350
 */
Packit Service 963350
typedef gboolean		(*GstPadQueryFunction)		(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstQuery *query);
Packit Service 963350
Packit Service 963350
Packit Service 963350
/* linking */
Packit Service 963350
/**
Packit Service 963350
 * GstPadLinkFunction:
Packit Service 963350
 * @pad: the #GstPad that is linked.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 * @peer: the peer #GstPad of the link
Packit Service 963350
 *
Packit Service 963350
 * Function signature to handle a new link on the pad.
Packit Service 963350
 *
Packit Service 963350
 * Returns: the result of the link with the specified peer.
Packit Service 963350
 */
Packit Service 963350
typedef GstPadLinkReturn	(*GstPadLinkFunction)		(GstPad *pad, GstObject *parent, GstPad *peer);
Packit Service 963350
/**
Packit Service 963350
 * GstPadUnlinkFunction:
Packit Service 963350
 * @pad: the #GstPad that is linked.
Packit Service 963350
 * @parent: (allow-none): the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT
Packit Service 963350
 *          flag is set, @parent is guaranteed to be not-%NULL and remain valid
Packit Service 963350
 *          during the execution of this function.
Packit Service 963350
 *
Packit Service 963350
 * Function signature to handle a unlinking the pad prom its peer.
Packit Service 963350
 */
Packit Service 963350
typedef void			(*GstPadUnlinkFunction)		(GstPad *pad, GstObject *parent);
Packit Service 963350
Packit Service 963350
Packit Service 963350
/* misc */
Packit Service 963350
/**
Packit Service 963350
 * GstPadForwardFunction:
Packit Service 963350
 * @pad: the #GstPad that is forwarded.
Packit Service 963350
 * @user_data: the gpointer to optional user data.
Packit Service 963350
 *
Packit Service 963350
 * A forward function is called for all internally linked pads, see
Packit Service 963350
 * gst_pad_forward().
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the dispatching procedure has to be stopped.
Packit Service 963350
 */
Packit Service 963350
typedef gboolean		(*GstPadForwardFunction)	(GstPad *pad, gpointer user_data);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadProbeType:
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_INVALID: invalid probe type
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_IDLE: probe idle pads and block while the callback is called
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BLOCK: probe and block pads
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BUFFER: probe buffers
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BUFFER_LIST: probe buffer lists
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM: probe downstream events
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_EVENT_UPSTREAM: probe upstream events
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_EVENT_FLUSH: probe flush events. This probe has to be
Packit Service 963350
 *     explicitly enabled and is not included in the
Packit Service 963350
 *     @@GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM or
Packit Service 963350
 *     @@GST_PAD_PROBE_TYPE_EVENT_UPSTREAM probe types.
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM: probe downstream queries
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_QUERY_UPSTREAM: probe upstream queries
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_PUSH: probe push
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_PULL: probe pull
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BLOCKING: probe and block at the next opportunity, at data flow or when idle
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM: probe downstream data (buffers, buffer lists, and events)
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_DATA_UPSTREAM: probe upstream data (events)
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_DATA_BOTH: probe upstream and downstream data (buffers, buffer lists, and events)
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM: probe and block downstream data (buffers, buffer lists, and events)
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM: probe and block upstream data (events)
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_EVENT_BOTH: probe upstream and downstream events
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_QUERY_BOTH: probe upstream and downstream queries
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_ALL_BOTH: probe upstream events and queries and downstream buffers, buffer lists, events and queries
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_SCHEDULING: probe push and pull
Packit Service 963350
 *
Packit Service 963350
 * The different probing types that can occur. When either one of
Packit Service 963350
 * @GST_PAD_PROBE_TYPE_IDLE or @GST_PAD_PROBE_TYPE_BLOCK is used, the probe will be a
Packit Service 963350
 * blocking probe.
Packit Service 963350
 */
Packit Service 963350
typedef enum
Packit Service 963350
{
Packit Service 963350
  GST_PAD_PROBE_TYPE_INVALID          = 0,
Packit Service 963350
  /* flags to control blocking */
Packit Service 963350
  GST_PAD_PROBE_TYPE_IDLE             = (1 << 0),
Packit Service 963350
  GST_PAD_PROBE_TYPE_BLOCK            = (1 << 1),
Packit Service 963350
  /* flags to select datatypes */
Packit Service 963350
  GST_PAD_PROBE_TYPE_BUFFER           = (1 << 4),
Packit Service 963350
  GST_PAD_PROBE_TYPE_BUFFER_LIST      = (1 << 5),
Packit Service 963350
  GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = (1 << 6),
Packit Service 963350
  GST_PAD_PROBE_TYPE_EVENT_UPSTREAM   = (1 << 7),
Packit Service 963350
  GST_PAD_PROBE_TYPE_EVENT_FLUSH      = (1 << 8),
Packit Service 963350
  GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM = (1 << 9),
Packit Service 963350
  GST_PAD_PROBE_TYPE_QUERY_UPSTREAM   = (1 << 10),
Packit Service 963350
  /* flags to select scheduling mode */
Packit Service 963350
  GST_PAD_PROBE_TYPE_PUSH             = (1 << 12),
Packit Service 963350
  GST_PAD_PROBE_TYPE_PULL             = (1 << 13),
Packit Service 963350
Packit Service 963350
  /* flag combinations */
Packit Service 963350
  GST_PAD_PROBE_TYPE_BLOCKING         = GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_BLOCK,
Packit Service 963350
  GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM  = GST_PAD_PROBE_TYPE_BUFFER | GST_PAD_PROBE_TYPE_BUFFER_LIST | GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_DATA_UPSTREAM    = GST_PAD_PROBE_TYPE_EVENT_UPSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_DATA_BOTH        = GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM | GST_PAD_PROBE_TYPE_DATA_UPSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM = GST_PAD_PROBE_TYPE_BLOCK | GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM   = GST_PAD_PROBE_TYPE_BLOCK | GST_PAD_PROBE_TYPE_DATA_UPSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_EVENT_BOTH       = GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM | GST_PAD_PROBE_TYPE_EVENT_UPSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_QUERY_BOTH       = GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM | GST_PAD_PROBE_TYPE_QUERY_UPSTREAM,
Packit Service 963350
  GST_PAD_PROBE_TYPE_ALL_BOTH         = GST_PAD_PROBE_TYPE_DATA_BOTH | GST_PAD_PROBE_TYPE_QUERY_BOTH,
Packit Service 963350
  GST_PAD_PROBE_TYPE_SCHEDULING       = GST_PAD_PROBE_TYPE_PUSH | GST_PAD_PROBE_TYPE_PULL
Packit Service 963350
} GstPadProbeType;
Packit Service 963350
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadProbeReturn:
Packit Service 963350
 * @GST_PAD_PROBE_OK: normal probe return value. This leaves the probe in
Packit Service 963350
 *        place, and defers decisions about dropping or passing data to other
Packit Service 963350
 *        probes, if any. If there are no other probes, the default behaviour
Packit Service 963350
 *        for the probe type applies ('block' for blocking probes,
Packit Service 963350
 *        and 'pass' for non-blocking probes).
Packit Service 963350
 * @GST_PAD_PROBE_DROP: drop data in data probes. For push mode this means that
Packit Service 963350
 *        the data item is not sent downstream. For pull mode, it means that
Packit Service 963350
 *        the data item is not passed upstream. In both cases, no other probes
Packit Service 963350
 *        are called for this item and %GST_FLOW_OK or %TRUE is returned to the
Packit Service 963350
 *        caller.
Packit Service 963350
 * @GST_PAD_PROBE_REMOVE: remove this probe.
Packit Service 963350
 * @GST_PAD_PROBE_PASS: pass the data item in the block probe and block on the
Packit Service 963350
 *        next item.
Packit Service 963350
 * @GST_PAD_PROBE_HANDLED: Data has been handled in the probe and will not be
Packit Service 963350
 *        forwarded further. For events and buffers this is the same behaviour as
Packit Service 963350
 *        %GST_PAD_PROBE_DROP (except that in this case you need to unref the buffer
Packit Service 963350
 *        or event yourself). For queries it will also return %TRUE to the caller.
Packit Service 963350
 *        The probe can also modify the #GstFlowReturn value by using the
Packit Service 963350
 *        #GST_PAD_PROBE_INFO_FLOW_RETURN() accessor.
Packit Service 963350
 *        Note that the resulting query must contain valid entries.
Packit Service 963350
 *        Since: 1.6
Packit Service 963350
 *
Packit Service 963350
 * Different return values for the #GstPadProbeCallback.
Packit Service 963350
 */
Packit Service 963350
typedef enum
Packit Service 963350
{
Packit Service 963350
  GST_PAD_PROBE_DROP,
Packit Service 963350
  GST_PAD_PROBE_OK,
Packit Service 963350
  GST_PAD_PROBE_REMOVE,
Packit Service 963350
  GST_PAD_PROBE_PASS,
Packit Service 963350
  GST_PAD_PROBE_HANDLED
Packit Service 963350
} GstPadProbeReturn;
Packit Service 963350
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadProbeInfo:
Packit Service 963350
 * @type: the current probe type
Packit Service 963350
 * @id: the id of the probe
Packit Service 963350
 * @data: (allow-none): type specific data, check the @type field to know the
Packit Service 963350
 *    datatype.  This field can be %NULL.
Packit Service 963350
 * @offset: offset of pull probe, this field is valid when @type contains
Packit Service 963350
 *    #GST_PAD_PROBE_TYPE_PULL
Packit Service 963350
 * @size: size of pull probe, this field is valid when @type contains
Packit Service 963350
 *    #GST_PAD_PROBE_TYPE_PULL
Packit Service 963350
 *
Packit Service 963350
 * Info passed in the #GstPadProbeCallback.
Packit Service 963350
 */
Packit Service 963350
struct _GstPadProbeInfo
Packit Service 963350
{
Packit Service 963350
  GstPadProbeType type;
Packit Service 963350
  gulong id;
Packit Service 963350
  gpointer data;
Packit Service 963350
  guint64 offset;
Packit Service 963350
  guint size;
Packit Service 963350
Packit Service 963350
  /*< private >*/
Packit Service 963350
  union {
Packit Service 963350
    gpointer _gst_reserved[GST_PADDING];
Packit Service 963350
    struct {
Packit Service 963350
      GstFlowReturn flow_ret;
Packit Service 963350
    } abi;
Packit Service 963350
  } ABI;
Packit Service 963350
};
Packit Service 963350
Packit Service 963350
#define GST_PAD_PROBE_INFO_TYPE(d)         ((d)->type)
Packit Service 963350
#define GST_PAD_PROBE_INFO_ID(d)           ((d)->id)
Packit Service 963350
#define GST_PAD_PROBE_INFO_DATA(d)         ((d)->data)
Packit Service 963350
#define GST_PAD_PROBE_INFO_FLOW_RETURN(d)  ((d)->ABI.abi.flow_ret)
Packit Service 963350
Packit Service 963350
#define GST_PAD_PROBE_INFO_BUFFER(d)       GST_BUFFER_CAST(GST_PAD_PROBE_INFO_DATA(d))
Packit Service 963350
#define GST_PAD_PROBE_INFO_BUFFER_LIST(d)  GST_BUFFER_LIST_CAST(GST_PAD_PROBE_INFO_DATA(d))
Packit Service 963350
#define GST_PAD_PROBE_INFO_EVENT(d)        GST_EVENT_CAST(GST_PAD_PROBE_INFO_DATA(d))
Packit Service 963350
#define GST_PAD_PROBE_INFO_QUERY(d)        GST_QUERY_CAST(GST_PAD_PROBE_INFO_DATA(d))
Packit Service 963350
Packit Service 963350
#define GST_PAD_PROBE_INFO_OFFSET(d)       ((d)->offset)
Packit Service 963350
#define GST_PAD_PROBE_INFO_SIZE(d)         ((d)->size)
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstEvent*      gst_pad_probe_info_get_event       (GstPadProbeInfo * info);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstQuery*      gst_pad_probe_info_get_query       (GstPadProbeInfo * info);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstBuffer*     gst_pad_probe_info_get_buffer      (GstPadProbeInfo * info);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstBufferList* gst_pad_probe_info_get_buffer_list (GstPadProbeInfo * info);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadProbeCallback:
Packit Service 963350
 * @pad: the #GstPad that is blocked
Packit Service 963350
 * @info: #GstPadProbeInfo
Packit Service 963350
 * @user_data: the gpointer to optional user data.
Packit Service 963350
 *
Packit Service 963350
 * Callback used by gst_pad_add_probe(). Gets called to notify about the current
Packit Service 963350
 * blocking type.
Packit Service 963350
 *
Packit Service 963350
 * The callback is allowed to modify the data pointer in @info.
Packit Service 963350
 *
Packit Service 963350
 * Returns: a #GstPadProbeReturn
Packit Service 963350
 */
Packit Service 963350
typedef GstPadProbeReturn   (*GstPadProbeCallback)   (GstPad *pad, GstPadProbeInfo *info,
Packit Service 963350
                                                      gpointer user_data);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadStickyEventsForeachFunction:
Packit Service 963350
 * @pad: the #GstPad.
Packit Service 963350
 * @event: (allow-none): a sticky #GstEvent.
Packit Service 963350
 * @user_data: the #gpointer to optional user data.
Packit Service 963350
 *
Packit Service 963350
 * Callback used by gst_pad_sticky_events_foreach().
Packit Service 963350
 *
Packit Service 963350
 * When this function returns %TRUE, the next event will be
Packit Service 963350
 * returned. When %FALSE is returned, gst_pad_sticky_events_foreach() will return.
Packit Service 963350
 *
Packit Service 963350
 * When @event is set to %NULL, the item will be removed from the list of sticky events.
Packit Service 963350
 * @event can be replaced by assigning a new reference to it.
Packit Service 963350
 * This function is responsible for unreffing the old event when
Packit Service 963350
 * removing or modifying.
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the iteration should continue
Packit Service 963350
 */
Packit Service 963350
typedef gboolean  (*GstPadStickyEventsForeachFunction) (GstPad *pad, GstEvent **event,
Packit Service 963350
                                                        gpointer user_data);
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPadFlags:
Packit Service 963350
 * @GST_PAD_FLAG_BLOCKED: is dataflow on a pad blocked
Packit Service 963350
 * @GST_PAD_FLAG_FLUSHING: is pad flushing
Packit Service 963350
 * @GST_PAD_FLAG_EOS: is pad in EOS state
Packit Service 963350
 * @GST_PAD_FLAG_BLOCKING: is pad currently blocking on a buffer or event
Packit Service 963350
 * @GST_PAD_FLAG_NEED_PARENT: ensure that there is a parent object before calling
Packit Service 963350
 *                       into the pad callbacks.
Packit Service 963350
 * @GST_PAD_FLAG_NEED_RECONFIGURE: the pad should be reconfigured/renegotiated.
Packit Service 963350
 *                            The flag has to be unset manually after
Packit Service 963350
 *                            reconfiguration happened.
Packit Service 963350
 * @GST_PAD_FLAG_PENDING_EVENTS: the pad has pending events
Packit Service 963350
 * @GST_PAD_FLAG_FIXED_CAPS: the pad is using fixed caps. This means that
Packit Service 963350
 *     once the caps are set on the pad, the default caps query function
Packit Service 963350
 *     will only return those caps.
Packit Service 963350
 * @GST_PAD_FLAG_PROXY_CAPS: the default event and query handler will forward
Packit Service 963350
 *                      all events and queries to the internally linked pads
Packit Service 963350
 *                      instead of discarding them.
Packit Service 963350
 * @GST_PAD_FLAG_PROXY_ALLOCATION: the default query handler will forward
Packit Service 963350
 *                      allocation queries to the internally linked pads
Packit Service 963350
 *                      instead of discarding them.
Packit Service 963350
 * @GST_PAD_FLAG_PROXY_SCHEDULING: the default query handler will forward
Packit Service 963350
 *                      scheduling queries to the internally linked pads
Packit Service 963350
 *                      instead of discarding them.
Packit Service 963350
 * @GST_PAD_FLAG_ACCEPT_INTERSECT: the default accept-caps handler will check
Packit Service 963350
 *                      it the caps intersect the query-caps result instead
Packit Service 963350
 *                      of checking for a subset. This is interesting for
Packit Service 963350
 *                      parsers that can accept incompletely specified caps.
Packit Service 963350
 * @GST_PAD_FLAG_ACCEPT_TEMPLATE: the default accept-caps handler will use
Packit Service 963350
 *                      the template pad caps instead of query caps to
Packit Service 963350
 *                      compare with the accept caps. Use this in combination
Packit Service 963350
 *                      with %GST_PAD_FLAG_ACCEPT_INTERSECT. (Since 1.6)
Packit Service 963350
 * @GST_PAD_FLAG_LAST: offset to define more flags
Packit Service 963350
 *
Packit Service 963350
 * Pad state flags
Packit Service 963350
 */
Packit Service 963350
typedef enum {
Packit Service 963350
  GST_PAD_FLAG_BLOCKED          = (GST_OBJECT_FLAG_LAST << 0),
Packit Service 963350
  GST_PAD_FLAG_FLUSHING         = (GST_OBJECT_FLAG_LAST << 1),
Packit Service 963350
  GST_PAD_FLAG_EOS              = (GST_OBJECT_FLAG_LAST << 2),
Packit Service 963350
  GST_PAD_FLAG_BLOCKING         = (GST_OBJECT_FLAG_LAST << 3),
Packit Service 963350
  GST_PAD_FLAG_NEED_PARENT      = (GST_OBJECT_FLAG_LAST << 4),
Packit Service 963350
  GST_PAD_FLAG_NEED_RECONFIGURE = (GST_OBJECT_FLAG_LAST << 5),
Packit Service 963350
  GST_PAD_FLAG_PENDING_EVENTS   = (GST_OBJECT_FLAG_LAST << 6),
Packit Service 963350
  GST_PAD_FLAG_FIXED_CAPS       = (GST_OBJECT_FLAG_LAST << 7),
Packit Service 963350
  GST_PAD_FLAG_PROXY_CAPS       = (GST_OBJECT_FLAG_LAST << 8),
Packit Service 963350
  GST_PAD_FLAG_PROXY_ALLOCATION = (GST_OBJECT_FLAG_LAST << 9),
Packit Service 963350
  GST_PAD_FLAG_PROXY_SCHEDULING = (GST_OBJECT_FLAG_LAST << 10),
Packit Service 963350
  GST_PAD_FLAG_ACCEPT_INTERSECT = (GST_OBJECT_FLAG_LAST << 11),
Packit Service 963350
  GST_PAD_FLAG_ACCEPT_TEMPLATE  = (GST_OBJECT_FLAG_LAST << 12),
Packit Service 963350
  /* padding */
Packit Service 963350
  GST_PAD_FLAG_LAST        = (GST_OBJECT_FLAG_LAST << 16)
Packit Service 963350
} GstPadFlags;
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GstPad:
Packit Service 963350
 * @element_private: private data owned by the parent element
Packit Service 963350
 * @padtemplate: padtemplate for this pad
Packit Service 963350
 * @direction: the direction of the pad, cannot change after creating
Packit Service 963350
 *             the pad.
Packit Service 963350
 *
Packit Service 963350
 * The #GstPad structure. Use the functions to update the variables.
Packit Service 963350
 */
Packit Service 963350
struct _GstPad {
Packit Service 963350
  GstObject                      object;
Packit Service 963350
Packit Service 963350
  /*< public >*/
Packit Service 963350
  gpointer                       element_private;
Packit Service 963350
Packit Service 963350
  GstPadTemplate                *padtemplate;
Packit Service 963350
Packit Service 963350
  GstPadDirection                direction;
Packit Service 963350
Packit Service 963350
  /*< private >*/
Packit Service 963350
  /* streaming rec_lock */
Packit Service 963350
  GRecMutex		         stream_rec_lock;
Packit Service 963350
  GstTask			*task;
Packit Service 963350
Packit Service 963350
  /* block cond, mutex is from the object */
Packit Service 963350
  GCond				 block_cond;
Packit Service 963350
  GHookList                      probes;
Packit Service 963350
Packit Service 963350
  GstPadMode		         mode;
Packit Service 963350
  GstPadActivateFunction	 activatefunc;
Packit Service 963350
  gpointer                       activatedata;
Packit Service 963350
  GDestroyNotify                 activatenotify;
Packit Service 963350
  GstPadActivateModeFunction	 activatemodefunc;
Packit Service 963350
  gpointer                       activatemodedata;
Packit Service 963350
  GDestroyNotify                 activatemodenotify;
Packit Service 963350
Packit Service 963350
  /* pad link */
Packit Service 963350
  GstPad			*peer;
Packit Service 963350
  GstPadLinkFunction		 linkfunc;
Packit Service 963350
  gpointer                       linkdata;
Packit Service 963350
  GDestroyNotify                 linknotify;
Packit Service 963350
  GstPadUnlinkFunction		 unlinkfunc;
Packit Service 963350
  gpointer                       unlinkdata;
Packit Service 963350
  GDestroyNotify                 unlinknotify;
Packit Service 963350
Packit Service 963350
  /* data transport functions */
Packit Service 963350
  GstPadChainFunction		 chainfunc;
Packit Service 963350
  gpointer                       chaindata;
Packit Service 963350
  GDestroyNotify                 chainnotify;
Packit Service 963350
  GstPadChainListFunction        chainlistfunc;
Packit Service 963350
  gpointer                       chainlistdata;
Packit Service 963350
  GDestroyNotify                 chainlistnotify;
Packit Service 963350
  GstPadGetRangeFunction	 getrangefunc;
Packit Service 963350
  gpointer                       getrangedata;
Packit Service 963350
  GDestroyNotify                 getrangenotify;
Packit Service 963350
  GstPadEventFunction		 eventfunc;
Packit Service 963350
  gpointer                       eventdata;
Packit Service 963350
  GDestroyNotify                 eventnotify;
Packit Service 963350
Packit Service 963350
  /* pad offset */
Packit Service 963350
  gint64                         offset;
Packit Service 963350
Packit Service 963350
  /* generic query method */
Packit Service 963350
  GstPadQueryFunction		 queryfunc;
Packit Service 963350
  gpointer                       querydata;
Packit Service 963350
  GDestroyNotify                 querynotify;
Packit Service 963350
Packit Service 963350
  /* internal links */
Packit Service 963350
  GstPadIterIntLinkFunction      iterintlinkfunc;
Packit Service 963350
  gpointer                       iterintlinkdata;
Packit Service 963350
  GDestroyNotify                 iterintlinknotify;
Packit Service 963350
Packit Service 963350
  /* counts number of probes attached. */
Packit Service 963350
  gint				 num_probes;
Packit Service 963350
  gint				 num_blocked;
Packit Service 963350
Packit Service 963350
  GstPadPrivate                 *priv;
Packit Service 963350
Packit Service 963350
  union {
Packit Service 963350
    gpointer _gst_reserved[GST_PADDING];
Packit Service 963350
    struct {
Packit Service 963350
      GstFlowReturn last_flowret;
Packit Service 963350
      GstPadEventFullFunction eventfullfunc;
Packit Service 963350
    } abi;
Packit Service 963350
  } ABI;
Packit Service 963350
};
Packit Service 963350
Packit Service 963350
struct _GstPadClass {
Packit Service 963350
  GstObjectClass	parent_class;
Packit Service 963350
Packit Service 963350
  /* signal callbacks */
Packit Service 963350
  void		(*linked)		(GstPad *pad, GstPad *peer);
Packit Service 963350
  void		(*unlinked)		(GstPad *pad, GstPad *peer);
Packit Service 963350
Packit Service 963350
  /*< private >*/
Packit Service 963350
  gpointer _gst_reserved[GST_PADDING];
Packit Service 963350
};
Packit Service 963350
Packit Service 963350
Packit Service 963350
/***** helper macros *****/
Packit Service 963350
/* GstPad */
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_NAME:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get name of the given pad.
Packit Service 963350
 * No locking is performed in this function, use gst_pad_get_name() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_NAME(pad)		(GST_OBJECT_NAME(pad))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_PARENT:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the @pad parent.
Packit Service 963350
 * No locking is performed in this function, use gst_pad_get_parent() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_PARENT(pad)		(GST_ELEMENT_CAST(GST_OBJECT_PARENT(pad)))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_ELEMENT_PRIVATE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the private data of @pad, which is usually some pad- or stream-specific
Packit Service 963350
 * structure created by the element and set on the pad when creating it.
Packit Service 963350
 * No locking is performed in this function.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_ELEMENT_PRIVATE(pad)    (GST_PAD_CAST(pad)->element_private)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_PAD_TEMPLATE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the @pad #GstPadTemplate. It describes the possible media types
Packit Service 963350
 * a @pad or an element factory can handle.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_PAD_TEMPLATE(pad)	(GST_PAD_CAST(pad)->padtemplate)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_DIRECTION:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadDirection of the given @pad. Accessor macro, use
Packit Service 963350
 * gst_pad_get_direction() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_DIRECTION(pad)		(GST_PAD_CAST(pad)->direction)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_TASK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstTask of @pad. Accessor macro used by GStreamer. Use the
Packit Service 963350
 * gst_pad_start_task(), gst_pad_stop_task() and gst_pad_pause_task()
Packit Service 963350
 * functions instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_TASK(pad)		(GST_PAD_CAST(pad)->task)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_MODE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadMode of pad, which will be GST_PAD_MODE_NONE if the pad
Packit Service 963350
 * has not been activated yet, and otherwise either GST_PAD_MODE_PUSH or
Packit Service 963350
 * GST_PAD_MODE_PULL depending on which mode the pad was activated in.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_MODE(pad)	        (GST_PAD_CAST(pad)->mode)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_ACTIVATEFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadActivateFunction from @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_ACTIVATEFUNC(pad)	(GST_PAD_CAST(pad)->activatefunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_ACTIVATEMODEFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadActivateModeFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_ACTIVATEMODEFUNC(pad)	(GST_PAD_CAST(pad)->activatemodefunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_CHAINFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadChainFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_CHAINFUNC(pad)		(GST_PAD_CAST(pad)->chainfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_CHAINLISTFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadChainListFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_CHAINLISTFUNC(pad)      (GST_PAD_CAST(pad)->chainlistfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_GETRANGEFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadGetRangeFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_GETRANGEFUNC(pad)	(GST_PAD_CAST(pad)->getrangefunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_EVENTFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadEventFunction from the given @pad, which
Packit Service 963350
 * is the function that handles events on the pad. You can
Packit Service 963350
 * use this to set your own event handling function on a pad
Packit Service 963350
 * after you create it.  If your element derives from a base
Packit Service 963350
 * class, use the base class's virtual functions instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_EVENTFUNC(pad)		(GST_PAD_CAST(pad)->eventfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_EVENTFULLFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadEventFullFunction from the given @pad, which
Packit Service 963350
 * is the function that handles events on the pad. You can
Packit Service 963350
 * use this to set your own event handling function on a pad
Packit Service 963350
 * after you create it.  If your element derives from a base
Packit Service 963350
 * class, use the base class's virtual functions instead.
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.8
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_EVENTFULLFUNC(pad)	(GST_PAD_CAST(pad)->ABI.abi.eventfullfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_QUERYFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadQueryFunction from @pad, which is the function
Packit Service 963350
 * that handles queries on the pad. You can  use this to set your
Packit Service 963350
 * own query handling function on a pad after you create it. If your
Packit Service 963350
 * element derives from a base class, use the base class's virtual
Packit Service 963350
 * functions instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_QUERYFUNC(pad)		(GST_PAD_CAST(pad)->queryfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_ITERINTLINKFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadIterIntLinkFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_ITERINTLINKFUNC(pad)    (GST_PAD_CAST(pad)->iterintlinkfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_PEER:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Return the pad's peer member. This member is a pointer to the linked @pad.
Packit Service 963350
 * No locking is performed in this function, use gst_pad_get_peer() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_PEER(pad)		(GST_PAD_CAST(pad)->peer)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_LINKFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadLinkFunction for the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_LINKFUNC(pad)		(GST_PAD_CAST(pad)->linkfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNLINKFUNC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the #GstPadUnlinkFunction from the given @pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNLINKFUNC(pad)		(GST_PAD_CAST(pad)->unlinkfunc)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_SRC:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad is a source pad (i.e. produces data).
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_SRC(pad)		(GST_PAD_DIRECTION(pad) == GST_PAD_SRC)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_SINK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad is a sink pad (i.e. consumes data).
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_SINK(pad)		(GST_PAD_DIRECTION(pad) == GST_PAD_SINK)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_LINKED:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad is linked to another pad. Use gst_pad_is_linked()
Packit Service 963350
 * instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_LINKED(pad)		(GST_PAD_PEER(pad) != NULL)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_ACTIVE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Returns: %TRUE if the pad has been activated.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_ACTIVE(pad)          (GST_PAD_MODE(pad) != GST_PAD_MODE_NONE)
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_BLOCKED:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the dataflow on a @pad is blocked. Use gst_pad_is_blocked() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_BLOCKED(pad)		(GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_BLOCKED))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_BLOCKING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the @pad is currently blocking on a buffer or event. Use
Packit Service 963350
 * gst_pad_is_blocking() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_BLOCKING(pad)	(GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_BLOCKING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_FLUSHING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad is flushing.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_FLUSHING(pad)	(GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_FLUSHING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_FLUSHING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set the given @pad to flushing state, which means it will not accept any
Packit Service 963350
 * more events, queries or buffers, and return GST_FLOW_FLUSHING if any buffers
Packit Service 963350
 * are pushed on it. This usually happens when the pad is shut down or when
Packit Service 963350
 * a flushing seek happens. This is used inside GStreamer when flush start/stop
Packit Service 963350
 * events pass through pads, or when an element state is changed and pads are
Packit Service 963350
 * activated or deactivated.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_FLUSHING(pad)	(GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_FLUSHING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_FLUSHING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset the flushing flag.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_FLUSHING(pad)	(GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_FLUSHING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_EOS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the @pad is in EOS state.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_EOS(pad)	        (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_EOS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_NEEDS_RECONFIGURE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the @pad should be reconfigured/renegotiated.
Packit Service 963350
 * The flag has to be unset manually after reconfiguration happened.
Packit Service 963350
 * Use gst_pad_needs_reconfigure() or gst_pad_check_reconfigure() instead.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_NEEDS_RECONFIGURE(pad)  (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_NEED_RECONFIGURE))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_HAS_PENDING_EVENTS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad has pending events. This is used internally by
Packit Service 963350
 * GStreamer.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_HAS_PENDING_EVENTS(pad) (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_PENDING_EVENTS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_FIXED_CAPS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad is using fixed caps, which means that
Packit Service 963350
 * once the caps are set on the @pad, the caps query function will
Packit Service 963350
 * only return those caps. See gst_pad_use_fixed_caps().
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_FIXED_CAPS(pad)	(GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_FIXED_CAPS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_NEEDS_PARENT:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if there is a parent object before calling into the @pad callbacks.
Packit Service 963350
 * This is used internally by GStreamer.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_NEEDS_PARENT(pad)       (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_NEED_PARENT))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_PROXY_CAPS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad is set to proxy caps. This means that the default
Packit Service 963350
 * event and query handler will forward all events and queries to the
Packit Service 963350
 * internally linked @pads instead of discarding them.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_PROXY_CAPS(pad)      (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_PROXY_CAPS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_PROXY_CAPS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set @pad to proxy caps, so that all caps-related events and queries are
Packit Service 963350
 * proxied down- or upstream to the other side of the element automatically.
Packit Service 963350
 * Set this if the element always outputs data in the exact same format as it
Packit Service 963350
 * receives as input. This is just for convenience to avoid implementing some
Packit Service 963350
 * standard event and query handling code in an element.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_PROXY_CAPS(pad)     (GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_PROXY_CAPS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_PROXY_CAPS:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset proxy caps flag.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_PROXY_CAPS(pad)   (GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_PROXY_CAPS))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_PROXY_ALLOCATION:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad is set as proxy allocation which means
Packit Service 963350
 * that the default query handler will forward allocation queries to the
Packit Service 963350
 * internally linked @pads instead of discarding them.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_PROXY_ALLOCATION(pad)    (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_PROXY_ALLOCATION))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_PROXY_ALLOCATION:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set @pad to proxy allocation queries, which means that the default query
Packit Service 963350
 * handler will forward allocation queries to the internally linked @pads
Packit Service 963350
 * instead of discarding them.
Packit Service 963350
 * Set this if the element always outputs data in the exact same format as it
Packit Service 963350
 * receives as input. This is just for convenience to avoid implementing some
Packit Service 963350
 * standard query handling code in an element.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_PROXY_ALLOCATION(pad)   (GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_PROXY_ALLOCATION))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_PROXY_ALLOCATION:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset proxy allocation flag.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_PROXY_ALLOCATION(pad) (GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_PROXY_ALLOCATION))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_PROXY_SCHEDULING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the given @pad is set to proxy scheduling queries, which means that
Packit Service 963350
 * the default query handler will forward scheduling queries to the internally
Packit Service 963350
 * linked @pads instead of discarding them.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_PROXY_SCHEDULING(pad)    (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_PROXY_SCHEDULING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_PROXY_SCHEDULING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set @pad to proxy scheduling queries, which means that the default query
Packit Service 963350
 * handler will forward scheduling queries to the internally linked @pads
Packit Service 963350
 * instead of discarding them. You will usually want to handle scheduling
Packit Service 963350
 * queries explicitly if your element supports multiple scheduling modes.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_PROXY_SCHEDULING(pad)   (GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_PROXY_SCHEDULING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_PROXY_SCHEDULING:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset proxy scheduling flag.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_PROXY_SCHEDULING(pad) (GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_PROXY_SCHEDULING))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_ACCEPT_INTERSECT:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the pad's accept intersect flag is set. The default accept-caps
Packit Service 963350
 * handler will check if the caps intersect the query-caps result instead of
Packit Service 963350
 * checking for a subset. This is interesting for parser elements that can
Packit Service 963350
 * accept incompletely specified caps.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_ACCEPT_INTERSECT(pad)    (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_ACCEPT_INTERSECT))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_ACCEPT_INTERSECT:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set @pad to by default accept caps by intersecting the result instead of
Packit Service 963350
 * checking for a subset. This is interesting for parser elements that can
Packit Service 963350
 * accept incompletely specified caps.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_ACCEPT_INTERSECT(pad)   (GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_ACCEPT_INTERSECT))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_ACCEPT_INTERSECT:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset accept intersect flag.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_ACCEPT_INTERSECT(pad) (GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_ACCEPT_INTERSECT))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_IS_ACCEPT_TEMPLATE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Check if the pad's accept caps operation will use the pad template caps.
Packit Service 963350
 * The default accept-caps will do a query caps to get the caps, which might
Packit Service 963350
 * be querying downstream causing unnecessary overhead. It is recommended to
Packit Service 963350
 * implement a proper accept-caps query handler or to use this flag to prevent
Packit Service 963350
 * recursive accept-caps handling.
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.6
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_IS_ACCEPT_TEMPLATE(pad)    (GST_OBJECT_FLAG_IS_SET (pad, GST_PAD_FLAG_ACCEPT_TEMPLATE))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_SET_ACCEPT_TEMPLATE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Set @pad to by default use the pad template caps to compare with
Packit Service 963350
 * the accept caps instead of using a caps query result.
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.6
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_SET_ACCEPT_TEMPLATE(pad)   (GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_ACCEPT_TEMPLATE))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_UNSET_ACCEPT_TEMPLATE:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Unset accept template flag.
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.6
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_UNSET_ACCEPT_TEMPLATE(pad) (GST_OBJECT_FLAG_UNSET (pad, GST_PAD_FLAG_ACCEPT_TEMPLATE))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_GET_STREAM_LOCK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Get the stream lock of @pad. The stream lock is protecting the
Packit Service 963350
 * resources used in the data processing functions of @pad. Accessor
Packit Service 963350
 * macro, use GST_PAD_STREAM_LOCK() and GST_PAD_STREAM_UNLOCK() instead
Packit Service 963350
 * to take/release the pad's stream lock.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_GET_STREAM_LOCK(pad)    (&(GST_PAD_CAST(pad)->stream_rec_lock))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_STREAM_LOCK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Take the pad's stream lock. The stream lock is recursive and will be taken
Packit Service 963350
 * when buffers or serialized downstream events are pushed on a pad.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_STREAM_LOCK(pad)        g_rec_mutex_lock(GST_PAD_GET_STREAM_LOCK(pad))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_STREAM_TRYLOCK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Try to take the pad's stream lock, and return %TRUE if the lock could be
Packit Service 963350
 * taken, and otherwise %FALSE.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_STREAM_TRYLOCK(pad)     g_rec_mutex_trylock(GST_PAD_GET_STREAM_LOCK(pad))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_STREAM_UNLOCK:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Release the pad's stream lock.
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_STREAM_UNLOCK(pad)      g_rec_mutex_unlock(GST_PAD_GET_STREAM_LOCK(pad))
Packit Service 963350
/**
Packit Service 963350
 * GST_PAD_LAST_FLOW_RETURN:
Packit Service 963350
 * @pad: a #GstPad
Packit Service 963350
 *
Packit Service 963350
 * Gets the last flow return on this pad
Packit Service 963350
 *
Packit Service 963350
 * Since: 1.4
Packit Service 963350
 */
Packit Service 963350
#define GST_PAD_LAST_FLOW_RETURN(pad)   (GST_PAD_CAST(pad)->ABI.abi.last_flowret)
Packit Service 963350
Packit Service 963350
#define GST_PAD_BLOCK_GET_COND(pad)     (&GST_PAD_CAST(pad)->block_cond)
Packit Service 963350
#define GST_PAD_BLOCK_WAIT(pad)         (g_cond_wait(GST_PAD_BLOCK_GET_COND (pad), GST_OBJECT_GET_LOCK (pad)))
Packit Service 963350
#define GST_PAD_BLOCK_SIGNAL(pad)       (g_cond_signal(GST_PAD_BLOCK_GET_COND (pad)))
Packit Service 963350
#define GST_PAD_BLOCK_BROADCAST(pad)    (g_cond_broadcast(GST_PAD_BLOCK_GET_COND (pad)))
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GType			gst_pad_get_type			(void);
Packit Service 963350
Packit Service 963350
/* creating pads */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPad*			gst_pad_new				(const gchar *name, GstPadDirection direction);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPad*			gst_pad_new_from_template		(GstPadTemplate *templ, const gchar *name);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPad*			gst_pad_new_from_static_template	(GstStaticPadTemplate *templ, const gchar *name);
Packit Service 963350
Packit Service 963350
Packit Service 963350
/**
Packit Service 963350
 * gst_pad_get_name:
Packit Service 963350
 * @pad: the pad to get the name from
Packit Service 963350
 *
Packit Service 963350
 * Get a copy of the name of the pad. g_free() after usage.
Packit Service 963350
 *
Packit Service 963350
 * MT safe.
Packit Service 963350
 */
Packit Service 963350
#define gst_pad_get_name(pad) gst_object_get_name (GST_OBJECT_CAST (pad))
Packit Service 963350
/**
Packit Service 963350
 * gst_pad_get_parent:
Packit Service 963350
 * @pad: the pad to get the parent of
Packit Service 963350
 *
Packit Service 963350
 * Get the parent of @pad. This function increases the refcount
Packit Service 963350
 * of the parent object so you should gst_object_unref() it after usage.
Packit Service 963350
 * Can return %NULL if the pad did not have a parent.
Packit Service 963350
 *
Packit Service 963350
 * MT safe.
Packit Service 963350
 *
Packit Service 963350
 * Returns: (nullable): the parent
Packit Service 963350
 */
Packit Service 963350
#define gst_pad_get_parent(pad) gst_object_get_parent (GST_OBJECT_CAST (pad))
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPadDirection		gst_pad_get_direction			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_set_active			(GstPad *pad, gboolean active);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_is_active			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_activate_mode			(GstPad *pad, GstPadMode mode,
Packit Service 963350
                                                                 gboolean active);
Packit Service 963350
GST_API
Packit Service 963350
gulong                  gst_pad_add_probe                       (GstPad *pad,
Packit Service 963350
								 GstPadProbeType mask,
Packit Service 963350
								 GstPadProbeCallback callback,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify destroy_data);
Packit Service 963350
GST_API
Packit Service 963350
void                    gst_pad_remove_probe                    (GstPad *pad, gulong id);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_is_blocked			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_is_blocking			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void                    gst_pad_mark_reconfigure                (GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_needs_reconfigure               (GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_check_reconfigure               (GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_element_private		(GstPad *pad, gpointer priv);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gpointer		gst_pad_get_element_private		(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPadTemplate*		gst_pad_get_pad_template		(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn           gst_pad_store_sticky_event              (GstPad *pad, GstEvent *event);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstEvent*               gst_pad_get_sticky_event                (GstPad *pad, GstEventType event_type,
Packit Service 963350
                                                                 guint idx);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void                    gst_pad_sticky_events_foreach           (GstPad *pad, GstPadStickyEventsForeachFunction foreach_func, gpointer user_data);
Packit Service 963350
Packit Service 963350
/* data passing setup functions */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_activate_function_full	(GstPad *pad,
Packit Service 963350
                                                                 GstPadActivateFunction activate,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_activatemode_function_full	(GstPad *pad,
Packit Service 963350
                                                                 GstPadActivateModeFunction activatemode,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
/* data passing functions */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_chain_function_full		(GstPad *pad,
Packit Service 963350
                                                                 GstPadChainFunction chain,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_chain_list_function_full	(GstPad *pad,
Packit Service 963350
                                                                 GstPadChainListFunction chainlist,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_getrange_function_full	(GstPad *pad,
Packit Service 963350
                                                                 GstPadGetRangeFunction get,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_event_function_full		(GstPad *pad,
Packit Service 963350
                                                                 GstPadEventFunction event,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_event_full_function_full	(GstPad *pad,
Packit Service 963350
                                                                 GstPadEventFullFunction event,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
Packit Service 963350
#define gst_pad_set_activate_function(p,f)      gst_pad_set_activate_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_activatemode_function(p,f)  gst_pad_set_activatemode_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_chain_function(p,f)         gst_pad_set_chain_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_chain_list_function(p,f)    gst_pad_set_chain_list_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_getrange_function(p,f)      gst_pad_set_getrange_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_event_function(p,f)         gst_pad_set_event_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_event_full_function(p,f)    gst_pad_set_event_full_function_full((p),(f),NULL,NULL)
Packit Service 963350
Packit Service 963350
/* pad links */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_link_function_full		(GstPad *pad,
Packit Service 963350
                                                                 GstPadLinkFunction link,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_unlink_function_full        (GstPad *pad,
Packit Service 963350
                                                                 GstPadUnlinkFunction unlink,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
Packit Service 963350
#define gst_pad_set_link_function(p,f)          gst_pad_set_link_function_full((p),(f),NULL,NULL)
Packit Service 963350
#define gst_pad_set_unlink_function(p,f)        gst_pad_set_unlink_function_full((p),(f),NULL,NULL)
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean                gst_pad_can_link                        (GstPad *srcpad, GstPad *sinkpad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPadLinkReturn        gst_pad_link				(GstPad *srcpad, GstPad *sinkpad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPadLinkReturn        gst_pad_link_full			(GstPad *srcpad, GstPad *sinkpad, GstPadLinkCheck flags);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_unlink				(GstPad *srcpad, GstPad *sinkpad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_is_linked			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstPad*			gst_pad_get_peer			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstCaps*                gst_pad_get_pad_template_caps		(GstPad *pad);
Packit Service 963350
Packit Service 963350
/* capsnego function for linked/unlinked pads */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstCaps *		gst_pad_get_current_caps                (GstPad * pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_has_current_caps                (GstPad * pad);
Packit Service 963350
Packit Service 963350
/* capsnego for linked pads */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstCaps *		gst_pad_get_allowed_caps		(GstPad * pad);
Packit Service 963350
Packit Service 963350
/* pad offsets */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gint64                  gst_pad_get_offset                      (GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void                    gst_pad_set_offset                      (GstPad *pad, gint64 offset);
Packit Service 963350
Packit Service 963350
/* data passing functions to peer */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_push				(GstPad *pad, GstBuffer *buffer);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_push_list			(GstPad *pad, GstBufferList *list);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_pull_range			(GstPad *pad, guint64 offset, guint size,
Packit Service 963350
								 GstBuffer **buffer);
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_push_event			(GstPad *pad, GstEvent *event);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_event_default			(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstEvent *event);
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn           gst_pad_get_last_flow_return            (GstPad *pad);
Packit Service 963350
Packit Service 963350
/* data passing functions on pad */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_chain				(GstPad *pad, GstBuffer *buffer);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_chain_list                      (GstPad *pad, GstBufferList *list);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstFlowReturn		gst_pad_get_range			(GstPad *pad, guint64 offset, guint size,
Packit Service 963350
								 GstBuffer **buffer);
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_send_event			(GstPad *pad, GstEvent *event);
Packit Service 963350
Packit Service 963350
/* pad tasks */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_start_task			(GstPad *pad, GstTaskFunction func,
Packit Service 963350
								 gpointer user_data, GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_pause_task			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_stop_task			(GstPad *pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstTaskState	gst_pad_get_task_state		(GstPad *pad);
Packit Service 963350
Packit Service 963350
/* internal links */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void                    gst_pad_set_iterate_internal_links_function_full (GstPad * pad,
Packit Service 963350
                                                                 GstPadIterIntLinkFunction iterintlink,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstIterator *           gst_pad_iterate_internal_links          (GstPad * pad);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
GstIterator *           gst_pad_iterate_internal_links_default  (GstPad * pad, GstObject *parent);
Packit Service 963350
Packit Service 963350
#define gst_pad_set_iterate_internal_links_function(p,f) gst_pad_set_iterate_internal_links_function_full((p),(f),NULL,NULL)
Packit Service 963350
Packit Service 963350
/* generic query function */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_query				(GstPad *pad, GstQuery *query);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_peer_query			(GstPad *pad, GstQuery *query);
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
void			gst_pad_set_query_function_full		(GstPad *pad, GstPadQueryFunction query,
Packit Service 963350
                                                                 gpointer user_data,
Packit Service 963350
                                                                 GDestroyNotify notify);
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_query_default			(GstPad *pad, GstObject *parent,
Packit Service 963350
                                                                 GstQuery *query);
Packit Service 963350
Packit Service 963350
#define gst_pad_set_query_function(p,f)   gst_pad_set_query_function_full((p),(f),NULL,NULL)
Packit Service 963350
Packit Service 963350
/* misc helper functions */
Packit Service 963350
Packit Service 963350
GST_API
Packit Service 963350
gboolean		gst_pad_forward                         (GstPad *pad, GstPadForwardFunction forward,
Packit Service 963350
								 gpointer user_data);
Packit Service 963350
Packit Service 963350
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
Packit Service 963350
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPad, gst_object_unref)
Packit Service 963350
#endif
Packit Service 963350
Packit Service 963350
G_END_DECLS
Packit Service 963350
Packit Service 963350
#endif /* __GST_PAD_H__ */