Lines Matching defs:image

54    . . - sane_start() : start image acquisition
56 . . - sane_read() : read image data
256 write_gray_data (unsigned char *image, char *name, SANE_Int width,
265 fwrite (image, width, height, fdbg);
272 write_rgb_data (char *name, unsigned char *image, SANE_Int width,
281 fwrite (image, width * 3, height, fdbg);
1636 DBG (DBG_data, "compute_parameters: image size =%d\n",
1670 * for example, to get an estimate of how big the scanned image will
1697 * This function is used to read image data from the device
2086 * operations only (such as image is acquisition). It is safe to call
3019 unsigned char *image = NULL;
3168 image = (unsigned char *) malloc (total);
3169 if (image == NULL)
3200 free(image);
3231 image[y * width + x] = current;
3235 write_gray_data (image, "find_origin_ysobel.pnm", width, height);
3258 if (image[x + (y + 1) * width] - image[x + y * width] >= 20)
3272 free (image);
4614 unsigned char image[CALIBRATION_SIZE];
4760 CALIBRATION_SIZE, image);
4771 write_rgb_data (name, image, CALIBRATION_WIDTH, 1);
4776 global = average_area (SANE_TRUE, image, 15, 1, &ra, &ga, &ba);
4876 unsigned char image[CALIBRATION_SIZE];
5065 length, image);
5076 write_rgb_data (name, image, width, 1);
5082 global = average_area (SANE_TRUE, image, width, 1, &ra, &ga, &ba);
5231 unsigned char image[CALIBRATION_SIZE];
5354 CALIBRATION_SIZE, image);
5360 write_rgb_data (name, image, CALIBRATION_WIDTH, 1);
5365 global = average_area (SANE_TRUE, image, 15, 1, &ra, &ga, &ba);
6137 SANE_Byte *image = NULL;
6147 image = (SANE_Byte *) malloc (size);
6148 if (image == NULL)
6151 "shading_calibration: failed to allocate memory for image\n");
6159 free (image);
6172 free (image);
6179 status = rts8891_simple_scan (dev->devnum, dev->regs, dev->reg_count, format, size, image);
6185 free (image);
6195 fwrite (image, width * 3, lines, dbg);
6200 fwrite (image, width, lines, dbg);
6218 sum += image[x + y * width];
6238 free (image);