summaryrefslogtreecommitdiff
path: root/src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-20 14:14:27 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-20 14:14:52 +0900
commit846bbafbfb23c3b01eacb7a5382087ff978dfeae (patch)
treee7540475fd4bae7b5a8eb9e813c81fdd6f2c77f1 /src/modules/evas/loaders/jpeg/evas_image_load_jpeg.c
parentd3e74a0c58e719894107784410b832e609bdb4ce (diff)
evas - jpg loader - speed up header check for pgoressive jpgs
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 }