Refine rate estimation in trellis quant

Account for the more elaborate context modeling used for coding the DC
coefficient differences
This commit is contained in:
Frank Bossen
2014-12-21 21:36:06 +01:00
parent 933289f509
commit fa628eff6a
3 changed files with 21 additions and 6 deletions

View File

@@ -941,6 +941,8 @@ jget_arith_rates (j_compress_ptr cinfo, int dc_tbl_no, int ac_tbl_no, arith_rate
int i;
arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy;
r->arith_dc_L = cinfo->arith_dc_L[dc_tbl_no];
r->arith_dc_U = cinfo->arith_dc_U[dc_tbl_no];
r->arith_ac_K = cinfo->arith_ac_K[ac_tbl_no];
for (i = 0; i < DC_STAT_BINS; i++) {