comparison raw.c @ 6438:2facedc9f9d7 libavformat

move dirac demuxer to its own file
author aurel
date Sun, 29 Aug 2010 21:44:26 +0000
parents c0f18afd0074
children 4053f191ae61
comparison
equal deleted inserted replaced
6437:c0f18afd0074 6438:2facedc9f9d7
239 239
240 return 0; 240 return 0;
241 } 241 }
242 #endif 242 #endif
243 243
244 #if CONFIG_DIRAC_DEMUXER
245 static int dirac_probe(AVProbeData *p)
246 {
247 if (AV_RL32(p->buf) == MKTAG('B', 'B', 'C', 'D'))
248 return AVPROBE_SCORE_MAX;
249 else
250 return 0;
251 }
252 #endif
253
254 #if CONFIG_DNXHD_DEMUXER 244 #if CONFIG_DNXHD_DEMUXER
255 static int dnxhd_probe(AVProbeData *p) 245 static int dnxhd_probe(AVProbeData *p)
256 { 246 {
257 static const uint8_t header[] = {0x00,0x00,0x02,0x80,0x01}; 247 static const uint8_t header[] = {0x00,0x00,0x02,0x80,0x01};
258 int w, h, compression_id; 248 int w, h, compression_id;
356 ff_raw_write_packet, 346 ff_raw_write_packet,
357 .flags= AVFMT_NOTIMESTAMPS, 347 .flags= AVFMT_NOTIMESTAMPS,
358 }; 348 };
359 #endif 349 #endif
360 350
361 #if CONFIG_DIRAC_DEMUXER
362 AVInputFormat dirac_demuxer = {
363 "dirac",
364 NULL_IF_CONFIG_SMALL("raw Dirac"),
365 0,
366 dirac_probe,
367 ff_raw_video_read_header,
368 ff_raw_read_partial_packet,
369 .flags= AVFMT_GENERIC_INDEX,
370 .value = CODEC_ID_DIRAC,
371 };
372 #endif
373
374 #if CONFIG_DIRAC_MUXER 351 #if CONFIG_DIRAC_MUXER
375 AVOutputFormat dirac_muxer = { 352 AVOutputFormat dirac_muxer = {
376 "dirac", 353 "dirac",
377 NULL_IF_CONFIG_SMALL("raw Dirac"), 354 NULL_IF_CONFIG_SMALL("raw Dirac"),
378 NULL, 355 NULL,