Blame gst/gstpipeline.h

Packit f546b1
/* GStreamer
Packit f546b1
 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
Packit f546b1
 *                    2000 Wim Taymans <wtay@chello.be>
Packit f546b1
 *
Packit f546b1
 * gstpipeline.h: Header for GstPipeline element
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
Packit f546b1
#ifndef __GST_PIPELINE_H__
Packit f546b1
#define __GST_PIPELINE_H__
Packit f546b1
Packit f546b1
#include <gst/gstbin.h>
Packit f546b1
Packit f546b1
G_BEGIN_DECLS
Packit f546b1
Packit f546b1
#define GST_TYPE_PIPELINE               (gst_pipeline_get_type ())
Packit f546b1
#define GST_PIPELINE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PIPELINE, GstPipeline))
Packit f546b1
#define GST_IS_PIPELINE(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PIPELINE))
Packit f546b1
#define GST_PIPELINE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PIPELINE, GstPipelineClass))
Packit f546b1
#define GST_IS_PIPELINE_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PIPELINE))
Packit f546b1
#define GST_PIPELINE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PIPELINE, GstPipelineClass))
Packit f546b1
#define GST_PIPELINE_CAST(obj)          ((GstPipeline*)(obj))
Packit f546b1
Packit f546b1
typedef struct _GstPipeline GstPipeline;
Packit f546b1
typedef struct _GstPipelineClass GstPipelineClass;
Packit f546b1
typedef struct _GstPipelinePrivate GstPipelinePrivate;
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GstPipelineFlags:
Packit f546b1
 * @GST_PIPELINE_FLAG_FIXED_CLOCK: this pipeline works with a fixed clock
Packit f546b1
 * @GST_PIPELINE_FLAG_LAST: offset to define more flags
Packit f546b1
 *
Packit f546b1
 * Pipeline flags
Packit f546b1
 */
Packit f546b1
typedef enum {
Packit f546b1
  GST_PIPELINE_FLAG_FIXED_CLOCK        = (GST_BIN_FLAG_LAST << 0),
Packit f546b1
  /* padding */
Packit f546b1
  GST_PIPELINE_FLAG_LAST               = (GST_BIN_FLAG_LAST << 4)
Packit f546b1
} GstPipelineFlags;
Packit f546b1
Packit f546b1
/**
Packit f546b1
 * GstPipeline:
Packit f546b1
 * @fixed_clock: The fixed clock of the pipeline, used when
Packit f546b1
 *               GST_PIPELINE_FLAG_FIXED_CLOCK is set.
Packit f546b1
 * @stream_time: The stream time of the pipeline. A better name for this
Packit f546b1
 *         property would be the running_time, the total time spent in the
Packit f546b1
 *         PLAYING state without being flushed. (deprecated, use the start_time
Packit f546b1
 *         on GstElement).
Packit f546b1
 * @delay: Extra delay added to base_time to compensate for computing delays
Packit f546b1
 *         when setting elements to PLAYING.
Packit f546b1
 *
Packit f546b1
 * The #GstPipeline structure.
Packit f546b1
 */
Packit f546b1
struct _GstPipeline {
Packit f546b1
  GstBin         bin;
Packit f546b1
Packit f546b1
  /*< public >*/ /* with LOCK */
Packit f546b1
  GstClock      *fixed_clock;
Packit f546b1
Packit f546b1
  GstClockTime   stream_time;
Packit f546b1
  GstClockTime   delay;
Packit f546b1
Packit f546b1
  /*< private >*/
Packit f546b1
  GstPipelinePrivate *priv;
Packit f546b1
Packit f546b1
  gpointer _gst_reserved[GST_PADDING];
Packit f546b1
};
Packit f546b1
Packit f546b1
struct _GstPipelineClass {
Packit f546b1
  GstBinClass parent_class;
Packit f546b1
Packit f546b1
  /*< private >*/
Packit f546b1
  gpointer _gst_reserved[GST_PADDING];
Packit f546b1
};
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GType           gst_pipeline_get_type           (void);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstElement*     gst_pipeline_new                (const gchar *name) G_GNUC_MALLOC;
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstBus*         gst_pipeline_get_bus            (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void            gst_pipeline_use_clock          (GstPipeline *pipeline, GstClock *clock);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
gboolean        gst_pipeline_set_clock          (GstPipeline *pipeline, GstClock *clock);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstClock*       gst_pipeline_get_clock          (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstClock*       gst_pipeline_get_pipeline_clock (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void            gst_pipeline_auto_clock         (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void            gst_pipeline_set_delay          (GstPipeline *pipeline, GstClockTime delay);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstClockTime    gst_pipeline_get_delay          (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void            gst_pipeline_set_latency        (GstPipeline *pipeline, GstClockTime latency);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
GstClockTime    gst_pipeline_get_latency        (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
void            gst_pipeline_set_auto_flush_bus (GstPipeline *pipeline, gboolean auto_flush);
Packit f546b1
Packit f546b1
GST_API
Packit f546b1
gboolean        gst_pipeline_get_auto_flush_bus (GstPipeline *pipeline);
Packit f546b1
Packit f546b1
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
Packit f546b1
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPipeline, gst_object_unref)
Packit f546b1
#endif
Packit f546b1
Packit f546b1
G_END_DECLS
Packit f546b1
Packit f546b1
#endif /* __GST_PIPELINE_H__ */
Packit f546b1