Skip to content

Commit 9f01177

Browse files
committed
Default to single-scan DC
People don't like green faces
1 parent ceb4f8e commit 9f01177

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README-mozilla.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mozjpeg's implementation of the libjpeg API includes an extensibility framework
2424
that allows new features to be added without modifying the transparent libjpeg
2525
compress/decompress structures (which would break backward ABI compatibility.)
2626
Extension parameters are placed into the opaque jpeg_comp_master structure, and
27-
a set of accessor functions and globally unique tokens allows for
27+
a set of accessor functions and globally unique tokens allows for
2828
getting/setting those parameters without directly accessing the structure.
2929

3030
Currently, only the accessor functions necessary to support the mozjpeg
@@ -185,7 +185,7 @@ Integer Extension Parameters Supported by mozjpeg
185185
8 = Table from: An Improved Detection Model for DCT Coefficient Quantization
186186
(1993) Peterson, Ahumada and Watson
187187

188-
* JINT_DC_SCAN_OPT_MODE (default: 1)
188+
* JINT_DC_SCAN_OPT_MODE (default: 0)
189189
Specifies the DC scan optimization mode. The following options are
190190
available:
191191
0 = One scan for all components

jcparam.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ jpeg_set_defaults (j_compress_ptr cinfo)
487487
/* Choose JPEG colorspace based on input space, set defaults accordingly */
488488

489489
jpeg_default_colorspace(cinfo);
490-
491-
cinfo->master->dc_scan_opt_mode = 1;
492-
490+
491+
cinfo->master->dc_scan_opt_mode = 0;
492+
493493
#ifdef C_PROGRESSIVE_SUPPORTED
494494
if (cinfo->master->compress_profile == JCP_MAX_COMPRESSION) {
495495
cinfo->master->optimize_scans = TRUE;

0 commit comments

Comments
 (0)