Lines Matching defs:sensor

43 static void write_control(Genesys_Device* dev, const Genesys_Sensor& sensor, int resolution);
46 static void gl646_set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
49 static void simple_scan(Genesys_Device* dev, const Genesys_Sensor& sensor,
414 * @param sensor id of the sensor
421 for (const auto& sensor : *s_sensors) {
423 if (sensor.sensor_id == sensor_id && sensor.resolutions.matches(required) &&
424 sensor.matches_channel_count(channels))
426 unsigned cksel = sensor.ccd_pixels_per_system_pixel();
435 void CommandSetGl646::init_regs_for_scan_session(Genesys_Device* dev, const Genesys_Sensor& sensor,
442 debug_dump(DBG_info, sensor);
467 scanner_setup_sensor(*dev, sensor, *regs);
572 sanei_genesys_set_dpihw(*regs, sensor.full_resolution);
667 // FIXME: the incoming sensor is selected for incorrect resolution
672 regs->set16(REG_LPERIOD, sensor.exposure_lperiod);
792 sensor.exposure_lperiod,
809 write_control(dev, sensor, session.output_resolution);
812 gl646_set_fe(dev, sensor, AFE_SET, session.output_resolution);
842 scanner_send_slope_table(dev, sensor, 0, slope_table1.table);
843 scanner_send_slope_table(dev, sensor, 1, slope_table2.table);
901 const auto& sensor = sanei_genesys_find_sensor_any(dev);
904 sanei_genesys_set_dpihw(dev->reg, sensor.full_resolution);
919 scanner_setup_sensor(*dev, sensor, dev->reg);
968 dev->reg.find_reg(0x31).value = sensor.dummy_pixel /*0x10 */ ; /* TGW + 2*TG_SHLD + x */
971 dev->reg.find_reg(0x34).value = sensor.dummy_pixel;
1063 static void gl646_wm_hp3670(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
1088 if (dpi > sensor.full_resolution / 2) {
1113 static void gl646_set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, std::uint8_t set,
1139 gl646_wm_hp3670(dev, sensor, set, dpi);
1209 void CommandSetGl646::set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor,
1212 gl646_set_fe(dev, sensor, set, dev->settings.yres);
1225 const auto& sensor = sanei_genesys_find_sensor_any(dev);
1229 // gl646_set_fe(dev, sensor, AFE_POWER_SAVE);
1233 gl646_set_fe(dev, sensor, AFE_INIT, 0);
1301 * HOMESNR is set if no document in front of sensor, the sequence of events is
1303 * HOMESNR becomes 0 -> document reach sensor
1304 * HOMESNR becomes 1 ->document left sensor
1324 // home sensor is set if a document is inserted
1379 const auto& sensor = sanei_genesys_find_sensor_any(dev);
1380 scanner_send_slope_table(dev, sensor, 1, slope_table.table);
1488 // home sensor is set when document is inserted
1536 // FIXME: sensor is not used.
1537 const auto& sensor = sanei_genesys_find_sensor_any(dev);
1538 scanner_send_slope_table(dev, sensor, 1, slope_table.table);
1544 /* loop until paper sensor tells paper is out, and till motor is running */
1561 void CommandSetGl646::begin_scan(Genesys_Device* dev, const Genesys_Sensor& sensor,
1565 (void) sensor;
1680 const auto& sensor = sanei_genesys_find_sensor(dev, resolution, 3,
1703 compute_session(dev, session, sensor);
1705 init_regs_for_scan_session(dev, sensor, &dev->reg, session);
1711 gl646_set_fe(dev, sensor, AFE_SET, resolution);
1727 // this is effectively the same as dev->cmd_set->begin_scan(dev, sensor, &dev->reg, true);
1780 void CommandSetGl646::init_regs_for_shading(Genesys_Device* dev, const Genesys_Sensor& sensor,
1791 unsigned resolution = sensor.get_optical_resolution() / cksel;
1792 // FIXME: we select wrong calibration sensor
1844 void CommandSetGl646::send_gamma_table(Genesys_Device* dev, const Genesys_Sensor& sensor) const
1861 auto gamma = generate_gamma_buffer(dev, sensor, bits, size-1, size);
1887 SensorExposure CommandSetGl646::led_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor,
1906 unsigned pixels = dev->model->x_size_calib_mm * sensor.full_resolution / MM_PER_INCH;
1909 session.params.xres = sensor.full_resolution;
1910 session.params.yres = sensor.full_resolution;
1926 compute_session(dev, session, sensor);
1940 expr = sensor.exposure.red;
1941 expg = sensor.exposure.green;
1942 expb = sensor.exposure.blue;
1946 auto calib_sensor = sensor;
2019 // BUG: we don't store the result of the last iteration to the sensor
2064 static void ad_fe_offset_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor)
2067 (void) sensor;
2076 // FIXME: maybe reuse `sensor`
2077 const auto& calib_sensor = sanei_genesys_find_sensor(dev, sensor.full_resolution, 3,
2079 black_pixels = (calib_sensor.black_pixels * sensor.full_resolution) / calib_sensor.full_resolution;
2081 unsigned pixels = dev->model->x_size_calib_mm * sensor.full_resolution / MM_PER_INCH;
2089 session.params.xres = sensor.full_resolution;
2090 session.params.yres = sensor.full_resolution;
2172 void CommandSetGl646::offset_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor,
2183 ad_fe_offset_calibration(dev, sensor);
2187 /* setup for a RGB scan, one full sensor's width line */
2220 compute_session(dev, session, sensor);
2236 dev->cmd_set->init_regs_for_scan_session(dev, sensor, &dev->reg, session);
2317 void CommandSetGl646::coarse_gain_calibration(Genesys_Device* dev, const Genesys_Sensor& sensor,
2322 (void) sensor;
2328 /* setup for a RGB scan, one full sensor's width line */
2333 // we are searching a sensor resolution */
2454 void CommandSetGl646::init_regs_for_warmup(Genesys_Device* dev, const Genesys_Sensor& sensor,
2458 (void) sensor;
2528 const auto& sensor = sanei_genesys_find_sensor_any(dev);
2542 sanei_genesys_init_shading_data(dev, sensor,
2543 dev->model->x_size_calib_mm * sensor.full_resolution /
2566 dev->cmd_set->send_gamma_table(dev, sensor);
2573 gl646_set_fe(dev, sensor, AFE_INIT, 0);
2599 switch (sensor.full_resolution)
2644 static void simple_scan(Genesys_Device* dev, const Genesys_Sensor& sensor,
2661 gl646_set_fe(dev, sensor, AFE_SET, session.params.xres);
2682 dev->cmd_set->begin_scan(dev, sensor, &dev->reg, move);
2734 * update the status of the required sensor in the scanner session
2858 static void write_control(Genesys_Device* dev, const Genesys_Sensor& sensor, int resolution)
2871 switch (sensor.full_resolution)
2915 void CommandSetGl646::send_shading_data(Genesys_Device* dev, const Genesys_Sensor& sensor,
2919 (void) sensor;
2926 const Genesys_Sensor& sensor,
2970 compute_session(dev, session, sensor);