Lines Matching refs:data

83   uint8_t *data;
1178 /* The netpbm-package does not define raw image data with maxval > 255. */
1179 /* But writing maxval 65535 for 16bit data gives at least a chance */
1187 fprintf (ofp, "P6\n# SANE data follows\n%d %d\n%d\n", width, height,
1193 fprintf (ofp, "P4\n# SANE data follows\n%d %d\n", width, height);
1195 fprintf (ofp, "P5\n# SANE data follows\n%d %d\n%d\n", width, height,
1256 /* The data colour space field is at bytes 16 to 20 in an ICC profile */
1329 if (++image->y >= image->height || !image->data)
1333 if (image->data)
1339 if (image->data)
1340 image->data = realloc (image->data, new_size);
1342 image->data = malloc (new_size);
1343 if (image->data)
1344 memset (image->data + old_size, 0, new_size - old_size);
1347 if (!image->data)
1350 return image->data;
1510 case, we need to buffer all data before we can write
1581 image.data[offset + 3 * i] = buffer[i];
1595 image.data[offset + i] = buffer[i];
1609 image.data[offset + i] = buffer[i];
1790 LSB = image.data[i];
1791 image.data[i] = image.data[i + 1];
1792 image.data[i + 1] = LSB;
1797 fwrite (image.data, 1, image.height * image.width * image.num_channels, ofp);
1824 if (image.data)
1825 free (image.data);
1836 "%s: WARNING: read more data than announced by backend "
1861 fprintf (stderr, "FAIL No data\n");
1914 image.data = malloc (parm.bytes_per_line * 2);
1916 clean_buffer (image.data, parm.bytes_per_line * 2);
1919 status = sane_read (device, image.data, parm.bytes_per_line, &len);
1920 pass_fail (parm.bytes_per_line, len, image.data, status);
1924 clean_buffer (image.data, parm.bytes_per_line * 2);
1926 status = sane_read (device, image.data, 1, &len);
1927 pass_fail (1, len, image.data, status);
1933 clean_buffer (image.data, parm.bytes_per_line * 2);
1935 status = sane_read (device, image.data, i, &len);
1936 pass_fail (i, len, image.data, status);
1943 clean_buffer (image.data, parm.bytes_per_line * 2);
1945 status = sane_read (device, image.data, i - 1, &len);
1946 pass_fail (i - 1, len, image.data, status);
1953 if (image.data)
1954 free (image.data);
2361 Start image acquisition on a scanner device and write image data to\n\