Mercurial > libavcodec.hg
comparison pnmenc.c @ 8590:7a463923ecd1 libavcodec
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.
author | aurel |
---|---|
date | Tue, 13 Jan 2009 23:44:16 +0000 |
parents | e943e1409077 |
children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
8589:a29b5b5c3c9d | 8590:7a463923ecd1 |
---|---|
352 return 0; | 352 return 0; |
353 } | 353 } |
354 #endif | 354 #endif |
355 | 355 |
356 | 356 |
357 #ifdef CONFIG_PGM_ENCODER | 357 #if CONFIG_PGM_ENCODER |
358 AVCodec pgm_encoder = { | 358 AVCodec pgm_encoder = { |
359 "pgm", | 359 "pgm", |
360 CODEC_TYPE_VIDEO, | 360 CODEC_TYPE_VIDEO, |
361 CODEC_ID_PGM, | 361 CODEC_ID_PGM, |
362 sizeof(PNMContext), | 362 sizeof(PNMContext), |
367 .pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE}, | 367 .pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE}, |
368 .long_name= NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), | 368 .long_name= NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), |
369 }; | 369 }; |
370 #endif // CONFIG_PGM_ENCODER | 370 #endif // CONFIG_PGM_ENCODER |
371 | 371 |
372 #ifdef CONFIG_PGMYUV_ENCODER | 372 #if CONFIG_PGMYUV_ENCODER |
373 AVCodec pgmyuv_encoder = { | 373 AVCodec pgmyuv_encoder = { |
374 "pgmyuv", | 374 "pgmyuv", |
375 CODEC_TYPE_VIDEO, | 375 CODEC_TYPE_VIDEO, |
376 CODEC_ID_PGMYUV, | 376 CODEC_ID_PGMYUV, |
377 sizeof(PNMContext), | 377 sizeof(PNMContext), |
382 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | 382 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
383 .long_name= NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), | 383 .long_name= NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), |
384 }; | 384 }; |
385 #endif // CONFIG_PGMYUV_ENCODER | 385 #endif // CONFIG_PGMYUV_ENCODER |
386 | 386 |
387 #ifdef CONFIG_PPM_ENCODER | 387 #if CONFIG_PPM_ENCODER |
388 AVCodec ppm_encoder = { | 388 AVCodec ppm_encoder = { |
389 "ppm", | 389 "ppm", |
390 CODEC_TYPE_VIDEO, | 390 CODEC_TYPE_VIDEO, |
391 CODEC_ID_PPM, | 391 CODEC_ID_PPM, |
392 sizeof(PNMContext), | 392 sizeof(PNMContext), |
397 .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE}, | 397 .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE}, |
398 .long_name= NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), | 398 .long_name= NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), |
399 }; | 399 }; |
400 #endif // CONFIG_PPM_ENCODER | 400 #endif // CONFIG_PPM_ENCODER |
401 | 401 |
402 #ifdef CONFIG_PBM_ENCODER | 402 #if CONFIG_PBM_ENCODER |
403 AVCodec pbm_encoder = { | 403 AVCodec pbm_encoder = { |
404 "pbm", | 404 "pbm", |
405 CODEC_TYPE_VIDEO, | 405 CODEC_TYPE_VIDEO, |
406 CODEC_ID_PBM, | 406 CODEC_ID_PBM, |
407 sizeof(PNMContext), | 407 sizeof(PNMContext), |
412 .pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE}, | 412 .pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE}, |
413 .long_name= NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), | 413 .long_name= NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), |
414 }; | 414 }; |
415 #endif // CONFIG_PBM_ENCODER | 415 #endif // CONFIG_PBM_ENCODER |
416 | 416 |
417 #ifdef CONFIG_PAM_ENCODER | 417 #if CONFIG_PAM_ENCODER |
418 AVCodec pam_encoder = { | 418 AVCodec pam_encoder = { |
419 "pam", | 419 "pam", |
420 CODEC_TYPE_VIDEO, | 420 CODEC_TYPE_VIDEO, |
421 CODEC_ID_PAM, | 421 CODEC_ID_PAM, |
422 sizeof(PNMContext), | 422 sizeof(PNMContext), |