Merging gst-plugins-ugly
[platform/upstream/gstreamer.git] / gst / realmedia / rdtdepay.h
1 /* GStreamer
2  * Copyright (C) <2006> Lutz Mueller <lutz at topfrose dot de>
3  *               <2006> Wim Taymans <wim@fluendo.com>
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., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef __GST_RDT_DEPAY_H__
22 #define __GST_RDT_DEPAY_H__
23
24 #include <gst/gst.h>
25
26 G_BEGIN_DECLS
27
28 #define GST_TYPE_RDT_DEPAY \
29   (gst_rdt_depay_get_type())
30 #define GST_RDT_DEPAY(obj) \
31   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RDT_DEPAY,GstRDTDepay))
32 #define GST_RDT_DEPAY_CLASS(klass) \
33   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RDT_DEPAY,GstRDTDepayClass))
34 #define GST_IS_RDT_DEPAY(obj) \
35   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RDT_DEPAY))
36 #define GST_IS_RDT_DEPAY_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RDT_DEPAY))
38
39 typedef struct _GstRDTDepay GstRDTDepay;
40 typedef struct _GstRDTDepayClass GstRDTDepayClass;
41
42 struct _GstRDTDepay
43 {
44   GstElement parent;
45
46   GstPad *sinkpad;
47   GstPad *srcpad;
48
49   guint clock_rate;
50   GstClockTime npt_start;
51   GstClockTime npt_stop;
52   gdouble play_speed;
53   gdouble play_scale;
54
55   guint32 next_seqnum;
56
57   gboolean discont;
58   gboolean need_newsegment;
59   GstSegment segment;
60   GstBuffer *header;
61 };
62
63 struct _GstRDTDepayClass
64 {
65   GstElementClass parent_class;
66 };
67
68 GType gst_rdt_depay_get_type (void);
69
70 GST_ELEMENT_REGISTER_DECLARE (rdtdepay);
71
72 G_END_DECLS
73
74 #endif /* __GST_RDT_DEPAY_H__ */