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