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
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
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