Povilas Kanapickas
a8ed3df0fd
genesys: Merge Sensor_Settings struct to Sensor_Master
2019-08-17 11:49:07 +03:00
Povilas Kanapickas
c001662c05
genesys: Reorder the components on Sensor_Master struct
2019-08-17 11:49:06 +03:00
Povilas Kanapickas
71a467ddf3
genesys: Remove unused data from Sensor_Master on gl646
2019-08-17 11:49:05 +03:00
Povilas Kanapickas
b19720cfa1
genesys: Simplify sensor register desc by matching ccd_size_divisor
2019-08-17 11:49:04 +03:00
Povilas Kanapickas
e36d6b8fb5
genesys: Simplify exposure setting on gl646
2019-08-17 11:49:03 +03:00
Povilas Kanapickas
a4a1003ffc
genesys: Rename Sensor_Master::{exposure->exposure_lperiod}
2019-08-17 11:49:02 +03:00
Povilas Kanapickas
a3a3647006
genesys: Compute dpiset instead of storing it in tables on gl646
2019-08-17 11:49:01 +03:00
Povilas Kanapickas
d2d43d5ed8
genesys: Make sensor table initialization more generic on gl646
2019-08-17 11:49:00 +03:00
Povilas Kanapickas
1330d2289b
genesys: Correctly initialize Sensor_Master struct
2019-08-17 11:48:59 +03:00
Povilas Kanapickas
eb4fb44048
genesys: Fix missing return from a previous refactor
2019-08-17 11:30:33 +03:00
Povilas Kanapickas
107404dcd0
genesys: Move ccd_size_divisor computation to compute_session()
2019-08-17 11:11:15 +03:00
Povilas Kanapickas
92412a90b2
genesys: Create compute_session() for common session computation
2019-08-17 11:11:14 +03:00
Povilas Kanapickas
c34cd7cd86
Merge branch 'genesys-common-sensor-profiles' into 'master'
...
genesys: Use the sensor description list for sensor profiles
See merge request sane-project/backends!134
2019-08-31 13:25:34 +00:00
Povilas Kanapickas
86ac877d82
genesys: Remove unused code
2019-08-17 11:05:38 +03:00
Povilas Kanapickas
eb1c4fadb9
genesys: Pick correct sensors during option parsing
2019-08-17 11:05:37 +03:00
Povilas Kanapickas
1902c9fbcb
genesys: Fix sensor const safety in *_search_start_position()
2019-08-17 11:05:36 +03:00
Povilas Kanapickas
f019f9e7b8
genesys: Don't modify sensor in *_led_calibration()
2019-08-17 11:05:35 +03:00
Povilas Kanapickas
53d447b6dc
genesys: Move GL846 sensor profiles to a common sensor array
2019-08-17 11:02:39 +03:00
Povilas Kanapickas
4978eceda3
genesys: Move GL847 sensor profiles to a common sensor array
2019-08-17 11:02:38 +03:00
Povilas Kanapickas
63cc11bce1
genesys: Move GL124 sensor profiles to a common sensor array
2019-08-17 11:02:37 +03:00
Povilas Kanapickas
4348451e47
genesys: Add sensor profile to the sensor struct
...
This will allow moving per-chip sensor profile tables to a common
configuration
2019-08-17 11:02:36 +03:00
Povilas Kanapickas
ba546d5370
genesys: Store segment order as a std::vector
2019-08-17 11:02:35 +03:00
Povilas Kanapickas
4a9738b719
Merge branch 'genesys-simplify-reg-setting-set' into 'master'
...
genesys: Reduce duplication in GenesysRegisterSettingSet
See merge request sane-project/backends!132
2019-08-31 13:04:53 +00:00
Povilas Kanapickas
2896c21ffe
Merge branch 'genesys-frontend-type' into 'master'
...
genesys: Add frontend type to the frontend description
See merge request sane-project/backends!131
2019-08-31 12:58:50 +00:00
Povilas Kanapickas
562f900337
Merge branch 'genesys-override-dpiset' into 'master'
...
genesys: Implement a way to override dpiset
See merge request sane-project/backends!130
2019-08-31 12:54:14 +00:00
Povilas Kanapickas
503797c248
genesys: Simplify shading computation by using enum for color order
2019-08-17 10:53:56 +03:00
Povilas Kanapickas
3a1163480a
genesys: Store calibration data using correct type internally
2019-08-17 10:53:55 +03:00
Povilas Kanapickas
5e5a1a6fc3
genesys: Use correct type for std::plus
2019-08-31 15:11:40 +03:00
Stanislav Yuzvinsky
e6b2786380
Merge branch 'macos-malloc-fix' into 'master'
...
ricoh2_buffer: fix malloc header location on macOS
See merge request sane-project/backends!90
2019-08-30 14:16:41 +00:00
Rolf Bensch
b4c95a8ade
pixma: backend version 0.23.1
2019-08-20 13:30:25 +02:00
Rolf Bensch
f64489bd71
pixma: fix ADF scanning for Canon MAXIFY MB2000 and MB2300 Series
2019-08-20 13:26:11 +02:00
Rolf Bensch
8446baf4f9
pixma: fix ADF scanning for Canon MAXIFY MB5000 Series
2019-08-20 13:11:57 +02:00
Olaf Meeuwissen
5e74e1b794
genesys: Make std::plus<> template type instantiation explicit
...
This fixes compile errors on older versions of gcc and possibly other
C++ compilers.
2019-08-19 22:06:33 +09:00
Povilas Kanapickas
7872f87475
genesys: Move all gpio settings to a single struct on GL843
2019-08-17 10:38:58 +03:00
Povilas Kanapickas
8fce6b624c
genesys: Don't perform offset and gain calibration on unknown frontends
2019-08-17 10:27:42 +03:00
Povilas Kanapickas
5580fc0db1
genesys: Add frontend type to the layout struct
2019-08-17 10:27:41 +03:00
Povilas Kanapickas
a76a2a096e
genesys: Implement a way to override DPISET on GL124 and GL843
2019-08-17 10:21:04 +03:00
Povilas Kanapickas
db15a75504
genesys: Add a way to override dpihw
2019-08-17 10:21:03 +03:00
Povilas Kanapickas
458e31a0c0
genesys: Extract setting of DPIHW to a separate function
2019-08-17 10:21:02 +03:00
Povilas Kanapickas
759e450b6b
genesys: Reduce logical duplication in GenesysRegisterSettingSet
2019-08-17 10:02:40 +03:00
Povilas Kanapickas
543ba367bc
genesys: Rename GenesysRegisterSettingSet::{regs_->registers_}
2019-08-17 10:02:39 +03:00
Olaf Meeuwissen
f37326784d
Merge branch 'ci-tweaks' into 'master'
...
CI tweaks
See merge request sane-project/backends!125
2019-08-12 09:16:37 +00:00
Olaf Meeuwissen
08bff060f8
CI: Fix make distclean target
...
Implicit compile dependencies prevent automake from adding dependency
tracking files to the list of files to clean up.
2019-08-11 17:20:47 +09:00
Olaf Meeuwissen
21bb96d61e
Merge branch 'fix-warnings' into 'master'
...
Fix -Wimplicit-fallthrough warnings
See merge request sane-project/backends!85
2019-08-11 01:48:16 +00:00
Olaf Meeuwissen
9344a957ed
apple: Fix [-Wimplicit-fallthrough] compiler warning
...
It doesn't make sense to log a value as both `Fixed` *and* `Int`.
2019-08-11 10:16:00 +09:00
Olaf Meeuwissen
797cd1fb37
epson2, epsonds, kodakaio, magicolor: Don't set invalid value
...
If the value to be set is not valid, it should not change the sval
structure (even if doing so has no negative side effects).
This also makes the fallthrough less confusing by removing the first
cast of two for the br-x and br-y values.
2019-08-11 10:04:19 +09:00
Olaf Meeuwissen
fcd537e207
sm3600: Fix [-Wimplicit-fallthrough] warning
...
This fixes the warning for both #define SM3600_SUPPORT_EXPOSURE values.
2019-08-10 20:49:09 +09:00
Povilas Kanapickas
6912400cf4
genesys: Move motor profile tables to a single file
2019-08-04 18:21:08 +03:00
Povilas Kanapickas
aa4ee9c49e
genesys: Split genesys_devices.cc file to separate files for each table
2019-08-04 18:21:07 +03:00
Povilas Kanapickas
6592692448
genesys: Compile genesys_devices.cc as a separate translation unit
2019-08-04 18:21:06 +03:00
Povilas Kanapickas
7159bbee32
Merge branch 'genesys-cleanup-gpo' into 'master'
...
genesys: Cleanup the gpo setup
See merge request sane-project/backends!123
2019-08-10 15:33:38 +00:00
Povilas Kanapickas
8a48e87741
Merge branch 'genesys-simplify-gl843-dpi' into 'master'
...
genesys: Simplify GL843 DPI calculation
See merge request sane-project/backends!122
2019-08-10 12:28:50 +00:00
Povilas Kanapickas
b5ff3b4f43
Merge branch 'genesys-cleanup-motors' into 'master'
...
genesys: Cleanup motor definitions
See merge request sane-project/backends!121
2019-08-10 12:23:20 +00:00
Povilas Kanapickas
ae525fb91b
genesys: Remove trailing whitespace
2019-08-10 15:10:31 +03:00
Povilas Kanapickas
8cb6130cfe
genesys: Cleanup the gpo setup
2019-08-04 14:01:50 +03:00
Povilas Kanapickas
ca54462bd2
genesys: Simplify shading upload on gl843
2019-08-04 13:17:52 +03:00
Povilas Kanapickas
2df86f551f
genesys: Fix incorrect dpi computation for G4050
2019-08-04 13:17:51 +03:00
Povilas Kanapickas
d365637dfc
genesys: Simplify optical regs setup on gl843
2019-08-04 13:17:50 +03:00
Povilas Kanapickas
3e09ba18fa
genesys: Move pixel coordinate calculation to gl843_compute_session()
2019-08-04 13:17:49 +03:00
Povilas Kanapickas
6a0f17cecc
genesys: Raise an exception if input resolution is out of bounds
2019-08-04 13:17:48 +03:00
Povilas Kanapickas
1c61d3692a
genesys: Rewrap extremely long lines in motor step definitions
2019-08-04 12:01:52 +03:00
Povilas Kanapickas
ea602f7ebc
genesys: Rewrite and document sanei_genesys_calculate_zmod()
2019-08-04 12:01:51 +03:00
Povilas Kanapickas
6f20e6d341
genesys: Use std::vector for the motor slope tables
2019-08-04 12:01:50 +03:00
Povilas Kanapickas
510e8123f3
genesys: Remove support for multiple motor power modes
2019-08-04 12:01:49 +03:00
Povilas Kanapickas
239eab6ea6
genesys: Simplify motor setup to make it easier to expand
2019-08-04 12:01:48 +03:00
Povilas Kanapickas
7d6897ecb4
Merge branch 'genesys-fix-search-reference-point' into 'master'
...
genesys: Fix search reference point to update all sensors
See merge request sane-project/backends!118
2019-08-10 11:55:49 +00:00
Povilas Kanapickas
b85a83f6af
genesys: Remove no longer used optical flags variables
2019-08-04 10:52:58 +03:00
Povilas Kanapickas
306b160f00
genesys: Pass OPTICAL_FLAG_DISABLE_SHADING flag via session
2019-08-04 10:52:57 +03:00
Povilas Kanapickas
86d4828ece
genesys: Pass OPTICAL_FLAG_DISABLE_GAMMA flag via session
2019-08-04 10:52:56 +03:00
Povilas Kanapickas
d503701fb7
genesys: Pass OPTICAL_FLAG_USE_XPA flag via session
2019-08-04 10:52:55 +03:00
Povilas Kanapickas
773170af09
genesys: Pass OPTICAL_FLAG_DISABLE_LAMP flag via session
2019-08-04 10:52:54 +03:00
Povilas Kanapickas
8618a49182
genesys: Pass OPTICAL_FLAG_STAGGER flag via session
2019-08-04 10:52:53 +03:00
Povilas Kanapickas
a4b551be0c
genesys: Pass OPTICAL_FLAG_ENABLE_LEDADD flag via session
2019-08-04 10:52:52 +03:00
Povilas Kanapickas
e5a90e8005
genesys: Update all sensors when searching for reference point
2019-08-04 02:48:29 +03:00
Povilas Kanapickas
91b20fb268
genesys: Make sanei_genesys_search_reference_point() non-destructive
2019-08-04 02:48:28 +03:00
Povilas Kanapickas
d0dbfa6ec3
genesys: Print traces of more data
2019-08-04 02:48:27 +03:00
Povilas Kanapickas
824f922e49
genesys: Don't do additional scans in case of debug
2019-08-04 02:48:26 +03:00
Povilas Kanapickas
e733f66960
genesys: Add a way to customize per-sensor divisor management
2019-08-04 01:11:08 +03:00
Povilas Kanapickas
ea78c00882
genesys: Fix duplicate hwdpi conversion on gl124
2019-08-04 01:11:07 +03:00
Povilas Kanapickas
1ba4018a6e
genesys: Pass session directly to gl843_init_optical_regs_scan()
2019-08-04 01:11:06 +03:00
Povilas Kanapickas
cafb97d293
genesys: Use session struct to pass data to the setup functions
2019-08-03 22:42:20 +03:00
Caleb Xu
f18ef0e282
ricoh2_buffer: fix malloc header location on macOS
2019-08-01 23:51:20 -04:00
Povilas Kanapickas
38b97f1402
genesys: Include full session description into the device struct
2019-07-27 05:12:31 +03:00
Povilas Kanapickas
f4401d501f
genesys: Make asic type an enum
2019-07-27 05:12:30 +03:00
Povilas Kanapickas
e34814aef8
genesys: Remove duplicate fields out of settings struct
2019-07-27 05:12:29 +03:00
Povilas Kanapickas
808cc5737d
genesys: Move ScanSession to genesys_settings.h
2019-07-27 05:12:28 +03:00
Povilas Kanapickas
d0ed3795f6
genesys: Remove unused code
2019-07-27 05:12:27 +03:00
Olaf Meeuwissen
0df7e1ab50
Merge branch 'patch-1' into 'master'
...
Update hp3900_rts8822.c
See merge request sane-project/backends!92
2019-08-10 07:08:56 +00:00
Olaf Meeuwissen
6ef288855e
Merge branch 'sanei-usb-capture-debug-msg' into 'master'
...
sanei_usb: Add a way to record debug messages to USB captures
See merge request sane-project/backends!93
2019-08-10 06:06:38 +00:00
Povilas Kanapickas
d2653efbd9
sanei_usb: Add a way to record debug messages to USB captures
2019-08-08 20:52:23 +03:00
Povilas Kanapickas
1491a1067e
Merge branch 'genesys-usb-capture-debug-msg' into 'master'
...
genesys: Add a way to record debug messages to USB captures
See merge request sane-project/backends!95
2019-08-08 17:49:06 +00:00
Povilas Kanapickas
aa6bdba74d
genesys: Add a way to record debug messages to USB captures
2019-08-08 20:33:49 +03:00
Povilas Kanapickas
0fc4eb80e3
Merge branch 'genesys-cleanup' into 'master'
...
genesys: Various cleanups
See merge request sane-project/backends!94
2019-08-08 16:51:43 +00:00
Ralph Little
eae96342d8
Merge branch 'text_corrections' into 'master'
...
Some fixes to US messages in source.
See merge request sane-project/backends!91
2019-08-08 16:44:19 +00:00
Cor
408469d94e
Update hp3900_rts8822.c
...
After increase the timeout from 10 to 60 seconds, the hp3970 can scan black and white 35mm films using the parameters Gray, 16 bit and 2400 dpi. More information in https://gitlab.com/sane-project/backends/issues/77
2019-08-08 14:58:09 +00:00
Olaf Meeuwissen
1be824f2c5
Merge branch 'sanei-usb-testing-mode' into 'master'
...
sanei: Support capture and replay of USB data for testing
See merge request sane-project/backends!55
2019-08-08 14:01:30 +00:00
Olaf Meeuwissen
953ed4c2b0
mustek_usb2: Fix sprintf invocation. Fixes #110
2019-08-08 21:41:22 +09:00
Ralph Little
fdc23d129a
1) Correct some spelling mistakes
...
2) Convert some British spellings to US
3) Modified some longer sentences to improve readability.
4) Modified en_GB to suit
2019-08-05 20:54:18 -07:00
Povilas Kanapickas
a8a5f58f21
genesys: Add tests for serialization of calibration data
2019-07-23 02:00:44 +03:00
Povilas Kanapickas
25ed10029c
genesys: Make set_calibration_value() more robust
2019-07-23 02:00:43 +03:00