Mercurial > libavcodec.hg
comparison mpegvideo_enc.c @ 5211:413c5e2eff68 libavcodec
move mpeg encoder specific initialization in the encoder specific file
author | aurel |
---|---|
date | Thu, 05 Jul 2007 09:48:29 +0000 |
parents | 2ac10c5e5885 |
children | 470601203f44 |
comparison
equal
deleted
inserted
replaced
5210:b52fd9b223bb | 5211:413c5e2eff68 |
---|---|
657 s->encoding = 1; | 657 s->encoding = 1; |
658 | 658 |
659 /* init */ | 659 /* init */ |
660 if (MPV_common_init(s) < 0) | 660 if (MPV_common_init(s) < 0) |
661 return -1; | 661 return -1; |
662 | |
663 if(!s->dct_quantize) | |
664 s->dct_quantize = dct_quantize_c; | |
665 if(!s->denoise_dct) | |
666 s->denoise_dct = denoise_dct_c; | |
667 s->fast_dct_quantize = s->dct_quantize; | |
668 if(s->flags & CODEC_FLAG_TRELLIS_QUANT) | |
669 s->dct_quantize = dct_quantize_trellis_c; | |
662 | 670 |
663 if(s->modified_quant) | 671 if(s->modified_quant) |
664 s->chroma_qscale_table= ff_h263_chroma_qscale_table; | 672 s->chroma_qscale_table= ff_h263_chroma_qscale_table; |
665 s->progressive_frame= | 673 s->progressive_frame= |
666 s->progressive_sequence= !(avctx->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN)); | 674 s->progressive_sequence= !(avctx->flags & (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN)); |