Enable mozjpeg defaults in sample apps and turbojpeg

This commit is contained in:
fbossen
2014-02-20 10:20:45 -05:00
parent c3e2b3c933
commit e9bbf66627
3 changed files with 8 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ write_JPEG_file (char * filename, int quality)
cinfo.image_height = image_height;
cinfo.input_components = 3; /* # of color components per pixel */
cinfo.in_color_space = JCS_RGB; /* colorspace of input image */
cinfo.use_moz_defaults = TRUE; /* use Mozilla defaults for improved compression */
/* Now use the library's routine to set default compression parameters.
* (You must set at least cinfo.in_color_space before calling this,
* since the defaults depend on the source color space.)