comparison asv1.c @ 11560:8a4984c5cacc libavcodec

Define AVMediaType enum, and use it instead of enum CodecType, which is deprecated and will be dropped at the next major bump.
author stefano
date Tue, 30 Mar 2010 23:30:55 +0000
parents 98970e51365a
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11559:444f4b594fdb 11560:8a4984c5cacc
613 return 0; 613 return 0;
614 } 614 }
615 615
616 AVCodec asv1_decoder = { 616 AVCodec asv1_decoder = {
617 "asv1", 617 "asv1",
618 CODEC_TYPE_VIDEO, 618 AVMEDIA_TYPE_VIDEO,
619 CODEC_ID_ASV1, 619 CODEC_ID_ASV1,
620 sizeof(ASV1Context), 620 sizeof(ASV1Context),
621 decode_init, 621 decode_init,
622 NULL, 622 NULL,
623 decode_end, 623 decode_end,
626 .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), 626 .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"),
627 }; 627 };
628 628
629 AVCodec asv2_decoder = { 629 AVCodec asv2_decoder = {
630 "asv2", 630 "asv2",
631 CODEC_TYPE_VIDEO, 631 AVMEDIA_TYPE_VIDEO,
632 CODEC_ID_ASV2, 632 CODEC_ID_ASV2,
633 sizeof(ASV1Context), 633 sizeof(ASV1Context),
634 decode_init, 634 decode_init,
635 NULL, 635 NULL,
636 decode_end, 636 decode_end,
640 }; 640 };
641 641
642 #if CONFIG_ASV1_ENCODER 642 #if CONFIG_ASV1_ENCODER
643 AVCodec asv1_encoder = { 643 AVCodec asv1_encoder = {
644 "asv1", 644 "asv1",
645 CODEC_TYPE_VIDEO, 645 AVMEDIA_TYPE_VIDEO,
646 CODEC_ID_ASV1, 646 CODEC_ID_ASV1,
647 sizeof(ASV1Context), 647 sizeof(ASV1Context),
648 encode_init, 648 encode_init,
649 encode_frame, 649 encode_frame,
650 //encode_end, 650 //encode_end,
654 #endif 654 #endif
655 655
656 #if CONFIG_ASV2_ENCODER 656 #if CONFIG_ASV2_ENCODER
657 AVCodec asv2_encoder = { 657 AVCodec asv2_encoder = {
658 "asv2", 658 "asv2",
659 CODEC_TYPE_VIDEO, 659 AVMEDIA_TYPE_VIDEO,
660 CODEC_ID_ASV2, 660 CODEC_ID_ASV2,
661 sizeof(ASV1Context), 661 sizeof(ASV1Context),
662 encode_init, 662 encode_init,
663 encode_frame, 663 encode_frame,
664 //encode_end, 664 //encode_end,