~ubuntu-branches/ubuntu/karmic/gst-plugins-bad0.10/karmic-proposed

« back to all changes in this revision

Viewing changes to gst/id3tag/gsttagmux.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-06-18 13:47:30 UTC
  • mfrom: (18.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090618134730-us1fh0nxq8klrln1
Tags: 0.10.13-1
* New upstream release, 'Supersonic Rocket':
  + debian/patches/01_hdvparse-link-libm.patch:
    - Dropped, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer tag muxer base class
 
2
 *
 
3
 * Copyright (C) 2006 Christophe Fergeau  <teuf@gnome.org>
 
4
 * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
 
5
 * Copyright (C) 2009 Pioneers of the Inevitable <songbird@songbirdnest.com>
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Library General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Library General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Library General Public
 
18
 * License along with this library; if not, write to the
 
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
20
 * Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef GST_TAG_MUX_H
 
24
#define GST_TAG_MUX_H
 
25
 
 
26
#include <gst/gst.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef struct _GstTagMux GstTagMux;
 
31
typedef struct _GstTagMuxClass GstTagMuxClass;
 
32
 
 
33
/* Definition of structure storing data for this element. */
 
34
struct _GstTagMux {
 
35
  GstElement    element;
 
36
 
 
37
  GstPad       *srcpad;
 
38
  GstPad       *sinkpad;
 
39
  GstTagList   *event_tags; /* tags received from upstream elements */
 
40
  GstTagList   *final_tags; /* Final set of tags used for muxing */
 
41
  gsize         start_tag_size;
 
42
  gsize         end_tag_size;
 
43
  gboolean      render_start_tag;
 
44
  gboolean      render_end_tag;
 
45
 
 
46
  gint64        current_offset;
 
47
  gint64        max_offset;
 
48
 
 
49
  GstEvent     *newsegment_ev; /* cached newsegment event from upstream */
 
50
};
 
51
 
 
52
/* Standard definition defining a class for this element. */
 
53
struct _GstTagMuxClass {
 
54
  GstElementClass parent_class;
 
55
 
 
56
  /* vfuncs */
 
57
  GstBuffer  * (*render_start_tag) (GstTagMux * mux, GstTagList * tag_list);
 
58
  GstBuffer  * (*render_end_tag) (GstTagMux * mux, GstTagList * tag_list);
 
59
};
 
60
 
 
61
/* Standard macros for defining types for this element.  */
 
62
#define GST_TYPE_TAG_MUX \
 
63
  (gst_tag_mux_get_type())
 
64
#define GST_TAG_MUX(obj) \
 
65
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TAG_MUX,GstTagMux))
 
66
#define GST_TAG_MUX_CLASS(klass) \
 
67
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TAG_MUX,GstTagMuxClass))
 
68
#define GST_IS_TAG_MUX(obj) \
 
69
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_MUX))
 
70
#define GST_IS_TAG_MUX_CLASS(klass) \
 
71
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_MUX))
 
72
 
 
73
/* Standard function returning type information. */
 
74
GType gst_tag_mux_get_type (void);
 
75
 
 
76
G_END_DECLS
 
77
 
 
78
#endif
 
79