Lines Matching full:rescale
77 JSAMPLE *rescale; /* => maxval-remapping array, or NULL */
147 register JSAMPLE *rescale = source->rescale;
152 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
165 register JSAMPLE *rescale = source->rescale;
170 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
171 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
172 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
185 register JSAMPLE *rescale = source->rescale;
193 *ptr++ = rescale[UCH(*bufferptr++)];
206 register JSAMPLE *rescale = source->rescale;
214 *ptr++ = rescale[UCH(*bufferptr++)];
215 *ptr++ = rescale[UCH(*bufferptr++)];
216 *ptr++ = rescale[UCH(*bufferptr++)];
244 register JSAMPLE *rescale = source->rescale;
255 *ptr++ = rescale[temp];
268 register JSAMPLE *rescale = source->rescale;
279 *ptr++ = rescale[temp];
282 *ptr++ = rescale[temp];
285 *ptr++ = rescale[temp];
328 cinfo->data_precision = BITS_IN_JSAMPLE; /* we always rescale data to this */
335 need_rescale = TRUE; /* do we need a rescale array? */
415 source->rescale = (JSAMPLE *)
421 source->rescale[val] = (JSAMPLE) ((val*MAXJSAMPLE + half_maxval)/maxval);