Povilas Kanapickas
4269f67c4a
genesys: Always initialize Genesys_Frontend
2019-06-02 11:47:39 +03:00
Povilas Kanapickas
68df437faf
genesys: Always initialize Genesys_Motor
2019-06-02 11:47:38 +03:00
Povilas Kanapickas
52f73ffd8d
genesys: Always initialize Genesys_Gpo
2019-06-02 11:47:37 +03:00
Povilas Kanapickas
d39189e424
genesys: Always initialize Genesys_Settings
2019-06-02 11:47:36 +03:00
Povilas Kanapickas
03ecbf1bb0
genesys: Always initialize Genesys_Current_Setup
2019-06-02 11:47:35 +03:00
Povilas Kanapickas
836a78bef5
genesys: Extract exposure to separate variable in sensor definition
2019-06-02 11:47:31 +03:00
Povilas Kanapickas
e9419d5e33
genesys: Make per-sensor register override list generic
2019-06-02 11:47:30 +03:00
Povilas Kanapickas
90814ac7d3
genesys: Move half CCD property to sensor definition
2019-06-02 11:47:28 +03:00
Povilas Kanapickas
04c5b4afde
genesys: Improve type safety of Genesys_Register_Set
2019-06-02 11:47:26 +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
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
33a60dcc7b
genesys: Implement support for 8600F
2019-05-18 14:56:02 +03:00
Povilas Kanapickas
df889c96f5
genesys: Deduplicate pixel count computation during calibration
2019-05-18 14:55:59 +03:00
Povilas Kanapickas
76bf1ad072
genesys: Improve documentations for registers in various places
2019-05-18 14:55:56 +03:00
Povilas Kanapickas
50b27fe836
genesys: Use std::string for Genesys_Device::calib_file
2019-05-25 11:15:42 +03:00
Povilas Kanapickas
38986c2c6f
genesys: Use std::vector for Genesys_Device::img_buffer
2019-05-25 11:15:41 +03:00
Povilas Kanapickas
eb93267fa9
genesys: Use std::vector instead of custom vector implementation
2019-05-25 11:15:40 +03:00
Povilas Kanapickas
9c2fdeeb3d
genesys: Use proper containers for device lists
2019-05-25 11:15:37 +03:00
Povilas Kanapickas
5a90b7bb8f
genesys: Convert Genesys_Buffer to C++ class
2019-05-25 11:15:36 +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
23f3ebf612
genesys: Wrap exported functions to always catch exceptions
2019-05-25 10:03:14 +03:00
Povilas Kanapickas
58ee13d057
genesys: Fix warning
2019-05-24 21:13:37 +03:00
Povilas Kanapickas
a4ab69376c
genesys: Remove uses of GENESYS_STATIC
2019-05-19 14:49:44 +03:00
Povilas Kanapickas
4df63ef548
Merge branch 'genesys-debug-improvements' into 'master'
...
genesys: Miscellaneous debug improvements
See merge request sane-project/backends!64
2019-05-11 09:20:45 +00:00
Povilas Kanapickas
3c8b9b9167
Merge branch 'genesys-reduce-duplication' into 'master'
...
genesys: Reduce duplication in low level functions
See merge request sane-project/backends!63
2019-05-11 09:14:06 +00:00
Povilas Kanapickas
988a91aec4
genesys: Write all offset calibration debug to a single file on gl843
2019-05-11 12:12:29 +03:00
Povilas Kanapickas
36bc194405
genesys: Add a small C array implementation
2019-05-11 12:12:28 +03:00
Povilas Kanapickas
7ee139bd4b
genesys: Pass device to sanei_genesys_write_ahb() as ptr not number
2019-05-11 12:05:19 +03:00
Povilas Kanapickas
d7bff42cba
genesys: Add generic sanei_genesys_bulk_write_data() out of GL843 impl
2019-05-11 12:05:18 +03:00
Povilas Kanapickas
98258549cb
genesys: Extract sanei_genesys_get_bulk_max_size()
2019-05-11 12:05:17 +03:00
Povilas Kanapickas
4a899d26f3
genesys: Create generic sanei_genesys_bulk_read_data out of gl124 impl
2019-05-11 12:05:09 +03:00
Povilas Kanapickas
887759192b
genesys: Add option to force calibration ignoring caches
2019-05-11 12:00:25 +03:00
Povilas Kanapickas
47e7f087c6
genesys: Perform type casts explicitly
2019-05-10 21:11:01 +03:00
Povilas Kanapickas
f240a77e92
genesys: Add numeric model IDs to model tables
2019-04-23 00:55:44 +03:00
Povilas Kanapickas
d7c17f7540
genesys: Limit maximum bulk transfer size to allow data capture
2019-04-23 00:14:48 +03:00
Povilas Kanapickas
f04119b126
genesys: Remove support for fake USB mode
...
WIP implement support for 8600F
2019-04-23 00:14:47 +03:00
Povilas Kanapickas
e92a3d6eba
Merge branch 'remove-unused-unit-testing' into 'master'
...
Remove uses of unused UNIT_TESTING ifdef
See merge request sane-project/backends!45
2019-03-22 14:25:39 +00:00
Povilas Kanapickas
265f4a96ea
genesys: Prefer enums to #defines
2019-03-22 14:50:03 +02:00
Povilas Kanapickas
d866998f10
genesys: Remove uses of unused UNIT_TESTING ifdef
2019-03-20 23:09:05 +02:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Stéphane Voltz
de635a32f9
add rewind function to command set
2016-03-03 22:06:03 +01:00
Stéphane Voltz
387cea7d6c
define dedicated motor/sensor/gpio for LiDE 120
2016-02-21 22:16:44 +01:00
Stéphane Voltz
e90f8cb8a1
latin1 -> utf8
2016-02-21 22:16:44 +01:00
Volker Diels-Grabsch
baec5e0395
Use consistently __func__ instead of __FUNCTION__
...
Some parts of SANE used __FUNCTION__ while other parts used __func__.
Now, __func__ is used consistently throughout the SANE sources. This
fixes all occurrences of the following GCC warning:
warning: ISO C does not support '__FUNCTION__' predefined identifier
2015-12-20 15:27:45 +09:00
Stéphane Voltz
f6896e0de4
use expiration time option
...
- use expiration time option value to managed cached entries
- changelog for genesys build #2506
2015-04-12 10:14:50 +02:00
Stéphane Voltz
128c8931b3
add putative support for LiDE 120
2015-03-17 22:23:21 +01:00
Stéphane Voltz
470594e18b
initial support for LiDE 220
2015-02-26 22:26:00 +01:00
Stéphane Voltz
c2e1bd6b4d
add init_scan_regs function to internal API
...
- define a common scan register setting function
- start to move gl124.C to generic motor slope handling
2014-06-02 06:19:28 +02:00
Stéphane Voltz
60eba116f3
Make LEDADD work for LiDE 35 and 80
2013-12-23 06:18:10 +01:00
Stéphane Voltz
6e1ce492ba
GL841 shading calibration fixes
...
- fix regression in LiDE 35 shading (buffer full flag)
- tune LiDE80 shading calibration by skipping extra dark area
- whitespaces cleanup
2013-12-16 06:06:19 +01:00
Stéphane Voltz
4cae3bdeab
LIDE80 WIP : basic operation milestone reached!
...
- make SHDAREA work
- exposure timing working from 75 to 1200 dpi
2013-12-15 07:27:26 +01:00
Nils Philippsen
a3fe2c1ea5
genesys: compute MAX_SCANNERS from array length
...
... of genesys_usb_device_list[]
2013-11-05 15:51:05 +01:00
Stéphane Voltz
4b6d50f662
LiDE 80 WIP : parking is now working
2013-10-19 21:30:04 +02:00
Stéphane Voltz
c88b3bc228
add LiDE 80 device description
2013-10-19 21:24:34 +02:00
Stéphane Voltz
e3e5e9b3a3
implement brightness/constrast enhancement using gamma tables
2013-08-11 21:51:26 +02:00
Stéphane Voltz
0e117b933c
switch genesys register address to 16 bits
2013-07-18 08:11:07 +02:00
Stéphane Voltz
a48f67e594
define specific LIDE210 sensor and motor instead of using LIDE110 ones
2013-07-18 08:11:07 +02:00
Stéphane Voltz
2d7ebd42ea
experimental code for GL845 based Opticbook 3800
...
- add GL845 ASIC which is almost identical to the GL846
- add Opticbook 3800 to genesys backend
2013-06-26 06:51:55 +02:00
Stéphane Voltz
1656585499
warning fixes
...
- unused parameters
- wrong printf fromat
- assigned to self
2013-03-27 06:28:11 +01:00
Stéphane Voltz
c62d5879a7
cppcheck fixes
...
- cppcheck fixes
- new macro to hanlde free on error path
- better error message in RIEx macros
2013-02-13 21:53:17 +01:00
Stéphane Voltz
a5a6543cd0
support for 5th LiDE 210 button
2013-01-31 06:12:09 +01:00
Stéphane Voltz
0897a60c60
genesys backend update
...
- groundwork for gl846 support
- asic init rework
- several refactors
2013-01-28 22:04:37 +01:00
Stéphane Voltz
bd44b058a0
gamma handling refactor
...
- use arrays instead of gamma tables
- send_gamma_table does only send gamma table and doesn't
create ramp if no custom gamma
- create a default gamma table with gamma value from device
description
2012-12-09 15:45:59 +01:00
Stéphane Voltz
e5b886cb76
add optional doxygen documentation generation for the genesys backend
2012-11-02 21:46:44 +01:00
Stéphane Voltz
a35050c8bf
doxygen fixes
2012-10-24 21:30:17 +02:00
Stéphane Voltz
704c81a019
add experimental Canonscan 8400F support
2012-10-24 21:30:17 +02:00
Stéphane Voltz
3de973396f
create flag when sensor is always at full hw resolution
2012-10-24 21:21:14 +02:00
Stéphane Voltz
aa160f50f6
initial Canonscan 4400F work
...
- add 4400F to devices
- add settings for 100 dpi scan
2012-10-24 21:21:13 +02:00
Stéphane Voltz
41733d874e
fix genesys issues when using saned
...
- fix --clear-calibration option descriptor
- rewrite dynmaic lineart code to fix incorrect returned data length
2012-08-08 06:54:11 +02:00
Stéphane Voltz
c81c28c550
improve hotplug/remove detection of device
2012-06-04 21:35:10 +02:00
Stéphane Voltz
5ae4f26c42
LiDE 700F WIP
...
- 75 to 2400 uncalibrated scans are ok
2012-05-26 09:46:40 +02:00
Stéphane Voltz
261905e759
GL847/GL124 data interleaving rewrite
...
- made data interleaving use an order matrix to handle different sensors
2012-05-26 09:41:39 +02:00
Stéphane Voltz
a61e2be3a5
gl841 sheetfed calibration improvement
...
- use maximum gain to detect first white strip for sheetfed calibration
- bpl/wpl correctness
2012-03-20 21:54:29 +01:00
Stéphane Voltz
db23500243
improve GL847 shading calibration
...
- repark between each shading step
2011-11-29 21:32:31 +01:00
Stéphane Voltz
b7a62c1d54
align offset/gain calibration of gl847 on gl124 code
2011-11-20 10:47:20 +01:00
Stéphane Voltz
d090c32918
first step for N6310
2011-11-20 08:03:54 +01:00
Stéphane Voltz
d750676ed0
XPA support for gl843 preparation
...
- define exposure map for XPA
- define optical flag for XPA
2011-11-19 09:34:12 +01:00
Stéphane Voltz
6ddaf6fbc1
G4050 XPA progress
...
- define and tune move_to_ta for gl843
- GPIO settings to light XPA lamp
- GPIO settings to enable XPA lamp motor
- park XPA lamp function for gl843
2011-11-14 06:16:17 +01:00
Stéphane Voltz
11ff6cfaa6
includes cleanup
...
- remove uneeded includes from genesys.c
- move backend name define to C file for unit testing
2011-11-14 06:16:17 +01:00
Stéphane Voltz
ec8bdc31a3
define and use HAS_UTA flag for G4050
...
- remove unused ALT_SLOPE flag
- create HAS_UTA_FLAG
- ease some compilation warnings
2011-11-14 06:16:17 +01:00
Stéphane Voltz
11d8819768
genesys code cleanup
...
- create an include file for genesys_gl841.c
- simplify includes
- cleanup warnings
2011-11-02 08:40:25 +01:00
Stéphane Voltz
f0e42223a7
include <sys/types> in a clean way
2011-11-01 16:10:07 +01:00
Stéphane Voltz
b05ca3c3f3
move specific gl843 shading function to genesys_gl843.c
2011-10-21 07:45:44 +02:00
Stéphane Voltz
6490c9635f
move ld_shift_* values from motor to device session level
2011-10-21 07:45:44 +02:00
Stéphane Voltz
1ed7e3e589
G4050 WIP : stable point
...
- scanarea needs tuning
- calibration needs tuning
2011-10-21 07:45:43 +02:00
Stéphane Voltz
dd6df8a7c7
GL843 progress
...
- warming up working for gl843 scanners
- per resolution motor/sensor profiles for gl843 scanners
- use sanei_genesysy_slope_tale for gl843 scanners
- glxxx_set_motor_power usage cleanups
2011-10-21 07:45:43 +02:00
m. allan noah
8607f65505
Revert "Applied patch for HPN6310"
...
This reverts commit f7a0ef6817
.
2011-10-18 20:47:56 -04:00
JAZ
f7a0ef6817
Applied patch for HPN6310
2011-10-17 12:27:09 +05:30
Stéphane Voltz
49ebc601bf
fix canon LiDE 210 button mapping
2011-09-07 06:45:16 +02:00
Stéphane Voltz
84d39e7188
MD5345 shading calibration fix
...
- create a no move during shading calibration flag
- use this flag for MD5345
2011-08-25 06:43:25 +02:00
Stéphane Voltz
d5189e200d
genesys park and preview improvements
...
- use fatest motor speed to park for gl843, gl847 and gl124
- use sensor lowest dpi (and not motor's one) as default value so
preview is done with it
2011-08-23 07:20:52 +02:00
Stéphane Voltz
2ea0836330
add log debug log message and define optical/motor flags
2011-08-22 07:01:18 +02:00