Mercurial > libavcodec.hg
comparison mpeg12.c @ 12108:c35d7bc64882 libavcodec
Add new decoder property max_lowres and do not init decoder if requested value is higher.
author | cehoyos |
---|---|
date | Wed, 07 Jul 2010 21:23:36 +0000 |
parents | 2caea98f5711 |
children | a08f20066719 |
comparison
equal
deleted
inserted
replaced
12107:1e4996a88ca5 | 12108:c35d7bc64882 |
---|---|
2509 NULL, | 2509 NULL, |
2510 mpeg_decode_end, | 2510 mpeg_decode_end, |
2511 mpeg_decode_frame, | 2511 mpeg_decode_frame, |
2512 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2512 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2513 .flush= flush, | 2513 .flush= flush, |
2514 .max_lowres= 3, | |
2514 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), | 2515 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
2515 }; | 2516 }; |
2516 | 2517 |
2517 AVCodec mpeg2video_decoder = { | 2518 AVCodec mpeg2video_decoder = { |
2518 "mpeg2video", | 2519 "mpeg2video", |
2523 NULL, | 2524 NULL, |
2524 mpeg_decode_end, | 2525 mpeg_decode_end, |
2525 mpeg_decode_frame, | 2526 mpeg_decode_frame, |
2526 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2527 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2527 .flush= flush, | 2528 .flush= flush, |
2529 .max_lowres= 3, | |
2528 .long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"), | 2530 .long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
2529 }; | 2531 }; |
2530 | 2532 |
2531 //legacy decoder | 2533 //legacy decoder |
2532 AVCodec mpegvideo_decoder = { | 2534 AVCodec mpegvideo_decoder = { |
2538 NULL, | 2540 NULL, |
2539 mpeg_decode_end, | 2541 mpeg_decode_end, |
2540 mpeg_decode_frame, | 2542 mpeg_decode_frame, |
2541 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, | 2543 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
2542 .flush= flush, | 2544 .flush= flush, |
2545 .max_lowres= 3, | |
2543 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), | 2546 .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
2544 }; | 2547 }; |
2545 | 2548 |
2546 #if CONFIG_MPEG_XVMC_DECODER | 2549 #if CONFIG_MPEG_XVMC_DECODER |
2547 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ | 2550 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ |