Lines Matching defs:data

123       mode = 0;			/* data forward */
130 mode = 0; /* data forward */
178 read_data (int fd, uint8_t * data, int length)
199 rc = read (fd, data + nb, length - nb);
202 DBG (DBG_error, "memtest: error reading data back!\n");
215 index_write_data (int fd, uint8_t index, uint8_t * data, int length)
227 mode = 0; /* data forward */
229 write (fd, data, length);
234 write_data (int fd, uint8_t * data, int length)
236 index_write_data (fd, REG8, data, length);
251 read_data (int fd, uint8_t * data, int length)
253 if(fd && data && length)
259 write_data (int fd, uint8_t * data, int length)
261 if(fd && data && length)
301 /* check if data read back is the same that the one sent */
616 * return the amount of scanned data available
625 /* read the number of 256 bytes block of scanned data */
640 /* loop on calibration data to find the matching one */
677 /* compute starting point of calibration data to use */
682 /* we use green data */
819 /* build calibration data for the scan */
856 /** read a line of scan data
858 * @param data pointer where to store data
864 * @returns number of data lines read, -1 in case of error
867 read_line (P5_Device * dev, uint8_t * data, size_t length, int ltr,
890 /* in retry mode we read until not enough data, but in no retry
896 /* read data from scanner, first and last byte aren't picture data */
920 /* handle horizontal data doubling */
923 memcpy (data + read * length, inbuffer + 1, length);
931 data[read * length + i * factor] = inbuffer[i + 1];
932 data[read * length + i * factor + 1] = inbuffer[i + 2];
933 data[read * length + i * factor + 2] = inbuffer[i + 3];
934 data[read * length + i * factor + 3] = inbuffer[i + 1];
935 data[read * length + i * factor + 4] = inbuffer[i + 2];
936 data[read * length + i * factor + 5] = inbuffer[i + 3];
943 data[read * length + i * factor] = inbuffer[i + 1];
944 data[read * length + i * factor + 1] = inbuffer[i + 1];
1056 /* we do a real scan of small width, discarding data */
1075 /* test if data is available */
1084 DBG (DBG_error, "move: failed to read data\n");
1105 /** clean up calibration data
1127 * @param buffer data line to parse
1176 * @param buffer data line to parse
1223 /* writes gray data to a pnm file */
1241 /* writes rgb data to a pnm file */
1288 /** restore calibration data
1289 * restore calibration data by loading previously saved calibration data
1313 /* loop filling calibration data until EOF reached */
1356 /** save calibration data
1357 * save calibration data from memory to file
1380 /* loop filling calibration data until EOF reached */
1408 * reference data. The black reference data is extracted from the lines
1410 * Calibration is done at 300 color, then data is built for other modes
1442 /* clean up calibration data */
1445 /* a RGB scan to get reference data */
1498 DBG (DBG_error, "sheetfed_calibration: failed to read data\n");
1502 /* if a data line has been read, add it to reference data */
1531 /* average pixels and store in per dpi calibration data */
1555 /* trace calibration data for debug */
1566 /* loop on all remaining resolution and compute calibration data from it */
1582 /* generate data by decimation */