Add optimization of quantization matrix

Optimizes quantization matrix by minimizing reconstruction error based
on quantized coefficients.
Feature is controlled by cinfo->trellis_q_opt; disabled by default.
This commit is contained in:
Frank Bossen
2014-04-28 16:28:05 -04:00
parent e5f8575776
commit b03b5797f4
6 changed files with 43 additions and 5 deletions

View File

@@ -50,4 +50,4 @@ EXTERN(void) jpeg_gen_optimal_table
EXTERN(void) quantize_trellis
JPP((j_compress_ptr cinfo, c_derived_tbl *actbl, JBLOCKROW coef_blocks, JBLOCKROW src, JDIMENSION num_blocks,
JQUANT_TBL * qtbl));
JQUANT_TBL * qtbl, double *norm_src, double *norm_coef));