119 for (blkn = 0; blkn < cinfo->blocks_in_MCU; blkn++) { |
119 for (blkn = 0; blkn < cinfo->blocks_in_MCU; blkn++) { |
120 ci = cinfo->MCU_membership[blkn]; |
120 ci = cinfo->MCU_membership[blkn]; |
121 compptr = cinfo->cur_comp_info[ci]; |
121 compptr = cinfo->cur_comp_info[ci]; |
122 /* Precalculate which table to use for each block */ |
122 /* Precalculate which table to use for each block */ |
123 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; |
123 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; |
124 entropy->ac_cur_tbls[blkn] = /* AC needs no table when not present */ |
124 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; |
125 cinfo->lim_Se ? entropy->ac_derived_tbls[compptr->ac_tbl_no] : NULL; |
|
126 /* Decide whether we really care about the coefficient values */ |
125 /* Decide whether we really care about the coefficient values */ |
127 if (compptr->component_needed) { |
126 if (compptr->component_needed) { |
128 entropy->dc_needed[blkn] = TRUE; |
127 entropy->dc_needed[blkn] = TRUE; |
129 /* we don't need the ACs if producing a 1/8th-size image */ |
128 /* we don't need the ACs if producing a 1/8th-size image */ |
130 entropy->ac_needed[blkn] = (compptr->DCT_scaled_size > 1); |
129 entropy->ac_needed[blkn] = (compptr->DCT_scaled_size > 1); |