Lines Matching refs:data
48 * The scanner returns data in the 'index' or 'line' color format, which means it
49 * returns data in batches which contain a single color of a scan line.
51 * These must finally be converted into the SANE data format (data for a single
53 * return any amount of data bytes.
55 * In between, data processing may be necessary, usually requiring the whole
64 * contains data organized in color planes, with each plane consisting of lines,
70 * Multi-color data with a bit depth of 1 are packed in single color bytes, so
71 * the data obtained from the scanner does not need conversion.
115 * @param colors bitmap specifying the colors in the scanned data (bitmap: 0000 IBGR)
160 buffer->data = NULL;
176 buffer->data = NULL;
187 buffer->data = NULL;
193 buffer->data = mmap(NULL, buffer_size_bytes, PROT_WRITE | PROT_READ, MAP_SHARED, buffer->data_file, 0);
194 if (buffer->data == MAP_FAILED) {
196 buffer->data = NULL;
212 buffer->p_write[k] = buffer->data + k * buffer->height * buffer->width;
239 munmap(buffer->data, buffer->data_size);
251 buffer->data = 0;
263 * The buffer checks and decides how to interpret the data.
317 /* Get next packet data & store in buffer */
325 /* Get next packet data & store in buffer */
336 /* Get next packet data */
374 * @param pixel array of full color pixel data
406 /* Get next packet data & store in buffer */
416 /* Get next packet data & store in buffer */
430 /* Get next packet data */
474 * Since the image data is organized in color planes, return bytes from the
479 * @param data Byte array to return bytes in
484 sanei_pieusb_buffer_get(struct Pieusb_Read_Buffer* buffer, SANE_Byte* data, SANE_Int max_len, SANE_Int* len)
492 pdata = data;
500 *pdata++ = *(buffer->data + N*buffer->read_index[0] + buffer->width*buffer->read_index[1] + buffer->read_index[2]) & 0xFF;
518 if (*(buffer->data + N*buffer->read_index[0] + buffer->width*buffer->read_index[1] + buffer->read_index[2] + i) > 0) {
534 SANE_Uint val = *(buffer->data + N*buffer->read_index[0] + buffer->width*buffer->read_index[1] + buffer->read_index[2]);
570 * [3] = byte-index in 2-byte value: increased first, if we have 2-byte data
604 DBG(DBG_info_buffer, "Buffer data\n");
611 loc[k] = buffer->p_read[k] - buffer->data - k*N;
618 loc[k] = buffer->p_write[k] - buffer->data - k*N;
629 DBG(DBG_info_buffer, " byte counts: image = %d, data = %d (%.0f%%), read = %d (%.0f%%), written = %d (%.0f%%)\n",
631 DBG(DBG_info_buffer, " line counts: image = %.1f, data = %.1f, read = %.1f, written = %.1f\n",