Lines Matching defs:data
106 * . . - sane_read() : read image-data (from pipe)
111 * . . - sane_read() : read image-data (from pipe)
158 using this data you obviously create derived work! -ReneR */
1736 static void debug_print_raw (int dbg_level, char* info, const uint8_t* data,
1745 BIT(data[i],7), BIT(data[i],6), BIT(data[i],5), BIT(data[i],4),
1746 BIT(data[i],3), BIT(data[i],2), BIT(data[i],1), BIT(data[i],0),
1747 data[i], data[i], data[i]);
1751 static void debug_print_hex_raw (int dbg_level, char* info, const uint8_t* data,
1762 t += sprintf (t, "%02x ", *data++);
2050 return "Read NVRAM data";
2052 return "Send NVRAM data";
2054 return "Flash data";
2082 return "Read image data";
2085 sprintf (buf, "Unknown data type code %02X", datatypecode);
2124 return snprintf (buffer, size, "Get data status");
2187 debug_print_raw (1, "sense_handler: data:\n", sense, 8 + additional_sense);
2332 DBG (1, "sense_handler: error in data parameter\n");
2523 /* 1st send command data - at least 10 Bytes for USB scanners */
2582 /* 2nd send command data (if any) */
2602 /* 3rd: read the resulting data (payload) (if any) */
2622 DBG (1, "No data arrived.\n");
2670 DBG (8, "try to read %lu bytes sense data\n", (u_long) count);
2673 DBG (8, "read %lu bytes sense data\n", (u_long) count);
2685 } /* end read sense data */
2692 * and returns an average of the top 2/3 values. The input data is
3263 inquiry (Avision_Connection av_con, uint8_t* data, size_t len)
3280 data, &size);
3460 debug_print_raw (6, "get_firmware_status: raw data:\n", (uint8_t*)&result, size);
3498 debug_print_raw (6, "get_flash_ram_info: raw data:\n", result, size);
3500 DBG (3, "get_flash_ram_info: [0] data type %x\n", result [0]);
3556 rcmd.datatypecode = AVISION_DATATYPECODE_READ_NVRAM_DATA; /* Read NVM RAM data */
3670 scmd.datatypecode = AVISION_DATATYPECODE_SEND_NVRAM_DATA; /* nvram data */
3700 scmd.datatypecode = AVISION_DATATYPECODE_FLASH_DATA; /* flash data */
3752 rcmd.datatypecode = AVISION_DATATYPECODE_READ_NVRAM_DATA; /* Read NVRAM data */
3762 debug_print_raw (3, "adf_reset: raw data:\n", payload, size);
3805 debug_print_raw (6, "get_accessories_info: raw data:\n", result, size);
3989 debug_print_raw (6, "get_button_status: raw data\n",
4000 debug_print_raw (6, "get_button_status: raw data\n",
4011 debug_print_raw (6, "get_button_status: raw data\n",
4119 debug_print_raw (6, "get_frame_info: raw data\n", result, size);
4188 debug_print_raw (6, "get_duplex_info: raw data\n", (uint8_t*)&result, size);
4214 uint8_t data[8];
4245 set_triple (scmd.cmd.transferlen, sizeof (scmd.data) );
4247 scmd.data[0] = (uint8_t) dev->holder_type;
4248 scmd.data[1] = (uint8_t) frame;
4251 &scmd.data, sizeof (scmd.data), 0, 0);
4404 /* Send new NV-RAM (firmware) data */
4446 debug_print_raw (6, "attach: raw data:\n", result, sizeof (result) );
4886 a firmware bug and do not support reading the calibration data in
5262 DBG (3, "get_calib_data: Reading %ld bytes calibration data\n",
5268 DBG (1, "get_calib_data: read data failed (%s)\n",
5273 DBG (3, "get_calib_data: Got %ld bytes calibration data\n", (long)get_size);
5301 send_type = 0x82; /* download calibration data */
5305 send_type_q = 0x12; /* color calib data */
5309 send_type_q = 0x2; /* gray/bw calib data on the blue channel (AV610) */
5311 send_type_q = 0x11; /* gray/bw calib data */
5318 /* data corrections due to dark calibration data merge */
5320 DBG (3, "set_calib_data: merging dark calibration data\n");
5335 /* send data in one command? */
5357 else /* send data channel by channel (some USB ones) */
5360 uint16_t* conv_out_data; /* here it is save to use 16bit data
5388 scmd.datatypecode = send_type; /* send calibration data */
5401 } /* end else send calib data*/
5407 /* Sort data pixel by pixel and average first 2/3 of the data.
5411 The input data data is in 16 bits little endian, always.
5418 sort_and_average (struct calibration_format* format, uint8_t* data)
5428 if (!format || !data)
5444 uint8_t* ptr1 = data + i * format->bytes_per_channel;
5468 /* shading data is 16bits little endian format when send/read from firmware */
5471 struct calibration_format* format, uint8_t* data)
5504 uint16_t tmp_data = (uint16_t) get_double_le((data + i*2));
5506 set_double ((data + i*2), tmp_data - rgb_map_value[i % 3]);
5509 set_double ((data + i*2), 0);
5516 struct calibration_format* format, uint8_t* data)
5569 /* calculate calibration data */
5574 uint16_t tmp_data = (uint16_t) get_double((data + i*2));
5594 set_double_le ((data + i*2), result);
5616 /* get calibration format and data */
5627 /* calculate calibration data size for read from scanner */
5641 DBG (1, "normal_calibration: reading dark data\n");
5642 /* read dark calib data */
5650 /* process dark data: sort and average. */
5667 read_type = 0x62; /* read color calib data */
5671 read_type = 0x61; /* gray calib data */
5674 /* do white calibration: read gray or color data */
5704 /* decrease white average data (if dark average data is present) */
5709 DBG (1, "normal_calibration: dark data present - decreasing white average data\n");
6306 DBG (2, "set_window: large data-transfer support (>16bit)!\n");
6528 data, ... */
6530 /* read the raster data */
6865 /* we can now mark the rear data as valid */
6868 DBG (3, "do_eof: toggling duplex rear data valid\n");
6870 DBG (3, "do_eof: duplex rear data valid: %x\n",
6939 rcmd.datatypecode = AVISION_DATATYPECODE_READ_IMAGE_DATA; /* read image data */
6964 /* Init the SANE option from the scanner inquiry data */
7402 reader_process (void *data)
7404 struct Avision_Scanner *s = (struct Avision_Scanner *) data;
7418 FILE* rear_fp = 0; /* used to store the deinterlaced rear data */
7419 FILE* raw_fp = 0; /* used to write the RAW image data for debugging */
7428 /* the simple params for the data reader */
7449 /* the corrected output data */
7451 /* interpolation output data, one line */
7517 DBG (3, "reader_process: redirecting output data to temp file for ADF offset compensation.\n");
7572 else { /* open saved rear data */
7659 /* Data read; loop until all data has been processed. Might exit
7667 /* fill the stripe buffer with real data */
7674 /* Limit reads to max_bytes_per_read and global data
7722 /* write RAW data to file for debugging */
7741 /* fill the stripe buffer with stored, virtual data */
7747 /* limit reads to max_read and global data boundaries */
7776 data ((AV83xx), or every 2nd line (AV122)). */
7786 /* interlaced? save the back data to the rear buffer */
7824 * Perform needed data conversions (packing, ...) and/or copy the
7825 * image data.
8020 or when we are past the end of wanted data */
8171 /* maybe we need to fill in some white data */
8173 DBG (3, "reader_process: padding with white data\n");
9115 DBG (1, "sane_start: virtual duplex rear data valid.\n");
9227 scanner (HP 53xx/74xx ASIC series) rely on a calibration data
9284 /* if the device supports retrieving background raster data
9285 inquire the data no matter if the user/applications asks for
9373 /* if all data was passed through */