Skip to content

Commit 6230028

Browse files
committed
Update MS-SSIM tuning
Change optimization parameters when tuning for MS-SSIM for better performance
1 parent 55e3e7e commit 6230028

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cjpeg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv,
491491
jpeg_set_quality(cinfo, 75, TRUE);
492492

493493
} else if (keymatch(arg, "tune-ms-ssim", 6)) {
494-
cinfo->use_flat_quant_tbl = TRUE;
495-
cinfo->lambda_log_scale1 = 10.5;
496-
cinfo->lambda_log_scale2 = 13.0;
494+
cinfo->use_flat_quant_tbl = FALSE;
495+
cinfo->lambda_log_scale1 = 14.25;
496+
cinfo->lambda_log_scale2 = 12.75;
497497
cinfo->use_lambda_weight_tbl = TRUE;
498498
jpeg_set_quality(cinfo, 75, TRUE);
499499

0 commit comments

Comments
 (0)