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
Povilas Kanapickas
be4c3c1f69
genesys: Reduce duplication of shading calculations
2019-09-14 13:49:23 +03:00
Povilas Kanapickas
580b9db562
genesys: Don't duplicate actions when DARK_CALIBRATION flag is off
2019-09-14 13:49:22 +03:00
Povilas Kanapickas
8790940cc3
genesys: Remove code that has no effects
2019-09-14 13:49:21 +03:00
Povilas Kanapickas
154ab4578b
genesys: Extract calculation of dummy dark shading
2019-09-14 13:49:20 +03:00
Povilas Kanapickas
6f29caef0d
genesys: Extract post-shading repark out of white calibration function
2019-09-14 13:49:19 +03:00
Povilas Kanapickas
802a62ee2c
genesys: Fix incorrect calculation of output_line_bytes_raw on gl646
2019-09-13 16:40:42 +03:00
Povilas Kanapickas
40b2d8928f
genesys: Fix definition of output_line_bytes_raw on gl841 CIS scanners
2019-09-13 16:40:41 +03:00
Povilas Kanapickas
434b03d498
genesys: Fix definition of output_line_bytes_raw on gl124
2019-09-13 16:40:40 +03:00
Povilas Kanapickas
efbfcb0a7f
genesys: Improve clarity of calibration offset variable names
2019-09-13 16:03:21 +03:00
Povilas Kanapickas
661aa3bcdb
genesys: Make GenesysRegisterSettingSet generic
2019-09-13 15:56:44 +03:00
Povilas Kanapickas
d4e4bf35c1
genesys: Fix a bug in segmented sensors when scanning 16-bit data
2019-09-13 15:37:33 +03:00
Povilas Kanapickas
af17797d3c
genesys: Use new image pipeline for handling segmented sensors
2019-09-13 15:37:32 +03:00
Povilas Kanapickas
7f852e0417
genesys: Fix depth calculation for segmented sensors in lineart mode
2019-09-13 15:37:31 +03:00
Povilas Kanapickas
e89c6a0aab
genesys: Remove accidental uses of C++14 APIs
2019-09-13 15:37:30 +03:00
Povilas Kanapickas
9a844e1ede
genesys: Compute what image processing will be needed in session
2019-09-13 11:36:56 +03:00
Povilas Kanapickas
a5efb96978
genesys: Replace uses of Genesys_Color_Order with ColorOrder
2019-09-13 11:36:55 +03:00
Povilas Kanapickas
05ed63fa34
genesys: Move setup of read buffer to a single function
2019-09-13 11:36:54 +03:00
Povilas Kanapickas
28d15784e4
genesys: Remove unused code
2019-09-13 11:36:53 +03:00
Povilas Kanapickas
8ed2cd991b
genesys: Initialize frontend state from the outset
2019-09-13 11:36:52 +03:00
Povilas Kanapickas
d73915ba19
genesys: Implement gain calibration for Analog-Devices ADC
2019-09-13 11:01:48 +03:00
Povilas Kanapickas
e45e668326
genesys: Extract gain computation into a separate function
2019-09-13 11:01:47 +03:00
Povilas Kanapickas
94c1cf1d5a
genesys: Add clamp() utility function
2019-09-13 11:01:46 +03:00
Povilas Kanapickas
ad1067ad03
genesys: Add support for segmented sensors on gl843
2019-09-13 10:52:35 +03:00
Povilas Kanapickas
1c7ef4b55e
genesys: Implement image data source that mimics current reading from USB
2019-09-13 10:38:05 +03:00
Povilas Kanapickas
7d7a395277
genesys: Implement library for image manipulation
2019-09-13 10:38:04 +03:00
Povilas Kanapickas
2f3d9e9d76
genesys: Don't crash when default scan method is not supported
2019-09-12 23:48:16 +03:00
Povilas Kanapickas
4c18ef27a2
genesys: Raise exception when device structs are not found
2019-09-12 23:48:15 +03:00
Povilas Kanapickas
c2115543db
genesys: Implement a way to set default scan method used internally
2019-09-12 23:48:14 +03:00
Povilas Kanapickas
c0010fcd9f
genesys: Fix incorrect scan method in move function on gl646
2019-09-12 23:48:13 +03:00
Rolf Bensch
1e2f64dc3d
pixma: backend version 0.23.2
2019-09-12 22:09:22 +02:00
Rolf Bensch
aacdd88a27
pixma: update doc files
2019-09-12 22:08:49 +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
a830fca943
genesys: Remove GL123 enum
2019-09-12 22:40:57 +03:00
Povilas Kanapickas
322a9a6810
genesys: Don't modify session in *_init_scan_regs()
2019-09-12 22:40:56 +03:00
Povilas Kanapickas
80d0129f44
genesys: Pass start pixel to *_init_optical_regs_scan() via session
2019-09-12 22:40:55 +03:00
Povilas Kanapickas
c0e465784e
genesys: Deduplicate different get_sensor_profile implementations
2019-09-12 22:40:54 +03:00
Povilas Kanapickas
9b7ab93727
genesys: Add unit test for genesys_fill_segmented_buffer()
2019-09-12 22:39:22 +03:00
Povilas Kanapickas
502478a40d
genesys: Reindent genesys_fill_segmented_buffer()
2019-09-12 22:39:21 +03:00
Povilas Kanapickas
c2c65f29c9
genesys: Simplify genesys_fill_segmented_buffer()
2019-09-12 22:39:20 +03:00
Povilas Kanapickas
0267eeeeae
genesys: Remove the desegmentation state struct
2019-09-12 22:22:00 +03:00
Povilas Kanapickas
3d023060a3
genesys: Move desegmentation skip_bytes to session struct
2019-09-12 22:21:59 +03:00
Povilas Kanapickas
192dd886cd
genesys: Use common code path to compute ..._segment_pixel_group_count
2019-09-12 22:21:58 +03:00
Povilas Kanapickas
4870a9f975
genesys: Properly set conseq_pixel_dist_bytes on gl124
2019-09-12 22:21:57 +03:00
Povilas Kanapickas
95eb6a72dd
genesys: Use single code path to compute session output_line_bytes_raw
2019-09-12 22:21:56 +03:00
Povilas Kanapickas
1f4a5311d7
genesys: Rename DesegmentationState::raw_{channel => line}_bytes
2019-09-12 22:21:55 +03:00
Povilas Kanapickas
61d4779402
genesys: Remove erroneously named raw_line_bytes
...
The raw_channel_bytes is what we store the line information to. Turns
out raw_line_bytes is unnecessary and only ever used by error.
2019-09-12 22:21:54 +03:00
Povilas Kanapickas
4df8872ab3
genesys: Simplify raw_channel_bytes computation more
...
On the chipsets in question, session.hwdpi_divisor == sensor.optical_res
/ sensor.get_register_hwdpi(...), so the divisor cancels out with the
rest of the expression.
2019-09-12 22:21:53 +03:00
Povilas Kanapickas
95a3836f1a
genesys: Simplify raw_channel_bytes calculation
2019-09-12 22:21:52 +03:00
Povilas Kanapickas
98320f5b81
genesys: Don't overflow in multiply_by_depth_ceil
2019-09-12 22:21:51 +03:00