Mercurial > libavcodec.hg
comparison mpegvideo.c @ 5788:a3a2968e16ad libavcodec
export DCT_common_init and add ff_prefix
author | bcoudurier |
---|---|
date | Mon, 08 Oct 2007 09:09:19 +0000 |
parents | 72b59f7613af |
children | 7b058e5183ab |
comparison
equal
deleted
inserted
replaced
5787:b92c03847d60 | 5788:a3a2968e16ad |
---|---|
128 | 128 |
129 return p+4; | 129 return p+4; |
130 } | 130 } |
131 | 131 |
132 /* init common dct for both encoder and decoder */ | 132 /* init common dct for both encoder and decoder */ |
133 static int DCT_common_init(MpegEncContext *s) | 133 int ff_dct_common_init(MpegEncContext *s) |
134 { | 134 { |
135 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; | 135 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; |
136 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; | 136 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; |
137 s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c; | 137 s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c; |
138 s->dct_unquantize_mpeg1_inter = dct_unquantize_mpeg1_inter_c; | 138 s->dct_unquantize_mpeg1_inter = dct_unquantize_mpeg1_inter_c; |
429 | 429 |
430 if((s->width || s->height) && avcodec_check_dimensions(s->avctx, s->width, s->height)) | 430 if((s->width || s->height) && avcodec_check_dimensions(s->avctx, s->width, s->height)) |
431 return -1; | 431 return -1; |
432 | 432 |
433 dsputil_init(&s->dsp, s->avctx); | 433 dsputil_init(&s->dsp, s->avctx); |
434 DCT_common_init(s); | 434 ff_dct_common_init(s); |
435 | 435 |
436 s->flags= s->avctx->flags; | 436 s->flags= s->avctx->flags; |
437 s->flags2= s->avctx->flags2; | 437 s->flags2= s->avctx->flags2; |
438 | 438 |
439 s->mb_width = (s->width + 15) / 16; | 439 s->mb_width = (s->width + 15) / 16; |