Blame gst-libs/gst/tag/gsttagmux.h

Packit 0652a1
/* GStreamer tag muxer base class
Packit 0652a1
 * Copyright (C) 2006 Christophe Fergeau  <teuf@gnome.org>
Packit 0652a1
 * Copyright (C) 2006,2011 Tim-Philipp Müller <tim centricular net>
Packit 0652a1
 * Copyright (C) 2009 Pioneers of the Inevitable <songbird@songbirdnest.com>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
Packit 0652a1
#ifndef GST_TAG_MUX_H
Packit 0652a1
#define GST_TAG_MUX_H
Packit 0652a1
Packit 0652a1
#include <gst/gst.h>
Packit 0652a1
#include <gst/tag/tag-prelude.h>
Packit 0652a1
Packit 0652a1
G_BEGIN_DECLS
Packit 0652a1
Packit 0652a1
#define GST_TYPE_TAG_MUX \
Packit 0652a1
  (gst_tag_mux_get_type())
Packit 0652a1
#define GST_TAG_MUX(obj) \
Packit 0652a1
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TAG_MUX,GstTagMux))
Packit 0652a1
#define GST_TAG_MUX_CLASS(klass) \
Packit 0652a1
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TAG_MUX,GstTagMuxClass))
Packit 0652a1
#define GST_IS_TAG_MUX(obj) \
Packit 0652a1
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_MUX))
Packit 0652a1
#define GST_IS_TAG_MUX_CLASS(klass) \
Packit 0652a1
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_MUX))
Packit 0652a1
Packit 0652a1
typedef struct _GstTagMux GstTagMux;
Packit 0652a1
typedef struct _GstTagMuxClass GstTagMuxClass;
Packit 0652a1
typedef struct _GstTagMuxPrivate GstTagMuxPrivate;
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GstTagMux:
Packit 0652a1
 * @element: parent element
Packit 0652a1
 *
Packit 0652a1
 * Opaque #GstTagMux structure.
Packit 0652a1
 */
Packit 0652a1
struct _GstTagMux {
Packit 0652a1
  GstElement    element;
Packit 0652a1
Packit 0652a1
  /*< private >*/
Packit 0652a1
  GstTagMuxPrivate *priv;
Packit 0652a1
Packit 0652a1
  gpointer _gst_reserved[GST_PADDING];
Packit 0652a1
};
Packit 0652a1
Packit 0652a1
/**
Packit 0652a1
 * GstTagMuxClass:
Packit 0652a1
 * @parent_class: the parent class.
Packit 0652a1
 * @render_start_tag: create a tag buffer to add to the beginning of the
Packit 0652a1
 *     input stream given a tag list, or NULL
Packit 0652a1
 * @render_end_tag: create a tag buffer to add to the end of the
Packit 0652a1
 *     input stream given a tag list, or NULL
Packit 0652a1
 *
Packit 0652a1
 * The #GstTagMuxClass structure. Subclasses need to override at least one
Packit 0652a1
 * of the two render vfuncs.
Packit 0652a1
 */
Packit 0652a1
struct _GstTagMuxClass {
Packit 0652a1
  GstElementClass parent_class;
Packit 0652a1
Packit 0652a1
  /* vfuncs */
Packit 0652a1
  GstBuffer  * (*render_start_tag) (GstTagMux * mux, const GstTagList * tag_list);
Packit 0652a1
  GstBuffer  * (*render_end_tag)   (GstTagMux * mux, const GstTagList * tag_list);
Packit 0652a1
Packit 0652a1
  /*< private >*/
Packit 0652a1
  gpointer _gst_reserved[GST_PADDING];
Packit 0652a1
};
Packit 0652a1
Packit 0652a1
GST_TAG_API
Packit 0652a1
GType gst_tag_mux_get_type (void);
Packit 0652a1
Packit 0652a1
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
Packit 0652a1
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagMux, gst_object_unref)
Packit 0652a1
#endif
Packit 0652a1
Packit 0652a1
G_END_DECLS
Packit 0652a1
Packit 0652a1
#endif