Mercurial > libavcodec.hg
comparison mpeg12.c @ 7040:e943e1409077 libavcodec
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
author | stefano |
---|---|
date | Thu, 12 Jun 2008 21:50:13 +0000 |
parents | 082bb10acbd4 |
children | c15e728fd413 |
comparison
equal
deleted
inserted
replaced
7039:b252326ba895 | 7040:e943e1409077 |
---|---|
2443 NULL, | 2443 NULL, |
2444 mpeg_decode_end, | 2444 mpeg_decode_end, |
2445 mpeg_decode_frame, | 2445 mpeg_decode_frame, |
2446 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2446 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2447 .flush= ff_mpeg_flush, | 2447 .flush= ff_mpeg_flush, |
2448 .long_name= "MPEG-1 video", | 2448 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
2449 }; | 2449 }; |
2450 | 2450 |
2451 AVCodec mpeg2video_decoder = { | 2451 AVCodec mpeg2video_decoder = { |
2452 "mpeg2video", | 2452 "mpeg2video", |
2453 CODEC_TYPE_VIDEO, | 2453 CODEC_TYPE_VIDEO, |
2457 NULL, | 2457 NULL, |
2458 mpeg_decode_end, | 2458 mpeg_decode_end, |
2459 mpeg_decode_frame, | 2459 mpeg_decode_frame, |
2460 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2460 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2461 .flush= ff_mpeg_flush, | 2461 .flush= ff_mpeg_flush, |
2462 .long_name= "MPEG-2 video", | 2462 .long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
2463 }; | 2463 }; |
2464 | 2464 |
2465 //legacy decoder | 2465 //legacy decoder |
2466 AVCodec mpegvideo_decoder = { | 2466 AVCodec mpegvideo_decoder = { |
2467 "mpegvideo", | 2467 "mpegvideo", |
2472 NULL, | 2472 NULL, |
2473 mpeg_decode_end, | 2473 mpeg_decode_end, |
2474 mpeg_decode_frame, | 2474 mpeg_decode_frame, |
2475 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2475 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2476 .flush= ff_mpeg_flush, | 2476 .flush= ff_mpeg_flush, |
2477 .long_name= "MPEG-1 video", | 2477 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
2478 }; | 2478 }; |
2479 | 2479 |
2480 #ifdef HAVE_XVMC | 2480 #ifdef HAVE_XVMC |
2481 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ | 2481 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ |
2482 Mpeg1Context *s; | 2482 Mpeg1Context *s; |
2506 NULL, | 2506 NULL, |
2507 mpeg_decode_end, | 2507 mpeg_decode_end, |
2508 mpeg_decode_frame, | 2508 mpeg_decode_frame, |
2509 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, | 2509 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, |
2510 .flush= ff_mpeg_flush, | 2510 .flush= ff_mpeg_flush, |
2511 .long_name = "MPEG-1 video XvMC (X-Video Motion Compensation)", | 2511 .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video XvMC (X-Video Motion Compensation)"), |
2512 }; | 2512 }; |
2513 | 2513 |
2514 #endif | 2514 #endif |
2515 | 2515 |
2516 /* this is ugly i know, but the alternative is too make | 2516 /* this is ugly i know, but the alternative is too make |