David Ward
6be83f469b
Resolve compiler warnings about misleading indentation
...
This change is targeted at specific lines of code reported by GCC or
Clang as potentially causing unintended behavior.
2022-03-08 19:00:00 -05:00
Povilas Kanapickas
2f17613dbb
genesys: Simplify gamma buffer setup
...
This also makes sure that we never access the source gamma tables out of
bounds which was possible previously.
2022-01-28 22:39:26 +02:00
Povilas Kanapickas
188cf63627
genesys: Simplify interface of generate_gamma_buffer()
2022-01-28 22:39:26 +02:00
Povilas Kanapickas
59506f866d
genesys: Remove exception for the GPL license
...
Several files already don't have the exception that allows uses of the
code that are additional to the GPL license. I'm no longer comfortable
granting this exception for my subsequent contributions, thus the
exception has been removed.
2021-12-30 19:16:54 +02:00
Povilas Kanapickas
7bbb6d8fdb
genesys: Implement host-side gray support
2021-12-27 22:39:19 +02:00
Povilas Kanapickas
ad84284186
genesys: Rename ImagePipelineNodeMergeMono{Lines -> LinesToColor}
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
bd4f009122
genesys: Remove true_gray variable by deriving its value directly
2021-12-27 22:22:44 +02:00
Povilas Kanapickas
b668e92047
genesys: Use {uint,int}{8,16,32,64} from std namespace
...
This is not strictly necessary as all known C++ compilers also inject
these types to the global namespace. However this is not guaranteed by
the C++ standard and accordingly some code completion tools don't
support this without additional configuration.
2021-12-26 16:09:17 +02:00
Povilas Kanapickas
80f6d21170
genesys: Enable gamma setting when contrast or brightness is adjusted
...
Brightness and contrast adjustments are handled via gamma tables and
thus gamma functionality is required for these settings to have any
effect.
Previously if the device has a sensor with identity gamma
(gamma = {1, 1, 1}), then gamma tables were turned off, consequently
brightness and contrast settings had no effect.
The underlying issue was identified by Gunnar Hjalmarsson
<gunnarhj@ubuntu.com> and STK.
2021-12-26 14:59:01 +02:00
Olaf Meeuwissen
e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
...
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320 .
2021-02-12 17:41:38 +09:00
Peter Marschall
0cd9de9bef
spelling fixes for genesys backend
2020-08-29 09:18:03 +02:00
Povilas Kanapickas
b0c42c0f5f
genesys: Implement support for LiDE 90
2020-06-27 00:48:06 +03:00
Povilas Kanapickas
d948f5eb69
genesys: Fix cis scanner support on gl842
2020-06-27 00:47:18 +03:00
Povilas Kanapickas
23079e0061
genesys: Increase timeout in wait_until_has_valid_words()
2020-05-26 01:51:20 +03:00
Povilas Kanapickas
3cca2593fc
genesys: Add support for Canon 5600F
2020-05-26 01:51:19 +03:00
Povilas Kanapickas
b9e4113ef0
genesys: Add functions to write to register according to mask
2020-05-26 01:51:18 +03:00
Povilas Kanapickas
64b69331d3
Merge branch 'genesys-misc-fixes' into 'master'
...
genesys: Miscellaneous fixes
See merge request sane-project/backends!474
2020-05-25 22:29:03 +00:00
Povilas Kanapickas
8a66829057
genesys: Simplify access to nodes that are newly added to image pipeline
2020-05-26 01:13:20 +03:00
Povilas Kanapickas
ba91fc844d
genesys: Fix start pixel calculation when optical resolution is not max
2020-05-26 01:10:52 +03:00
Povilas Kanapickas
56db2b988a
genesys: Adjust host side calibration by shading pixel offset
2020-05-26 01:10:51 +03:00
Povilas Kanapickas
8a10e33a13
genesys: Move all pixel adjustment calculations to a single function
2020-05-26 01:10:50 +03:00
Povilas Kanapickas
6a495f9725
genesys: Remove duplicate align_int_up()
2020-05-24 20:44:25 +03:00
Povilas Kanapickas
e7e5322003
genesys: Remove dead code
2020-05-24 20:44:24 +03:00
Povilas Kanapickas
a23d61c26b
genesys: Allow pipeline to be created without mutating device
2020-05-24 18:02:03 +03:00
Povilas Kanapickas
28e6ad89b8
genesys: Simplify read buffer size calculation
2020-05-24 16:35:59 +03:00
Povilas Kanapickas
f5af633263
genesys: Simplify data buffering in main image pipeline
2020-05-23 10:39:09 +03:00
Povilas Kanapickas
9873fdf922
genesys: Don't read too much data when segment count is more than one
2020-05-23 10:39:08 +03:00
Povilas Kanapickas
55691ece2c
genesys: Merge ImagePipelineNodeBuffered{CallableSource and GenesysUsb}
2020-05-23 10:39:07 +03:00
Povilas Kanapickas
d680724f9e
Merge branch 'genesys-debug-tiff' into 'master'
...
genesys: Use TIFF files for debugging
See merge request sane-project/backends!464
2020-05-23 11:18:34 +00:00
Povilas Kanapickas
d770012132
genesys: Use TIFF files for debugging
2020-05-23 14:03:01 +03:00
Povilas Kanapickas
aa937c5b4c
genesys: Simplify pixel positioning for unstaggering
2020-05-23 14:02:32 +03:00
Povilas Kanapickas
bb05afdbfd
genesys: Fix erroneous multiplication by channels on gl646 cis
2020-05-23 14:02:30 +03:00
Povilas Kanapickas
5f0abce90f
genesys: Add support for unstaggering in X direction
2020-05-22 01:23:50 +03:00
Povilas Kanapickas
d980da1ff7
genesys: Improve vertical staggering to support more than 2 lines
2020-05-22 01:23:47 +03:00
Povilas Kanapickas
e62f130523
genesys: Replace ccd_size_divisor with explicit optical resolution
2020-05-18 06:35:20 +03:00
Povilas Kanapickas
b5430cc039
genesys: Rename Genesys_Sensor::{optical_res => full_resolution}
2020-05-18 06:35:19 +03:00
Povilas Kanapickas
800cf3beaf
genesys: Use ModelFlag::DISABLE_*_CALIBRATION instead of NO_CALIBRATION
2020-05-17 01:02:28 +03:00
Povilas Kanapickas
71eeeb0ca6
genesys: Remove dead code
2020-05-17 01:02:26 +03:00
Povilas Kanapickas
6e398bc7bf
genesys: Write debug images only if step was enabled
2020-05-16 23:05:21 +03:00
Povilas Kanapickas
6092e2d682
genesys: Enable image data logging as a separate environment variable
2020-05-16 23:05:20 +03:00
Povilas Kanapickas
0d2a4b5244
genesys: Fix incorrect ADC definition on gl847
2020-05-16 22:04:51 +03:00
Povilas Kanapickas
b1b61b043b
genesys: Pass whole motor struct to create_slope_table()
2020-05-09 10:34:41 +03:00
Povilas Kanapickas
fe3677b68f
genesys; Rename create_slope_table{=>_speed}()
2020-05-09 10:34:40 +03:00
Povilas Kanapickas
09eaba9606
genesys: Add model flag for inverted output
2020-05-09 13:29:53 +03:00
Povilas Kanapickas
ab1d86d74a
genesys: Rename {INVERTED->SWAP}_16_BIT_DATA model flag
2020-05-09 13:29:52 +03:00
Povilas Kanapickas
08b41c052e
genesys: Add support for Plustek OpticFilm 7200
2020-04-23 21:36:23 +03:00
Povilas Kanapickas
edda9bff25
genesys: Simplify creation of command set
2020-04-17 05:38:43 +03:00
Povilas Kanapickas
eec083f46a
genesys: Remove startup position hack on 4400F 4800dpi scans
2020-04-13 07:38:08 +03:00
Povilas Kanapickas
1125cf338a
genesys: Update pixel start offsets on 4400F
2020-04-13 07:38:07 +03:00
Povilas Kanapickas
aec867d1e8
genesys: Support negative output_pixel_offset
2020-04-13 07:38:03 +03:00