Lines Matching refs:max
228 int* max, bool* ascii, color_space* space, bool* is_ppm, char** comment);
230 int* height, int* max, bool* ascii, color_space* space);
233 int height, int max, bool in_ascii, bool out_ascii, color_space in_space,
257 int width, rowbytes, height, max;
260 status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
307 int width, rowbytes, height, max;
313 status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
384 sprintf(data, "%d %d %d\n", width, height, max);
423 max, ascii, out_ascii, space, out_space);
640 int* max, bool* ascii, color_space* space, bool* is_ppm, char** comment)
654 inSource, 2, width, rowbytes, height, max, ascii, space);
715 /* once we're done with whitespace after max, we're done with header */
732 scan = max;
745 /* in monochrome ppm, there is no max in the file, so we
749 *max = 1;
756 whitespace after max in raw mode */
770 int* height, int* max, bool* ascii, color_space* space)
804 *max = 255;
852 read_ascii_line(BDataIO* in, int max, unsigned char* data, int rowbytes)
870 *(data++) = val * 255 / max;
884 *(data++) = val * 255 / max;
919 make_scale_data(int max)
921 unsigned char* ptr = (unsigned char*) malloc(max);
922 for (int ix = 0; ix < max; ix++)
923 ptr[ix] = ix * 255 / max;
938 int max, bool in_ascii, bool out_ascii, color_space in_space,
942 height, max, in_space, out_space));
956 if (max != 255 && in_space != B_GRAY1)
957 scale = make_scale_data(max);
962 err = read_ascii_line(&inBuffer, max, data, rowbytes);