Mercurial > libavcodec.hg
comparison mjpegdec.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 | 7dd2a45249a9 |
children | ee740a4e80c5 |
comparison
equal
deleted
inserted
replaced
12107:1e4996a88ca5 | 12108:c35d7bc64882 |
---|---|
1540 NULL, | 1540 NULL, |
1541 ff_mjpeg_decode_end, | 1541 ff_mjpeg_decode_end, |
1542 ff_mjpeg_decode_frame, | 1542 ff_mjpeg_decode_frame, |
1543 CODEC_CAP_DR1, | 1543 CODEC_CAP_DR1, |
1544 NULL, | 1544 NULL, |
1545 .max_lowres = 8, | |
1545 .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), | 1546 .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), |
1546 }; | 1547 }; |
1547 | 1548 |
1548 AVCodec thp_decoder = { | 1549 AVCodec thp_decoder = { |
1549 "thp", | 1550 "thp", |
1554 NULL, | 1555 NULL, |
1555 ff_mjpeg_decode_end, | 1556 ff_mjpeg_decode_end, |
1556 ff_mjpeg_decode_frame, | 1557 ff_mjpeg_decode_frame, |
1557 CODEC_CAP_DR1, | 1558 CODEC_CAP_DR1, |
1558 NULL, | 1559 NULL, |
1560 .max_lowres = 3, | |
1559 .long_name = NULL_IF_CONFIG_SMALL("Nintendo Gamecube THP video"), | 1561 .long_name = NULL_IF_CONFIG_SMALL("Nintendo Gamecube THP video"), |
1560 }; | 1562 }; |