Povilas Kanapickas
5a90b7bb8f
genesys: Convert Genesys_Buffer to C++ class
2019-05-25 11:15:36 +03:00
Povilas Kanapickas
247658f23e
genesys: Return std::vector from GL646 simple_scan()
2019-05-25 11:15:35 +03:00
Povilas Kanapickas
e48b6c4e2d
genesys: Store global Genesys_Scanner instances in std::list
2019-05-25 11:15:34 +03:00
Povilas Kanapickas
15b373a5cc
genesys: Use std::vector for calibration cache average data
2019-05-25 11:15:33 +03:00
Povilas Kanapickas
64ca298d02
genesys: Store calibration class using std::list
2019-05-25 11:15:32 +03:00
Povilas Kanapickas
52b1989eda
genesys: Remove no longer used RIEF and RIEF2 macros
2019-05-25 11:15:31 +03:00
Povilas Kanapickas
3d44c89f1e
genesys: Use std::vector for Genesys_Device::{dark,white}_average_data
2019-05-25 11:15:30 +03:00
Povilas Kanapickas
2dc4e5d1fc
genesys: Use std::vector for Genesys_Sensor::gamma_table
2019-05-25 11:15:29 +03:00
Povilas Kanapickas
555be1c3eb
genesys: Use Genesys_Device as C++ class
2019-05-25 11:15:28 +03:00
Povilas Kanapickas
cb189cfe2d
genesys: Rewrite sensor table to use std::vector
2019-05-25 11:15:27 +03:00
Povilas Kanapickas
e5eff5d76f
genesys: Add facility for auto releasing static data on backend exit
2019-05-25 11:15:26 +03:00
Povilas Kanapickas
9cea33b53c
genesys: Use std::vector instead of malloc for local allocations
2019-05-25 11:15:25 +03:00
Povilas Kanapickas
896385a082
genesys: Ensure that functions passed to C API don't throw
2019-05-25 10:03:15 +03:00
Povilas Kanapickas
23f3ebf612
genesys: Wrap exported functions to always catch exceptions
2019-05-25 10:03:14 +03:00
Povilas Kanapickas
5d7fc4e0ed
Merge branch 'genesys-fix-warning' into 'master'
...
genesys: Fix warning
See merge request sane-project/backends!71
2019-05-24 18:25:58 +00:00
Povilas Kanapickas
58ee13d057
genesys: Fix warning
2019-05-24 21:13:37 +03:00
Olaf Meeuwissen
216e8b28a0
Turn C++ compiler warning into error on the right job. Re #85
...
Fixes 8d67531c70
where the flags were
set for a job that runs in an environment *without* a C++ compiler.
2019-05-22 21:48:32 +09:00
Olaf Meeuwissen
199a685d0b
Restore availability of config.status for archive stage. Re #85
2019-05-22 21:35:08 +09:00
Olaf Meeuwissen
8d67531c70
Turn C++ compiler warnings into errors. See #85
2019-05-22 21:31:13 +09:00
Olaf Meeuwissen
57ee89a676
Drop caching of untracked files. Re #85
2019-05-22 21:19:54 +09:00
Olaf Meeuwissen
be9736020f
autofoo: Sync generated files
...
The AX_CXX_COMPILE_STDCXX* macros that were embedded in aclocal.m4
have been replaced with the versions found in the autoconf-archive
package from Debian 9.
2019-05-21 22:14:46 +09:00
Olaf Meeuwissen
e2d89c1ab3
Expand AM_CXXFLAGS in our Makefiles. Fixes #84
2019-05-21 22:14:46 +09:00
Povilas Kanapickas
16a3945ce6
Merge branch 'genesys-sleep' into 'master'
...
genesys: Add wrapper for sleep that can be turned off when testing
See merge request sane-project/backends!70
2019-05-20 09:47:38 +00:00
Olaf Meeuwissen
f498e5fa66
genesys: Add missing pointer cast on malloc call
...
Fixes build on Fedora 29 and 30.
2019-05-20 18:32:48 +09:00
Olaf Meeuwissen
2bb5ed655a
Merge branch 'genesys-enable-cxx' into 'master'
...
Use C++ for the genesys backend
See merge request sane-project/backends!61
2019-05-20 09:10:53 +00:00
Stanislav Yuzvinsky
2a11622967
Merge branch 'teardown' into 'master'
...
ricoh2: Rearrange init/deinit code of ricoh2 to correctly support "code flow"
See merge request sane-project/backends!65
2019-05-19 18:18:57 +00:00
Olaf Meeuwissen
7585538595
epson2: Add XP-255 as supported. Fixes #81
2019-05-19 21:41:16 +09:00
Povilas Kanapickas
71bf2daec6
Merge branch 'genesys-remove-static' into 'master'
...
genesys: Remove uses of GENESYS_STATIC
See merge request sane-project/backends!68
2019-05-19 12:02:50 +00:00
Povilas Kanapickas
8cdd5ae22e
Merge branch 'genesys-debug-cleanup' into 'master'
...
genesys: Use the same debug identifier for the whole backend
See merge request sane-project/backends!67
2019-05-19 11:56:38 +00:00
Povilas Kanapickas
a4ab69376c
genesys: Remove uses of GENESYS_STATIC
2019-05-19 14:49:44 +03:00
Povilas Kanapickas
4c2c4eb639
genesys: Remove duplicate definition of DBGSTART and DBGCOMPLETED
2019-05-19 14:46:46 +03:00
Povilas Kanapickas
6f617e9889
genesys: Don't define different backend names in source files
2019-05-19 14:46:45 +03:00
Povilas Kanapickas
873e82c0a0
genesys: Remove logging of the build number
...
A git commit would be much more useful in log messages
2019-05-19 14:46:44 +03:00
Povilas Kanapickas
185303a18d
Enable warnings in C++ source
2019-05-19 14:09:38 +03:00
Povilas Kanapickas
42fb5a3e03
Don't compile genesys backend when C++11 is not available
2019-05-19 14:09:31 +03:00
Povilas Kanapickas
c536f3cf70
genesys: Fix calibration size calculation for 8600F
...
The current approach of marking the scanner as
GENESYS_FLAG_FULL_HWDPI_MODE is counter-productive, because only the
register value is always full DPI, the actual resolution is different.
For now, let's just work around this by having a special case for the
scanner.
2019-05-18 14:56:12 +03:00
Povilas Kanapickas
0a0a140423
genesys: Correctly adjust pixels per line during calibration
2019-05-18 14:56:11 +03:00
Povilas Kanapickas
190361b724
genesys: Work around first line having artifacts during calibration
2019-05-18 14:56:10 +03:00
Povilas Kanapickas
3a4f67feef
genesys: Fix lockups on GL843 during calibration
2019-05-18 14:56:09 +03:00
Povilas Kanapickas
ed582c5858
genesys: Fix gain calibration on GL843
2019-05-18 14:56:08 +03:00
Povilas Kanapickas
b220512172
genesys: Add a separate shading line count param for TA mode
...
q
2019-05-18 14:56:07 +03:00
Povilas Kanapickas
b7ef75d63f
genesys: Implement transparency support for 8600F
2019-05-18 14:56:06 +03:00
Povilas Kanapickas
126e98524a
genesys: Remove special ADF handling for G4050
2019-05-18 14:56:05 +03:00
Povilas Kanapickas
091fdbe6d6
genesys: Use correct offsets for transparency scan
2019-05-18 14:56:04 +03:00
Povilas Kanapickas
d0c4f87ac7
genesys: Don't set exposure to zero on 8600F
2019-05-18 14:56:03 +03:00
Povilas Kanapickas
33a60dcc7b
genesys: Implement support for 8600F
2019-05-18 14:56:02 +03:00
Povilas Kanapickas
41e2029e4b
genesys: Initialize 0x7e register on GL843
2019-05-18 14:56:01 +03:00
Povilas Kanapickas
966ef33710
genesys: Fix pixel calculation during calibration on gl843
2019-05-18 14:56:00 +03:00
Povilas Kanapickas
df889c96f5
genesys: Deduplicate pixel count computation during calibration
2019-05-18 14:55:59 +03:00
Povilas Kanapickas
695addaafd
genesys: Fix pixel count when scanning in half-ccd mode on GL843
2019-05-18 14:55:58 +03:00