Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / ext / taglib / gsttaglibmux.h
1 /* GStreamer taglib-based muxer base class
2  * Copyright (C) 2006 Christophe Fergeau  <teuf@gnome.org>
3  * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
4
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef GST_TAG_LIB_MUX_H
22 #define GST_TAG_LIB_MUX_H
23
24 #include <gst/gst.h>
25
26 G_BEGIN_DECLS
27
28 typedef struct _GstTagLibMux GstTagLibMux;
29 typedef struct _GstTagLibMuxClass GstTagLibMuxClass;
30
31 /* Definition of structure storing data for this element. */
32 struct _GstTagLibMux {
33   GstElement    element;
34
35   GstPad       *srcpad;
36   GstPad       *sinkpad;
37   GstTagList   *event_tags; /* tags received from upstream elements */
38   gsize         tag_size;
39   gboolean      render_tag;
40
41   GstEvent     *newsegment_ev; /* cached newsegment event from upstream */
42 };
43
44 /* Standard definition defining a class for this element. */
45 struct _GstTagLibMuxClass {
46   GstElementClass parent_class;
47
48   /* vfuncs */
49   GstBuffer  * (*render_tag) (GstTagLibMux * mux, GstTagList * tag_list);
50 };
51
52 /* Standard macros for defining types for this element.  */
53 #define GST_TYPE_TAG_LIB_MUX \
54   (gst_tag_lib_mux_get_type())
55 #define GST_TAG_LIB_MUX(obj) \
56   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TAG_LIB_MUX,GstTagLibMux))
57 #define GST_TAG_LIB_MUX_CLASS(klass) \
58   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TAG_LIB_MUX,GstTagLibMuxClass))
59 #define GST_IS_TAG_LIB_MUX(obj) \
60   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_LIB_MUX))
61 #define GST_IS_TAG_LIB_MUX_CLASS(klass) \
62   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_LIB_MUX))
63
64 /* Standard function returning type information. */
65 GType gst_tag_lib_mux_get_type (void);
66 gboolean gst_apev2_mux_plugin_init (GstPlugin * plugin);
67 gboolean gst_id3v2_mux_plugin_init (GstPlugin * plugin);
68
69 G_END_DECLS
70
71 #endif