# HG changeset patch # User michael # Date 1066824081 0 # Node ID 27073c5532dc95045dc53437a0d26a5273ffa441 # Parent d736e24bf3033d5e194a522fdd072f143aec3cb9 move blocks away MpegEncContext (7.4 -> 5.8k) diff -r d736e24bf303 -r 27073c5532dc mpegvideo.c --- a/mpegvideo.c Wed Oct 22 11:23:39 2003 +0000 +++ b/mpegvideo.c Wed Oct 22 12:01:21 2003 +0000 @@ -448,6 +448,7 @@ CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) } + CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) @@ -569,6 +570,7 @@ av_freep(&s->q_inter_matrix); av_freep(&s->q_intra_matrix16); av_freep(&s->q_inter_matrix16); + av_freep(&s->blocks); for(i=0; ipicture[i]); diff -r d736e24bf303 -r 27073c5532dc mpegvideo.h --- a/mpegvideo.h Wed Oct 22 11:23:39 2003 +0000 +++ b/mpegvideo.h Wed Oct 22 12:01:21 2003 +0000 @@ -657,7 +657,7 @@ uint8_t *ptr_lastgob; DCTELEM (*block)[64]; ///< points to one of the following blocks - DCTELEM blocks[2][6][64] __align8; // for HQ mode we need to keep the best block + DCTELEM (*blocks)[6][64]; // for HQ mode we need to keep the best block int (*decode_mb)(struct MpegEncContext *s, DCTELEM block[6][64]); // used by some codecs to avoid a switch() #define SLICE_OK 0 #define SLICE_ERROR -1