From fee0b4b55df5ad84e4e7f0d89e63bbeefbc93cf9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 27 May 2010 14:46:03 +0200 Subject: Select the fast DCT transform in libjpeg at the correct location. --- fitz/filt_dctd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fitz/filt_dctd.c') diff --git a/fitz/filt_dctd.c b/fitz/filt_dctd.c index b10a321e..520f00fd 100644 --- a/fitz/filt_dctd.c +++ b/fitz/filt_dctd.c @@ -121,10 +121,6 @@ fz_newdctd(fz_obj *params) d->src.super.next_input_byte = nil; d->src.skip = 0; - /* speed up jpeg decoding a bit */ - d->cinfo.dct_method = JDCT_FASTEST; - d->cinfo.do_fancy_upsampling = FALSE; - return (fz_filter *)d; } @@ -178,6 +174,10 @@ fz_processdctd(fz_filter *filter, fz_buffer *in, fz_buffer *out) if (i == JPEG_SUSPENDED) goto needinput; + /* speed up jpeg decoding a bit */ + d->cinfo.dct_method = JDCT_FASTEST; + d->cinfo.do_fancy_upsampling = FALSE; + /* default value if ColorTransform is not set */ if (d->colortransform == -1) { -- cgit v1.2.3