diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2002-10-04 20:59:29 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2002-10-04 20:59:29 +0000 |
commit | defdfc9aa086bdff4aade2986b3d34a7df16384c (patch) | |
tree | b02d3ed4759807185d31da32d69a140c12de5376 /libavcodec/mpegvideo.c | |
parent | 1e5c667c91885a75169b390d2b3d632fcfc1ac1f (diff) | |
download | ffmpeg-defdfc9aa086bdff4aade2986b3d34a7df16384c.tar.gz |
moved dct init out from mpv_common_init to dct_common_init (for less-uglier way for dv)
Originally committed as revision 1002 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 5fd933da7e..229874b921 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -179,11 +179,10 @@ static void ff_jref_idct_add(UINT8 *dest, int line_size, DCTELEM *block) add_pixels_clamped(block, dest, line_size); } -/* init common structure for both encoder and decoder */ -int MPV_common_init(MpegEncContext *s) +/* init common dct for both encoder and decoder */ +int DCT_common_init(MpegEncContext *s) { - int c_size, i; - UINT8 *pict; + int i; s->dct_unquantize_h263 = dct_unquantize_h263_c; s->dct_unquantize_mpeg1 = dct_unquantize_mpeg1_c; @@ -219,7 +218,6 @@ int MPV_common_init(MpegEncContext *s) #ifdef HAVE_MMI MPV_common_init_mmi(s); #endif - /* load & permutate scantables note: only wmv uses differnt ones @@ -229,6 +227,17 @@ int MPV_common_init(MpegEncContext *s) ff_init_scantable(s, &s->intra_h_scantable, ff_alternate_horizontal_scan); ff_init_scantable(s, &s->intra_v_scantable, ff_alternate_vertical_scan); + return 0; +} + +/* init common structure for both encoder and decoder */ +int MPV_common_init(MpegEncContext *s) +{ + int c_size, i; + UINT8 *pict; + + DCT_common_init(s); + s->mb_width = (s->width + 15) / 16; s->mb_height = (s->height + 15) / 16; |