|
1 /* GStreamer |
|
2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> |
|
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 |
|
22 #ifndef __GST_AU_PARSE_H__ |
|
23 #define __GST_AU_PARSE_H__ |
|
24 |
|
25 |
|
26 #include "gst/gst.h" |
|
27 #include <gst/gst_global.h> |
|
28 #include <gst/base/gstadapter.h> |
|
29 |
|
30 |
|
31 G_BEGIN_DECLS |
|
32 |
|
33 #define GST_TYPE_AU_PARSE \ |
|
34 (gst_au_parse_get_type()) |
|
35 #define GST_AU_PARSE(obj) \ |
|
36 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AU_PARSE,GstAuParse)) |
|
37 #define GST_AU_PARSE_CLASS(klass) \ |
|
38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AU_PARSE,GstAuParseClass)) |
|
39 #define GST_IS_AU_PARSE(obj) \ |
|
40 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AU_PARSE)) |
|
41 #define GST_IS_AU_PARSE_CLASS(klass) \ |
|
42 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AU_PARSE)) |
|
43 |
|
44 typedef struct _GstAuParse GstAuParse; |
|
45 typedef struct _GstAuParseClass GstAuParseClass; |
|
46 |
|
47 struct _GstAuParse { |
|
48 GstElement element; |
|
49 |
|
50 GstPad *sinkpad; |
|
51 GstPad *srcpad; |
|
52 |
|
53 GstCaps *src_caps; |
|
54 |
|
55 GstAdapter *adapter; |
|
56 |
|
57 /* GstSegment segment; */ |
|
58 |
|
59 gint64 offset; /* where sample data starts */ |
|
60 gint64 buffer_offset; |
|
61 guint sample_size; |
|
62 guint encoding; |
|
63 guint samplerate; |
|
64 guint endianness; |
|
65 guint channels; |
|
66 }; |
|
67 |
|
68 struct _GstAuParseClass { |
|
69 GstElementClass parent_class; |
|
70 }; |
|
71 #ifdef __SYMBIAN32__ |
|
72 IMPORT_C |
|
73 #endif |
|
74 |
|
75 |
|
76 GType gst_au_parse_get_type (void); |
|
77 |
|
78 G_END_DECLS |
|
79 |
|
80 #endif /* __GST_AU_PARSE_H__ */ |