comparison mpegvideo.h @ 9003:b595a8a59967 libavcodec

Change the type of pblocks from pointers to short array into pointers to array of 64 DCTELEM, similarly to other block fields. This also get rid of some casts and fixes a warning.
author iive
date Sun, 22 Feb 2009 09:02:06 +0000
parents e9d9d946f213
children 251c7a9cb795
comparison
equal deleted inserted replaced
9002:eb98d61af310 9003:b595a8a59967
633 /* RTP specific */ 633 /* RTP specific */
634 int rtp_mode; 634 int rtp_mode;
635 635
636 uint8_t *ptr_lastgob; 636 uint8_t *ptr_lastgob;
637 int swap_uv;//vcr2 codec is mpeg2 varint with UV swaped 637 int swap_uv;//vcr2 codec is mpeg2 varint with UV swaped
638 short * pblocks[12]; 638 DCTELEM (*pblocks[12])[64];
639 639
640 DCTELEM (*block)[64]; ///< points to one of the following blocks 640 DCTELEM (*block)[64]; ///< points to one of the following blocks
641 DCTELEM (*blocks)[8][64]; // for HQ mode we need to keep the best block 641 DCTELEM (*blocks)[8][64]; // for HQ mode we need to keep the best block
642 int (*decode_mb)(struct MpegEncContext *s, DCTELEM block[6][64]); // used by some codecs to avoid a switch() 642 int (*decode_mb)(struct MpegEncContext *s, DCTELEM block[6][64]); // used by some codecs to avoid a switch()
643 #define SLICE_OK 0 643 #define SLICE_OK 0