Disable trellis in jpegtran
Trellis quantization is not supposed to be enabled in the jpegtran application as it does not perform transform and quantization. Should fix #49
This commit is contained in:
@@ -89,6 +89,8 @@ jpeg_copy_critical_parameters (j_decompress_ptr srcinfo,
|
|||||||
#endif
|
#endif
|
||||||
/* Initialize all parameters to default values */
|
/* Initialize all parameters to default values */
|
||||||
jpeg_set_defaults(dstinfo);
|
jpeg_set_defaults(dstinfo);
|
||||||
|
dstinfo->trellis_quant = FALSE;
|
||||||
|
|
||||||
/* jpeg_set_defaults may choose wrong colorspace, eg YCbCr if input is RGB.
|
/* jpeg_set_defaults may choose wrong colorspace, eg YCbCr if input is RGB.
|
||||||
* Fix it to get the right header markers for the image colorspace.
|
* Fix it to get the right header markers for the image colorspace.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user