Lines Matching refs:maxval
300 unsigned int w, h, maxval; in start_input_ppm() local
323 maxval = read_pbm_integer(cinfo, source->pub.input_file); in start_input_ppm()
325 if (w <= 0 || h <= 0 || maxval <= 0) /* error check */ in start_input_ppm()
358 if (maxval > 255) { in start_input_ppm()
360 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm()
373 if (maxval > 255) { in start_input_ppm()
375 } else if (maxval == MAXJSAMPLE && SIZEOF(JSAMPLE) == SIZEOF(U_CHAR)) { in start_input_ppm()
388 ((maxval<=255) ? SIZEOF(U_CHAR) : (2*SIZEOF(U_CHAR))); in start_input_ppm()
417 (size_t) (((long) maxval + 1L) * SIZEOF(JSAMPLE))); in start_input_ppm()
418 half_maxval = maxval / 2; in start_input_ppm()
419 for (val = 0; val <= (INT32) maxval; val++) { in start_input_ppm()
421 source->rescale[val] = (JSAMPLE) ((val*MAXJSAMPLE + half_maxval)/maxval); in start_input_ppm()