Home | History | Annotate | Download | only in jpeg-6b

Lines Matching refs:maxval

77   JSAMPLE *rescale;		/* => maxval-remapping array, or NULL */
136 * maxval = MAXJSAMPLE, which is the normal case for 8-bit data.
142 /* This version is for reading text-format PGM files with any maxval */
160 /* This version is for reading text-format PPM files with any maxval */
180 /* This version is for reading raw-byte-format PGM files with any maxval */
201 /* This version is for reading raw-byte-format PPM files with any maxval */
224 /* This version is for reading raw-byte-format files with maxval = MAXJSAMPLE.
239 /* This version is for reading raw-word-format PGM files with any maxval */
263 /* This version is for reading raw-word-format PPM files with any maxval */
300 unsigned int w, h, maxval;
323 maxval = read_pbm_integer(cinfo, source->pub.input_file);
325 if (w <= 0 || h <= 0 || maxval <= 0) /* error check */
358 if (maxval > 255) {
360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) {
373 if (maxval > 255) {
375 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) {
388 ((maxval<=255) ? SIZEOF(U_CHAR) : (2*SIZEOF(U_CHAR)));
414 /* On 16-bit-int machines we have to be careful of maxval = 65535 */
417 (size_t) (((long) maxval + 1L) * SIZEOF(JSAMPLE)));
418 half_maxval = maxval / 2;
419 for (val = 0; val <= (INT32) maxval; val++) {
421 source->rescale[val] = (JSAMPLE) ((val*MAXJSAMPLE + half_maxval)/maxval);