|
Packit |
f546b1 |
/* GStreamer
|
|
Packit |
f546b1 |
* Copyright (C) 2008 Nokia Corporation. All rights reserved.
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Contact: Stefan Kost <stefan.kost@nokia.com>
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
f546b1 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
f546b1 |
* License as published by the Free Software Foundation; either
|
|
Packit |
f546b1 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
f546b1 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
f546b1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
f546b1 |
* Library General Public License for more details.
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
f546b1 |
* License along with this library; if not, write to the
|
|
Packit |
f546b1 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
f546b1 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#ifndef __GST_BASE_PARSE_H__
|
|
Packit |
f546b1 |
#define __GST_BASE_PARSE_H__
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#include <gst/gst.h>
|
|
Packit |
f546b1 |
#include <gst/base/base-prelude.h>
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
G_BEGIN_DECLS
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#define GST_TYPE_BASE_PARSE (gst_base_parse_get_type())
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BASE_PARSE,GstBaseParse))
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BASE_PARSE,GstBaseParseClass))
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_BASE_PARSE,GstBaseParseClass))
|
|
Packit |
f546b1 |
#define GST_IS_BASE_PARSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BASE_PARSE))
|
|
Packit |
f546b1 |
#define GST_IS_BASE_PARSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BASE_PARSE))
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_CAST(obj) ((GstBaseParse *)(obj))
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GST_BASE_PARSE_SRC_PAD:
|
|
Packit |
f546b1 |
* @obj: base parse instance
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Gives the pointer to the source #GstPad object of the element.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_SRC_PAD(obj) (GST_BASE_PARSE_CAST (obj)->srcpad)
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GST_BASE_PARSE_SINK_PAD:
|
|
Packit |
f546b1 |
* @obj: base parse instance
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Gives the pointer to the sink #GstPad object of the element.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_SINK_PAD(obj) (GST_BASE_PARSE_CAST (obj)->sinkpad)
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GST_BASE_PARSE_FLOW_DROPPED:
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* A #GstFlowReturn that can be returned from parse_frame to
|
|
Packit |
f546b1 |
* indicate that no output buffer was generated, or from pre_push_frame to
|
|
Packit |
f546b1 |
* to forego pushing buffer.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_FLOW_DROPPED GST_FLOW_CUSTOM_SUCCESS
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/* not public API, use accessor macros below */
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_FLAG_LOST_SYNC (1 << 0)
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_FLAG_DRAINING (1 << 1)
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GST_BASE_PARSE_LOST_SYNC:
|
|
Packit |
f546b1 |
* @parse: base parse instance
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Obtains current sync status.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_LOST_SYNC(parse) (!!(GST_BASE_PARSE_CAST(parse)->flags & GST_BASE_PARSE_FLAG_LOST_SYNC))
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GST_BASE_PARSE_DRAINING:
|
|
Packit |
f546b1 |
* @parse: base parse instance
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Obtains current drain status (ie. whether EOS has been received and
|
|
Packit |
f546b1 |
* the parser is now processing the frames at the end of the stream)
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
#define GST_BASE_PARSE_DRAINING(parse) (!!(GST_BASE_PARSE_CAST(parse)->flags & GST_BASE_PARSE_FLAG_DRAINING))
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GstBaseParseFrameFlags:
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_NONE: no flag
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME: set by baseclass if current frame
|
|
Packit |
f546b1 |
* is passed for processing to the subclass for the first time
|
|
Packit |
f546b1 |
* (and not set on subsequent calls with same data).
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_NO_FRAME: set to indicate this buffer should not be
|
|
Packit |
f546b1 |
* counted as frame, e.g. if this frame is dependent on a previous one.
|
|
Packit |
f546b1 |
* As it is not counted as a frame, bitrate increases but frame to time
|
|
Packit |
f546b1 |
* conversions are maintained.
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_CLIP: @pre_push_frame can set this to indicate
|
|
Packit |
f546b1 |
* that regular segment clipping can still be performed (as opposed to
|
|
Packit |
f546b1 |
* any custom one having been done).
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_DROP: indicates to @finish_frame that the
|
|
Packit |
f546b1 |
* the frame should be dropped (and might be handled internally by subclass)
|
|
Packit |
f546b1 |
* @GST_BASE_PARSE_FRAME_FLAG_QUEUE: indicates to @finish_frame that the
|
|
Packit |
f546b1 |
* the frame should be queued for now and processed fully later
|
|
Packit |
f546b1 |
* when the first non-queued frame is finished
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Flags to be used in a #GstBaseParseFrame.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
typedef enum {
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_NONE = 0,
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME = (1 << 0),
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_NO_FRAME = (1 << 1),
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_CLIP = (1 << 2),
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_DROP = (1 << 3),
|
|
Packit |
f546b1 |
GST_BASE_PARSE_FRAME_FLAG_QUEUE = (1 << 4)
|
|
Packit |
f546b1 |
} GstBaseParseFrameFlags;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GstBaseParseFrame:
|
|
Packit |
f546b1 |
* @buffer: input data to be parsed for frames.
|
|
Packit |
f546b1 |
* @out_buffer: output data.
|
|
Packit |
f546b1 |
* @offset: media specific offset of input frame
|
|
Packit |
f546b1 |
* Note that a converter may have a different one on the frame's buffer.
|
|
Packit |
f546b1 |
* @overhead: subclass can set this to indicates the metadata overhead
|
|
Packit |
f546b1 |
* for the given frame, which is then used to enable more accurate bitrate
|
|
Packit |
f546b1 |
* computations. If this is -1, it is assumed that this frame should be
|
|
Packit |
f546b1 |
* skipped in bitrate calculation.
|
|
Packit |
f546b1 |
* @flags: a combination of input and output #GstBaseParseFrameFlags that
|
|
Packit |
f546b1 |
* convey additional context to subclass or allow subclass to tune
|
|
Packit |
f546b1 |
* subsequent #GstBaseParse actions.
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Frame (context) data passed to each frame parsing virtual methods. In
|
|
Packit |
f546b1 |
* addition to providing the data to be checked for a valid frame or an already
|
|
Packit |
f546b1 |
* identified frame, it conveys additional metadata or control information
|
|
Packit |
f546b1 |
* from and to the subclass w.r.t. the particular frame in question (rather
|
|
Packit |
f546b1 |
* than global parameters). Some of these may apply to each parsing stage, others
|
|
Packit |
f546b1 |
* only to some a particular one. These parameters are effectively zeroed at start
|
|
Packit |
f546b1 |
* of each frame's processing, i.e. parsing virtual method invocation sequence.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
typedef struct {
|
|
Packit |
f546b1 |
GstBuffer * buffer;
|
|
Packit |
f546b1 |
GstBuffer * out_buffer;
|
|
Packit |
f546b1 |
guint flags;
|
|
Packit |
f546b1 |
guint64 offset;
|
|
Packit |
f546b1 |
gint overhead;
|
|
Packit |
f546b1 |
/*< private >*/
|
|
Packit |
f546b1 |
gint size;
|
|
Packit |
f546b1 |
guint _gst_reserved_i[2];
|
|
Packit |
f546b1 |
gpointer _gst_reserved_p[2];
|
|
Packit |
f546b1 |
guint _private_flags;
|
|
Packit |
f546b1 |
} GstBaseParseFrame;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
typedef struct _GstBaseParse GstBaseParse;
|
|
Packit |
f546b1 |
typedef struct _GstBaseParseClass GstBaseParseClass;
|
|
Packit |
f546b1 |
typedef struct _GstBaseParsePrivate GstBaseParsePrivate;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GstBaseParse:
|
|
Packit |
f546b1 |
* @element: the parent element.
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* The opaque #GstBaseParse data structure.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
struct _GstBaseParse {
|
|
Packit |
f546b1 |
/*< public >*/
|
|
Packit |
f546b1 |
GstElement element;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/*< protected >*/
|
|
Packit |
f546b1 |
/* source and sink pads */
|
|
Packit |
f546b1 |
GstPad *sinkpad;
|
|
Packit |
f546b1 |
GstPad *srcpad;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
guint flags;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/* MT-protected (with STREAM_LOCK) */
|
|
Packit |
f546b1 |
GstSegment segment;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/*< private >*/
|
|
Packit |
f546b1 |
gpointer _gst_reserved[GST_PADDING_LARGE];
|
|
Packit |
f546b1 |
GstBaseParsePrivate *priv;
|
|
Packit |
f546b1 |
};
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/**
|
|
Packit |
f546b1 |
* GstBaseParseClass:
|
|
Packit |
f546b1 |
* @parent_class: the parent class
|
|
Packit |
f546b1 |
* @start: Optional.
|
|
Packit |
f546b1 |
* Called when the element starts processing.
|
|
Packit |
f546b1 |
* Allows opening external resources.
|
|
Packit |
f546b1 |
* @stop: Optional.
|
|
Packit |
f546b1 |
* Called when the element stops processing.
|
|
Packit |
f546b1 |
* Allows closing external resources.
|
|
Packit |
f546b1 |
* @set_sink_caps: Optional.
|
|
Packit |
f546b1 |
* Allows the subclass to be notified of the actual caps set.
|
|
Packit |
f546b1 |
* @get_sink_caps: Optional.
|
|
Packit |
f546b1 |
* Allows the subclass to do its own sink get caps if needed.
|
|
Packit |
f546b1 |
* @handle_frame: Parses the input data into valid frames as defined by subclass
|
|
Packit |
f546b1 |
* which should be passed to gst_base_parse_finish_frame().
|
|
Packit |
f546b1 |
* The frame's input buffer is guaranteed writable,
|
|
Packit |
f546b1 |
* whereas the input frame ownership is held by caller
|
|
Packit |
f546b1 |
* (so subclass should make a copy if it needs to hang on).
|
|
Packit |
f546b1 |
* Input buffer (data) is provided by baseclass with as much
|
|
Packit |
f546b1 |
* metadata set as possible by baseclass according to upstream
|
|
Packit |
f546b1 |
* information and/or subclass settings,
|
|
Packit |
f546b1 |
* though subclass may still set buffer timestamp and duration
|
|
Packit |
f546b1 |
* if desired.
|
|
Packit |
f546b1 |
* @convert: Optional.
|
|
Packit |
f546b1 |
* Convert between formats.
|
|
Packit |
f546b1 |
* @sink_event: Optional.
|
|
Packit |
f546b1 |
* Event handler on the sink pad. This function should chain
|
|
Packit |
f546b1 |
* up to the parent implementation to let the default handler
|
|
Packit |
f546b1 |
* run.
|
|
Packit |
f546b1 |
* @src_event: Optional.
|
|
Packit |
f546b1 |
* Event handler on the source pad. Should chain up to the
|
|
Packit |
f546b1 |
* parent to let the default handler run.
|
|
Packit |
f546b1 |
* @pre_push_frame: Optional.
|
|
Packit |
f546b1 |
* Called just prior to pushing a frame (after any pending
|
|
Packit |
f546b1 |
* events have been sent) to give subclass a chance to perform
|
|
Packit |
f546b1 |
* additional actions at this time (e.g. tag sending) or to
|
|
Packit |
f546b1 |
* decide whether this buffer should be dropped or not
|
|
Packit |
f546b1 |
* (e.g. custom segment clipping).
|
|
Packit |
f546b1 |
* @detect: Optional.
|
|
Packit |
f546b1 |
* Called until it doesn't return GST_FLOW_OK anymore for
|
|
Packit |
f546b1 |
* the first buffers. Can be used by the subclass to detect
|
|
Packit |
f546b1 |
* the stream format.
|
|
Packit |
f546b1 |
* @sink_query: Optional.
|
|
Packit |
f546b1 |
* Query handler on the sink pad. This function should chain
|
|
Packit |
f546b1 |
* up to the parent implementation to let the default handler
|
|
Packit |
f546b1 |
* run (Since 1.2)
|
|
Packit |
f546b1 |
* @src_query: Optional.
|
|
Packit |
f546b1 |
* Query handler on the source pad. Should chain up to the
|
|
Packit |
f546b1 |
* parent to let the default handler run (Since 1.2)
|
|
Packit |
f546b1 |
*
|
|
Packit |
f546b1 |
* Subclasses can override any of the available virtual methods or not, as
|
|
Packit |
f546b1 |
* needed. At minimum @handle_frame needs to be overridden.
|
|
Packit |
f546b1 |
*/
|
|
Packit |
f546b1 |
struct _GstBaseParseClass {
|
|
Packit |
f546b1 |
GstElementClass parent_class;
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/*< public >*/
|
|
Packit |
f546b1 |
/* virtual methods for subclasses */
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*start) (GstBaseParse * parse);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*stop) (GstBaseParse * parse);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*set_sink_caps) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstCaps * caps);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GstFlowReturn (*handle_frame) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstBaseParseFrame * frame,
|
|
Packit |
f546b1 |
gint * skipsize);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GstFlowReturn (*pre_push_frame) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstBaseParseFrame * frame);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*convert) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstFormat src_format,
|
|
Packit |
f546b1 |
gint64 src_value,
|
|
Packit |
f546b1 |
GstFormat dest_format,
|
|
Packit |
f546b1 |
gint64 * dest_value);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*sink_event) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstEvent * event);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*src_event) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstEvent * event);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GstCaps * (*get_sink_caps) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstCaps * filter);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GstFlowReturn (*detect) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstBuffer * buffer);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*sink_query) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstQuery * query);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
gboolean (*src_query) (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstQuery * query);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
/*< private >*/
|
|
Packit |
f546b1 |
gpointer _gst_reserved[GST_PADDING_LARGE - 2];
|
|
Packit |
f546b1 |
};
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GType gst_base_parse_get_type (void);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GType gst_base_parse_frame_get_type (void);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GstBaseParseFrame * gst_base_parse_frame_new (GstBuffer * buffer,
|
|
Packit |
f546b1 |
GstBaseParseFrameFlags flags,
|
|
Packit |
f546b1 |
gint overhead);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_frame_init (GstBaseParseFrame * frame);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GstBaseParseFrame * gst_base_parse_frame_copy (GstBaseParseFrame * frame);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_frame_free (GstBaseParseFrame * frame);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstBaseParseFrame * frame);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
GstFlowReturn gst_base_parse_finish_frame (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstBaseParseFrame * frame,
|
|
Packit |
f546b1 |
gint size);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_duration (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstFormat fmt,
|
|
Packit |
f546b1 |
gint64 duration,
|
|
Packit |
f546b1 |
gint interval);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_average_bitrate (GstBaseParse * parse,
|
|
Packit |
f546b1 |
guint bitrate);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_min_frame_size (GstBaseParse * parse,
|
|
Packit |
f546b1 |
guint min_size);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_has_timing_info (GstBaseParse * parse,
|
|
Packit |
f546b1 |
gboolean has_timing);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_drain (GstBaseParse * parse);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_syncable (GstBaseParse * parse,
|
|
Packit |
f546b1 |
gboolean syncable);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_passthrough (GstBaseParse * parse,
|
|
Packit |
f546b1 |
gboolean passthrough);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_pts_interpolation (GstBaseParse * parse,
|
|
Packit |
f546b1 |
gboolean pts_interpolate);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_infer_ts (GstBaseParse * parse,
|
|
Packit |
f546b1 |
gboolean infer_ts);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_frame_rate (GstBaseParse * parse,
|
|
Packit |
f546b1 |
guint fps_num,
|
|
Packit |
f546b1 |
guint fps_den,
|
|
Packit |
f546b1 |
guint lead_in,
|
|
Packit |
f546b1 |
guint lead_out);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_latency (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstClockTime min_latency,
|
|
Packit |
f546b1 |
GstClockTime max_latency);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
gboolean gst_base_parse_convert_default (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstFormat src_format,
|
|
Packit |
f546b1 |
gint64 src_value,
|
|
Packit |
f546b1 |
GstFormat dest_format,
|
|
Packit |
f546b1 |
gint64 * dest_value);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
gboolean gst_base_parse_add_index_entry (GstBaseParse * parse,
|
|
Packit |
f546b1 |
guint64 offset,
|
|
Packit |
f546b1 |
GstClockTime ts,
|
|
Packit |
f546b1 |
gboolean key,
|
|
Packit |
f546b1 |
gboolean force);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_set_ts_at_offset (GstBaseParse *parse,
|
|
Packit |
f546b1 |
gsize offset);
|
|
Packit |
f546b1 |
GST_BASE_API
|
|
Packit |
f546b1 |
void gst_base_parse_merge_tags (GstBaseParse * parse,
|
|
Packit |
f546b1 |
GstTagList * tags,
|
|
Packit |
f546b1 |
GstTagMergeMode mode);
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
f546b1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseParseFrame, gst_base_parse_frame_free)
|
|
Packit |
f546b1 |
#endif
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit |
f546b1 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseParse, gst_object_unref)
|
|
Packit |
f546b1 |
#endif
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
G_END_DECLS
|
|
Packit |
f546b1 |
|
|
Packit |
f546b1 |
#endif /* __GST_BASE_PARSE_H__ */
|