Ralph Little
41866df6e1
genesys: fix for computation of total file size exceeding unsigned
...
Large scans that exceed 32-bits need cast to allow 64-bit size.
2022-02-27 18:55:26 -08:00
Povilas Kanapickas
188cf63627
genesys: Simplify interface of generate_gamma_buffer()
2022-01-28 22:39:26 +02:00
Povilas Kanapickas
59506f866d
genesys: Remove exception for the GPL license
...
Several files already don't have the exception that allows uses of the
code that are additional to the GPL license. I'm no longer comfortable
granting this exception for my subsequent contributions, thus the
exception has been removed.
2021-12-30 19:16:54 +02:00
Povilas Kanapickas
75ac76f87a
genesys: Remove unneeded per-scanner register setup
...
These register values are overwritten later.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
f06e507de7
genesys: Fixed offset calibration on certain gl841 devices
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
86fe51e224
genesys: Remove erroneous register write on LiDE 80
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
675497fcd8
genesys: Use host-side gray instead of device-side true-gray on gl841
...
True gray mode is not handled correctly by devices: they have bugs that
lead to incorrect LED color being emitted (e.g. dark red) and thus this
feature is completely unusable. At least LiDE 35/40/50, LiDE 60 and LiDE
80 are affected.
Simpy disabling true-gray unfortunately leads to even worse outcome
because the scanner then simply proceeds to perform a color scan.
To work around these problems we do a normal color scan and then produce
gray output based on the color data. This will satisfy the use cases
when correct gray is needed. In cases when it is sufficient to construct
gray from a single color channel, the color filter setting could be
used.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
bd4f009122
genesys: Remove true_gray variable by deriving its value directly
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
1e75025048
genesys: Fix incorrect scan exposure setup on gl841
...
When sensor exposure values are significantly different from each other
the total scan exposure will be too low leading to the device becoming
confused and significantly
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
601705fa3a
genesys: Inline gl841_get_led_exposure()
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
6c0fafac79
genesys: Remove broken two-table feeding support from gl841
...
At least on LiDE 50 two-table feeding caused unexplained motor spin-up
failures on certain motor exposures. Various register modifications
showed that there's high likelihood on device-side bug. Even the
official drivers don't use proper two-table feeding.
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
b668e92047
genesys: Use {uint,int}{8,16,32,64} from std namespace
...
This is not strictly necessary as all known C++ compilers also inject
these types to the global namespace. However this is not guaranteed by
the C++ standard and accordingly some code completion tools don't
support this without additional configuration.
2021-12-26 16:09:17 +02:00
Povilas Kanapickas
3752d11c34
genesys: Wrap very long lines
2021-12-26 16:09:15 +02:00
Povilas Kanapickas
bf4614b76e
genesys: Store contrast and brightness adjustments in session params
2021-12-26 14:53:14 +02:00
Olaf Meeuwissen
e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
...
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320 .
2021-02-12 17:41:38 +09:00
Peter Marschall
0cd9de9bef
spelling fixes for genesys backend
2020-08-29 09:18:03 +02:00
Povilas Kanapickas
02782651a3
genesys: Add model option to disable fast feeding
2020-06-27 00:47:17 +03:00
Povilas Kanapickas
8ec6bc2e5d
genesys: Deduplicate move_to_ta()
2020-05-26 01:32:44 +03:00
Povilas Kanapickas
57a398888d
genesys: Deduplicate init_regs_for_scan()
2020-05-26 01:32:40 +03:00
Povilas Kanapickas
a12083c8c4
genesys: Remove support for generating lineart within the backend
2020-05-24 18:20:17 +03:00
Povilas Kanapickas
a23d61c26b
genesys: Allow pipeline to be created without mutating device
2020-05-24 18:02:03 +03:00
Povilas Kanapickas
d172b9cc4d
genesys: Remove read buffer after image processing
2020-05-24 16:35:59 +03:00
Povilas Kanapickas
d770012132
genesys: Use TIFF files for debugging
2020-05-23 14:03:01 +03:00
Povilas Kanapickas
b5430cc039
genesys: Rename Genesys_Sensor::{optical_res => full_resolution}
2020-05-18 06:35:19 +03:00
Povilas Kanapickas
cf8f9c75f9
genesys: Add missing register writes on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
96a5f963a3
genesys: Make sure full-step tables are used on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
e5fa8dd3cc
genesys: Simplify motor mode selection on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
341fdbbee7
genesys: Add missing register writes on LiDE 60
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
bb04101990
genesys: Use scan table for back table on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
51f97b1b97
genesys: Fix invalid step count when feeding on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
8435be213f
genesys: Support non-FULL steps for fast tables on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
4f0bab0bfa
genesys: Don't write zero values to step count tables
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
1633022fda
genesys: Simplify motor setup on LiDE 80
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
288dd82a6f
genesys: Pass motor profile directly to exposure calculation utils
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
049e69aa79
genesys: Fix step multiplier handling in motor table manipulation utils
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
b8ced2861a
genesys: Always write the same set of tables on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
12641bd6ca
genesys: Don't send empty tables unnecessarily on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
88b49704b2
genesys: Use create_slope_table() directly on gl841
2020-05-18 04:34:28 +03:00
Povilas Kanapickas
16fa00c13b
genesys: Extract scanner_send_slope_table()
2020-05-18 03:53:10 +03:00
Povilas Kanapickas
11c3a67e47
genesys: Remove redundand argument out of *_send_slope_table()
2020-05-18 03:53:09 +03:00
Povilas Kanapickas
253bd0ffe4
genesys: Regenerate motor table total duration when it is updated
2020-05-18 03:53:08 +03:00
Povilas Kanapickas
9c4f84f91a
genesys: Don't generate excessive amount of steps for the motor tables
2020-05-18 03:53:07 +03:00
Povilas Kanapickas
8e76d4ede9
genesys: Upload only required part of motor slope table on gl841
2020-05-18 03:53:06 +03:00
Povilas Kanapickas
800cf3beaf
genesys: Use ModelFlag::DISABLE_*_CALIBRATION instead of NO_CALIBRATION
2020-05-17 01:02:28 +03:00
Povilas Kanapickas
d6570c86ff
genesys: Remove debug messages that are no longer useful
2020-05-16 23:43:47 +03:00
Povilas Kanapickas
6092e2d682
genesys: Enable image data logging as a separate environment variable
2020-05-16 23:05:20 +03:00
Povilas Kanapickas
10b126a65e
Merge branch 'genesys-lide60-abrt' into 'master'
...
Fix abort in genesys backend during sending slope table
See merge request sane-project/backends!346
2020-05-16 19:39:23 +00:00
Povilas Kanapickas
4691b92d80
genesys: Simplify motor profile selection on gl841
2020-05-09 10:38:42 +03:00
Povilas Kanapickas
ae8cb155ef
genesys: Simplify register setup on gl841
2020-05-09 10:38:41 +03:00
Zdenek Dohnal
ea8beca57d
Fix assertion error in gl841 asic type by lowering steps for fast/back/slow tables
2020-04-22 13:23:41 +02:00