Lines Matching defs:width

451   int width, height;		/* at scan resolution */
590 fprintf (fp, "P6\n%d %d\n255\n", s->width, s->height);
616 /* Data coming back is "width" bytes Red data followed by 0x0c,
617 width bytes Green, 0x0c, width bytes Blue, 0x0c, repeat for
622 line += (numbytes + level) / (s->width * 3);
624 level = (numbytes + level) % (s->width * 3);
627 numbytes -= (line - s->height) * s->width * 3 + level;
643 while (redptr + s->width + s->width <= ptr)
651 fwrite (redptr + s->width, 1, 1, fp); /* Green */
652 fwrite (redptr + s->width + s->width, 1, 1, fp); /* Blue */
655 *(redptr + s->width),
656 *(redptr + s->width + s->width));
663 /* G */ *s->ptr = *(redptr + s->width);
665 /* B */ *s->ptr = *(redptr + s->width + s->width);
670 if (pixel && !(pixel % s->width))
674 redptr += s->width + s->width;
874 s->width = 2551;
877 s->buf = malloc (s->width * s->height * 3);
945 s->width = 2551;
993 int width, height, nlines = 0, region = -1, i, transition = 1, badcnt;
1005 fscanf (fp, "P6 %d %d %*d ", &width, &height);
1006 DBG (12, "cal file %s %dx%d\n", calfilename, width, height);
1007 width = width * 3; /* 1 byte each of r, g, b */
1009 linebuf = calloc (width * 2, sizeof (linebuf[0]));
1015 oldline = linebuf + width;
1017 avg = calloc (width * NREGIONS, sizeof (avg[0]));
1021 if (fread (newline, 1, width, fp) != (size_t) width)
1027 for (i = 0; i < width; i++)
1065 for (i = 0; i < width; i++)
1066 avg[i + region * width] += oldline[i];
1070 memcpy (oldline, newline, width);
1091 for (i = 0; i < width; i++)
1097 tmp2 = avg[i + width] /= reglines[1];
1099 If image is interleaved, use 'i%3', if not, 'i/(width/3)' */
1100 if ((tmp2 - tmp1) > max_range[i / (width / 3)])
1102 max_range[i / (width / 3)] = tmp2 - tmp1;
1104 i / (width / 3), i, tmp2, tmp1, tmp2 - tmp1);
1124 for (i = 0; i < width; i++)
1130 if (!((i + 1) % (width / 3)))
1132 DBG (13, "skip scanline EOL %d/%d\n", i, width);
1142 gain = 512 * ((max_range[i / (width / 3)] /
1143 (avg[i + width] - avg[i])) - 1);
1157 gain = (double)3861.0 * exp(-0.0168 * (avg[i + width] - avg[i]));
1161 avg[i + width], avg[i], avg[i + width] - avg[i], gain, offset);
1417 opt->width = (opt->x2 - opt->x1) * opt->resolution / 600 + 1;
1420 DBG (1, "width=%d height=%d dpi=%d\n", opt->width, opt->height,