Merging gst-plugins-ugly
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-ugly / gst / realmedia / rtspreal.h
1 /* GStreamer
2  * Copyright (C) <2005,2006> Wim Taymans <wim@fluendo.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __GST_RTSP_REAL_H__
21 #define __GST_RTSP_REAL_H__
22
23 #include <gst/gst.h>
24
25 #include "asmrules.h"
26
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_RTSP_REAL              (gst_rtsp_real_get_type())
30 #define GST_IS_RTSP_REAL(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTSP_REAL))
31 #define GST_IS_RTSP_REAL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTSP_REAL))
32 #define GST_RTSP_REAL(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTSP_REAL, GstRTSPReal))
33 #define GST_RTSP_REAL_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTSP_REAL, GstRTSPRealClass))
34
35 typedef struct _GstRTSPReal GstRTSPReal;
36 typedef struct _GstRTSPRealClass GstRTSPRealClass;
37
38 typedef struct _GstRTSPRealStream GstRTSPRealStream;
39
40 struct _GstRTSPRealStream {
41   guint  id;
42   guint  max_bit_rate;
43   guint  avg_bit_rate;
44   guint  max_packet_size;
45   guint  avg_packet_size;
46   guint  start_time;
47   guint  preroll;
48   guint  duration;
49   gchar *stream_name;
50   guint  stream_name_len;
51   gchar *mime_type;
52   guint  mime_type_len;
53
54   GstASMRuleBook *rulebook;
55
56   gchar *type_specific_data;
57   guint  type_specific_data_len;
58
59   guint16 num_rules, j, sel, codec;
60 };
61
62 struct _GstRTSPReal {
63   GstElement  element;
64
65   gchar checksum[34];
66   gchar challenge2[64];
67   gchar etag[64];
68   gboolean isreal;
69
70   guint   n_streams;
71   GList  *streams;
72
73   guint  max_bit_rate;
74   guint  avg_bit_rate;
75   guint  max_packet_size;
76   guint  avg_packet_size;
77   guint  duration;
78
79   gchar *rules;
80 };
81
82 struct _GstRTSPRealClass {
83   GstElementClass parent_class;
84 };
85
86 GType gst_rtsp_real_get_type(void);
87
88 GST_ELEMENT_REGISTER_DECLARE (rtspreal);
89
90
91 G_END_DECLS
92
93 #endif /* __GST_RTSP_REAL_H__ */