comparison asf.h @ 1687:39cafa2f6060 libavformat

simplify GUIDs
author michael
date Sun, 21 Jan 2007 20:06:19 +0000
parents de18846fa25c
children 90be497b752b
comparison
equal deleted inserted replaced
1686:91da722e7423 1687:39cafa2f6060
36 36
37 int64_t packet_pos; 37 int64_t packet_pos;
38 38
39 } ASFStream; 39 } ASFStream;
40 40
41 typedef struct { 41 typedef uint8_t GUID[16];
42 uint32_t v1;
43 uint16_t v2;
44 uint16_t v3;
45 uint8_t v4[8];
46 } GUID;
47 42
48 typedef struct { 43 typedef struct {
49 GUID guid; // generated by client computer 44 GUID guid; // generated by client computer
50 uint64_t file_size; // in bytes 45 uint64_t file_size; // in bytes
51 // invalid if broadcasting 46 // invalid if broadcasting
135 130
136 ASFStream* asf_st; /* currently decoded stream */ 131 ASFStream* asf_st; /* currently decoded stream */
137 } ASFContext; 132 } ASFContext;
138 133
139 static const GUID asf_header = { 134 static const GUID asf_header = {
140 0x75B22630, 0x668E, 0x11CF, { 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C }, 135 0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C
141 }; 136 };
142 137
143 static const GUID file_header = { 138 static const GUID file_header = {
144 0x8CABDCA1, 0xA947, 0x11CF, { 0x8E, 0xE4, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65 }, 139 0xA1, 0xDC, 0xAB, 0x8C, 0x47, 0xA9, 0xCF, 0x11, 0x8E, 0xE4, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65
145 }; 140 };
146 141
147 static const GUID stream_header = { 142 static const GUID stream_header = {
148 0xB7DC0791, 0xA9B7, 0x11CF, { 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65 }, 143 0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65
149 }; 144 };
150 145
151 static const GUID ext_stream_header = { 146 static const GUID ext_stream_header = {
152 0x14E6A5CB, 0xC672, 0x4332, { 0x83, 0x99, 0xA9, 0x69, 0x52, 0x06, 0x5B, 0x5A }, 147 0xCB, 0xA5, 0xE6, 0x14, 0x72, 0xC6, 0x32, 0x43, 0x83, 0x99, 0xA9, 0x69, 0x52, 0x06, 0x5B, 0x5A
153 }; 148 };
154 149
155 static const GUID audio_stream = { 150 static const GUID audio_stream = {
156 0xF8699E40, 0x5B4D, 0x11CF, { 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B }, 151 0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B
157 }; 152 };
158 153
159 static const GUID audio_conceal_none = { 154 static const GUID audio_conceal_none = {
160 // 0x49f1a440, 0x4ece, 0x11d0, { 0xa3, 0xac, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }, 155 // 0x40, 0xa4, 0xf1, 0x49, 0x4ece, 0x11d0, 0xa3, 0xac, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6
161 // New value lifted from avifile 156 // New value lifted from avifile
162 0x20fb5700, 0x5b55, 0x11cf, { 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b }, 157 0x00, 0x57, 0xfb, 0x20, 0x55, 0x5B, 0xCF, 0x11, 0xa8, 0xfd, 0x00, 0x80, 0x5f, 0x5c, 0x44, 0x2b
163 }; 158 };
164 159
165 static const GUID audio_conceal_spread = { 160 static const GUID audio_conceal_spread = {
166 0xBFC3CD50, 0x618F, 0x11CF, { 0x8B, 0xB2, 0x00, 0xAA, 0x00, 0xB4, 0xE2, 0x20 }, 161 0x50, 0xCD, 0xC3, 0xBF, 0x8F, 0x61, 0xCF, 0x11, 0x8B, 0xB2, 0x00, 0xAA, 0x00, 0xB4, 0xE2, 0x20
167 }; 162 };
168 163
169 static const GUID video_stream = { 164 static const GUID video_stream = {
170 0xBC19EFC0, 0x5B4D, 0x11CF, { 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B }, 165 0xC0, 0xEF, 0x19, 0xBC, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B
171 }; 166 };
172 167
173 static const GUID video_conceal_none = { 168 static const GUID video_conceal_none = {
174 0x20FB5700, 0x5B55, 0x11CF, { 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B }, 169 0x00, 0x57, 0xFB, 0x20, 0x55, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B
175 }; 170 };
176 171
177 static const GUID command_stream = { 172 static const GUID command_stream = {
178 0x59DACFC0, 0x59E6, 0x11D0, { 0xA3, 0xAC, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6 }, 173 0xC0, 0xCF, 0xDA, 0x59, 0xE6, 0x59, 0xD0, 0x11, 0xA3, 0xAC, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6
179 }; 174 };
180 175
181 static const GUID comment_header = { 176 static const GUID comment_header = {
182 0x75b22633, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }, 177 0x33, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c
183 }; 178 };
184 179
185 static const GUID codec_comment_header = { 180 static const GUID codec_comment_header = {
186 0x86D15240, 0x311D, 0x11D0, { 0xA3, 0xA4, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6 }, 181 0x40, 0x52, 0xD1, 0x86, 0x1D, 0x31, 0xD0, 0x11, 0xA3, 0xA4, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6
187 }; 182 };
188 static const GUID codec_comment1_header = { 183 static const GUID codec_comment1_header = {
189 0x86d15241, 0x311d, 0x11d0, { 0xa3, 0xa4, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6 }, 184 0x41, 0x52, 0xd1, 0x86, 0x1D, 0x31, 0xD0, 0x11, 0xa3, 0xa4, 0x00, 0xa0, 0xc9, 0x03, 0x48, 0xf6
190 }; 185 };
191 186
192 static const GUID data_header = { 187 static const GUID data_header = {
193 0x75b22636, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }, 188 0x36, 0x26, 0xb2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c
194 }; 189 };
195 190
196 static const GUID head1_guid = { 191 static const GUID head1_guid = {
197 0x5fbf03b5, 0xa92e, 0x11cf, { 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }, 192 0xb5, 0x03, 0xbf, 0x5f, 0x2E, 0xA9, 0xCF, 0x11, 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65
198 }; 193 };
199 194
200 static const GUID head2_guid = { 195 static const GUID head2_guid = {
201 0xabd3d211, 0xa9ba, 0x11cf, { 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65 }, 196 0x11, 0xd2, 0xd3, 0xab, 0xBA, 0xA9, 0xCF, 0x11, 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65
202 }; 197 };
203 198
204 static const GUID extended_content_header = { 199 static const GUID extended_content_header = {
205 0xD2D0A440, 0xE307, 0x11D2, { 0x97, 0xF0, 0x00, 0xA0, 0xC9, 0x5E, 0xA8, 0x50 }, 200 0x40, 0xA4, 0xD0, 0xD2, 0x07, 0xE3, 0xD2, 0x11, 0x97, 0xF0, 0x00, 0xA0, 0xC9, 0x5E, 0xA8, 0x50
206 }; 201 };
207 202
208 static const GUID simple_index_header = { 203 static const GUID simple_index_header = {
209 0x33000890, 0xE5B1, 0x11CF, { 0x89, 0xF4, 0x00, 0xA0, 0xC9, 0x03, 0x49, 0xCB }, 204 0x90, 0x08, 0x00, 0x33, 0xB1, 0xE5, 0xCF, 0x11, 0x89, 0xF4, 0x00, 0xA0, 0xC9, 0x03, 0x49, 0xCB
210 }; 205 };
211 206
212 static const GUID ext_stream_embed_stream_header = { 207 static const GUID ext_stream_embed_stream_header = {
213 0x3afb65e2, 0x47ef, 0x40f2, { 0xac, 0x2c, 0x70, 0xa9, 0x0d, 0x71, 0xd3, 0x43} 208 0xe2, 0x65, 0xfb, 0x3a, 0xEF, 0x47, 0xF2, 0x40, 0xac, 0x2c, 0x70, 0xa9, 0x0d, 0x71, 0xd3, 0x43
214 }; 209 };
215 210
216 static const GUID ext_stream_audio_stream = { 211 static const GUID ext_stream_audio_stream = {
217 0x31178c9d, 0x03e1, 0x4528, { 0xb5, 0x82, 0x3d, 0xf9, 0xdb, 0x22, 0xf5, 0x03} 212 0x9d, 0x8c, 0x17, 0x31, 0xE1, 0x03, 0x28, 0x45, 0xb5, 0x82, 0x3d, 0xf9, 0xdb, 0x22, 0xf5, 0x03
218 }; 213 };
219 214
220 /* I am not a number !!! This GUID is the one found on the PC used to 215 /* I am not a number !!! This GUID is the one found on the PC used to
221 generate the stream */ 216 generate the stream */
222 static const GUID my_guid = { 217 static const GUID my_guid = {
223 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 }, 218 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
224 }; 219 };
225 220
226 #define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT 0x80 //1000 0000 221 #define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT 0x80 //1000 0000
227 222
228 223