comparison h263dec.c @ 1124:64c7c76ed17c libavcodec

* 'externaly' visible option list begins avoptions_ prefix * fixed FLAG AVOption
author kabi
date Mon, 10 Mar 2003 11:48:33 +0000
parents 86a5d0ce86bf
children 7fb0b38ab5a3
comparison
equal deleted inserted replaced
1123:9403cad8a1e8 1124:64c7c76ed17c
790 printf("%Ld\n", rdtsc()-time); 790 printf("%Ld\n", rdtsc()-time);
791 #endif 791 #endif
792 return get_consumed_bytes(s, buf_size); 792 return get_consumed_bytes(s, buf_size);
793 } 793 }
794 794
795 static const AVOption mpeg4_decoptions[] =
796 {
797 AVOPTION_SUB(avoptions_workaround_bug),
798 AVOPTION_END()
799 };
800
795 AVCodec mpeg4_decoder = { 801 AVCodec mpeg4_decoder = {
796 "mpeg4", 802 "mpeg4",
797 CODEC_TYPE_VIDEO, 803 CODEC_TYPE_VIDEO,
798 CODEC_ID_MPEG4, 804 CODEC_ID_MPEG4,
799 sizeof(MpegEncContext), 805 sizeof(MpegEncContext),
800 ff_h263_decode_init, 806 ff_h263_decode_init,
801 NULL, 807 NULL,
802 ff_h263_decode_end, 808 ff_h263_decode_end,
803 ff_h263_decode_frame, 809 ff_h263_decode_frame,
804 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED, 810 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED,
811 .options = mpeg4_decoptions,
805 }; 812 };
806 813
807 AVCodec h263_decoder = { 814 AVCodec h263_decoder = {
808 "h263", 815 "h263",
809 CODEC_TYPE_VIDEO, 816 CODEC_TYPE_VIDEO,
824 ff_h263_decode_init, 831 ff_h263_decode_init,
825 NULL, 832 NULL,
826 ff_h263_decode_end, 833 ff_h263_decode_end,
827 ff_h263_decode_frame, 834 ff_h263_decode_frame,
828 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 835 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
836 mpeg4_decoptions,
829 }; 837 };
830 838
831 AVCodec msmpeg4v2_decoder = { 839 AVCodec msmpeg4v2_decoder = {
832 "msmpeg4v2", 840 "msmpeg4v2",
833 CODEC_TYPE_VIDEO, 841 CODEC_TYPE_VIDEO,
836 ff_h263_decode_init, 844 ff_h263_decode_init,
837 NULL, 845 NULL,
838 ff_h263_decode_end, 846 ff_h263_decode_end,
839 ff_h263_decode_frame, 847 ff_h263_decode_frame,
840 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 848 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
849 mpeg4_decoptions,
841 }; 850 };
842 851
843 AVCodec msmpeg4v3_decoder = { 852 AVCodec msmpeg4v3_decoder = {
844 "msmpeg4", 853 "msmpeg4",
845 CODEC_TYPE_VIDEO, 854 CODEC_TYPE_VIDEO,
848 ff_h263_decode_init, 857 ff_h263_decode_init,
849 NULL, 858 NULL,
850 ff_h263_decode_end, 859 ff_h263_decode_end,
851 ff_h263_decode_frame, 860 ff_h263_decode_frame,
852 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 861 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
862 .options = mpeg4_decoptions,
853 }; 863 };
854 864
855 AVCodec wmv1_decoder = { 865 AVCodec wmv1_decoder = {
856 "wmv1", 866 "wmv1",
857 CODEC_TYPE_VIDEO, 867 CODEC_TYPE_VIDEO,
860 ff_h263_decode_init, 870 ff_h263_decode_init,
861 NULL, 871 NULL,
862 ff_h263_decode_end, 872 ff_h263_decode_end,
863 ff_h263_decode_frame, 873 ff_h263_decode_frame,
864 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 874 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
875 mpeg4_decoptions,
865 }; 876 };
866 877
867 AVCodec h263i_decoder = { 878 AVCodec h263i_decoder = {
868 "h263i", 879 "h263i",
869 CODEC_TYPE_VIDEO, 880 CODEC_TYPE_VIDEO,
872 ff_h263_decode_init, 883 ff_h263_decode_init,
873 NULL, 884 NULL,
874 ff_h263_decode_end, 885 ff_h263_decode_end,
875 ff_h263_decode_frame, 886 ff_h263_decode_frame,
876 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 887 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
888 mpeg4_decoptions,
877 }; 889 };
878 890