Povilas Kanapickas
fb8014d77e
genesys: Store scan setup data in SetupParams struct
2019-06-08 14:04:06 +03:00
Povilas Kanapickas
42ae7ea2d8
genesys: Reuse SetupParams on GL847 code
2019-06-08 14:04:05 +03:00
Povilas Kanapickas
1841e5b276
genesys: Reuse SetupParams on GL846 code
2019-06-08 14:04:04 +03:00
Povilas Kanapickas
6719f885da
genesys: Reuse SetupParams on GL841 code
2019-06-08 14:04:03 +03:00
Povilas Kanapickas
50f5007b3d
genesys: Reuse SetupParams on GL124 code
2019-06-08 14:04:02 +03:00
Povilas Kanapickas
319a5082ac
genesys: Remove unused command set API
2019-06-08 14:04:01 +03:00
Povilas Kanapickas
d92bfd1e9e
genesys: Remove unused fields out of Genesys_Settings struct
2019-06-08 14:04:00 +03:00
Povilas Kanapickas
efd7723a4f
genesys: Deduplicate dumping of Genesys_Current_Setup to logs
2019-06-08 14:03:59 +03:00
Povilas Kanapickas
7020001ba7
genesys: Remove unused ScanColorMode::COLOR_MULTI_PASS
2019-06-08 14:03:58 +03:00
Povilas Kanapickas
6e657e3eac
genesys: Refactor scan color mode into an enum
2019-06-08 14:03:57 +03:00
Povilas Kanapickas
723426d78b
genesys: Don't use dev->calib_reg directly when possible
2019-06-08 14:03:56 +03:00
Povilas Kanapickas
c09370eab4
genesys: Add support for selecting infrared channel
2019-06-08 14:03:55 +03:00
Povilas Kanapickas
a63c8a5f8c
genesys: Support more than two scan methods
2019-06-08 14:03:54 +03:00
Povilas Kanapickas
f1e583aea8
genesys: Refactor scan method into an enum
2019-06-08 14:03:53 +03:00
Povilas Kanapickas
374a3043fa
genesys: Use STR_ prefix to macros yielding to strings
2019-06-08 14:03:52 +03:00
Povilas Kanapickas
06157f753c
genesys: Extract remaining options out of option list
2019-06-08 14:03:51 +03:00
Povilas Kanapickas
38ccdc6788
genesys: Extract resolution and bit_depth options out of option list
2019-06-08 14:03:50 +03:00
Povilas Kanapickas
a7a2e0abd6
genesys: Extract string options out of options list
2019-06-08 14:03:49 +03:00
Povilas Kanapickas
3301e0fbea
genesys: Extract position options out of option list
2019-06-08 14:03:48 +03:00
Povilas Kanapickas
3f184b795f
genesys: Simplify sensor handling
2019-06-08 14:03:47 +03:00
Povilas Kanapickas
8aa5318f90
genesys: Make frontend register list generic
2019-06-02 11:48:04 +03:00
Povilas Kanapickas
24853e657a
genesys: Refactor frontend table to initialize data explicitly
2019-06-02 11:48:03 +03:00
Povilas Kanapickas
6305433210
genesys: Cache the initial frontend values in the device
2019-06-02 11:48:02 +03:00
Povilas Kanapickas
ba778a7d84
genesys: Add a way to set custom FE registers depending on scan mode
2019-06-02 11:48:01 +03:00
Povilas Kanapickas
c05b0c1598
genesys: Add initial support for 8600F 4800dpi transparency scanning
2019-06-02 11:48:00 +03:00
Povilas Kanapickas
91a37b6558
genesys: Add a way to calibrate partial width of the scanner
2019-06-02 11:47:59 +03:00
Povilas Kanapickas
a2f451526c
genesys: Extract GenesysRegisterSettingSet::{fread,fwrite}()
2019-06-02 11:47:58 +03:00
Povilas Kanapickas
a9689de478
genesys: Don't hardcode ccd size divisor for start position
2019-06-02 11:47:56 +03:00
Povilas Kanapickas
3a8f1ddf6c
genesys: Support 2400dpi transparency scans on 8600F
2019-06-02 11:47:55 +03:00
Povilas Kanapickas
8520b810fd
genesys: Add support for mixed half/quarter-ccd mode on the same scanner
2019-06-02 11:47:54 +03:00
Povilas Kanapickas
36872e5751
genesys: Add support for half-ccd and quarter-ccd modes on the same chip
...
Previously we hardcoded half-ccd mode to be actually quarter-ccd mode on
GL843.
2019-06-02 11:47:53 +03:00
Povilas Kanapickas
8a9a4e3f71
genesys: Move GL843 sensor profiles to global sensor database
...
Note that gl843_setup_sensor() did not write certain registers and they
weren't written to the scanner anywhere else, thus they have been
excluded from the new definitions.
2019-06-02 11:47:52 +03:00
Povilas Kanapickas
723aa2b73c
genesys: Don't store current sensor in device as it depends on the scan
2019-06-02 11:47:51 +03:00
Povilas Kanapickas
f8e8243b78
genesys: Don't modify sensor with gamma data
2019-06-02 11:47:50 +03:00
Povilas Kanapickas
dafd2a150b
genesys: Extract gamma creation into a single function
2019-06-02 11:47:49 +03:00
Povilas Kanapickas
ea74f8e6ef
genesys: Pass gamma tables as vectors
2019-06-02 11:47:48 +03:00
Povilas Kanapickas
dd2884ede7
genesys: Don't read registers to get data available from model flags
2019-06-02 11:47:47 +03:00
Povilas Kanapickas
5adaea3e2f
genesys: Pass sensor to genesys_coarse_calibration() as param
2019-06-02 11:47:46 +03:00
Povilas Kanapickas
60289d58e2
genesys: Pass sensor to genesys_average_white() as param
2019-06-02 11:47:45 +03:00
Povilas Kanapickas
35e45196b9
genesys: Pass sensor to sanei_genesys_search_reference_point() as param
2019-06-02 11:47:44 +03:00
Povilas Kanapickas
43c86ecd81
genesys: Only ever name Genesys_Sensor as "sensor" to reduce confusion
2019-06-02 11:47:43 +03:00
Povilas Kanapickas
7738412517
genesys: Remove vim indent settings
2019-06-02 11:47:42 +03:00
Povilas Kanapickas
6fdabd8174
genesys: Remove unused sensor config
2019-06-02 11:47:41 +03:00
Povilas Kanapickas
d3f13839af
genesys: Remove no longer needed explicit initialization and copying
2019-06-02 11:47:40 +03:00
Povilas Kanapickas
4269f67c4a
genesys: Always initialize Genesys_Frontend
2019-06-02 11:47:39 +03:00
Povilas Kanapickas
68df437faf
genesys: Always initialize Genesys_Motor
2019-06-02 11:47:38 +03:00
Povilas Kanapickas
52f73ffd8d
genesys: Always initialize Genesys_Gpo
2019-06-02 11:47:37 +03:00
Povilas Kanapickas
d39189e424
genesys: Always initialize Genesys_Settings
2019-06-02 11:47:36 +03:00
Povilas Kanapickas
03ecbf1bb0
genesys: Always initialize Genesys_Current_Setup
2019-06-02 11:47:35 +03:00
Povilas Kanapickas
a287f4945c
genesys: Extract computation of session setup to callers
2019-06-02 11:47:34 +03:00