Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed21c3ba6f | ||
|
|
9f01177f72 | ||
|
|
ceb4f8e97c |
@@ -5,7 +5,7 @@ if(CMAKE_EXECUTABLE_SUFFIX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(mozjpeg C)
|
project(mozjpeg C)
|
||||||
set(VERSION 4.0.2)
|
set(VERSION 4.0.3)
|
||||||
string(REPLACE "." ";" VERSION_TRIPLET ${VERSION})
|
string(REPLACE "." ";" VERSION_TRIPLET ${VERSION})
|
||||||
list(GET VERSION_TRIPLET 0 VERSION_MAJOR)
|
list(GET VERSION_TRIPLET 0 VERSION_MAJOR)
|
||||||
list(GET VERSION_TRIPLET 1 VERSION_MINOR)
|
list(GET VERSION_TRIPLET 1 VERSION_MINOR)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ mozjpeg's implementation of the libjpeg API includes an extensibility framework
|
|||||||
that allows new features to be added without modifying the transparent libjpeg
|
that allows new features to be added without modifying the transparent libjpeg
|
||||||
compress/decompress structures (which would break backward ABI compatibility.)
|
compress/decompress structures (which would break backward ABI compatibility.)
|
||||||
Extension parameters are placed into the opaque jpeg_comp_master structure, and
|
Extension parameters are placed into the opaque jpeg_comp_master structure, and
|
||||||
a set of accessor functions and globally unique tokens allows for
|
a set of accessor functions and globally unique tokens allows for
|
||||||
getting/setting those parameters without directly accessing the structure.
|
getting/setting those parameters without directly accessing the structure.
|
||||||
|
|
||||||
Currently, only the accessor functions necessary to support the mozjpeg
|
Currently, only the accessor functions necessary to support the mozjpeg
|
||||||
@@ -185,7 +185,7 @@ Integer Extension Parameters Supported by mozjpeg
|
|||||||
8 = Table from: An Improved Detection Model for DCT Coefficient Quantization
|
8 = Table from: An Improved Detection Model for DCT Coefficient Quantization
|
||||||
(1993) Peterson, Ahumada and Watson
|
(1993) Peterson, Ahumada and Watson
|
||||||
|
|
||||||
* JINT_DC_SCAN_OPT_MODE (default: 1)
|
* JINT_DC_SCAN_OPT_MODE (default: 0)
|
||||||
Specifies the DC scan optimization mode. The following options are
|
Specifies the DC scan optimization mode. The following options are
|
||||||
available:
|
available:
|
||||||
0 = One scan for all components
|
0 = One scan for all components
|
||||||
|
|||||||
@@ -487,9 +487,9 @@ jpeg_set_defaults (j_compress_ptr cinfo)
|
|||||||
/* Choose JPEG colorspace based on input space, set defaults accordingly */
|
/* Choose JPEG colorspace based on input space, set defaults accordingly */
|
||||||
|
|
||||||
jpeg_default_colorspace(cinfo);
|
jpeg_default_colorspace(cinfo);
|
||||||
|
|
||||||
cinfo->master->dc_scan_opt_mode = 1;
|
cinfo->master->dc_scan_opt_mode = 0;
|
||||||
|
|
||||||
#ifdef C_PROGRESSIVE_SUPPORTED
|
#ifdef C_PROGRESSIVE_SUPPORTED
|
||||||
if (cinfo->master->compress_profile == JCP_MAX_COMPRESSION) {
|
if (cinfo->master->compress_profile == JCP_MAX_COMPRESSION) {
|
||||||
cinfo->master->optimize_scans = TRUE;
|
cinfo->master->optimize_scans = TRUE;
|
||||||
|
|||||||
@@ -882,6 +882,9 @@ static int bmpTest(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define setenv(envvar, value, dummy) _putenv_s(envvar, value)
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user