Modify trellis parameter defaults
Modify trellis parameters to optimize for PSNR-HVS by default
This commit is contained in:
4
cjpeg.c
4
cjpeg.c
@@ -487,8 +487,8 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv,
|
||||
|
||||
} else if (keymatch(arg, "tune-hvs-psnr", 6)) {
|
||||
cinfo->use_flat_quant_tbl = FALSE;
|
||||
cinfo->lambda_log_scale1 = 15.0;
|
||||
cinfo->lambda_log_scale2 = 14.5;
|
||||
cinfo->lambda_log_scale1 = 16.0;
|
||||
cinfo->lambda_log_scale2 = 15.5;
|
||||
cinfo->use_lambda_weight_tbl = TRUE;
|
||||
jpeg_set_quality(cinfo, 75, TRUE);
|
||||
|
||||
|
||||
@@ -427,9 +427,10 @@ jpeg_set_defaults (j_compress_ptr cinfo)
|
||||
#endif
|
||||
|
||||
cinfo->trellis_quant = (cinfo->use_moz_defaults != 0) ? TRUE : FALSE;
|
||||
cinfo->lambda_log_scale1 = 17.0;
|
||||
cinfo->lambda_log_scale2 = 15.0;
|
||||
cinfo->lambda_log_scale1 = 16.0;
|
||||
cinfo->lambda_log_scale2 = 15.5;
|
||||
|
||||
cinfo->use_lambda_weight_tbl = TRUE;
|
||||
cinfo->use_scans_in_trellis = FALSE;
|
||||
cinfo->trellis_freq_split = 8;
|
||||
cinfo->trellis_num_loops = 1;
|
||||
|
||||
Reference in New Issue
Block a user