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
Povilas Kanapickas
d688429ccd
genesys: Fix use of wrong dpi when computing output pixel count
2019-06-02 11:47:33 +03:00
Povilas Kanapickas
1a9e05b291
genesys: Extract params to gl843_init_scan_regs to a struct
2019-06-02 11:47:32 +03:00
Povilas Kanapickas
836a78bef5
genesys: Extract exposure to separate variable in sensor definition
2019-06-02 11:47:31 +03:00
Povilas Kanapickas
e9419d5e33
genesys: Make per-sensor register override list generic
2019-06-02 11:47:30 +03:00
Povilas Kanapickas
7f22e35e2c
genesys: Use internal sleep wrapper for remaining sleep calls
2019-06-02 11:47:29 +03:00
Povilas Kanapickas
90814ac7d3
genesys: Move half CCD property to sensor definition
2019-06-02 11:47:28 +03:00
Povilas Kanapickas
7359412548
genesys: Remove dead code
2019-06-02 11:47:27 +03:00
Povilas Kanapickas
04c5b4afde
genesys: Improve type safety of Genesys_Register_Set
2019-06-02 11:47:26 +03:00
Olaf Meeuwissen
4c05fb4742
Merge branch 'backend/as6e' into 'master'
...
as6e: Avoid out of bound access
See merge request sane-project/backends!31
2019-06-15 06:50:27 +00:00
Olaf Meeuwissen
cadf5a9b1a
Prevent segfault in case strndup cannot allocate memory
...
This complements 18f9e5598c
2019-06-15 14:45:36 +09:00
Olaf Meeuwissen
f9eb32317a
Merge branch 'sanei-usb-testing-mode-prep' into 'master'
...
sanei: Preparation to support capture and replay of USB data for testing
See merge request sane-project/backends!74
2019-06-15 05:43:06 +00:00
Olaf Meeuwissen
d22516c76a
Merge branch 'remove-autoconf-generated-files' into 'master'
...
Remove autoconf generated files
See merge request sane-project/backends!72
2019-06-12 10:48:14 +00:00
Bernard B Badeer
1f383b3795
Add options for reading LCD counter and LED indicator.
...
* Add command line parameters for readling LCD counter and LED indicator.
* Code refactoring: Use static parameter strings instead of dynamically
allocated string in order to avoid memory leak.
2019-06-03 06:10:26 +00:00
Povilas Kanapickas
1c3e1aa184
autotools: Remove files generated by autotools from version control
2019-06-01 14:38:36 +03:00
Povilas Kanapickas
916d4e0db9
genesys: Fix sanei_genesys_{read,set}_reg_from_set()
...
There can be registers in the register set with zero address. In
particular, the 0x0b register's address is set to zero on most
sub-backends to prevent writes to it. This leads to the functions in
question not do anything in most scenarios.
2019-06-01 05:24:58 +03:00
Povilas Kanapickas
18f9e5598c
dll: Don't unnecessarily use alloca
2019-05-27 18:56:01 +03:00
Povilas Kanapickas
58ee13d057
genesys: Fix warning
2019-05-24 21:13:37 +03:00
Olaf Meeuwissen
be9736020f
autofoo: Sync generated files
...
The AX_CXX_COMPILE_STDCXX* macros that were embedded in aclocal.m4
have been replaced with the versions found in the autoconf-archive
package from Debian 9.
2019-05-21 22:14:46 +09:00
Povilas Kanapickas
16a3945ce6
Merge branch 'genesys-sleep' into 'master'
...
genesys: Add wrapper for sleep that can be turned off when testing
See merge request sane-project/backends!70
2019-05-20 09:47:38 +00:00
Olaf Meeuwissen
f498e5fa66
genesys: Add missing pointer cast on malloc call
...
Fixes build on Fedora 29 and 30.
2019-05-20 18:32:48 +09:00
Olaf Meeuwissen
2bb5ed655a
Merge branch 'genesys-enable-cxx' into 'master'
...
Use C++ for the genesys backend
See merge request sane-project/backends!61
2019-05-20 09:10:53 +00:00
Stanislav Yuzvinsky
2a11622967
Merge branch 'teardown' into 'master'
...
ricoh2: Rearrange init/deinit code of ricoh2 to correctly support "code flow"
See merge request sane-project/backends!65
2019-05-19 18:18:57 +00:00
Olaf Meeuwissen
7585538595
epson2: Add XP-255 as supported. Fixes #81
2019-05-19 21:41:16 +09:00
Povilas Kanapickas
71bf2daec6
Merge branch 'genesys-remove-static' into 'master'
...
genesys: Remove uses of GENESYS_STATIC
See merge request sane-project/backends!68
2019-05-19 12:02:50 +00:00
Povilas Kanapickas
a4ab69376c
genesys: Remove uses of GENESYS_STATIC
2019-05-19 14:49:44 +03:00