comparison rv10.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 914f484bb476
comparison
equal deleted inserted replaced
12107:1e4996a88ca5 12108:c35d7bc64882
714 rv10_decode_init, 714 rv10_decode_init,
715 NULL, 715 NULL,
716 rv10_decode_end, 716 rv10_decode_end,
717 rv10_decode_frame, 717 rv10_decode_frame,
718 CODEC_CAP_DR1, 718 CODEC_CAP_DR1,
719 .max_lowres = 3,
719 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 1.0"), 720 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
720 .pix_fmts= ff_pixfmt_list_420, 721 .pix_fmts= ff_pixfmt_list_420,
721 }; 722 };
722 723
723 AVCodec rv20_decoder = { 724 AVCodec rv20_decoder = {
729 NULL, 730 NULL,
730 rv10_decode_end, 731 rv10_decode_end,
731 rv10_decode_frame, 732 rv10_decode_frame,
732 CODEC_CAP_DR1 | CODEC_CAP_DELAY, 733 CODEC_CAP_DR1 | CODEC_CAP_DELAY,
733 .flush= ff_mpeg_flush, 734 .flush= ff_mpeg_flush,
735 .max_lowres = 3,
734 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"), 736 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
735 .pix_fmts= ff_pixfmt_list_420, 737 .pix_fmts= ff_pixfmt_list_420,
736 }; 738 };