comparison Plugins/Input/wma/libffwma/asfheader.h @ 1410:93c0af9bb521 trunk

[svn] Add more files from libmms CVS.
author chainsaw
date Sat, 15 Jul 2006 16:55:29 -0700
parents
children f12d7e208b43
comparison
equal deleted inserted replaced
1409:0f6573c34500 1410:93c0af9bb521
1 /*
2 * Copyright (C) 2000-2003 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * xine 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 *
20 * $Id: asfheader.h,v 1.2 2005/12/12 09:24:19 theuraeus Exp $
21 *
22 * demultiplexer for asf streams
23 *
24 * based on ffmpeg's
25 * ASF compatible encoder and decoder.
26 * Copyright (c) 2000, 2001 Gerard Lantau.
27 *
28 * GUID list from avifile
29 * some other ideas from MPlayer
30 */
31
32 #ifndef ASFHEADER_H
33 #define ASFHEADER_H
34
35 /*
36 * define asf GUIDs (list from avifile)
37 */
38 #define GUID_ERROR 0
39
40 /* base ASF objects */
41 #define GUID_ASF_HEADER 1
42 #define GUID_ASF_DATA 2
43 #define GUID_ASF_SIMPLE_INDEX 3
44 #define GUID_INDEX 4
45 #define GUID_MEDIA_OBJECT_INDEX 5
46 #define GUID_TIMECODE_INDEX 6
47
48 /* header ASF objects */
49 #define GUID_ASF_FILE_PROPERTIES 7
50 #define GUID_ASF_STREAM_PROPERTIES 8
51 #define GUID_ASF_HEADER_EXTENSION 9
52 #define GUID_ASF_CODEC_LIST 10
53 #define GUID_ASF_SCRIPT_COMMAND 11
54 #define GUID_ASF_MARKER 12
55 #define GUID_ASF_BITRATE_MUTUAL_EXCLUSION 13
56 #define GUID_ASF_ERROR_CORRECTION 14
57 #define GUID_ASF_CONTENT_DESCRIPTION 15
58 #define GUID_ASF_EXTENDED_CONTENT_DESCRIPTION 16
59 #define GUID_ASF_STREAM_BITRATE_PROPERTIES 17
60 #define GUID_ASF_EXTENDED_CONTENT_ENCRYPTION 18
61 #define GUID_ASF_PADDING 19
62
63 /* stream properties object stream type */
64 #define GUID_ASF_AUDIO_MEDIA 20
65 #define GUID_ASF_VIDEO_MEDIA 21
66 #define GUID_ASF_COMMAND_MEDIA 22
67 #define GUID_ASF_JFIF_MEDIA 23
68 #define GUID_ASF_DEGRADABLE_JPEG_MEDIA 24
69 #define GUID_ASF_FILE_TRANSFER_MEDIA 25
70 #define GUID_ASF_BINARY_MEDIA 26
71
72 /* stream properties object error correction type */
73 #define GUID_ASF_NO_ERROR_CORRECTION 27
74 #define GUID_ASF_AUDIO_SPREAD 28
75
76 /* mutual exclusion object exlusion type */
77 #define GUID_ASF_MUTEX_BITRATE 29
78 #define GUID_ASF_MUTEX_UKNOWN 30
79
80 /* header extension */
81 #define GUID_ASF_RESERVED_1 31
82
83 /* script command */
84 #define GUID_ASF_RESERVED_SCRIPT_COMMNAND 32
85
86 /* marker object */
87 #define GUID_ASF_RESERVED_MARKER 33
88
89 /* various */
90 /*
91 #define GUID_ASF_HEAD2 27
92 */
93 #define GUID_ASF_AUDIO_CONCEAL_NONE 34
94 #define GUID_ASF_CODEC_COMMENT1_HEADER 35
95 #define GUID_ASF_2_0_HEADER 36
96
97 #define GUID_END 37
98
99
100 /* asf stream types */
101 #define ASF_STREAM_TYPE_UNKNOWN 0
102 #define ASF_STREAM_TYPE_AUDIO 1
103 #define ASF_STREAM_TYPE_VIDEO 2
104 #define ASF_STREAM_TYPE_CONTROL 3
105 #define ASF_STREAM_TYPE_JFIF 4
106 #define ASF_STREAM_TYPE_DEGRADABLE_JPEG 5
107 #define ASF_STREAM_TYPE_FILE_TRANSFER 6
108 #define ASF_STREAM_TYPE_BINARY 7
109
110 #define ASF_MAX_NUM_STREAMS 23
111
112 #ifndef GUID_DEFINED
113 #define GUID_DEFINED
114
115 typedef struct _GUID { /* size is 16 */
116 uint32_t Data1;
117 uint16_t Data2;
118 uint16_t Data3;
119 uint8_t Data4[8];
120 } GUID;
121
122 #endif /* !GUID_DEFINED */
123
124 static const struct
125 {
126 const char* name;
127 const GUID guid;
128 } guids[] =
129 {
130 { "error",
131 { 0x0,} },
132
133
134 /* base ASF objects */
135 { "header",
136 { 0x75b22630, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }} },
137
138 { "data",
139 { 0x75b22636, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }} },
140
141 { "simple index",
142 { 0x33000890, 0xe5b1, 0x11cf, { 0x89, 0xf4, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xcb }} },
143
144 { "index",
145 { 0xd6e229d3, 0x35da, 0x11d1, { 0x90, 0x34, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xbe }} },
146
147 { "media object index",
148 { 0xfeb103f8, 0x12ad, 0x4c64, { 0x84, 0x0f, 0x2a, 0x1d, 0x2f, 0x7a, 0xd4, 0x8c }} },
149
150 { "timecode index",
151 { 0x3cb73fd0, 0x0c4a, 0x4803, { 0x95, 0x3d, 0xed, 0xf7, 0xb6, 0x22, 0x8f, 0x0c }} },
152
153 /* header ASF objects */
154 { "file properties",
155 { 0x8cabdca1, 0xa947, 0x11cf, { 0x8e, 0xe4, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
156
157 { "stream header",
158 { 0xb7dc0791, 0xa9b7, 0x11cf, { 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
159
160 { "header extension",
161 { 0x5fbf03b5, 0xa92e, 0x11cf, { 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
162
163 { "codec list",
164 { 0x86d15240, 0x311d, 0x11d0, { 0xa3, 0xa4, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }} },
165
166 { "script command",
167 { 0x1efb1a30, 0x0b62, 0x11d0, { 0xa3, 0x9b, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }} },
168
169 { "marker",
170 { 0xf487cd01, 0xa951, 0x11cf, { 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
171
172 { "bitrate mutual exclusion",
173 { 0xd6e229dc, 0x35da, 0x11d1, { 0x90, 0x34, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xbe }} },
174
175 { "error correction",
176 { 0x75b22635, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }} },
177
178 { "content description",
179 { 0x75b22633, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }} },
180
181 { "extended content description",
182 { 0xd2d0a440, 0xe307, 0x11d2, { 0x97, 0xf0, 0x00, 0xa0, 0xc9, 0x5e, 0xa8, 0x50 }} },
183
184 { "stream bitrate properties", /* (http://get.to/sdp) */
185 { 0x7bf875ce, 0x468d, 0x11d1, { 0x8d, 0x82, 0x00, 0x60, 0x97, 0xc9, 0xa2, 0xb2 }} },
186
187 { "extended content encryption",
188 { 0x298ae614, 0x2622, 0x4c17, { 0xb9, 0x35, 0xda, 0xe0, 0x7e, 0xe9, 0x28, 0x9c }} },
189
190 { "padding",
191 { 0x1806d474, 0xcadf, 0x4509, { 0xa4, 0xba, 0x9a, 0xab, 0xcb, 0x96, 0xaa, 0xe8 }} },
192
193
194 /* stream properties object stream type */
195 { "audio media",
196 { 0xf8699e40, 0x5b4d, 0x11cf, { 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }} },
197
198 { "video media",
199 { 0xbc19efc0, 0x5b4d, 0x11cf, { 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }} },
200
201 { "command media",
202 { 0x59dacfc0, 0x59e6, 0x11d0, { 0xa3, 0xac, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }} },
203
204 { "JFIF media (JPEG)",
205 { 0xb61be100, 0x5b4e, 0x11cf, { 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }} },
206
207 { "Degradable JPEG media",
208 { 0x35907de0, 0xe415, 0x11cf, { 0xa9, 0x17, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }} },
209
210 { "File Transfer media",
211 { 0x91bd222c, 0xf21c, 0x497a, { 0x8b, 0x6d, 0x5a, 0xa8, 0x6b, 0xfc, 0x01, 0x85 }} },
212
213 { "Binary media",
214 { 0x3afb65e2, 0x47ef, 0x40f2, { 0xac, 0x2c, 0x70, 0xa9, 0x0d, 0x71, 0xd3, 0x43 }} },
215
216 /* stream properties object error correction */
217 { "no error correction",
218 { 0x20fb5700, 0x5b55, 0x11cf, { 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }} },
219
220 { "audio spread",
221 { 0xbfc3cd50, 0x618f, 0x11cf, { 0x8b, 0xb2, 0x00, 0xaa, 0x00, 0xb4, 0xe2, 0x20 }} },
222
223
224 /* mutual exclusion object exlusion type */
225 { "mutex bitrate",
226 { 0xd6e22a01, 0x35da, 0x11d1, { 0x90, 0x34, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xbe }} },
227
228 { "mutex unknown",
229 { 0xd6e22a02, 0x35da, 0x11d1, { 0x90, 0x34, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xbe }} },
230
231
232 /* header extension */
233 { "reserved_1",
234 { 0xabd3d211, 0xa9ba, 0x11cf, { 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
235
236
237 /* script command */
238 { "reserved script command",
239 { 0x4B1ACBE3, 0x100B, 0x11D0, { 0xA3, 0x9B, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6 }} },
240
241 /* marker object */
242 { "reserved marker",
243 { 0x4CFEDB20, 0x75F6, 0x11CF, { 0x9C, 0x0F, 0x00, 0xA0, 0xC9, 0x03, 0x49, 0xCB }} },
244
245 /* various */
246 /* Already defined (reserved_1)
247 { "head2",
248 { 0xabd3d211, 0xa9ba, 0x11cf, { 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }} },
249 */
250 { "audio conceal none",
251 { 0x49f1a440, 0x4ece, 0x11d0, { 0xa3, 0xac, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }} },
252
253 { "codec comment1 header",
254 { 0x86d15241, 0x311d, 0x11d0, { 0xa3, 0xa4, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }} },
255
256 { "asf 2.0 header",
257 { 0xd6e229d1, 0x35da, 0x11d1, { 0x90, 0x34, 0x00, 0xa0, 0xc9, 0x03, 0x49, 0xbe }} },
258
259 };
260
261 #endif