Olaf Meeuwissen
3a1d6dbb96
.gitignore: .dirstamp files and *-s.cpp files
...
[skip CI]
2019-12-31 12:49:40 +09:00
Olaf Meeuwissen
c821f277f3
build: Rename *THREAD_LIBS parameters
...
This aims to clarify the purpose of each parameter: SANEI_THREAD_LIBS
for any code that uses sanei/sanei_thread.c and a plain PTHREAD_LIBS
for code that uses the pthread library directly.
2019-12-31 12:33:13 +09:00
Olaf Meeuwissen
9050ae3b6a
mustek_usb2: Remove unneeded linking arguments
2019-12-31 12:14:46 +09:00
Olaf Meeuwissen
378a85fe09
Don't disable backends using pthreads directly. Fixes #153
...
The use of pthreads was disabled in case of a non-integral pthread_t
type in 756d286f36
as the sanei_thread
implementation assumes an integral type. This also disabled building
of the kvs40xx and mustek_usb2 backends which use pthreads directly.
This re-enables the build of these backends.
2019-12-31 11:55:31 +09:00
Olaf Meeuwissen
75310001f1
Merge branch 'fix-kvs40xx-cast-function-type-warning' into 'master'
...
kvs40xx: Fix [-Wcast-function-type] compiler warning. Re #120
See merge request sane-project/backends!229
2019-12-30 06:19:39 +00:00
Klaus Kämpf
4c8e4dd934
pieusb: fix compiler warnings
...
fixes #196
2019-12-30 11:56:24 +09:00
Thierry HUCHARD
160b63a9c2
Using strcmp instead of strncmp, strncmp is not justified.
2019-12-29 10:52:11 +01:00
Thierry HUCHARD
925bf77419
Removing the png and tiff test from the header.
2019-12-29 10:50:43 +01:00
Rolf Bensch
6f34396ab4
pixma: backend version 0.26.0
2019-12-28 13:58:11 +01:00
Rolf Bensch
a7c78f41d6
pixma: reorder scanner defines
2019-12-28 13:54:34 +01:00
Ordissimo
18670166a6
pixma: Add model 2019: G6000, G6080, TS5300, TS5380, TS6300, TS6380, TS7330, TS8300, TS8380, TS8330, XK60, TS6330, TS3300 and E3300
2019-12-28 12:53:52 +00:00
Rolf Bensch
b1ad53fff5
Merge branch 'perillamint/backends-add-canon-pixma-g2010-support'
...
pixma: Add support for Canon PIXMA G2010 Series
see merge request sane-project/backends!223
2019-12-28 13:34:47 +01:00
Rolf Bensch
aa76967917
pixma: fix device define for Canon PIXMA G2010 Series
2019-12-28 13:26:11 +01:00
thierry1970
d527110a52
Merge commit '5275b3bb' into escl-png
2019-12-27 15:23:02 +01:00
thierry1970
f956fd00ba
Merge commit '45c67025' into escl-png
2019-12-27 15:22:38 +01:00
thierry1970
5275b3bbd6
Solves the problem of HP device discovery.
2019-12-27 15:07:10 +01:00
thierry1970
45c6702552
Formatting of the code to not exceed 80 characters.
2019-12-27 15:04:57 +01:00
Ralph Little
adf9bb837f
Resolve "hpsj5s backend generates compiler warnings in Debian 10"
2019-12-27 11:22:05 +00:00
Povilas Kanapickas
7a76f21ccd
Merge branch 'genesys-lide-fixes' into 'master'
...
genesys: Various fixes affecting LiDE 100,110,120,200,210,220
See merge request sane-project/backends!284
2019-12-26 15:31:53 +00:00
Povilas Kanapickas
53efe5822d
genesys: Remove excessive debug logs during data read
2019-12-26 17:13:34 +02:00
Povilas Kanapickas
2b00ef3995
genesys: Improve calibration speed by making convergence faster
2019-12-26 17:13:33 +02:00
Povilas Kanapickas
fd13c10b5c
genesys: Fix invalid memory access in ImagePipelineNodeDesegment
2019-12-26 17:13:32 +02:00
Povilas Kanapickas
cacc68a6d4
genesys: Fix initial register values on gl124
2019-12-26 17:13:31 +02:00
Povilas Kanapickas
66ac8c6203
genesys: Fix sensor table for LiDE 120
2019-12-26 17:13:30 +02:00
Povilas Kanapickas
2661115251
genesys: Fix sensor table for LiDE 110
2019-12-26 17:13:29 +02:00
Povilas Kanapickas
d7d227a3f7
genesys: Fix sensor table for LiDE 200
2019-12-26 17:13:28 +02:00
Povilas Kanapickas
09a84d11d8
genesys: Fix sensor table for LiDE 100
2019-12-26 17:13:27 +02:00
Povilas Kanapickas
01bdc63d7d
genesys: Fix step selector masks on gl124
2019-12-26 17:13:26 +02:00
Povilas Kanapickas
40a2a0d554
genesys: Remove unnecessary model check in calibration init
2019-12-26 17:13:25 +02:00
Povilas Kanapickas
47431a8776
genesys: Fix exception on LiDE 210 when going back from unknown position
2019-12-26 17:13:24 +02:00
Povilas Kanapickas
e2bb81ef01
genesys: Add extra sleep during scan stop for gl646
2019-12-26 17:13:23 +02:00
Ordissimo
5372f21810
Fix typo.
2019-12-26 14:11:09 +00:00
Ordissimo
1a95f30210
Fixing the comparison.
2019-12-26 14:08:15 +00:00
thierry1970
2ea6552ed3
Fix style.
2019-12-26 14:03:33 +01:00
thierry1970
65470e95aa
Addition of the TIFF decoder.
2019-12-26 14:01:00 +01:00
thierry1970
a23dfbfff5
Standardization of method signatures.
2019-12-26 11:55:00 +01:00
Olaf Meeuwissen
d190c559c2
Merge branch 'epjitsu-backend-generates-compiler-warning-in-debian-10' into 'master'
...
Resolve "epjitsu backend generates compiler warning in Debian 10"
Closes #193
See merge request sane-project/backends!267
2019-12-26 10:27:47 +00:00
Ordissimo
df59815895
Remove unused function.
2019-12-25 18:43:56 +00:00
Ordissimo
296a4b68f9
Fix syntaxe.
2019-12-25 18:34:57 +00:00
Thierry HUCHARD
d3efc20a0b
Decoding files in one phase.
2019-12-25 18:36:23 +01:00
Thierry HUCHARD
c6e8d381e0
Fix syntax.
2019-12-25 00:49:52 +01:00
Thierry HUCHARD
5c15d37248
Adding png support. The decompressors (Jpeg and Png) are in separate files.
2019-12-25 00:39:04 +01:00
Olaf Meeuwissen
0ae128d1ab
Merge branch 'gt68xx-backend-generates-compiler-warnings-on-debian-10' into 'master'
...
Resolve "gt68xx backend generates compiler warnings on Debian 10"
Closes #194
See merge request sane-project/backends!268
2019-12-24 12:03:09 +00:00
Olaf Meeuwissen
6d9cb35b1f
Merge branch 'as6e-generates-compiler-warnings-in-debian-10' into 'master'
...
Resolve "as6e generates compiler warnings in Debian 10"
Closes #192
See merge request sane-project/backends!266
2019-12-24 09:05:30 +00:00
Olaf Meeuwissen
c77f89de62
Merge branch 'artec-backend-produces-compiler-warnings-on-debian-10' into 'master'
...
Resolve "artec backend produces compiler warnings on Debian 10"
Closes #191
See merge request sane-project/backends!265
2019-12-24 09:01:13 +00:00
Olaf Meeuwissen
f506aceb33
Merge branch 'ibm-backend-produces-compiler-warnings-in-debian-10' into 'master'
...
Resolve "IBM & Ricoh backends produces compiler warnings in Debian 10"
Closes #190
See merge request sane-project/backends!264
2019-12-24 08:59:27 +00:00
Ralph Little
92308130f4
Merge branch '197-fix-hp3900-backend-compiler-warning' into 'master'
...
hp3900: Fix [-Wtautological-compare] compiler warning
Closes #197
See merge request sane-project/backends!280
2019-12-23 17:04:19 +00:00
Ralph Little
9527e72a53
Merge branch '195-fix-hp-backend-compiler-warning' into 'master'
...
hp: Fix [-Wstringop-truncation] compiler warning
Closes #195
See merge request sane-project/backends!279
2019-12-23 16:49:11 +00:00
Ralph Little
37f96cc800
Merge branch 'fix-dll-compiler-warnings' into 'master'
...
Address dll compiler warnings
See merge request sane-project/backends!269
2019-12-23 16:39:34 +00:00
Olaf Meeuwissen
328a5d654b
hp3900: Fix [-Wtautological-compare] compiler warning
...
Although the fix changes the backend's logic, it probably matches what
was the original code's intent.
2019-12-23 21:57:36 +09:00
Olaf Meeuwissen
70ef8db5d6
hp: Fix [-Wstringop-truncation] compiler warning
2019-12-23 21:36:13 +09:00
Olaf Meeuwissen
74f601188b
Merge branch 'escl-force-formatext' into 'master'
...
indicator of the presence of the DocumentFormatExt field
See merge request sane-project/backends!261
2019-12-23 11:57:10 +00:00
Povilas Kanapickas
538b34f418
genesys: Fix testing mode in gl646
2019-12-23 02:27:28 +02:00
Povilas Kanapickas
5d83753b07
genesys: Work around bad acceleration curves on certain gl646 scanners
2019-12-23 02:27:28 +02:00
Povilas Kanapickas
fb1dea325c
genesys: Fix crash when moving back hove on gl646
2019-12-23 01:43:39 +02:00
Povilas Kanapickas
9f4cabb55c
genesys: Fix random lock ups when waiting for motor to stop on gl646
2019-12-23 01:43:38 +02:00
Povilas Kanapickas
fffcb62544
genesys: Fix completely broken backtracing calculation on gl646
2019-12-23 01:43:37 +02:00
Povilas Kanapickas
e437f17b40
genesys: Enable more infrared resolutions on 8600F
2019-12-22 23:23:18 +02:00
Povilas Kanapickas
d1a0c1589a
genesys: Sort 8600F sensor tables
2019-12-22 23:23:17 +02:00
Povilas Kanapickas
216250361f
genesys: Fix uninitialized variable warning
2019-12-22 23:23:16 +02:00
Povilas Kanapickas
6fb588648c
genesys: Fix infinite loop when we overestimate distance to home sensor
2019-12-22 17:40:13 +02:00
Povilas Kanapickas
01ca9c9030
genesys: Use fast moving for most of the distance when moving back home
2019-12-22 17:40:13 +02:00
Povilas Kanapickas
2397d8879a
genesys: Fix collection of scanhead movement information
2019-12-22 17:40:13 +02:00
Povilas Kanapickas
29166d9b3b
genesys: Remove rewind() function due to unreliability
2019-12-22 17:40:13 +02:00
Povilas Kanapickas
fd29cae64a
genesys: Correctly set LINESEL on 4400F
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
69067f2f7f
genesys: Remove no longer used final_exposure
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
35385625de
genesys: Delete unused code
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
38f988dc39
genesys: Use correct SHDAREA setting on 4400F
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
67638f55b2
genesys: Use a more reasonable backtract distance on gl843
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
2a6081affe
genesys: Fix scanning table length calculation on gl843
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
33bfa923d5
genesys: Add a way to create fastest motor acceleration table
2019-12-22 17:07:24 +02:00
Povilas Kanapickas
83fa276b90
genesys: Fix bug in setting up motor tables 3,4,5 on gl843
2019-12-22 17:06:38 +02:00
Thierry HUCHARD
2788328e19
Fix: better readability.
2019-12-22 13:48:55 +01:00
Olaf Meeuwissen
fd407cc58b
dll: Make previous change backwardly compatible
...
Older GCC do not know the cast-function-pragma and flag that as a
warning. That results in an error on our Debian 9 build.
2019-12-22 18:34:45 +09:00
Olaf Meeuwissen
e7f6c6e864
dll: Ignore [-Wcast-function-type] compiler warnings
2019-12-22 17:58:39 +09:00
Thierry HUCHARD
afc9b62c7e
Fix: better readability.
2019-12-22 09:50:04 +01:00
Olaf Meeuwissen
a993e6438e
dll: Fix [-Wformat-truncation=] compiler warning
...
Per POSIX, `readdir` returns filenames that are at most `NAME_MAX` long.
2019-12-22 16:09:11 +09:00
Ralph Little
3d12424961
gt68xx: suppressed strncpy compiler warnings.
2019-12-21 22:53:16 -08:00
Ralph Little
a4360b0a75
gt68xx: suppress snprintf warning with return length check.
2019-12-21 22:07:39 -08:00
Ralph Little
b02a208a94
as6e: data type correction.
...
size_t is unsigned so -1 error from snprintf would not be properly detected.
2019-12-21 22:02:50 -08:00
Ralph Little
d1940cf9b8
epjitsu: strncpy() compiler warning suppressed.
2019-12-21 21:44:39 -08:00
Ralph Little
2230614ede
as6e: compiler warnings suppressed for problematic use of strncat.
...
Replaced with snprintf which simplifies the code and suppresses the warning.
2019-12-21 21:24:19 -08:00
Ralph Little
3bb5e94d65
artec: strncpy replaced with memcpy()
...
This was a cheeky strncpy hiding what is really the job of memcpy().
2019-12-21 20:57:48 -08:00
Ralph Little
821efb2626
ibm/ricoh: suppress warning by using snprintf instead of strncat
2019-12-21 20:21:52 -08:00
Ralph Little
790bdd822a
plustek: Fix [-Wformat-overflow=] compiler warnings on Debian 10
...
Also fixes a format truncation warning observed elsewhere.
2019-12-22 02:05:53 +00:00
thierry1970
6506cd9595
indicator of the presence of the DocumentFormatExt field, forces for certain printer the output format.
2019-12-19 14:30:35 +01:00
Ralph Little
97dea94959
Revert "plustex: suppressed format truncated compiler warning."
...
This reverts commit cc7fbd35e535e22cd13cd58979921e0c01fb38b4
2019-12-19 12:14:16 +00:00
Stanislav Yuzvinsky
8de208c24c
Add SP-112SU model
2019-12-19 11:57:25 +00:00
Thierry HUCHARD
277194d534
Revert "uniformise signature."
...
This reverts commit 2eff3e82ba
.
2019-12-17 20:00:19 +01:00
Thierry HUCHARD
2eff3e82ba
uniformise signature.
2019-12-17 19:58:14 +01:00
Povilas Kanapickas
48fd80d208
genesys: Simplify handling of motor step multiplier
2019-12-14 10:20:15 +02:00
Povilas Kanapickas
1d7adfcfc1
genesys: Fix naming of step multiplier
2019-12-14 10:20:14 +02:00
Povilas Kanapickas
194920159d
genesys: Remove support for legacy curves
2019-12-14 10:20:13 +02:00
Povilas Kanapickas
3d9113997f
genesys: Switch remaining legacy curve uses to physical curves
2019-12-14 10:20:12 +02:00
Povilas Kanapickas
9a245a1325
genesys: Switch unused motor curves to physical format
2019-12-14 10:20:11 +02:00
Povilas Kanapickas
7d477da404
genesys: Use MotorSlope in gl646 code
2019-12-14 10:20:10 +02:00
Povilas Kanapickas
dec9962773
genesys: Make the size of slope tables configurable by asic type
2019-12-14 10:20:09 +02:00
Povilas Kanapickas
c685ac075b
genesys: Return MotorSlopeTable out of *_generate_slope_table()
2019-12-14 10:20:08 +02:00
Povilas Kanapickas
8731a6cc5d
genesys: Return MotorSlopeTable out of *_create_slope_table3()
2019-12-14 10:20:07 +02:00
Povilas Kanapickas
7c6229f272
genesys: Rename MotorSlopeTable::{scan_steps -> steps_count}
2019-12-14 10:20:06 +02:00
Povilas Kanapickas
54034c3fae
genesys: Fix Opticfilm 7200i and 7500i motor curves
2019-12-14 10:20:05 +02:00
Povilas Kanapickas
868c437896
genesys: Convert hardcoded motor slopes to physical slope config
2019-12-14 10:20:04 +02:00
Povilas Kanapickas
465077c6cb
genesys: Remove manual override of the first value in motor tables
2019-12-14 10:20:03 +02:00
Povilas Kanapickas
f605e7c229
genesys: Fix testing mode recording of scanner_slow_back_home_ta()
2019-12-14 10:20:02 +02:00
Povilas Kanapickas
c1d791f11c
genesys: Raise error when TA scan head takes too long to return home
2019-12-14 10:20:01 +02:00
Povilas Kanapickas
01bae1305f
Merge branch 'genesys-remove-broken-resolutions' into 'master'
...
genesys: Disable broken resolutions on LiDE 50 and 80
See merge request sane-project/backends!273
2019-12-22 14:48:28 +00:00
Povilas Kanapickas
e0679c316e
Merge branch 'genesys-fix-4850c' into 'master'
...
genesys: Fix black scans on HP 4850C
See merge request sane-project/backends!272
2019-12-22 14:44:01 +00:00
Povilas Kanapickas
49934f0678
genesys: Fix black side calibration on HP 4850c
2019-12-22 16:29:22 +02:00
Povilas Kanapickas
8d8157b96e
genesys: Fix scan area Y position on HP 4850c
2019-12-22 16:29:22 +02:00
Povilas Kanapickas
355f2ddd4d
genesys: Fix black scans on HP 4850c
2019-12-22 16:29:14 +02:00
Povilas Kanapickas
8c99dc4819
genesys: Fix stagger configuration on 8600F
2019-12-22 16:24:10 +02:00
Povilas Kanapickas
a8df8201e9
genesys: Fix stagger configuration on 8400F
2019-12-22 16:24:10 +02:00
Povilas Kanapickas
8a2af6d4b2
genesys: Fix stagger configuration on OpticFilm scanners
2019-12-22 16:24:10 +02:00
Touboul Nathane
7c34046a39
Add escl backend
2019-12-14 08:13:54 +00:00
Povilas Kanapickas
5cfb44366b
genesys: Disable broken resolutions on LiDE 50 and 80
2019-12-14 10:13:09 +02:00
Povilas Kanapickas
02b0f0d474
genesys: Convert old broken stagger configuration to per-sensor config
2019-12-14 09:12:29 +02:00
Povilas Kanapickas
4c0f63052b
genesys: Add a way to configure per-sensor stagger config
2019-12-14 09:12:28 +02:00
Povilas Kanapickas
4ef2e39872
genesys: Remove remaining uses of SensorProfile
2019-12-08 11:42:32 +02:00
Povilas Kanapickas
7971ee5693
genesys: Use sensor profile information directly from profiles
2019-12-08 11:42:31 +02:00
Povilas Kanapickas
524c9de1fa
genesys: Fix calibration exposure in testing mode
2019-12-08 11:42:30 +02:00
Povilas Kanapickas
791433c895
genesys: Duplicate SensorProfile information into Genesys_Sensor struct
2019-12-08 11:42:29 +02:00
Povilas Kanapickas
716689161d
genesys: Use correct sensor for scanning on gl124
2019-12-08 11:42:28 +02:00
Povilas Kanapickas
1f33bafe5d
genesys: Remove unused fallback sensor profile code
2019-12-08 11:42:27 +02:00
Povilas Kanapickas
a7fd1d6ae1
genesys: Simplify sensor profile definition
2019-12-08 11:42:26 +02:00
Povilas Kanapickas
99101d4319
genesys: Move ResolutionFilter definition above SensorProfile
2019-12-08 11:42:25 +02:00
Povilas Kanapickas
7a2d3df0e3
genesys: Use correct sensor for calibration on gl847
2019-12-08 11:42:24 +02:00
Povilas Kanapickas
6c8c4bb74f
genesys: Use correct sensor for calibration on gl846
2019-12-08 11:42:23 +02:00
Povilas Kanapickas
4dfa7d25a3
genesys: Use correct sensor for calibration on gl124
2019-12-08 11:42:22 +02:00
Povilas Kanapickas
059da17ac0
genesys: Simplify register definitions on gl846
2019-12-08 11:42:21 +02:00
Povilas Kanapickas
cb64243e5d
genesys: Simplify register definitions on gl847
2019-12-08 11:42:20 +02:00
Povilas Kanapickas
06742ab7d4
genesys: Simplify register definitions on gl124
2019-12-08 11:42:19 +02:00
Povilas Kanapickas
3d068a9eee
genesys: Fix TA support in scanner_move()
2019-12-01 10:43:12 +02:00
Povilas Kanapickas
6a5fd2d36c
genesys: Support multiple scan methods in scanner_move()
2019-12-01 10:43:11 +02:00
Povilas Kanapickas
27aea235b4
genesys: Rename slow_back_home() to move_back_home()
2019-12-01 10:43:10 +02:00
Povilas Kanapickas
35c8cb84f8
genesys: Extract slow_back_home_ta() to common code
2019-12-01 10:43:09 +02:00
Povilas Kanapickas
5b7c19a7d5
genesys: Reduce duplication of *_stop_action() across the ASICs
2019-12-01 10:08:59 +02:00
Povilas Kanapickas
9e092f9d67
genesys: Extract scanner_is_motor_stopped() to use across the asics
2019-12-01 10:08:58 +02:00
Povilas Kanapickas
c2863d6ba1
genesys: Fix inconsistent check of scanner status in *_stop_action()
2019-12-01 10:08:57 +02:00
Povilas Kanapickas
a90ab552a9
genesys: Extract scanner_stop_action_no_move() to use across the asics
2019-12-01 10:08:56 +02:00
Povilas Kanapickas
6913513dc2
genesys: Extract regs_set_optical_off() to use across the ASICs
2019-12-01 10:08:55 +02:00
Povilas Kanapickas
052aa01626
genesys: Reduce duplication of *_feed() across different ASICs
2019-12-01 10:08:54 +02:00
Povilas Kanapickas
e435036b97
genesys: Use single function to set exposure on all ASICs
2019-12-01 10:08:53 +02:00
Louis Lagendijk
34922d9574
pixma: fixed MB5400 ADF scan. MB5400 works upto 1200DPI and with ADF or ADF-duplex
2019-12-04 00:56:37 +01:00
Louis Lagendijk
46eacadc78
pixma_bjnp.c: fix parsing of mfnp in pixma config file
2019-12-03 22:02:32 +01:00
Povilas Kanapickas
f98bec2afb
genesys: Use full scan initialization in slow_back_home_ta()
2019-11-30 19:19:21 +02:00
Povilas Kanapickas
66a95875d4
genesys: Remove duplicate operation a register
...
The same value is set just several lines above.
2019-11-30 19:19:20 +02:00
Povilas Kanapickas
4743a02353
genesys: Remove duplicate operation on a register
...
init_regs_for_scan_session() already sets the value of the register to
what we expect.
2019-11-30 19:19:19 +02:00
Povilas Kanapickas
8aee1f0982
genesys: Expose slow_back_home_ta() to the cmd set
2019-11-30 19:19:18 +02:00
Povilas Kanapickas
6b4be81e90
Merge branch 'genesys-motors-refactor' into 'master'
...
genesys: Motors refactor
See merge request sane-project/backends!250
2019-11-30 23:40:52 +00:00
Louis Lagendijk
072487ee7b
pixma: made backend obey local_only setting in sane_get_devices
2019-11-30 23:51:03 +01:00
Povilas Kanapickas
97ae3fc946
genesys: Reduce duplication of slow_back_home() across different asics
2019-11-30 19:06:52 +02:00
Povilas Kanapickas
cba6086ce7
genesys: Expose init_regs_for_scan_session() to the cmd set
2019-11-30 19:06:51 +02:00
Povilas Kanapickas
79b4d1560a
genesys: Remove no longer needed global settings modification
2019-11-30 19:06:50 +02:00
Povilas Kanapickas
a355df168a
genesys: Expose update_home_sensor_gpio() in the cmd set
2019-11-30 19:06:49 +02:00
Povilas Kanapickas
326733a479
genesys: Simplify slow_back_home() on gl646
2019-11-30 19:06:48 +02:00
Povilas Kanapickas
98dbd206ee
genesys: Reduce duplication of slope upload on gl646
2019-11-30 19:06:47 +02:00
Povilas Kanapickas
6626453804
genesys: Reduce duplication of scanner status printing
2019-11-30 19:06:46 +02:00
Povilas Kanapickas
df8a411de3
genesys: Extract reliable reading of home sensor to separate function
2019-11-30 19:06:45 +02:00
Povilas Kanapickas
2ca325c638
genesys: Simplify scanner status handling
2019-11-30 19:06:44 +02:00
Povilas Kanapickas
7385e0d305
genesys: Simplify get_gain4_bit() implementation
2019-11-30 19:06:43 +02:00
Povilas Kanapickas
3ada79c35a
genesys: Move motor direction register adjustment to low level functions
2019-11-30 19:06:42 +02:00
Povilas Kanapickas
50149e9064
genesys: Use enum class for motor flags
2019-11-30 19:06:41 +02:00
Povilas Kanapickas
837ec33c7f
genesys: Make scan flags an enum
2019-11-23 12:38:51 +02:00
Povilas Kanapickas
05e3091d5f
genesys: Remove duplication of motor startup
2019-11-23 12:38:50 +02:00
Povilas Kanapickas
9cd373fe6c
genesys: Return MotorSlopeTable out of sanei_genesys_slope_table()
2019-11-23 12:38:49 +02:00
Povilas Kanapickas
63b0366b43
genesys: Store motor profile tables in std::vector
2019-11-23 12:38:48 +02:00
Povilas Kanapickas
cbe45396fe
genesys: Move static initialization functionality to a separate file
2019-11-23 12:38:47 +02:00
Povilas Kanapickas
f6f27e0539
genesys: Implement building of motor tables based on physical slope
2019-11-23 12:38:46 +02:00
Povilas Kanapickas
34bba237b5
genesys: Don't select motor profile twice during setup of same scan
2019-11-23 12:38:45 +02:00
Povilas Kanapickas
b43a21d25a
genesys: Add new motor slope type
2019-11-23 12:38:44 +02:00
Povilas Kanapickas
ddcce5295f
genesys: Use StepType enum more
2019-11-23 12:38:42 +02:00
Povilas Kanapickas
c6784d2f1d
genesys: Simplify API of sanei_genesys_create_slope_table3()
2019-11-23 12:38:41 +02:00
Povilas Kanapickas
ce59a69224
genesys: Record motor slope tables in the config test
2019-11-23 12:38:40 +02:00
Povilas Kanapickas
d8e8899a76
genesys: Remove unused code
2019-11-23 12:38:39 +02:00
Povilas Kanapickas
acc5fd318c
genesys: Replace unneeded uses of macros with enums
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
10662d2973
genesys: Remove uses of SETREG and INITREG macros
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
185fdcc9ce
genesys: Replace defines with constants in register lists
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
6d9259bd48
genesys: Put chip-specific functionality into namespaces
2019-11-23 15:32:45 +02:00
Povilas Kanapickas
f366073b08
genesys: Add initial support for flatbed mode on Canon 4400F
2019-11-23 14:54:10 +02:00
Alex Belkin
7e7f02773e
xerox_mfp: Fix crash in test mode
...
Do not decode JPEG into output buffer if it's NULL.
Also, I add assert() for `dev->decData` size, which is never
checked anywhere. Thanks to Michal Nowak for report and
testing. Fixes #128 .
References:
https://gitlab.com/sane-project/backends/issues/128
Tested-by: Michal Nowak <Mno-hime@gitlab>
2019-11-15 23:04:43 +03:00
perillamint
66c17ebf84
pixma: Add support for Canon PIXMA G2010 Series
...
This commit adds support for Canon PIXMA G2010 Series.
2019-11-02 06:31:04 +09:00
Rolf Bensch
572c5e6e61
pixma: backend version 0.25.0
2019-11-01 20:31:50 +01:00
Rolf Bensch
e16a2b05b1
pixma_mp150: activate image down-scaling for LiDE300 & 400
...
we don't need to force >=300 dpi scans anymore
2019-11-01 20:08:57 +01:00
Rolf Bensch
cffeb11ee6
pixma_mp150: special image format handling only needed for existing sub-images
2019-11-01 20:08:57 +01:00
Rolf Bensch
95e208527a
pixma_mp150: new function shrink_image()
...
call shrink_image() from post processing image data
2019-11-01 20:08:32 +01:00
Rolf Bensch
452b28a81f
pixma_mp150: use mp->scale to calculate scan parameters for down-scaling images
...
the values for xdpi, ydpi, x, xs, y and wx must be expanded to minimum image size
2019-11-01 19:21:50 +01:00
Rolf Bensch
b4cf3343bd
pixma_mp150: add comments and some debug outputs
2019-11-01 19:16:14 +01:00
Rolf Bensch
5d64760f0f
pixma_mp150: new sub-driver parameter scale
2019-11-01 19:06:53 +01:00
Rolf Bensch
bd811cb0b0
pixma: new device option: min_xdpi
...
used for scaling scanned images
2019-11-01 19:02:01 +01:00
Olaf Meeuwissen
b4ce719973
kvs40xx: Fix [-Wcast-function-type] compiler warning. Re #120
...
The changes are meant to make explicit what the run-time or compiler
is thought to be doing anyway.
2019-10-30 20:28:33 +09:00
Povilas Kanapickas
e2e72535b5
genesys: Record data that is important for shading data upload
2019-10-26 12:42:50 +02:00
Povilas Kanapickas
67588e46ef
genesys: Add checkpoints to record internal state
2019-10-26 12:42:49 +02:00
Povilas Kanapickas
eadfdb57a4
genesys: Add a way to record backend internals using test scanner iface
2019-10-26 12:42:48 +02:00
Povilas Kanapickas
95366b1f1b
genesys: Add a way to record arbitrary data for debugging
2019-10-26 12:42:47 +02:00
Povilas Kanapickas
3ac009abe2
genesys: Add more debug printers
2019-10-26 12:42:46 +02:00
Povilas Kanapickas
38c32ff702
genesys: Extract formatting functionality out of debug_dump()
2019-10-26 12:42:45 +02:00
Povilas Kanapickas
105f7fbfad
genesys: Add utility to restore stream state
2019-10-26 12:42:44 +02:00
Povilas Kanapickas
aeadb8ef1e
Merge branch 'genesys-scanner-interface' into 'master'
...
genesys: Low-level scanner interface
See merge request sane-project/backends!240
2019-11-10 19:45:16 +00:00
Povilas Kanapickas
391d472127
genesys: Rename record_{test => progress}_message
2019-11-10 21:30:29 +02:00
Povilas Kanapickas
e2e3ea0947
genesys: Route sleep calls through low level scanner interface
2019-11-10 21:30:29 +02:00
Povilas Kanapickas
521c042889
genesys: Route low-level status debug messages through scanner interface
2019-11-10 21:30:29 +02:00
Povilas Kanapickas
779725ab55
genesys: Extract attach_usb_device()
2019-11-10 21:30:29 +02:00
Povilas Kanapickas
908053751f
genesys: Use generic USB device interface througout the backend
2019-11-10 21:30:29 +02:00
Povilas Kanapickas
978ad5e52b
genesys: Add interface for USB devices to allow mocking of them
2019-11-10 21:30:25 +02:00
Povilas Kanapickas
4e9b47de56
genesys: Move low level data writing API to scanner interface
2019-11-10 21:30:06 +02:00
Povilas Kanapickas
0fed92b0ff
genesys: Remove unneeded wrapper for scanner interface functions
2019-11-10 21:30:06 +02:00
Povilas Kanapickas
0582b5448c
genesys: Move low-level protocol implementation to ScannerInterfaceUsb
2019-11-10 21:30:06 +02:00
Povilas Kanapickas
c6e60013ef
genesys: Add low level scanner test interface
2019-11-10 21:30:06 +02:00
Povilas Kanapickas
0ea8ec115c
genesys: Add low level interface for interaction with the scanner
2019-11-10 21:30:04 +02:00
m. allan noah
fa01471c92
fujitsu backend v135
...
- set has_MS_lamp=0 for fi-72x0, bug #134
2019-11-10 10:49:42 -05:00
Povilas Kanapickas
8c4879c835
Merge branch 'genesys-misc-cleanup' into 'master'
...
genesys: Miscellaneous cleanup
See merge request sane-project/backends!239
2019-11-10 14:56:00 +00:00
m. allan noah
99d1abe1e7
fujitsu backend: add iX1500 IDs
...
- updated per bug #131
2019-11-10 09:42:48 -05:00
Povilas Kanapickas
9d9552575d
genesys: Extract MethodResolutions::get_resolutions()
2019-11-10 16:41:59 +02:00
Povilas Kanapickas
42a58387b6
genesys: Extract conversion of ScanColorMode to separate functions
2019-11-10 16:41:59 +02:00
Povilas Kanapickas
3ad5a92414
genesys: Move conversion of ScanMethod to option strings to enums.cpp
2019-11-10 16:41:59 +02:00
Povilas Kanapickas
7213738359
genesys: Make sure correct session data is used for saving calibration
2019-11-10 10:32:11 +02:00
Povilas Kanapickas
68f388eb6a
genesys: Remove is_compatible_calibration() wrappers
2019-11-10 10:32:10 +02:00
Povilas Kanapickas
ced1ee0306
genesys: Use common impl of is_compatible_calibration() on gl646
2019-11-10 10:32:09 +02:00
Povilas Kanapickas
8659536e1b
genesys: Implement calculate_scan_session() on gl646
2019-11-10 10:32:08 +02:00
Povilas Kanapickas
84e4ababa5
genesys: Correctly serialize GenesysFrontendLayout
2019-11-10 10:32:07 +02:00
Povilas Kanapickas
8557e0c220
genesys: Don't modify global state in *_is_compatible_calibration()
2019-11-10 10:32:06 +02:00
Povilas Kanapickas
f4f58f6c18
genesys: Remove no longer used Genesys_Current_Setup
2019-11-10 10:32:05 +02:00
Povilas Kanapickas
8c6987e5a1
genesys: Rewrite is_compatible_calculation() to use session data
2019-11-10 10:32:04 +02:00
Povilas Kanapickas
9662a501a9
genesys: Use data from session directly when possible
2019-11-10 10:32:03 +02:00
m. allan noah
779d09a0b5
canon_dr backend v58
...
- adjust wait_scanner to set runRS only as a last resort, bug #154
2019-11-10 09:01:06 -05:00
Povilas Kanapickas
a15d960228
Merge branch 'genesys-logging-improvements' into 'master'
...
genesys: Miscellaneous logging improvements
See merge request sane-project/backends!237
2019-11-10 12:12:41 +00:00
Povilas Kanapickas
6fe1db1c73
genesys: Use std where needed
2019-11-02 17:13:17 +02:00
Povilas Kanapickas
429d8e4d5b
genesys: Remove unused code
2019-11-02 17:13:16 +02:00
Povilas Kanapickas
a7ca16a415
genesys: Add file with class forward declarations
2019-11-02 17:13:15 +02:00
Povilas Kanapickas
f5410b7738
genesys: Add an easy way to override SANE API linkage
2019-11-02 17:13:14 +02:00
Povilas Kanapickas
d2aaa822f3
genesys: Allow use of TIE() macro outside the genesys namespace
2019-10-27 11:48:36 +02:00
Povilas Kanapickas
87b5a78e37
genesys: Add more logging
2019-10-27 11:48:35 +02:00
Povilas Kanapickas
1faa322308
genesys: Add a way to log messages using DBG_HELPER
2019-10-27 11:48:34 +02:00
Povilas Kanapickas
9ca0a10938
genesys: Improve class method identifiers in debug messages
2019-10-27 11:48:33 +02:00
Povilas Kanapickas
6d7365ba89
genesys: Return errors as exceptions
2019-10-27 11:48:32 +02:00
Povilas Kanapickas
46876064d7
genesys: Improve error logging
2019-10-27 11:48:31 +02:00
Povilas Kanapickas
a1bc0d33cd
genesys: Move line-distance correction data to session
2019-10-27 10:42:01 +02:00
Povilas Kanapickas
0fa25a233b
genesys: Merge chip-specific compute_session functions
2019-10-27 10:42:00 +02:00
Povilas Kanapickas
c2479ed0e9
genesys: Add support for 3200dpi flatbed resolution on 8400F
2019-10-27 10:29:56 +02:00
Povilas Kanapickas
7f49bd2a2e
genesys: Enable all transparency resolutions for infrared scans on 8400F
2019-10-27 10:29:55 +02:00
Povilas Kanapickas
7336ec8969
genesys: Fix 1600 dpi flatbed / 3200 dpi TA support on 8400F
2019-10-27 10:29:54 +02:00
Povilas Kanapickas
4481298129
genesys: Fix invalid memory access on DSMobile 600 and DocketPort 467
2019-11-09 22:51:42 +02:00
Povilas Kanapickas
c6b8539032
genesys: Disable support for Canon Image Formula 101
2019-11-09 22:51:41 +02:00
Povilas Kanapickas
3632d4ec37
genesys: Fix out of bounds write during initialization of shading data
2019-11-09 22:51:40 +02:00
Povilas Kanapickas
e967d98aab
genesys: Disable broken support for 4800 dpi on LiDE 210 and 220
2019-11-09 22:51:39 +02:00
Povilas Kanapickas
cb7521e7c1
genesys: Remove currently unsupported resolutions on 8600F
2019-11-09 22:51:38 +02:00
Povilas Kanapickas
18206d845d
genesys: Fix crash on startup on Canon 4400F
2019-11-09 22:51:37 +02:00
Povilas Kanapickas
a5a03dfce2
genesys: Remove incorrect assert on gl841
2019-11-09 22:51:36 +02:00
Povilas Kanapickas
a7be52a5a1
genesys: Fix crash on gl646 when sensor matches any resolution
2019-11-09 22:51:35 +02:00
Povilas Kanapickas
ddb8685755
genesys: Fix null name of the "extras group" option leading to crashes
2019-11-09 22:51:34 +02:00