comparison mpegvideo.c @ 1273:a979fab41ed8 libavcodec

ASV1 codec with postprocessing support :)
author michaelni
date Mon, 19 May 2003 13:30:59 +0000
parents 2fa34e615c76
children 6e039762d5cb
comparison
equal deleted inserted replaced
1272:777d4145cdfb 1273:a979fab41ed8
134 } 134 }
135 } 135 }
136 } 136 }
137 #endif //CONFIG_ENCODERS 137 #endif //CONFIG_ENCODERS
138 138
139 void ff_init_scantable(MpegEncContext *s, ScanTable *st, const uint8_t *src_scantable){ 139 void ff_init_scantable(uint8_t *permutation, ScanTable *st, const uint8_t *src_scantable){
140 int i; 140 int i;
141 int end; 141 int end;
142 142
143 st->scantable= src_scantable; 143 st->scantable= src_scantable;
144 144
145 for(i=0; i<64; i++){ 145 for(i=0; i<64; i++){
146 int j; 146 int j;
147 j = src_scantable[i]; 147 j = src_scantable[i];
148 st->permutated[i] = s->dsp.idct_permutation[j]; 148 st->permutated[i] = permutation[j];
149 #ifdef ARCH_POWERPC 149 #ifdef ARCH_POWERPC
150 st->inverse[j] = i; 150 st->inverse[j] = i;
151 #endif 151 #endif
152 } 152 }
153 153
200 #endif //CONFIG_ENCODERS 200 #endif //CONFIG_ENCODERS
201 201
202 /* load & permutate scantables 202 /* load & permutate scantables
203 note: only wmv uses differnt ones 203 note: only wmv uses differnt ones
204 */ 204 */
205 ff_init_scantable(s, &s->inter_scantable , ff_zigzag_direct); 205 ff_init_scantable(s->dsp.idct_permutation, &s->inter_scantable , ff_zigzag_direct);
206 ff_init_scantable(s, &s->intra_scantable , ff_zigzag_direct); 206 ff_init_scantable(s->dsp.idct_permutation, &s->intra_scantable , ff_zigzag_direct);
207 ff_init_scantable(s, &s->intra_h_scantable, ff_alternate_horizontal_scan); 207 ff_init_scantable(s->dsp.idct_permutation, &s->intra_h_scantable, ff_alternate_horizontal_scan);
208 ff_init_scantable(s, &s->intra_v_scantable, ff_alternate_vertical_scan); 208 ff_init_scantable(s->dsp.idct_permutation, &s->intra_v_scantable, ff_alternate_vertical_scan);
209 209
210 s->picture_structure= PICT_FRAME; 210 s->picture_structure= PICT_FRAME;
211 211
212 return 0; 212 return 0;
213 } 213 }