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
Povilas Kanapickas
54edeaf69d
genesys: Inherit from std::exception publicly
2019-11-09 22:51:33 +02:00
Povilas Kanapickas
ecb1d899b9
genesys: Fix typo which prevented calibration data from being used
2019-11-09 22:51:32 +02:00
Povilas Kanapickas
cac57c3e9f
genesys: Remove duplicate handling of document end
...
This duplicates work done in genesys_fill_read_buffer()
2019-11-09 22:51:31 +02:00
Rolf Bensch
ee3f9b47ec
pixma: backend version 0.25.1
2019-11-06 18:09:07 +01:00
Louis Lagendijk
eca978c258
pixma_bjnp: added options to completely disable networking or skip auto detection.
2019-11-05 23:03:27 +01:00
Louis Lagendijk
0f493e155a
Fixed pixma_bjnp.c
2019-11-05 20:09:42 +01:00
Louis Lagendijk
a1ecd8c158
Fixed completely messed up pixma_bjnp.c
2019-11-05 19:45:30 +01:00
Louis Lagendijk
bda9ae39ba
pixma_bjnp.c sane-pixma.doc Fix trailing spaces
2019-11-05 19:22:11 +01:00
Louis Lagendijk
462df7d6ad
usane-pixma:
...
- Document that Canon seems to be remving the supported MFNP and BJNP
protocols in new printers/scanners
- Added an mfnp example in the pixma.conf file
2019-11-05 18:31:39 +01:00
Louis Lagendijk
739cfc8d83
pixma_bjnp.c: redsign of timeout code
2019-11-05 17:41:48 +01:00
Louis Lagendijk
5dd50be523
xma_bjnp.c: fixed parsing of model in parse_IEEE1284_to_model
2019-11-05 17:41:47 +01:00
Louis Lagendijk
766b4937c3
pixma_bjnp.c Retry TCP connect in case the scanner is not yet ready
2019-11-05 17:41:47 +01: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
Povilas Kanapickas
655c6b14b6
genesys: Extract low level register set functionality to separate class
2019-10-26 11:38:37 +02:00
Povilas Kanapickas
309ee441de
genesys: Remove trivial bulk_{read,write}_data() wrapper
2019-10-26 11:38:36 +02:00
Zdenek Dohnal
82e971a786
Fix #156 - [Fedora] Abort due out-of-bound access
2019-10-25 13:06:15 +02:00
Rolf Bensch
99ae5490a6
pixma: backend version 0.24.1
2019-10-24 15:10:23 +02:00
Rolf Bensch
7b388d14da
pixma_mp150: fix scan height calculation
...
this fixes: pixma_mp150: remove (ccd) color shifting (fc300be
)
2019-10-24 15:09:57 +02:00
Rolf Bensch
63ce515376
pixma_mp800: remove double PIXMA_CAP_CCD settings
2019-10-22 20:09:00 +02:00
Rolf Bensch
2f2bce2ae9
pixma: backend version 0.24.0
2019-10-22 19:41:49 +02:00
Rolf Bensch
ab0314399a
pixma_mp810: rename => pixma_mp800
...
1st ccd scanner in pixma_mp810 is MP800
2019-10-22 19:33:54 +02:00
Rolf Bensch
fc300be715
pixma_mp150: remove (ccd) color shifting
2019-10-22 19:23:18 +02:00
Rolf Bensch
1b8fe029a2
pixma_mp150: remove unused code
...
unused scanner functions: ccd, tpu
2019-10-22 19:13:43 +02:00
Rolf Bensch
83a0a1c55f
pixma_mp150: move ccd scanners => pixma_mp810
2019-10-22 18:03:33 +02:00
Rolf Bensch
657f1d8e26
pixma_mp810: all scanners have ccd
2019-10-22 17:46:19 +02:00
Rolf Bensch
97cd2e10bb
pixma_mp750: all scanners have ccd
2019-10-22 17:46:01 +02:00
Louis Lagendijk
2b1ce918ae
pixma_bjnp.c: Fixed compile warnings on My Fedora build
2019-10-18 19:45:37 +02:00
Povilas Kanapickas
0b4a5f941a
genesys: Use correct min resolution for feeding
2019-10-17 22:30:27 +03:00
Povilas Kanapickas
abec99006c
genesys: Add missing <cmath> includes
2019-10-17 22:30:26 +03:00
Povilas Kanapickas
2d0a1a3470
genesys: Enable 1200 Y resolution on HP ScanJet 2300
2019-10-17 22:30:25 +03:00
Povilas Kanapickas
2a8be5e191
genesys: Use motor base dpi for shading calibration on gl847
2019-10-17 22:30:24 +03:00
Povilas Kanapickas
87969174bd
genesys: Fix shading target for Canon LiDE 110, 120, 210, 220
2019-10-17 22:30:23 +03:00
Povilas Kanapickas
36f0685d0a
genesys: Improve robustness of calibration on gl847
2019-10-17 22:30:22 +03:00
Povilas Kanapickas
67d6a194e5
genesys: Fix geometry for Canon LiDE 110
2019-10-17 22:30:21 +03:00
Povilas Kanapickas
0096d56cb6
genesys: Fix X resolution list for Canon LiDE 100 and 120
2019-10-17 22:30:20 +03:00
Povilas Kanapickas
dab38144a0
genesys: Fix geometry of HP G4050
2019-10-17 22:30:19 +03:00
Povilas Kanapickas
661fa1d590
genesys: Add missing resolutions for Canon 5600F
2019-10-17 22:30:18 +03:00
Povilas Kanapickas
2c7f7fcac2
genesys: Fix sensor gamma of LiDE 100, 110, 120, 200, 210, 220 scanners
2019-10-17 22:30:17 +03:00
Povilas Kanapickas
b391b35fd9
genesys: Fix uninitialized variable warning in SaneException c-tor
2019-10-17 22:30:16 +03:00
Povilas Kanapickas
1ac04c6266
genesys: Don't enable gamma when not needed
2019-10-17 22:30:15 +03:00
Povilas Kanapickas
93e980d0c1
genesys: Use median instead of mean when computing shading calib data
2019-10-17 22:07:01 +03:00
Povilas Kanapickas
f9d36d1a1b
genesys: Add utility to compute percentille of columns in image
2019-10-17 22:07:00 +03:00
Zdenek Dohnal
bc2f40b274
Samsung C460 does not have the JPEG mode
2019-10-15 12:49:48 +02:00
Povilas Kanapickas
885eb82801
genesys: Update resolutions specific to scan method in model list
2019-10-13 18:30:28 +03:00
Povilas Kanapickas
a5fe12a37f
genesys: Allow supported resolutions to vary depending on scan method
2019-10-13 18:30:27 +03:00
Povilas Kanapickas
24230aea7d
genesys: Simplify option setup
2019-10-13 18:30:26 +03:00
Povilas Kanapickas
b716c1a457
genesys: Remove duplicate definitions of SCAN_FLAG_*
2019-10-13 18:30:25 +03:00
Povilas Kanapickas
3037ba1eaf
genesys: Use a searchable name for register enums
2019-10-02 14:28:59 +03:00
Povilas Kanapickas
0ab82e9f86
genesys: Resolve various floating-point conversion warnings
2019-10-13 06:18:51 +03:00
Povilas Kanapickas
f4a2957541
genesys: Use unsigned for resolution in various places
2019-10-13 06:18:50 +03:00
Povilas Kanapickas
59e356ac13
genesys: Don't use variants of M_PI that aren't guaranteed to be present
2019-10-13 06:18:49 +03:00
Povilas Kanapickas
a694002364
genesys: Switch session startx and starty to unsigned
...
The sources and destinations are integer in most cases for these
variables.
2019-10-13 06:18:48 +03:00
Povilas Kanapickas
0840c6e9d9
genesys: Fix float conversion warnings in the tables
2019-10-13 06:18:47 +03:00
Povilas Kanapickas
68e5f8a912
genesys: Put the backend code into a separate namespace
2019-10-12 22:33:57 +03:00
Povilas Kanapickas
e32a45fef8
genesys: Retrieve depth from session in genesys_warmup_lamp()
2019-10-02 12:01:27 +03:00
Povilas Kanapickas
17740df924
genesys: Remove support for binary logging
2019-10-02 12:01:26 +03:00
Rolf Bensch
41ce1eb204
pixma: backend version 0.23.5
2019-10-12 18:49:10 +02:00
Povilas Kanapickas
a89ffe8f2c
Merge branch 'genesys-remove-1bit-support' into 'master'
...
genesys: Remove support for scanning 1 bit output
See merge request sane-project/backends!212
2019-10-12 16:09:29 +00:00
Rolf Bensch
d5c0240f43
Merge remote-tracking branch 'origin/master'
2019-10-12 18:07:03 +02:00
Rolf Bensch
ba9bc24fd2
pixma: replace snprintf() by strftime()
...
strftime() uses format specifiers with fixed lengths.
2019-10-12 17:59:13 +02:00
Povilas Kanapickas
eb2f836481
genesys: Remove low-level support for 1-bit depth scans
2019-10-01 18:11:52 +03:00
Povilas Kanapickas
0180c4c5d8
genesys: Remove SCAN_FLAG_DYNAMIC_LINEART
2019-10-01 18:11:51 +03:00
Povilas Kanapickas
8be96ecd60
genesys: Simplify code as dynamic_lineart is always enabled for lineart
2019-10-01 18:11:50 +03:00
Povilas Kanapickas
3263b986ce
genesys: Remove support of --disable-dynamic-lineart option
2019-10-01 18:11:49 +03:00
Povilas Kanapickas
bff9f2fdc4
genesys: Fix crash during sane_exit() on high debug level
2019-10-01 18:11:48 +03:00
Povilas Kanapickas
158cc81e20
genesys: Simplify setup of session depth parameter
2019-10-01 18:11:47 +03:00
Povilas Kanapickas
9581f29f13
Merge branch 'genesys-fix-warnings' into 'master'
...
genesys: Fix warnings not enabled in regular build
See merge request sane-project/backends!209
2019-10-12 15:43:04 +00:00
Povilas Kanapickas
5ca0acd19a
Merge branch 'genesys-plustek-7300-7500i' into 'master'
...
genesys: Implement support for Plustek OpticFilm 7300 and 7500i scanners
See merge request sane-project/backends!210
2019-10-12 15:41:59 +00:00
Povilas Kanapickas
f8623e8f53
genesys: Add support for Plustek OpticFilm 7500i
2019-10-12 18:23:56 +03:00
Povilas Kanapickas
20da3df501
genesys: Add support for Plustek Opticfilm 7300
2019-10-12 18:23:55 +03:00
Povilas Kanapickas
b5e4d86eb2
genesys: Use separate translation unit for conversion functions
2019-10-12 18:17:17 +03:00
Povilas Kanapickas
9f44bab6e0
genesys: Move backend files to a separate directory
2019-10-12 18:17:17 +03:00
Povilas Kanapickas
09336e0286
genesys: Remove code that has no effect
2019-10-01 15:41:27 +03:00
Povilas Kanapickas
cccd1e949a
genesys: Fix unused exception warning
2019-10-01 15:41:26 +03:00
Povilas Kanapickas
60b6465115
genesys: Emit single vtable of ImagePipelineNodeCallableSource
2019-10-01 15:41:25 +03:00
Povilas Kanapickas
c8f2a815c0
genesys: Don't use std types from global namespace
2019-10-01 15:41:24 +03:00
Povilas Kanapickas
1423db6618
genesys: Include missing includes
2019-10-01 15:41:23 +03:00
Povilas Kanapickas
42cace02c5
genesys: Simplify version logging
2019-10-01 12:09:51 +03:00
Povilas Kanapickas
4c90bfcaee
genesys: Remove uses of old-style casts where possible
2019-10-01 12:09:50 +03:00
Povilas Kanapickas
8537ba21b7
genesys: Don't emit symbols of internal objects
2019-10-01 12:09:49 +03:00
Povilas Kanapickas
9c7199c09e
genesys: Don't use std identifiers from global scope
2019-10-01 12:09:48 +03:00
Povilas Kanapickas
bb84d6d9e4
genesys: Remove unused code
2019-10-01 12:09:47 +03:00
Povilas Kanapickas
e20e73f434
genesys: Don't use C-style casts where possible
2019-10-01 12:09:46 +03:00
Povilas Kanapickas
497c9aeba2
genesys: Wrap SANE_Fixed into class which automatically converts values
2019-10-01 10:52:44 +03:00
Povilas Kanapickas
b176366dcf
genesys: Increase wait for home timeout to 200 seconds
2019-10-01 10:52:43 +03:00
Povilas Kanapickas
8a1bc90521
genesys: Simplify sanei_genesys_wait_for_home()
2019-10-01 10:52:42 +03:00
Povilas Kanapickas
61e1f1bf08
genesys: Simplify usage of sanei_genesys_get_status()
2019-10-01 08:18:47 +03:00