Lines Matching defs:tbl
246 int blkn, ci, tbl, sign;
263 tbl = cinfo->cur_comp_info[ci]->dc_tbl_no;
268 st = entropy->dc_stats[tbl] + entropy->dc_context[ci];
280 st = entropy->dc_stats[tbl] + 20; /* Table F.4: X1 = 20 */
291 if (m < (int) ((1L << cinfo->arith_dc_L[tbl]) >> 1))
293 else if (m > (int) ((1L << cinfo->arith_dc_U[tbl]) >> 1))
325 int tbl, sign, k;
339 tbl = cinfo->cur_comp_info[0]->ac_tbl_no;
345 st = entropy->ac_stats[tbl] + 3 * (k - 1);
363 st = entropy->ac_stats[tbl] +
364 (k <= cinfo->arith_ac_K[tbl] ? 189 : 217);
433 int tbl, k, kex;
447 tbl = cinfo->cur_comp_info[0]->ac_tbl_no;
457 st = entropy->ac_stats[tbl] + 3 * (k - 1);
502 int blkn, ci, tbl, sign, k;
523 tbl = compptr->dc_tbl_no;
526 st = entropy->dc_stats[tbl] + entropy->dc_context[ci];
538 st = entropy->dc_stats[tbl] + 20; /* Table F.4: X1 = 20 */
549 if (m < (int) ((1L << cinfo->arith_dc_L[tbl]) >> 1))
551 else if (m > (int) ((1L << cinfo->arith_dc_U[tbl]) >> 1))
568 tbl = compptr->ac_tbl_no;
572 st = entropy->ac_stats[tbl] + 3 * (k - 1);
590 st = entropy->ac_stats[tbl] +
591 (k <= cinfo->arith_ac_K[tbl] ? 189 : 217);
624 int ci, tbl;
693 tbl = compptr->dc_tbl_no;
694 if (tbl < 0 || tbl >= NUM_ARITH_TBLS)
695 ERREXIT1(cinfo, JERR_NO_ARITH_TABLE, tbl);
696 if (entropy->dc_stats[tbl] == NULL)
697 entropy->dc_stats[tbl] = (unsigned char *) (*cinfo->mem->alloc_small)
699 MEMZERO(entropy->dc_stats[tbl], DC_STAT_BINS);
705 tbl = compptr->ac_tbl_no;
706 if (tbl < 0 || tbl >= NUM_ARITH_TBLS)
707 ERREXIT1(cinfo, JERR_NO_ARITH_TABLE, tbl);
708 if (entropy->ac_stats[tbl] == NULL)
709 entropy->ac_stats[tbl] = (unsigned char *) (*cinfo->mem->alloc_small)
711 MEMZERO(entropy->ac_stats[tbl], AC_STAT_BINS);