comparison mpegvideo.h @ 1410:524c904a66b8 libavcodec

PSX MDEC decoder, based upon some code from Sebastian Jedruszkiewicz <elf at frogger dot rules dot pl> note: completly untested, no demuxer yet
author michaelni
date Fri, 22 Aug 2003 14:59:04 +0000
parents da0b3a50d209
children c2e63cb94d06
comparison
equal deleted inserted replaced
1409:62ea3b7d00f0 1410:524c904a66b8
646 int progressive_frame; 646 int progressive_frame;
647 int mpeg2; 647 int mpeg2;
648 int full_pel[2]; 648 int full_pel[2];
649 int interlaced_dct; 649 int interlaced_dct;
650 int first_slice; 650 int first_slice;
651 int first_field; 651 int first_field; ///< is 1 for the first field of a field picture 0 otherwise
652 652
653 /* RTP specific */ 653 /* RTP specific */
654 /* These are explained on avcodec.h */ 654 /* These are explained on avcodec.h */
655 int rtp_mode; 655 int rtp_mode;
656 int rtp_payload_size; 656 int rtp_payload_size;
660 DCTELEM (*block)[64]; ///< points to one of the following blocks 660 DCTELEM (*block)[64]; ///< points to one of the following blocks
661 DCTELEM blocks[2][6][64] __align8; // for HQ mode we need to keep the best block 661 DCTELEM blocks[2][6][64] __align8; // for HQ mode we need to keep the best block
662 int (*decode_mb)(struct MpegEncContext *s, DCTELEM block[6][64]); // used by some codecs to avoid a switch() 662 int (*decode_mb)(struct MpegEncContext *s, DCTELEM block[6][64]); // used by some codecs to avoid a switch()
663 #define SLICE_OK 0 663 #define SLICE_OK 0
664 #define SLICE_ERROR -1 664 #define SLICE_ERROR -1
665 #define SLICE_END -2 //end marker found 665 #define SLICE_END -2 ///<end marker found
666 #define SLICE_NOEND -3 //no end marker or error found but mb count exceeded 666 #define SLICE_NOEND -3 ///<no end marker or error found but mb count exceeded
667 667
668 void (*dct_unquantize_mpeg1)(struct MpegEncContext *s, 668 void (*dct_unquantize_mpeg1)(struct MpegEncContext *s,
669 DCTELEM *block/*align 16*/, int n, int qscale); 669 DCTELEM *block/*align 16*/, int n, int qscale);
670 void (*dct_unquantize_mpeg2)(struct MpegEncContext *s, 670 void (*dct_unquantize_mpeg2)(struct MpegEncContext *s,
671 DCTELEM *block/*align 16*/, int n, int qscale); 671 DCTELEM *block/*align 16*/, int n, int qscale);