comparison h263.c @ 1162:8c15d82c1893 libavcodec

some static -> dynamic alloc & 16->8 bit
author michaelni
date Mon, 31 Mar 2003 11:13:14 +0000
parents dde68a430ba9
children 0e3c0c4a7b3d
comparison
equal deleted inserted replaced
1161:556b5d0b5228 1162:8c15d82c1893
85 static uint8_t uni_DCtab_lum_len[512]; 85 static uint8_t uni_DCtab_lum_len[512];
86 static uint8_t uni_DCtab_chrom_len[512]; 86 static uint8_t uni_DCtab_chrom_len[512];
87 static uint16_t uni_DCtab_lum_bits[512]; 87 static uint16_t uni_DCtab_lum_bits[512];
88 static uint16_t uni_DCtab_chrom_bits[512]; 88 static uint16_t uni_DCtab_chrom_bits[512];
89 89
90 static uint16_t (*mv_penalty)[MAX_MV*2+1]= NULL; 90 static uint8_t (*mv_penalty)[MAX_MV*2+1]= NULL;
91 static uint8_t fcode_tab[MAX_MV*2+1]; 91 static uint8_t fcode_tab[MAX_MV*2+1];
92 static uint8_t umv_fcode_tab[MAX_MV*2+1]; 92 static uint8_t umv_fcode_tab[MAX_MV*2+1];
93 93
94 static uint32_t uni_mpeg4_intra_rl_bits[64*64*2*2]; 94 static uint32_t uni_mpeg4_intra_rl_bits[64*64*2*2];
95 static uint8_t uni_mpeg4_intra_rl_len [64*64*2*2]; 95 static uint8_t uni_mpeg4_intra_rl_len [64*64*2*2];
1253 { 1253 {
1254 int f_code; 1254 int f_code;
1255 int mv; 1255 int mv;
1256 1256
1257 if(mv_penalty==NULL) 1257 if(mv_penalty==NULL)
1258 mv_penalty= av_mallocz( sizeof(uint16_t)*(MAX_FCODE+1)*(2*MAX_MV+1) ); 1258 mv_penalty= av_mallocz( sizeof(uint8_t)*(MAX_FCODE+1)*(2*MAX_MV+1) );
1259 1259
1260 for(f_code=1; f_code<=MAX_FCODE; f_code++){ 1260 for(f_code=1; f_code<=MAX_FCODE; f_code++){
1261 for(mv=-MAX_MV; mv<=MAX_MV; mv++){ 1261 for(mv=-MAX_MV; mv<=MAX_MV; mv++){
1262 int len; 1262 int len;
1263 1263