Povilas Kanapickas
463f5f4364
genesys: Don't duplicate data passed to *_init_optical_regs_scan()
2019-09-12 20:06:36 +03:00
Povilas Kanapickas
ed4419e73d
genesys: Use common code path to calculate session line sizes
2019-09-12 19:49:51 +03:00
Povilas Kanapickas
9915608309
genesys: Extract multiplication by depth to a separate function
2019-09-12 19:49:50 +03:00
Povilas Kanapickas
991eec63d5
genesys: Use common code path to compute session output_line_count
2019-09-12 19:34:43 +03:00
Povilas Kanapickas
605fcf9762
genesys: Assume correct resolution is passed from high-level
2019-09-12 19:11:07 +03:00
Povilas Kanapickas
73951b4bf8
genesys: Simplify motor code on gl646 by retining real motor dpi prop
2019-09-12 19:11:06 +03:00
Povilas Kanapickas
ce144ed46f
genesys: Use common code path to compute session max_color_shift_lines
2019-09-12 18:27:45 +03:00
Povilas Kanapickas
77e0acde22
genesys: Fix computation of total_bytes_to_read
2019-09-12 18:22:57 +03:00
Povilas Kanapickas
0961c5d32f
genesys: Use common code path to compute session output_pixels
2019-09-12 18:23:32 +03:00
Povilas Kanapickas
50e5c80434
genesys: Remove low-level handling of xdpi < ydpi case
...
The high-level code ensures that the xdpi is always natively supported
by the scanner.
2019-09-12 18:21:18 +03:00
Povilas Kanapickas
548eff4a32
genesys: Fix support for scans when xdpi<ydpi on gl646
2019-09-12 18:21:17 +03:00
Povilas Kanapickas
21254ad929
genesys: Use Sensor::optical_res directly where possible
2019-09-12 18:21:16 +03:00
Povilas Kanapickas
c1b8cb5c31
Merge branch 'genesys-session-num-staggered-lines' into 'master'
...
genesys: Use common code path to compute session num_staggered_lines
See merge request sane-project/backends!151
2019-09-19 22:17:43 +00:00
Rolf Bensch
1e2f64dc3d
pixma: backend version 0.23.2
2019-09-12 22:09:22 +02:00
Rolf Bensch
fd94a7e60c
Merge branch 'MF633_635_645' into 'master'
...
pixma: new scanners Canon i-SENSYS MF633C/MF635C, MF645C
See merge request sane-project/backends!126
2019-09-12 19:42:12 +00:00
Povilas Kanapickas
453a6b75be
genesys: Use common code path to compute session num_staggered_lines
2019-09-12 17:59:47 +03:00
Vladislav Bogdanov
8f1615f333
ricoh2: Add support for Aficio SG3110SFNw
2019-09-04 13:13:36 +03:00
Mikael Vallerie
7f491519d1
Removing MF635_PID, using MF630_PID instead
2019-08-27 15:34:47 +02:00
Mikael Vallerie
13008723cd
Right PIDs for MF633C/MF635C and MF645C
2019-08-26 18:41:29 +02:00
Olaf Meeuwissen
2baee4914d
umax_pp: Drop reference to ChangeLog in code comment
2019-08-26 21:48:52 +09:00
Olaf Meeuwissen
eb5382c753
mustek_pp: Drop unused ChangeLog: references from comments
2019-08-26 21:48:09 +09:00
Povilas Kanapickas
2757475dd9
genesys: Use session.params.xres directly where possible
2019-08-24 10:13:44 +03:00
Povilas Kanapickas
ba3013b1aa
genesys: Handle full sensor scans on gl841 consistently to other chips
2019-08-24 10:13:43 +03:00
Povilas Kanapickas
48251cf8b2
genesys: Simplify start pixel computation on gl841
2019-08-24 10:13:42 +03:00
Povilas Kanapickas
6ca11bfd71
genesys: Always dump session after computing it
2019-08-24 10:13:41 +03:00
Povilas Kanapickas
5226a163ab
genesys: Use common code path to compute session optical_pixels
2019-08-24 10:05:53 +03:00
Povilas Kanapickas
ec5225e1f8
genesys: Assume correct resolution is passed from high-level
2019-08-24 10:00:52 +03:00
Povilas Kanapickas
9a21a8335f
genesys: Remove dead code related to SCAN_FLAG_USE_OPTICAL_RES
2019-08-24 10:00:51 +03:00
Povilas Kanapickas
21f949bd87
genesys: Remove *_compute_exposure() wrappers
2019-08-24 10:00:50 +03: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
Mikael Vallerie
5d21800b51
pixma: new scanners Canon i-SENSYS MF633C/MF635C, MF645C
2019-08-18 18:53:08 +02:00
Povilas Kanapickas
a2ade50870
genesys: Ensure that resolution is set to a supported one at high-level
...
Previously we relied on low-level implementation to detect when the
requested resolution is higher than one supported by the scanner and
seamlessly patch around so that the high-level code does not notice.
This complicates the low level implementation and results to duplicate
code.
2019-08-18 11:13:01 +03:00
Povilas Kanapickas
61a055a8cf
genesys: Pass the line width requested by the frontend separately
2019-08-18 11:13:00 +03:00
Povilas Kanapickas
0b2840a3ff
genesys: Clarify frontend param processing a little
2019-08-18 11:12:59 +03:00
Povilas Kanapickas
ec0ceaebb5
genesys: Use correct resolution to select sensor during option parsing
2019-08-18 11:12:58 +03:00
Povilas Kanapickas
f48239419a
genesys: Use common code path to compute session optical_resolution
2019-08-18 10:39:36 +03:00
Povilas Kanapickas
687b549f0a
genesys: Use ScanSession to compute ccd_size_divisor on all chips
2019-08-18 10:37:49 +03:00
Povilas Kanapickas
510b6d0d86
genesys: Remove gl646-specific get_ccd_size_divisor
2019-08-31 19:02:15 +03:00
Povilas Kanapickas
e0efbd37b8
genesys: Use sensor functionality instead of compute_ccd_size_divisor()
2019-08-31 19:02:15 +03:00
Povilas Kanapickas
a6a785e28d
genesys: Use common path to compute ccd_size_divisor on gl646
2019-08-31 19:02:15 +03:00
Povilas Kanapickas
e2e1efae80
genesys: Use the sensor passed to gl646_setup_registers()
2019-08-31 19:02:15 +03:00
Povilas Kanapickas
ceb56a8b3b
genesys: Move gl646 sensor settings to the common sensor table
2019-08-17 12:02:45 +03:00
Povilas Kanapickas
a31da79e07
genesys: Compute cksel from register descriptions on gl646
2019-08-17 12:02:44 +03:00
Povilas Kanapickas
5532f2f277
genesys: Add channel count to the parameters that identify a sensor
2019-08-17 11:51:35 +03:00
Povilas Kanapickas
f2871ca81d
genesys: Reduce duplication in channel count and depth calculation
2019-08-17 11:51:34 +03:00
Povilas Kanapickas
0c6d7cd4a4
Merge branch 'genesys-fix-missing-return-after-refactor' into 'master'
...
genesys: Fix missing return from a previous refactor
See merge request sane-project/backends!138
2019-08-31 14:56:23 +00:00
Povilas Kanapickas
3e2b6cead0
Merge branch 'genesys-gl646-simplify-sensor' into 'master'
...
genesys: Simplify sensor setup on GL646
See merge request sane-project/backends!139
2019-08-31 14:55:57 +00:00
Povilas Kanapickas
6216ada2e7
Merge branch 'genesys-fix-sensor-write' into 'master'
...
genesys: Fix writing to sensors
See merge request sane-project/backends!137
2019-08-31 14:43:05 +00:00
Povilas Kanapickas
0cd26a8adf
genesys: Extract resolution filtering to separate class
2019-08-17 11:56:45 +03:00
Povilas Kanapickas
d9fab3a7d8
genesys: Fix incorrect channel count when fetching ccd_size_divisor
...
All current scanners use the same divisor on both 1 and 3 channels, so
this commit does not change behavior.
2019-08-17 11:49:10 +03:00
Povilas Kanapickas
e8d9b6ff5d
genesys: Reduce duplication in the Sensor_Master struct list
2019-08-17 11:49:09 +03:00
Povilas Kanapickas
f228e427a9
genesys: Store sensor settings in std::vector on gl646
2019-08-17 11:49:08 +03:00
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
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
Povilas Kanapickas
b9fb97e0f7
genesys: Make serialization of calibration data less error prone
2019-07-23 02:00:42 +03:00
Povilas Kanapickas
cdb14d9fef
genesys: Remove uses of sanei_genesys_set_reg_from_set()
2019-07-21 18:41:50 +03:00
Povilas Kanapickas
36714a7810
genesys: Remove uses of sanei_genesys_read_reg_from_set()
2019-07-21 18:41:49 +03:00
Povilas Kanapickas
e6dbfd64a3
genesys: Remove uses of sanei_genesys_set_triple()
2019-07-21 18:41:48 +03:00
Povilas Kanapickas
08c98e13b2
genesys: Remove uses of sanei_genesys_set_double()
2019-07-21 18:41:47 +03:00
Povilas Kanapickas
98546ecff0
genesys: Remove uses of sanei_genesys_get_triple()
2019-07-21 18:41:46 +03:00
Povilas Kanapickas
fa9fcc31a1
genesys: Remove uses of sanei_genesys_get_double()
2019-07-21 18:41:45 +03:00
Povilas Kanapickas
9085260541
Merge branch 'genesys-remove-half-ccd' into 'master'
...
genesys: Improve code clarity by retiring half_ccd
See merge request sane-project/backends!114
2019-08-09 10:51:06 +00:00
Povilas Kanapickas
598aa99778
genesys: Improve code clarity by retiring half_ccd
2019-08-03 01:31:07 +03:00
Povilas Kanapickas
035951933b
Merge branch 'genesys-physical-register-state' into 'master'
...
genesys: Cache physical register state
See merge request sane-project/backends!111
2019-08-09 10:28:10 +00:00
Povilas Kanapickas
a3e492d6d5
Merge branch 'genesys-remove-manual-alloc' into 'master'
...
genesys: Remove manual allocations
See merge request sane-project/backends!112
2019-08-09 10:23:15 +00:00
Povilas Kanapickas
16c55bf330
genesys: Init cmd_set directly instead of going through a function
2019-08-02 22:39:05 +03:00
Povilas Kanapickas
a58b20d2c8
genesys: Move cmd_set from model to device struct
2019-08-02 22:39:04 +03:00
Povilas Kanapickas
f9a9d3f84a
genesys: Cache physical register state in the device on writes
2019-08-02 22:39:01 +03:00
Povilas Kanapickas
faab7b02e0
genesys: Cache physical register state in the device on bulk writes
2019-08-02 22:39:00 +03:00
Povilas Kanapickas
7836ea5778
genesys: Remove bulk_write_register from the cmd_set structures
2019-08-02 22:38:59 +03:00
Povilas Kanapickas
6014645664
genesys: Cache physical register state in the device on reads
2019-08-02 22:38:58 +03:00
Povilas Kanapickas
f9b87de44a
genesys: Remove manual allocations from calibration functions
2019-08-02 22:38:54 +03:00
Povilas Kanapickas
6b2919db9a
genesys: Remove manual allocations in device class
2019-08-02 22:38:53 +03:00
Povilas Kanapickas
fc9159b407
genesys: Improve readability of model struct setup
2019-08-02 22:36:12 +03:00
Povilas Kanapickas
49b94dc09e
genesys: Split genesys_low.h into several files
2019-08-02 22:35:16 +03:00
Povilas Kanapickas
3c6635559f
genesys: Remove unused code
2019-08-02 22:31:58 +03:00
Povilas Kanapickas
13b2d09a42
genesys: Fix printing of errors on exceptions
2019-08-02 22:31:57 +03:00
Povilas Kanapickas
025ec317e3
genesys: Move logical and register dpi computation to sensor struct
2019-08-02 22:31:56 +03:00
Povilas Kanapickas
faa078cd21
genesys: Return errors as exceptions from remaining functions
2019-07-27 10:12:36 +03:00
Povilas Kanapickas
c036024810
genesys: Return errors as exceptions from genesys_buffer_image()
2019-07-27 10:12:35 +03:00
Povilas Kanapickas
748acbbb81
genesys: Simplify code by removing uses of RIE() macro
2019-07-27 10:12:34 +03:00
Povilas Kanapickas
c6bbc5f773
genesys: Return errors as exceptions from genesys_read_ordered_data()
2019-07-27 10:12:33 +03:00
Povilas Kanapickas
1c030da1c2
genesys: Return errors as exceptions from image manipulation functions
2019-07-27 10:12:32 +03:00
Povilas Kanapickas
39e5daa7b4
genesys: Remove unused code
2019-07-27 10:12:31 +03:00
Povilas Kanapickas
db2bb793d4
genesys: Remove obsolete comments
2019-07-27 10:12:30 +03:00
Povilas Kanapickas
107019c5de
genesys: Return errors as exceptions from init_options()
2019-07-27 10:12:29 +03:00
Povilas Kanapickas
1fd16cd16b
genesys: Return errors as exceptions from calc_parameters()
2019-07-27 10:12:28 +03:00
Povilas Kanapickas
10947b94f1
genesys: Return errors as exceptions from pixel format conv functions
2019-07-27 10:12:27 +03:00
Povilas Kanapickas
f727f1a01b
genesys: Return errors as exceptions from genesys_fill_read_buffer()
2019-07-27 10:12:26 +03:00
Povilas Kanapickas
a6855efb57
genesys: Return errors as exceptions from genesys_fill_segmented_buffer()
2019-07-27 10:12:25 +03:00
Povilas Kanapickas
a18ef2e17f
genesys: Return errors as exceptions from genesys_fill_line_interp_buffer()
2019-07-27 10:12:24 +03:00
Povilas Kanapickas
c6dacdf014
genesys: Return errors as exceptions from accurate_line_read()
2019-07-20 11:02:41 +03:00
Povilas Kanapickas
53450b6810
genesys: Return errors as exceptions from genesys_start_scan()
2019-07-20 11:02:40 +03:00
Povilas Kanapickas
1ad6aca501
genesys: Return errors as exceptions from genesys_load_lut()
2019-07-20 11:02:39 +03:00
Povilas Kanapickas
7c70d30f63
genesys: Return errors as exceptions from genesys_*_calibration()
2019-07-20 11:02:38 +03:00
Povilas Kanapickas
b41ad140ad
genesys: Return errors as exceptions from *genesys_warmup_lamp()
2019-07-20 11:02:37 +03:00
Povilas Kanapickas
fa07b4806c
genesys: Return errors as exceptions from genesys_save_calibration()
2019-07-20 11:02:36 +03:00
Povilas Kanapickas
e3d4b8fb91
genesys: Return errors as exceptions from genesys_send_shading_coefficient()
2019-07-20 11:02:35 +03:00
Povilas Kanapickas
82afcfae2d
genesys: Return errors as exceptions from genesys_*_shading_calibration()
2019-07-20 11:02:34 +03:00
Povilas Kanapickas
edb442afe8
genesys: Return errors as exceptions from genesys_dummy_dark_shading()
2019-07-20 11:02:33 +03:00
Povilas Kanapickas
cd87e4e662
genesys: Return errors as exceptions from genesys_average_white()
2019-07-20 11:02:32 +03:00
Povilas Kanapickas
05a9a08374
genesys: Return errors as exceptions from *rewind()
2019-07-20 11:02:31 +03:00
Povilas Kanapickas
579df0d0b7
genesys: Return errors as exceptions from *move_to_ta()
2019-07-20 11:02:30 +03:00