Povilas Kanapickas
28d15784e4
genesys: Remove unused code
2019-09-13 11:36:53 +03:00
Povilas Kanapickas
8ed2cd991b
genesys: Initialize frontend state from the outset
2019-09-13 11:36:52 +03:00
Povilas Kanapickas
ad1067ad03
genesys: Add support for segmented sensors on gl843
2019-09-13 10:52:35 +03:00
Povilas Kanapickas
c59f9a037b
Merge branch 'genesys-default-scan-method' into 'master'
...
genesys: Add a way to specify default scan method
See merge request sane-project/backends!173
2019-09-27 20:55:51 +00:00
Povilas Kanapickas
2f3d9e9d76
genesys: Don't crash when default scan method is not supported
2019-09-12 23:48:16 +03:00
Povilas Kanapickas
4c18ef27a2
genesys: Raise exception when device structs are not found
2019-09-12 23:48:15 +03:00
Povilas Kanapickas
9b7ab93727
genesys: Add unit test for genesys_fill_segmented_buffer()
2019-09-12 22:39:22 +03:00
Povilas Kanapickas
502478a40d
genesys: Reindent genesys_fill_segmented_buffer()
2019-09-12 22:39:21 +03:00
Povilas Kanapickas
c2c65f29c9
genesys: Simplify genesys_fill_segmented_buffer()
2019-09-12 22:39:20 +03:00
Povilas Kanapickas
0267eeeeae
genesys: Remove the desegmentation state struct
2019-09-12 22:22:00 +03:00
Povilas Kanapickas
3d023060a3
genesys: Move desegmentation skip_bytes to session struct
2019-09-12 22:21:59 +03:00
Povilas Kanapickas
192dd886cd
genesys: Use common code path to compute ..._segment_pixel_group_count
2019-09-12 22:21:58 +03:00
Povilas Kanapickas
95eb6a72dd
genesys: Use single code path to compute session output_line_bytes_raw
2019-09-12 22:21:56 +03:00
Povilas Kanapickas
1f4a5311d7
genesys: Rename DesegmentationState::raw_{channel => line}_bytes
2019-09-12 22:21:55 +03:00
Povilas Kanapickas
3a323a751a
genesys: Use common code path to compute session conseq_pixel_dist_bytes
2019-09-12 22:11:19 +03:00
Povilas Kanapickas
41b5e5f5ff
genesys: Use common code path to compute session segment_count
2019-09-12 21:24:30 +03:00
Povilas Kanapickas
676831dc7b
genesys: Move Genesys_Device::curr to DesegmentationState
2019-09-12 21:26:58 +03:00
Povilas Kanapickas
f92253adc8
genesys: Move Genesys_Device::segnb to DesegmentationState
2019-09-12 21:26:57 +03:00
Povilas Kanapickas
31820384de
genesys: Move Genesys_Device::skip to DesegmentationState
2019-09-12 21:26:55 +03:00
Povilas Kanapickas
9bd14f5350
genesys: Move Genesys_Device::len to DesegmentationState
2019-09-12 21:26:54 +03:00
Povilas Kanapickas
07d8db5423
genesys: Move Genesys_Device::dist to DesegmentationState
2019-09-12 21:26:53 +03:00
Povilas Kanapickas
dd70296827
genesys: Move desegmentation line width data to a separate struct
2019-09-12 21:26:52 +03:00
Povilas Kanapickas
88d6cdcc32
genesys: Rename read_bytes_left -> read_bytes_left_after_deseg
2019-09-12 20:06:38 +03:00
Povilas Kanapickas
50e5c80434
genesys: Remove low-level handling of xdpi < ydpi case
...
The high-level code ensures that the xdpi is always natively supported
by the scanner.
2019-09-12 18:21:18 +03:00
Povilas Kanapickas
21254ad929
genesys: Use Sensor::optical_res directly where possible
2019-09-12 18:21:16 +03:00
Povilas Kanapickas
a2ade50870
genesys: Ensure that resolution is set to a supported one at high-level
...
Previously we relied on low-level implementation to detect when the
requested resolution is higher than one supported by the scanner and
seamlessly patch around so that the high-level code does not notice.
This complicates the low level implementation and results to duplicate
code.
2019-08-18 11:13:01 +03:00
Povilas Kanapickas
61a055a8cf
genesys: Pass the line width requested by the frontend separately
2019-08-18 11:13:00 +03:00
Povilas Kanapickas
0b2840a3ff
genesys: Clarify frontend param processing a little
2019-08-18 11:12:59 +03:00
Povilas Kanapickas
ec0ceaebb5
genesys: Use correct resolution to select sensor during option parsing
2019-08-18 11:12:58 +03:00
Povilas Kanapickas
ceb56a8b3b
genesys: Move gl646 sensor settings to the common sensor table
2019-08-17 12:02:45 +03:00
Povilas Kanapickas
5532f2f277
genesys: Add channel count to the parameters that identify a sensor
2019-08-17 11:51:35 +03:00
Povilas Kanapickas
f2871ca81d
genesys: Reduce duplication in channel count and depth calculation
2019-08-17 11:51:34 +03:00
Povilas Kanapickas
6216ada2e7
Merge branch 'genesys-fix-sensor-write' into 'master'
...
genesys: Fix writing to sensors
See merge request sane-project/backends!137
2019-08-31 14:43:05 +00:00
Povilas Kanapickas
0cd26a8adf
genesys: Extract resolution filtering to separate class
2019-08-17 11:56:45 +03:00
Povilas Kanapickas
86ac877d82
genesys: Remove unused code
2019-08-17 11:05:38 +03:00
Povilas Kanapickas
eb1c4fadb9
genesys: Pick correct sensors during option parsing
2019-08-17 11:05:37 +03:00
Povilas Kanapickas
f019f9e7b8
genesys: Don't modify sensor in *_led_calibration()
2019-08-17 11:05:35 +03:00
Povilas Kanapickas
4348451e47
genesys: Add sensor profile to the sensor struct
...
This will allow moving per-chip sensor profile tables to a common
configuration
2019-08-17 11:02:36 +03:00
Povilas Kanapickas
ba546d5370
genesys: Store segment order as a std::vector
2019-08-17 11:02:35 +03:00
Povilas Kanapickas
503797c248
genesys: Simplify shading computation by using enum for color order
2019-08-17 10:53:56 +03:00
Povilas Kanapickas
3a1163480a
genesys: Store calibration data using correct type internally
2019-08-17 10:53:55 +03:00
Povilas Kanapickas
5e5a1a6fc3
genesys: Use correct type for std::plus
2019-08-31 15:11:40 +03:00
Olaf Meeuwissen
5e74e1b794
genesys: Make std::plus<> template type instantiation explicit
...
This fixes compile errors on older versions of gcc and possibly other
C++ compilers.
2019-08-19 22:06:33 +09:00
Povilas Kanapickas
6592692448
genesys: Compile genesys_devices.cc as a separate translation unit
2019-08-04 18:21:06 +03:00
Povilas Kanapickas
8cb6130cfe
genesys: Cleanup the gpo setup
2019-08-04 14:01:50 +03:00
Povilas Kanapickas
ea602f7ebc
genesys: Rewrite and document sanei_genesys_calculate_zmod()
2019-08-04 12:01:51 +03:00
Povilas Kanapickas
6f20e6d341
genesys: Use std::vector for the motor slope tables
2019-08-04 12:01:50 +03:00
Povilas Kanapickas
510e8123f3
genesys: Remove support for multiple motor power modes
2019-08-04 12:01:49 +03:00
Povilas Kanapickas
239eab6ea6
genesys: Simplify motor setup to make it easier to expand
2019-08-04 12:01:48 +03:00
Povilas Kanapickas
e5a90e8005
genesys: Update all sensors when searching for reference point
2019-08-04 02:48:29 +03:00