|
1 /* GStreamer RIFF I/O |
|
2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> |
|
3 * |
|
4 * riff-read.h: function declarations for parsing a RIFF file |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Library General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Library General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Library General Public |
|
17 * License along with this library; if not, write to the |
|
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
19 * Boston, MA 02111-1307, USA. |
|
20 */ |
|
21 |
|
22 #ifndef __GST_RIFF_READ_H__ |
|
23 #define __GST_RIFF_READ_H__ |
|
24 |
|
25 #include <glib.h> |
|
26 #include <gst/gst.h> |
|
27 |
|
28 #include "riff-ids.h" |
|
29 |
|
30 G_BEGIN_DECLS |
|
31 |
|
32 /* |
|
33 * Operate using pull_range(). |
|
34 */ |
|
35 #ifdef __SYMBIAN32__ |
|
36 IMPORT_C |
|
37 #endif |
|
38 |
|
39 |
|
40 GstFlowReturn gst_riff_read_chunk (GstElement * element, |
|
41 GstPad * pad, |
|
42 guint64 * offset, |
|
43 guint32 * tag, |
|
44 GstBuffer ** chunk_data); |
|
45 |
|
46 /* |
|
47 * These functions operate on provided data (the caller is |
|
48 * supposed to strip the chunk headers). The buffer is |
|
49 * provided by the caller, the strf/strh/data are filled in |
|
50 * by the function. |
|
51 */ |
|
52 #ifdef __SYMBIAN32__ |
|
53 IMPORT_C |
|
54 #endif |
|
55 |
|
56 |
|
57 gboolean gst_riff_parse_chunk (GstElement * element, |
|
58 GstBuffer * buf, |
|
59 guint * offset, |
|
60 guint32 * fourcc, |
|
61 GstBuffer ** chunk_data); |
|
62 #ifdef __SYMBIAN32__ |
|
63 IMPORT_C |
|
64 #endif |
|
65 |
|
66 |
|
67 gboolean gst_riff_parse_file_header (GstElement * element, |
|
68 GstBuffer * buf, |
|
69 guint32 * doctype); |
|
70 #ifdef __SYMBIAN32__ |
|
71 IMPORT_C |
|
72 #endif |
|
73 |
|
74 |
|
75 gboolean gst_riff_parse_strh (GstElement * element, |
|
76 GstBuffer * buf, |
|
77 gst_riff_strh ** strh); |
|
78 #ifdef __SYMBIAN32__ |
|
79 IMPORT_C |
|
80 #endif |
|
81 |
|
82 |
|
83 gboolean gst_riff_parse_strf_vids (GstElement * element, |
|
84 GstBuffer * buf, |
|
85 gst_riff_strf_vids ** strf, |
|
86 GstBuffer ** data); |
|
87 #ifdef __SYMBIAN32__ |
|
88 IMPORT_C |
|
89 #endif |
|
90 |
|
91 gboolean gst_riff_parse_strf_auds (GstElement * element, |
|
92 GstBuffer * buf, |
|
93 gst_riff_strf_auds ** strf, |
|
94 GstBuffer ** data); |
|
95 #ifdef __SYMBIAN32__ |
|
96 IMPORT_C |
|
97 #endif |
|
98 |
|
99 gboolean gst_riff_parse_strf_iavs (GstElement * element, |
|
100 GstBuffer * buf, |
|
101 gst_riff_strf_iavs ** strf, |
|
102 GstBuffer ** data); |
|
103 #ifdef __SYMBIAN32__ |
|
104 IMPORT_C |
|
105 #endif |
|
106 |
|
107 |
|
108 void gst_riff_parse_info (GstElement * element, |
|
109 GstBuffer * buf, |
|
110 GstTagList ** taglist); |
|
111 |
|
112 /* |
|
113 * Init. |
|
114 */ |
|
115 #ifdef __SYMBIAN32__ |
|
116 IMPORT_C |
|
117 #endif |
|
118 |
|
119 void gst_riff_init (void); |
|
120 |
|
121 G_END_DECLS |
|
122 |
|
123 #endif /* __GST_RIFF_READ_H__ */ |