diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-05-27 14:46:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-05-27 14:46:03 +0200 |
commit | fee0b4b55df5ad84e4e7f0d89e63bbeefbc93cf9 (patch) | |
tree | 60665a3b8acfd255cee5e3c8c84d15cd41322b16 /fitz/filt_dctd.c | |
parent | 30a663ddf2eb259e951762f04e7159c42397992b (diff) | |
download | mupdf-fee0b4b55df5ad84e4e7f0d89e63bbeefbc93cf9.tar.xz |
Select the fast DCT transform in libjpeg at the correct location.
Diffstat (limited to 'fitz/filt_dctd.c')
-rw-r--r-- | fitz/filt_dctd.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |