Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst-libs / gst / riff / riff-ids.h
1 /* GStreamer RIFF I/O
2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * riff-ids.h: RIFF IDs and structs
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_IDS_H__
23 #define __GST_RIFF_IDS_H__
24
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS
28
29 /* RIFF types */
30 #define GST_RIFF_RIFF_WAVE GST_MAKE_FOURCC ('W','A','V','E')
31 #define GST_RIFF_RIFF_AVI  GST_MAKE_FOURCC ('A','V','I',' ')
32 #define GST_RIFF_RIFF_CDXA GST_MAKE_FOURCC ('C','D','X','A')
33
34 /* tags */
35 #define GST_RIFF_TAG_RIFF GST_MAKE_FOURCC ('R','I','F','F')
36 #define GST_RIFF_TAG_AVF0 GST_MAKE_FOURCC ('A','V','F','0')
37 #define GST_RIFF_TAG_RIFX GST_MAKE_FOURCC ('R','I','F','X')
38 #define GST_RIFF_TAG_LIST GST_MAKE_FOURCC ('L','I','S','T')
39 #define GST_RIFF_TAG_avih GST_MAKE_FOURCC ('a','v','i','h')
40 #define GST_RIFF_TAG_strd GST_MAKE_FOURCC ('s','t','r','d')
41 #define GST_RIFF_TAG_strn GST_MAKE_FOURCC ('s','t','r','n')
42 #define GST_RIFF_TAG_strh GST_MAKE_FOURCC ('s','t','r','h')
43 #define GST_RIFF_TAG_strf GST_MAKE_FOURCC ('s','t','r','f')
44 #define GST_RIFF_TAG_vedt GST_MAKE_FOURCC ('v','e','d','t')
45 #define GST_RIFF_TAG_JUNK GST_MAKE_FOURCC ('J','U','N','K')
46 #define GST_RIFF_TAG_JUNQ GST_MAKE_FOURCC ('J','U','N','Q')
47 #define GST_RIFF_TAG_idx1 GST_MAKE_FOURCC ('i','d','x','1')
48 #define GST_RIFF_TAG_dmlh GST_MAKE_FOURCC ('d','m','l','h')
49 /* WAV stuff */
50 #define GST_RIFF_TAG_fmt  GST_MAKE_FOURCC ('f','m','t',' ')
51 #define GST_RIFF_TAG_data GST_MAKE_FOURCC ('d','a','t','a')
52 #define GST_RIFF_TAG_plst GST_MAKE_FOURCC ('p','l','s','t')
53 #define GST_RIFF_TAG_cue  GST_MAKE_FOURCC ('c','u','e',' ')
54 #define GST_RIFF_TAG_bext GST_MAKE_FOURCC ('b','e','x','t')
55 #define GST_RIFF_TAG_BEXT GST_MAKE_FOURCC ('B','E','X','T')
56 #define GST_RIFF_TAG_fact GST_MAKE_FOURCC ('f','a','c','t')
57 #define GST_RIFF_TAG_acid GST_MAKE_FOURCC ('a','c','i','d')
58
59 /* LIST types */
60 #define GST_RIFF_LIST_movi GST_MAKE_FOURCC ('m','o','v','i')
61 #define GST_RIFF_LIST_hdrl GST_MAKE_FOURCC ('h','d','r','l')
62 #define GST_RIFF_LIST_odml GST_MAKE_FOURCC ('o','d','m','l')
63 #define GST_RIFF_LIST_strl GST_MAKE_FOURCC ('s','t','r','l')
64 #define GST_RIFF_LIST_INFO GST_MAKE_FOURCC ('I','N','F','O')
65 #define GST_RIFF_LIST_AVIX GST_MAKE_FOURCC ('A','V','I','X')
66 #define GST_RIFF_LIST_adtl GST_MAKE_FOURCC ('a','d','t','l')
67
68 /* fcc types */
69 #define GST_RIFF_FCC_vids GST_MAKE_FOURCC ('v','i','d','s')
70 #define GST_RIFF_FCC_auds GST_MAKE_FOURCC ('a','u','d','s')
71 #define GST_RIFF_FCC_pads GST_MAKE_FOURCC ('p','a','d','s')
72 #define GST_RIFF_FCC_txts GST_MAKE_FOURCC ('t','x','t','s')
73 #define GST_RIFF_FCC_vidc GST_MAKE_FOURCC ('v','i','d','c')
74 #define GST_RIFF_FCC_iavs GST_MAKE_FOURCC ('i','a','v','s')
75 /* fcc handlers */
76 #define GST_RIFF_FCCH_RLE  GST_MAKE_FOURCC ('R','L','E',' ')
77 #define GST_RIFF_FCCH_msvc GST_MAKE_FOURCC ('m','s','v','c')
78 #define GST_RIFF_FCCH_MSVC GST_MAKE_FOURCC ('M','S','V','C')
79
80 /* INFO types - see http://www.saettler.com/RIFFMCI/riffmci.html */
81 #define GST_RIFF_INFO_IARL GST_MAKE_FOURCC ('I','A','R','L') /* location */
82 #define GST_RIFF_INFO_IART GST_MAKE_FOURCC ('I','A','R','T') /* artist */
83 #define GST_RIFF_INFO_ICMS GST_MAKE_FOURCC ('I','C','M','S') /* commissioned */
84 #define GST_RIFF_INFO_ICMT GST_MAKE_FOURCC ('I','C','M','T') /* comment */
85 #define GST_RIFF_INFO_ICOP GST_MAKE_FOURCC ('I','C','O','P') /* copyright */
86 #define GST_RIFF_INFO_ICRD GST_MAKE_FOURCC ('I','C','R','D') /* creation date */
87 #define GST_RIFF_INFO_ICRP GST_MAKE_FOURCC ('I','C','R','P') /* cropped */
88 #define GST_RIFF_INFO_IDIM GST_MAKE_FOURCC ('I','D','I','M') /* dimensions */
89 #define GST_RIFF_INFO_IDPI GST_MAKE_FOURCC ('I','D','P','I') /* dots-per-inch */
90 #define GST_RIFF_INFO_IENG GST_MAKE_FOURCC ('I','E','N','G') /* engineer(s) */
91 #define GST_RIFF_INFO_IGNR GST_MAKE_FOURCC ('I','G','N','R') /* genre */
92 #define GST_RIFF_INFO_IKEY GST_MAKE_FOURCC ('I','K','E','Y') /* keywords */
93 #define GST_RIFF_INFO_ILGT GST_MAKE_FOURCC ('I','L','G','T') /* lightness */
94 #define GST_RIFF_INFO_IMED GST_MAKE_FOURCC ('I','M','E','D') /* medium */
95 #define GST_RIFF_INFO_INAM GST_MAKE_FOURCC ('I','N','A','M') /* name */
96 #define GST_RIFF_INFO_IPLT GST_MAKE_FOURCC ('I','P','L','T') /* palette setting */
97 #define GST_RIFF_INFO_IPRD GST_MAKE_FOURCC ('I','P','R','D') /* product */
98 #define GST_RIFF_INFO_ISBJ GST_MAKE_FOURCC ('I','S','B','J') /* subject */
99 #define GST_RIFF_INFO_ISFT GST_MAKE_FOURCC ('I','S','F','T') /* software */
100 #define GST_RIFF_INFO_ISHP GST_MAKE_FOURCC ('I','S','H','P') /* sharpness */
101 #define GST_RIFF_INFO_ISRC GST_MAKE_FOURCC ('I','S','R','C') /* source */
102 #define GST_RIFF_INFO_ISRF GST_MAKE_FOURCC ('I','S','R','F') /* source form */
103 #define GST_RIFF_INFO_ITCH GST_MAKE_FOURCC ('I','T','C','H') /* technician(s) */
104
105 /*********Chunk Names***************/
106 #define GST_RIFF_FF00 GST_MAKE_FOURCC (0xFF,0xFF,0x00,0x00)
107 #define GST_RIFF_00   GST_MAKE_FOURCC ('0', '0',0x00,0x00)
108 #define GST_RIFF_01   GST_MAKE_FOURCC ('0', '1',0x00,0x00)
109 #define GST_RIFF_02   GST_MAKE_FOURCC ('0', '2',0x00,0x00)
110 #define GST_RIFF_03   GST_MAKE_FOURCC ('0', '3',0x00,0x00)
111 #define GST_RIFF_04   GST_MAKE_FOURCC ('0', '4',0x00,0x00)
112 #define GST_RIFF_05   GST_MAKE_FOURCC ('0', '5',0x00,0x00)
113 #define GST_RIFF_06   GST_MAKE_FOURCC ('0', '6',0x00,0x00)
114 #define GST_RIFF_07   GST_MAKE_FOURCC ('0', '7',0x00,0x00)
115 #define GST_RIFF_00pc GST_MAKE_FOURCC ('0', '0', 'p', 'c')
116 #define GST_RIFF_01pc GST_MAKE_FOURCC ('0', '1', 'p', 'c')
117 #define GST_RIFF_00dc GST_MAKE_FOURCC ('0', '0', 'd', 'c')
118 #define GST_RIFF_00dx GST_MAKE_FOURCC ('0', '0', 'd', 'x')
119 #define GST_RIFF_00db GST_MAKE_FOURCC ('0', '0', 'd', 'b')
120 #define GST_RIFF_00xx GST_MAKE_FOURCC ('0', '0', 'x', 'x')
121 #define GST_RIFF_00id GST_MAKE_FOURCC ('0', '0', 'i', 'd')
122 #define GST_RIFF_00rt GST_MAKE_FOURCC ('0', '0', 'r', 't')
123 #define GST_RIFF_0021 GST_MAKE_FOURCC ('0', '0', '2', '1')
124 #define GST_RIFF_00iv GST_MAKE_FOURCC ('0', '0', 'i', 'v')
125 #define GST_RIFF_0031 GST_MAKE_FOURCC ('0', '0', '3', '1')
126 #define GST_RIFF_0032 GST_MAKE_FOURCC ('0', '0', '3', '2')
127 #define GST_RIFF_00vc GST_MAKE_FOURCC ('0', '0', 'v', 'c')
128 #define GST_RIFF_00xm GST_MAKE_FOURCC ('0', '0', 'x', 'm')
129 #define GST_RIFF_01wb GST_MAKE_FOURCC ('0', '1', 'w', 'b')
130 #define GST_RIFF_01dc GST_MAKE_FOURCC ('0', '1', 'd', 'c')
131 #define GST_RIFF_00__ GST_MAKE_FOURCC ('0', '0', '_', '_')
132
133 /*********VIDEO CODECS**************/
134 #define GST_RIFF_cram GST_MAKE_FOURCC ('c', 'r', 'a', 'm')
135 #define GST_RIFF_CRAM GST_MAKE_FOURCC ('C', 'R', 'A', 'M')
136 #define GST_RIFF_wham GST_MAKE_FOURCC ('w', 'h', 'a', 'm')
137 #define GST_RIFF_WHAM GST_MAKE_FOURCC ('W', 'H', 'A', 'M')
138 #define GST_RIFF_rgb  GST_MAKE_FOURCC (0x00,0x00,0x00,0x00)
139 #define GST_RIFF_RGB  GST_MAKE_FOURCC ('R', 'G', 'B', ' ')
140 #define GST_RIFF_RAW  GST_MAKE_FOURCC ('R', 'A', 'W', ' ')
141 #define GST_RIFF_DIB  GST_MAKE_FOURCC ('D', 'I', 'B', ' ')
142 #define GST_RIFF_rle8 GST_MAKE_FOURCC (0x01,0x00,0x00,0x00)
143 #define GST_RIFF_RLE8 GST_MAKE_FOURCC ('R', 'L', 'E', '8')
144 #define GST_RIFF_rle4 GST_MAKE_FOURCC (0x02,0x00,0x00,0x00)
145 #define GST_RIFF_RLE4 GST_MAKE_FOURCC ('R', 'L', 'E', '4')
146 #define GST_RIFF_none GST_MAKE_FOURCC (0x00,0x00,0xFF,0xFF)
147 #define GST_RIFF_NONE GST_MAKE_FOURCC ('N', 'O', 'N', 'E')
148 #define GST_RIFF_pack GST_MAKE_FOURCC (0x01,0x00,0xFF,0xFF)
149 #define GST_RIFF_PACK GST_MAKE_FOURCC ('P', 'A', 'C', 'K')
150 #define GST_RIFF_tran GST_MAKE_FOURCC (0x02,0x00,0xFF,0xFF)
151 #define GST_RIFF_TRAN GST_MAKE_FOURCC ('T', 'R', 'A', 'N')
152 #define GST_RIFF_ccc  GST_MAKE_FOURCC (0x03,0x00,0xFF,0xFF)
153 #define GST_RIFF_CCC  GST_MAKE_FOURCC ('C', 'C', 'C', ' ')
154 #define GST_RIFF_cyuv GST_MAKE_FOURCC ('c', 'y', 'u', 'v')
155 #define GST_RIFF_CYUV GST_MAKE_FOURCC ('C', 'Y', 'U', 'V')
156 #define GST_RIFF_jpeg GST_MAKE_FOURCC (0x04,0x00,0xFF,0xFF)
157 #define GST_RIFF_JPEG GST_MAKE_FOURCC ('J', 'P', 'E', 'G')
158 #define GST_RIFF_MJPG GST_MAKE_FOURCC ('M', 'J', 'P', 'G')
159 #define GST_RIFF_mJPG GST_MAKE_FOURCC ('m', 'J', 'P', 'G')
160 #define GST_RIFF_IJPG GST_MAKE_FOURCC ('I', 'J', 'P', 'G')
161 #define GST_RIFF_rt21 GST_MAKE_FOURCC ('r', 't', '2', '1')
162 #define GST_RIFF_RT21 GST_MAKE_FOURCC ('R', 'T', '2', '1')
163 #define GST_RIFF_iv31 GST_MAKE_FOURCC ('i', 'v', '3', '1')
164 #define GST_RIFF_IV31 GST_MAKE_FOURCC ('I', 'V', '3', '1')
165 #define GST_RIFF_iv32 GST_MAKE_FOURCC ('i', 'v', '3', '2')
166 #define GST_RIFF_IV32 GST_MAKE_FOURCC ('I', 'V', '3', '2')
167 #define GST_RIFF_iv41 GST_MAKE_FOURCC ('i', 'v', '4', '1')
168 #define GST_RIFF_IV41 GST_MAKE_FOURCC ('I', 'V', '4', '1')
169 #define GST_RIFF_iv50 GST_MAKE_FOURCC ('i', 'v', '5', '0')
170 #define GST_RIFF_IV50 GST_MAKE_FOURCC ('I', 'V', '5', '0')
171 #define GST_RIFF_cvid GST_MAKE_FOURCC ('c', 'v', 'i', 'd')
172 #define GST_RIFF_CVID GST_MAKE_FOURCC ('C', 'V', 'I', 'D')
173 #define GST_RIFF_ULTI GST_MAKE_FOURCC ('U', 'L', 'T', 'I')
174 #define GST_RIFF_ulti GST_MAKE_FOURCC ('u', 'l', 't', 'i')
175 #define GST_RIFF_YUV9 GST_MAKE_FOURCC ('Y', 'V', 'U', '9')
176 #define GST_RIFF_YVU9 GST_MAKE_FOURCC ('Y', 'U', 'V', '9')
177 #define GST_RIFF_XMPG GST_MAKE_FOURCC ('X', 'M', 'P', 'G')
178 #define GST_RIFF_xmpg GST_MAKE_FOURCC ('x', 'm', 'p', 'g')
179 #define GST_RIFF_VDOW GST_MAKE_FOURCC ('V', 'D', 'O', 'W')
180 #define GST_RIFF_MVI1 GST_MAKE_FOURCC ('M', 'V', 'I', '1')
181 #define GST_RIFF_v422 GST_MAKE_FOURCC ('v', '4', '2', '2')
182 #define GST_RIFF_V422 GST_MAKE_FOURCC ('V', '4', '2', '2')
183 #define GST_RIFF_mvi1 GST_MAKE_FOURCC ('m', 'v', 'i', '1')
184 #define GST_RIFF_MPIX GST_MAKE_FOURCC (0x04,0x00, 'i', '1')     /* MotionPixels munged their id */
185 #define GST_RIFF_AURA GST_MAKE_FOURCC ('A', 'U', 'R', 'A')
186 #define GST_RIFF_DMB1 GST_MAKE_FOURCC ('D', 'M', 'B', '1')
187 #define GST_RIFF_dmb1 GST_MAKE_FOURCC ('d', 'm', 'b', '1')
188
189 #define GST_RIFF_BW10 GST_MAKE_FOURCC ('B', 'W', '1', '0')
190 #define GST_RIFF_bw10 GST_MAKE_FOURCC ('b', 'w', '1', '0')
191
192 #define GST_RIFF_yuy2 GST_MAKE_FOURCC ('y', 'u', 'y', '2')
193 #define GST_RIFF_YUY2 GST_MAKE_FOURCC ('Y', 'U', 'Y', '2')
194 #define GST_RIFF_YUV8 GST_MAKE_FOURCC ('Y', 'U', 'V', '8')
195 #define GST_RIFF_WINX GST_MAKE_FOURCC ('W', 'I', 'N', 'X')
196 #define GST_RIFF_WPY2 GST_MAKE_FOURCC ('W', 'P', 'Y', '2')
197 #define GST_RIFF_m263 GST_MAKE_FOURCC ('m', '2', '6', '3')
198 #define GST_RIFF_M263 GST_MAKE_FOURCC ('M', '2', '6', '3')
199 #define GST_RIFF_H263 GST_MAKE_FOURCC ('H', '2', '6', '3')
200 #define GST_RIFF_h263 GST_MAKE_FOURCC ('h', '2', '6', '3')
201 #define GST_RIFF_i263 GST_MAKE_FOURCC ('i', '2', '6', '3')
202 #define GST_RIFF_L263 GST_MAKE_FOURCC ('L', '2', '6', '3')
203 #define GST_RIFF_x263 GST_MAKE_FOURCC ('x', '2', '6', '3')
204 #define GST_RIFF_VSSH GST_MAKE_FOURCC ( 'V', 'S', 'S', 'H') /* H2.64 */
205
206 #define GST_RIFF_Q1_0 GST_MAKE_FOURCC ('Q', '1',0x2e, '0')
207 #define GST_RIFF_SFMC GST_MAKE_FOURCC ('S', 'F', 'M', 'C')
208
209 #define GST_RIFF_y41p GST_MAKE_FOURCC ('y', '4', '1', 'p')
210 #define GST_RIFF_Y41P GST_MAKE_FOURCC ('Y', '4', '1', 'P')
211 #define GST_RIFF_yv12 GST_MAKE_FOURCC ('y', 'v', '1', '2')
212 #define GST_RIFF_YV12 GST_MAKE_FOURCC ('Y', 'V', '1', '2')
213 #define GST_RIFF_vixl GST_MAKE_FOURCC ('v', 'i', 'x', 'l')
214 #define GST_RIFF_VIXL GST_MAKE_FOURCC ('V', 'I', 'X', 'L')
215 #define GST_RIFF_iyuv GST_MAKE_FOURCC ('i', 'y', 'u', 'v')
216 #define GST_RIFF_IYUV GST_MAKE_FOURCC ('I', 'Y', 'U', 'V')
217 #define GST_RIFF_i420 GST_MAKE_FOURCC ('i', '4', '2', '0')
218 #define GST_RIFF_I420 GST_MAKE_FOURCC ('I', '4', '2', '0')
219 #define GST_RIFF_vyuy GST_MAKE_FOURCC ('v', 'y', 'u', 'y')
220 #define GST_RIFF_VYUY GST_MAKE_FOURCC ('V', 'Y', 'U', 'Y')
221
222 #define GST_RIFF_DIV3 GST_MAKE_FOURCC ('D', 'I', 'V', '3')
223
224 #define GST_RIFF_rpza GST_MAKE_FOURCC ('r', 'p', 'z', 'a')
225 /* And this here's the mistakes that need to be supported */
226 #define GST_RIFF_azpr GST_MAKE_FOURCC ('a', 'z', 'p', 'r')  /* recognize Apple's rpza mangled? */
227
228 /*********** FND in MJPG **********/
229 #define GST_RIFF_ISFT GST_MAKE_FOURCC ('I', 'S', 'F', 'T')
230 #define GST_RIFF_IDIT GST_MAKE_FOURCC ('I', 'D', 'I', 'T')
231
232 #define GST_RIFF_00AM GST_MAKE_FOURCC ('0', '0', 'A', 'M')
233 #define GST_RIFF_DISP GST_MAKE_FOURCC ('D', 'I', 'S', 'P')
234 #define GST_RIFF_ISBJ GST_MAKE_FOURCC ('I', 'S', 'B', 'J')
235
236 #define GST_RIFF_rec  GST_MAKE_FOURCC ('r', 'e', 'c', ' ')
237
238 /* common data structures */
239 typedef struct _gst_riff_strh {
240   guint32 type;             /* stream type */
241   guint32 fcc_handler;       /* fcc_handler */
242   guint32 flags;
243 /* flags values */
244 #define GST_RIFF_STRH_DISABLED        0x000000001
245 #define GST_RIFF_STRH_VIDEOPALCHANGES 0x000010000
246   guint32 priority;
247   guint32 init_frames;       /* initial frames (???) */
248   guint32 scale;
249   guint32 rate;
250   guint32 start;
251   guint32 length;
252   guint32 bufsize;           /* suggested buffer size */
253   guint32 quality;
254   guint32 samplesize;
255   /* rcFrame, RECT structure(struct of 4 shorts)
256   gint32  left;
257   gint32  top;
258   gint32  right;
259   gint32  bottom;
260   */
261 } gst_riff_strh;
262
263 typedef struct _gst_riff_strf_vids {       /* == BitMapInfoHeader */
264   guint32 size;
265   guint32 width;
266   guint32 height;
267   guint16 planes;
268   guint16 bit_cnt;
269   guint32 compression;
270   guint32 image_size;
271   guint32 xpels_meter;
272   guint32 ypels_meter;
273   guint32 num_colors;        /* used colors */
274   guint32 imp_colors;        /* important colors */
275   /* may be more for some codecs */
276 } gst_riff_strf_vids;
277
278
279 typedef struct _gst_riff_strf_auds {       /* == WaveHeader (?) */
280   guint16 format;
281 /**** from public Microsoft RIFF docs ******/
282 #define GST_RIFF_WAVE_FORMAT_UNKNOWN        (0x0000)
283 #define GST_RIFF_WAVE_FORMAT_PCM            (0x0001)
284 #define GST_RIFF_WAVE_FORMAT_ADPCM          (0x0002)
285 #define GST_RIFF_WAVE_FORMAT_IEEE_FLOAT     (0x0003)
286 #define GST_RIFF_WAVE_FORMAT_VSELP          (0x0004)
287 #define GST_RIFF_WAVE_FORMAT_IBM_CVSD       (0x0005)
288 #define GST_RIFF_WAVE_FORMAT_ALAW           (0x0006)
289 #define GST_RIFF_WAVE_FORMAT_MULAW          (0x0007)
290 #define GST_RIFF_WAVE_FORMAT_WMS            (0x000a) /* WMS Windows Media Audio Speech */
291 #define GST_RIFF_WAVE_FORMAT_OKI_ADPCM      (0x0010)
292 #define GST_RIFF_WAVE_FORMAT_DVI_ADPCM      (0x0011)
293 #define GST_RIFF_WAVE_FORMAT_MEDIASPACE_ADPCM (0x0012)
294 #define GST_RIFF_WAVE_FORMAT_SIERRA_ADPCM   (0x0013)
295 #define GST_RIFF_WAVE_FORMAT_G723_ADPCM     (0x0014)
296 #define GST_RIFF_WAVE_FORMAT_DIGISTD        (0x0015)
297 #define GST_RIFF_WAVE_FORMAT_DIGIFIX        (0x0016)
298 #define GST_RIFF_WAVE_FORMAT_DIALOGIC_OKI_ADPCM (0x0017)
299 #define GST_RIFF_WAVE_FORMAT_MEDIAVISION_ADPCM  (0x0018)
300 #define GST_RIFF_WAVE_FORMAT_CU_CODEC       (0x0019)
301 #define GST_RIFF_WAVE_FORMAT_YAMAHA_ADPCM   (0x0020)
302 #define GST_RIFF_WAVE_FORMAT_SONARC         (0x0021)
303 #define GST_RIFF_WAVE_FORMAT_DSP_TRUESPEECH (0x0022)
304 #define GST_RIFF_WAVE_FORMAT_ECHOSC1        (0x0023)
305 #define GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF36 (0x0024)
306 #define GST_RIFF_WAVE_FORMAT_APTX           (0x0025)
307 #define GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF10 (0x0026)
308 #define GST_RIFF_WAVE_FORMAT_PROSODY_1612   (0x0027)
309 #define GST_RIFF_WAVE_FORMAT_LRC            (0x0028)
310 #define GST_RIFF_WAVE_FORMAT_DOLBY_AC2      (0x0030)
311 #define GST_RIFF_WAVE_FORMAT_GSM610         (0x0031)
312 #define GST_RIFF_WAVE_FORMAT_MSN            (0x0032)
313 #define GST_RIFF_WAVE_FORMAT_ANTEX_ADPCME   (0x0033 
314 #define GST_RIFF_WAVE_FORMAT_CONTROL_RES_VQLPC (0x0034)
315 #define GST_RIFF_WAVE_FORMAT_DIGIREAL       (0x0035)
316 #define GST_RIFF_WAVE_FORMAT_DIGIADPCM      (0x0036)
317 #define GST_RIFF_WAVE_FORMAT_CONTROL_RES_CR10  (0x0037)
318 #define GST_RIFF_WAVE_FORMAT_NMS_VBXADPCM   (0x0038)
319 #define GST_RIFF_WAVE_FORMAT_CS_IMAADPCM    (0x0039)
320 #define GST_RIFF_WAVE_FORMAT_ECHOSC3        (0x003A)
321 #define GST_RIFF_WAVE_FORMAT_ROCKWELL_ADPCM (0x003B)
322 #define GST_RIFF_WAVE_FORMAT_ROCKWELL_DIGITALK (0x003C)
323 #define GST_RIFF_WAVE_FORMAT_XEBEC          (0x003D)
324 #define GST_RIFF_WAVE_FORMAT_ITU_G721_ADPCM (0x0040)
325 #define GST_RIFF_WAVE_FORMAT_G728_CELP      (0x0041)
326 #define GST_RIFF_WAVE_FORMAT_MSG723         (0x0042)
327 #define GST_RIFF_WAVE_FORMAT_MPEGL12        (0x0050)
328 #define GST_RIFF_WAVE_FORMAT_RT24           (0x0052)
329 #define GST_RIFF_WAVE_FORMAT_PAC            (0x0053)
330 #define GST_RIFF_WAVE_FORMAT_MPEGL3         (0x0055)
331 #define GST_RIFF_WAVE_FORMAT_AMR_NB         (0x0057)
332 #define GST_RIFF_WAVE_FORMAT_AMR_WB         (0x0058)
333 #define GST_RIFF_WAVE_FORMAT_LUCENT_G723    (0x0059)
334 #define GST_RIFF_WAVE_FORMAT_CIRRUS         (0x0060)
335 #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4  (0x0061)  /* not official */
336 #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK3  (0x0062)  /* not official */
337 /* FIXME: where are these from? are they used at all? */
338 #if 0
339 #define GST_RIFF_WAVE_FORMAT_ESPCM          (0x0061)
340 #define GST_RIFF_WAVE_FORMAT_VOXWARE        (0x0062)
341 #endif
342 #define GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC  (0x0063)
343 #define GST_RIFF_WAVE_FORMAT_G726_ADPCM     (0x0064)
344 #define GST_RIFF_WAVE_FORMAT_G722_ADPCM     (0x0065)
345 #define GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY   (0x0067)
346 #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
347 /* FIXME: where are these from? are they used at all? */
348 #if 0
349 #define GST_RIFF_WAVE_FORMAT_VOXWARE_BYTE_ALIGNED (0x0069)
350 #endif
351 #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC8    (0x0070)
352 #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC10   (0x0071)
353 #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC16   (0x0072)
354 #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC20   (0x0073)
355 #define GST_RIFF_WAVE_FORMAT_VOXWARE_METAVOICE (0x0074)
356 #define GST_RIFF_WAVE_FORMAT_VOXWARE_METASOUND (0x0075)
357 #define GST_RIFF_WAVE_FORMAT_VOXWARE_RT29HW (0x0076)
358 #define GST_RIFF_WAVE_FORMAT_VOXWARE_VR12   (0x0077)
359 #define GST_RIFF_WAVE_FORMAT_VOXWARE_VR18   (0x0078)
360 #define GST_RIFF_WAVE_FORMAT_VOXWARE_TQ40   (0x0079)
361 #define GST_RIFF_WAVE_FORMAT_SOFTSOUND      (0x0080)
362 #define GST_RIFF_WAVE_FORMAT_VOXWARE_TQ60   (0x0081)
363 #define GST_RIFF_WAVE_FORMAT_MSRT24         (0x0082)
364 #define GST_RIFF_WAVE_FORMAT_G729A          (0x0083)
365 #define GST_RIFF_WAVE_FORMAT_MVI_MVI2       (0x0084)
366 #define GST_RIFF_WAVE_FORMAT_DF_G726        (0x0085)
367 #define GST_RIFF_WAVE_FORMAT_DF_GSM610      (0x0086)
368 #define GST_RIFF_WAVE_FORMAT_ISIAUDIO       (0x0088)
369 #define GST_RIFF_WAVE_FORMAT_ONLIVE         (0x0089)
370 #define GST_RIFF_WAVE_FORMAT_SBC24          (0x0091)
371 #define GST_RIFF_WAVE_FORMAT_DOLBY_AC3_SPDIF  (0x0092)
372 #define GST_RIFF_WAVE_FORMAT_MEDIASONIC_G723  (0x0093)
373 #define GST_RIFF_WAVE_FORMAT_PROSODY_8KBPS  (0x0094)
374 #define GST_RIFF_WAVE_FORMAT_ZYXEL_ADPCM    (0x0097)
375 #define GST_RIFF_WAVE_FORMAT_PHILIPS_LPCBB  (0x0098)
376 #define GST_RIFF_WAVE_FORMAT_PACKED         (0x0099)
377 #define GST_RIFF_WAVE_FORMAT_MALDEN_PHONYTALK (0x00A0)
378 #define GST_RIFF_WAVE_FORMAT_AAC            (0x00ff)
379 #define GST_RIFF_WAVE_FORMAT_RHETOREX_ADPCM (0x0100)
380 #define GST_RIFF_IBM_FORMAT_MULAW           (0x0101)
381 #define GST_RIFF_IBM_FORMAT_ALAW            (0x0102)
382 #define GST_RIFF_IBM_FORMAT_ADPCM           (0x0103)
383 #define GST_RIFF_WAVE_FORMAT_VIVO_G723      (0x0111)
384 #define GST_RIFF_WAVE_FORMAT_VIVO_SIREN     (0x0112)
385 #define GST_RIFF_WAVE_FORMAT_DIGITAL_G723   (0x0123)
386 #define GST_RIFF_WAVE_FORMAT_SANYO_LD_ADPCM (0x0125)
387 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACEPLNET  (0x0130)
388 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP4800 (0x0131)
389 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP8V3  (0x0132)
390 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_G729   (0x0133)
391 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_G729A  (0x0134)
392 #define GST_RIFF_WAVE_FORMAT_SIPROLAB_KELVIN (0x0135)
393 #define GST_RIFF_WAVE_FORMAT_G726ADPCM       (0x0140)
394 #define GST_RIFF_WAVE_FORMAT_QUALCOMM_PUREVOICE (0x0150)
395 #define GST_RIFF_WAVE_FORMAT_QUALCOMM_HALFRATE  (0x0151)
396 #define GST_RIFF_WAVE_FORMAT_TUBGSM             (0x0155)
397 #define GST_RIFF_WAVE_FORMAT_WMAV1          (0x0160)
398 #define GST_RIFF_WAVE_FORMAT_WMAV2          (0x0161)
399 #define GST_RIFF_WAVE_FORMAT_WMAV3          (0x0162)
400 #define GST_RIFF_WAVE_FORMAT_WMAV3_L        (0x0163)
401 #define GST_RIFF_WAVE_FORMAT_CREATIVE_ADPCM (0x0200)
402 #define GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH8  (0x0202)
403 #define GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH10 (0x0203)
404 #define GST_RIFF_WAVE_FORMAT_UHER_ADPCM     (0x0210)
405 #define GST_RIFF_WAVE_FORMAT_QUARTERDECK    (0x0220)
406 #define GST_RIFF_WAVE_FORMAT_ILINK_VC       (0x0230)
407 #define GST_RIFF_WAVE_FORMAT_RAW_SPORT      (0x0240)
408 #define GST_RIFF_WAVE_FORMAT_IPI_HSX        (0x0250)
409 #define GST_RIFF_WAVE_FORMAT_IPI_RPELP      (0x0251)
410 #define GST_RIFF_WAVE_FORMAT_CS2            (0x0260)
411 #define GST_RIFF_WAVE_FORMAT_SONY_ATRAC3    (0x0270)
412 #define GST_RIFF_WAVE_FORMAT_SIREN          (0x028E)
413 #define GST_RIFF_WAVE_FORMAT_FM_TOWNS_SND   (0x0300)
414 #define GST_RIFF_WAVE_FORMAT_BTV_DIGITAL    (0x0400)
415 #define GST_RIFF_WAVE_FORMAT_IMC            (0x0401)
416 #define GST_RIFF_WAVE_FORMAT_QDESIGN_MUSIC  (0x0450)
417 #define GST_RIFF_WAVE_FORMAT_VME_VMPCM      (0x0680)
418 #define GST_RIFF_WAVE_FORMAT_TPC            (0x0681)
419 #define GST_RIFF_WAVE_FORMAT_OLIGSM         (0x1000)
420 #define GST_RIFF_WAVE_FORMAT_OLIADPCM       (0x1001)
421 #define GST_RIFF_WAVE_FORMAT_OLICELP        (0x1002)
422 #define GST_RIFF_WAVE_FORMAT_OLISBC         (0x1003)
423 #define GST_RIFF_WAVE_FORMAT_OLIOPR         (0x1004)
424 #define GST_RIFF_WAVE_FORMAT_LH_CODEC       (0x1100)
425 #define GST_RIFF_WAVE_FORMAT_NORRIS         (0x1400)
426 #define GST_RIFF_WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS (0x1500)
427 #define GST_RIFF_WAVE_FORMAT_A52            (0x2000)
428 #define GST_RIFF_WAVE_FORMAT_DTS            (0x2001)
429 #define GST_RIFF_WAVE_FORMAT_SONIC          (0x2048)
430 #define GST_RIFF_WAVE_FORMAT_SONIC_LS       (0x2048)
431 #define GST_RIFF_WAVE_FORMAT_AAC_AC         (0x4143)
432 #define GST_RIFF_WAVE_FORMAT_VORBIS1        (0x674f)
433 #define GST_RIFF_WAVE_FORMAT_VORBIS2        (0x6750)
434 #define GST_RIFF_WAVE_FORMAT_VORBIS3        (0x6751)
435 #define GST_RIFF_WAVE_FORMAT_VORBIS1PLUS    (0x676f)
436 #define GST_RIFF_WAVE_FORMAT_VORBIS2PLUS    (0x6770)
437 #define GST_RIFF_WAVE_FORMAT_VORBIS3PLUS    (0x6771)
438 #define GST_RIFF_WAVE_FORMAT_AAC_pm         (0x706d)
439 #define GST_RIFF_WAVE_FORMAT_GSM_AMR_CBR    (0x7A21)
440 #define GST_RIFF_WAVE_FORMAT_GSM_AMR_VBR    (0x7A22)
441 #define GST_RIFF_WAVE_FORMAT_FLAC           (0xF1AC)
442 #define GST_RIFF_WAVE_FORMAT_EXTENSIBLE     (0xFFFE)
443   guint16 channels;
444   guint32 rate;
445   guint32 av_bps;
446   guint16 blockalign;
447 #if 0
448   /* missing field: */
449   guint16 bits_per_sample;
450 #endif
451   guint16 size;
452 } gst_riff_strf_auds;
453
454 typedef struct _gst_riff_strf_iavs {    
455   guint32 DVAAuxSrc;
456   guint32 DVAAuxCtl;
457   guint32 DVAAuxSrc1;
458   guint32 DVAAuxCtl1;
459   guint32 DVVAuxSrc;
460   guint32 DVVAuxCtl;
461   guint32 DVReserved1;
462   guint32 DVReserved2;
463 } gst_riff_strf_iavs;
464
465 typedef struct _gst_riff_index_entry {  
466   guint32 id;
467   guint32 flags;
468 #define GST_RIFF_IF_LIST                (0x00000001L)
469 #define GST_RIFF_IF_KEYFRAME            (0x00000010L)
470 #define GST_RIFF_IF_NO_TIME             (0x00000100L)
471 #define GST_RIFF_IF_COMPUSE             (0x0FFF0000L)
472   guint32 offset;
473   guint32 size;
474 } gst_riff_index_entry;
475
476 typedef struct _gst_riff_dmlh {
477   guint32 totalframes;
478 } gst_riff_dmlh;
479
480 /* taken from libsndfile/wav.c (LGPL) */
481 typedef struct _gst_riff_acid {
482   /* 4 bytes (int)     type of file:
483    *  this appears to be a bit mask,however some combinations
484    *  are probably impossible and/or qualified as "errors"
485    *
486    *  0x01 On: One Shot         Off: Loop
487    *  0x02 On: Root note is Set Off: No root
488    *  0x04 On: Stretch is On,   Off: Strech is OFF
489    *  0x08 On: Disk Based       Off: Ram based
490    *  0x10 On: ??????????       Off: ????????? (Acidizer puts that ON)
491    */
492   guint32 loop_type;
493   /* 2 bytes (short)      root note
494    *  if type 0x10 is OFF : [C,C#,(...),B] -> [0x30 to 0x3B]
495    *  if type 0x10 is ON  : [C,C#,(...),B] -> [0x3C to 0x47]
496    *  (both types fit on same MIDI pitch albeit different octaves, so who cares)
497    */
498   guint16 root_note;
499   /* 2 bytes (short)      ??? always set to 0x8000
500    * 4 bytes (float)      ??? seems to be always 0
501    */
502   guint16 unknown1;
503   gfloat unknown2;
504   /* 4 bytes (int)        number of beats
505    * 2 bytes (short)      meter denominator   //always 4 in SF/ACID
506    * 2 bytes (short)      meter numerator     //always 4 in SF/ACID
507    *                      //are we sure about the order?? usually its num/denom
508    * 4 bytes (float)      tempo
509    */
510   guint32 number_of_beats;
511   guint16 meter_d, meter_n;
512   gfloat tempo;
513 } gst_riff_acid;
514
515 G_END_DECLS
516
517 #endif /* __GST_RIFF_IDS_H__ */