From 6630671af0900185b4b2d4aa74fd2ea45a2121c6 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Fri, 10 Apr 2015 15:32:32 -0700 Subject: [PATCH] images: Set DCT method to JDCT_IFAST. --- image_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/image_utils.c b/image_utils.c index 0570e0d..76c6015 100644 --- a/image_utils.c +++ b/image_utils.c @@ -456,6 +456,7 @@ image_new_from_jpeg(const char *path, int is_file, const uint8_t *buf, int size, cinfo.scale_denom = scale; cinfo.do_fancy_upsampling = FALSE; cinfo.do_block_smoothing = FALSE; + cinfo.dct_method = JDCT_IFAST; jpeg_start_decompress(&cinfo); w = cinfo.output_width; h = cinfo.output_height;