comparison sgi.c @ 858:66cc656ea404 libavformat

Replace CONFIG_ENCODERS/CONFIG_DECODERS with CONFIG_MUXERS/CONFIG_DEMUXERS in libavformat to allow building (de)coders and (de)muxers independently at some point + support for this option in configure.
author diego
date Fri, 23 Sep 2005 00:25:41 +0000
parents 0b52743104ac
children da1d5db0ce5c
comparison
equal deleted inserted replaced
857:26aaf3eed638 858:66cc656ea404
258 } 258 }
259 259
260 return 0; /* not reached */ 260 return 0; /* not reached */
261 } 261 }
262 262
263 #ifdef CONFIG_ENCODERS 263 #ifdef CONFIG_MUXERS
264 static void write_sgi_header(ByteIOContext *f, const SGIInfo *info) 264 static void write_sgi_header(ByteIOContext *f, const SGIInfo *info)
265 { 265 {
266 int i; 266 int i;
267 267
268 put_be16(f, SGI_MAGIC); 268 put_be16(f, SGI_MAGIC);
440 av_free(lengthtab); 440 av_free(lengthtab);
441 av_free(offsettab); 441 av_free(offsettab);
442 442
443 return 0; 443 return 0;
444 } 444 }
445 #endif // CONFIG_ENCODERS 445 #endif // CONFIG_MUXERS
446 446
447 AVImageFormat sgi_image_format = { 447 AVImageFormat sgi_image_format = {
448 "sgi", 448 "sgi",
449 "sgi,rgb,rgba,bw", 449 "sgi,rgb,rgba,bw",
450 sgi_probe, 450 sgi_probe,
451 sgi_read, 451 sgi_read,
452 (1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_RGBA32), 452 (1 << PIX_FMT_GRAY8) | (1 << PIX_FMT_RGB24) | (1 << PIX_FMT_RGBA32),
453 #ifdef CONFIG_ENCODERS 453 #ifdef CONFIG_MUXERS
454 sgi_write, 454 sgi_write,
455 #else 455 #else
456 NULL, 456 NULL,
457 #endif // CONFIG_ENCODERS 457 #endif // CONFIG_MUXERS
458 }; 458 };