summaryrefslogtreecommitdiff
path: root/src/modules/evas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c b/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
index b8b2677146..64697586d8 100644
--- a/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
+++ b/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
@@ -382,6 +382,7 @@ evas_image_load_file_head_jpeg_internal(unsigned int *w, unsigned int *h,
382 cinfo.do_block_smoothing = FALSE; 382 cinfo.do_block_smoothing = FALSE;
383 cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss) 383 cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss)
384 cinfo.dither_mode = JDITHER_ORDERED; 384 cinfo.dither_mode = JDITHER_ORDERED;
385 cinfo.buffered_image = TRUE; // buffered mode in case jpg is progressive
385 jpeg_start_decompress(&cinfo); 386 jpeg_start_decompress(&cinfo);
386 387
387 /* rotation decoding */ 388 /* rotation decoding */
@@ -501,6 +502,7 @@ evas_image_load_file_head_jpeg_internal(unsigned int *w, unsigned int *h,
501 cinfo.do_block_smoothing = FALSE; 502 cinfo.do_block_smoothing = FALSE;
502 cinfo.scale_num = 1; 503 cinfo.scale_num = 1;
503 cinfo.scale_denom = *scale; 504 cinfo.scale_denom = *scale;
505 cinfo.buffered_image = TRUE; // buffered mode in case jpg is progressive
504 jpeg_calc_output_dimensions(&(cinfo)); 506 jpeg_calc_output_dimensions(&(cinfo));
505 jpeg_start_decompress(&cinfo); 507 jpeg_start_decompress(&cinfo);
506 } 508 }