Ralph Little
b3a04eae1a
genesys: added special PDF function definitions for Canon 4400f
2022-04-13 11:07:45 -07:00
David Ward
6be83f469b
Resolve compiler warnings about misleading indentation
...
This change is targeted at specific lines of code reported by GCC or
Clang as potentially causing unintended behavior.
2022-03-08 19:00:00 -05:00
Zdenek Dohnal
d8ebd5a4d7
genesys: GL845 has vector size 257 as well
...
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2042316
2022-01-28 22:31:09 +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
334e4bd8d1
genesys: Use consistent initial exposure for led calibration on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
af175f6d4c
genesys: Fix inconsistent exposure values in led calib in testing mode
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
3e9431d079
genesys: Ensure sensor exposure is up-to-date when scanning on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
c11a0e7ab6
genesys: Reuse gl124 led calibration acceptability criteria for gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
d19ccd2fad
genesys: Remove no longer used led calibration fallback code on gl841
...
This was used only on scanners which did not have calibration target
intensity value. All gl841 scanners now have such setting, so the code
can be removed.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
c1f731a7e0
genesys: Remove duplicate register write during led calibration on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
f1910ae58c
genesys: Reset registers after move during led calibration on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
0f341bf5a0
genesys: Clean up exposure calibration on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
4ee36a2e31
genesys: Use more robust gain calibration on gl841
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
bbc1543525
genesys: Remove duplicate register writes in gl841 calibration
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
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
bf4614b76e
genesys: Store contrast and brightness adjustments in session params
2021-12-26 14:53:14 +02:00
Povilas Kanapickas
75801bffd3
genesys: Address wrong indentation warning
...
This is separate commit because the previous commit introducing this
warning is completely unrelated and would not benefit from this change
being included.
2021-12-15 23:59:28 +02:00
Ralph Little
8347191b5f
genesys: Added transparency button option
...
This is introduced primarily for the ScanJet G4010 which has "Scan Film"
buttons.
2021-12-15 23:59:28 +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
pobrn
45f84a569c
respect 'local_only' parameter of sane_get_devices()
...
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.
Changes:
1. Modify 'sanei_configure_attach()' so that backend specific
data may be passed to the 'attach()' function.
2. Use this in certain backends to pass the value of the
'local_only' parameter so that network related activities
are only carried out when the value is false.
2020-08-12 12:29:38 +02:00
Povilas Kanapickas
b0c42c0f5f
genesys: Implement support for LiDE 90
2020-06-27 00:48:06 +03:00
Povilas Kanapickas
ea15fb29b7
genesys: Simplify motor table upload on gl842
2020-06-27 00:47:19 +03:00
Povilas Kanapickas
86c15ff4a0
genesys: Add option to fill dark calibration with constant
2020-06-27 00:47:16 +03:00
Povilas Kanapickas
f6f891bd93
genesys: Call update_home_sensor_gpio() for all chip types
2020-06-27 00:47:14 +03:00
Povilas Kanapickas
96f60115df
genesys: Bump calibration version
2020-05-26 01:51:23 +03:00
Povilas Kanapickas
3cca2593fc
genesys: Add support for Canon 5600F
2020-05-26 01:51:19 +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
66ba92cfb6
genesys: Don't throw exception in non-exceptional circumstances
2020-05-26 01:32:39 +03:00
Povilas Kanapickas
786442d9c7
Merge branch 'genesys-pixel-offsets' into 'master'
...
genesys: Pixel offset calculation adjustments
See merge request sane-project/backends!473
2020-05-25 22:26:23 +00:00
Povilas Kanapickas
8a10e33a13
genesys: Move all pixel adjustment calculations to a single function
2020-05-26 01:10:50 +03:00
Povilas Kanapickas
b569e6cbb9
genesys: Reimplement simplier host-side calibration
2020-05-26 01:09:23 +03:00
Povilas Kanapickas
92bf0c6623
genesys: Remove broken interpolation support
2020-05-24 20:44:26 +03:00
Povilas Kanapickas
33fc7cfb29
genesys: Retrieve output parameters out of the actual pipeline
2020-05-24 18:36:48 +03:00
Povilas Kanapickas
a12083c8c4
genesys: Remove support for generating lineart within the backend
2020-05-24 18:20:17 +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
4b0f3ed02c
genesys: Warn if output and requested widths don't match
2020-05-21 23:40:59 +03:00
Povilas Kanapickas
a6f023fee1
genesys: Reuse Genesys_Settings::requested_pixels for bytes per line
2020-05-21 23:40:58 +03:00
Povilas Kanapickas
c50bfb8493
genesys: Simplify calc_parameters() by making data flow explicit
2020-05-21 23:40:57 +03:00
Povilas Kanapickas
90a2386c01
genesys: Fix const safety of sensor retrieval functions
2020-05-21 23:40:56 +03:00
Povilas Kanapickas
0957103cc3
genesys: Prefer to have a local `dev` variable for Genesys_Device*
2020-05-21 23:40:55 +03:00
Povilas Kanapickas
83f7520fe7
genesys: Remove obsolete comment
2020-05-21 20:51:17 +03:00
Povilas Kanapickas
0d97c3d195
genesys: Simplify genesys_read_ordered_data()
2020-05-21 20:51:16 +03:00
Povilas Kanapickas
1eccbf5aef
genesys: Remove no longer used buffers
2020-05-21 20:51:15 +03:00
Povilas Kanapickas
657de7d72a
genesys: Remove image enhancement functionality from the backend
2020-05-21 20:16:36 +03:00
Povilas Kanapickas
59abadd065
genesys: Fix debug statement logging directly to stderr
2020-05-21 20:16:35 +03:00
Povilas Kanapickas
e62f130523
genesys: Replace ccd_size_divisor with explicit optical resolution
2020-05-18 06:35:20 +03:00