comparison wmv2.c @ 4950:665c61d35b52 libavcodec

Replace general CONFIG_ENCODERS by more fine-grained CONFIG_WMV2_ENCODER.
author diego
date Wed, 09 May 2007 18:23:20 +0000
parents 6a4e8b52dc7b
children 997c368e6433
comparison
equal deleted inserted replaced
4949:845386be542c 4950:665c61d35b52
59 59
60 ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[0], wmv2_scantableA); 60 ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[0], wmv2_scantableA);
61 ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[1], wmv2_scantableB); 61 ff_init_scantable(s->dsp.idct_permutation, &w->abt_scantable[1], wmv2_scantableB);
62 } 62 }
63 63
64 #ifdef CONFIG_ENCODERS 64 #ifdef CONFIG_WMV2_ENCODER
65 65
66 static int encode_ext_header(Wmv2Context *w){ 66 static int encode_ext_header(Wmv2Context *w){
67 MpegEncContext * const s= &w->s; 67 MpegEncContext * const s= &w->s;
68 PutBitContext pb; 68 PutBitContext pb;
69 int code; 69 int code;
261 261
262 for (i = 0; i < 6; i++) { 262 for (i = 0; i < 6; i++) {
263 msmpeg4_encode_block(s, block[i], i); 263 msmpeg4_encode_block(s, block[i], i);
264 } 264 }
265 } 265 }
266 #endif //CONFIG_ENCODERS 266 #endif //CONFIG_WMV2_ENCODER
267 267
268 static void parse_mb_skip(Wmv2Context * w){ 268 static void parse_mb_skip(Wmv2Context * w){
269 int mb_x, mb_y; 269 int mb_x, mb_y;
270 MpegEncContext * const s= &w->s; 270 MpegEncContext * const s= &w->s;
271 uint32_t * const mb_type= s->current_picture_ptr->mb_type; 271 uint32_t * const mb_type= s->current_picture_ptr->mb_type;
847 ff_h263_decode_frame, 847 ff_h263_decode_frame,
848 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 848 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
849 }; 849 };
850 #endif 850 #endif
851 851
852 #ifdef CONFIG_ENCODERS 852 #ifdef CONFIG_WMV2_ENCODER
853 AVCodec wmv2_encoder = { 853 AVCodec wmv2_encoder = {
854 "wmv2", 854 "wmv2",
855 CODEC_TYPE_VIDEO, 855 CODEC_TYPE_VIDEO,
856 CODEC_ID_WMV2, 856 CODEC_ID_WMV2,
857 sizeof(Wmv2Context), 857 sizeof(Wmv2Context),