Povilas Kanapickas
6fea625ad6
genesys: Support custom shading offset on gl843
2020-04-13 07:38:00 +03:00
Povilas Kanapickas
4b79620525
genesys: Fix shading resolution on 8400F 400dpi
2020-04-13 07:37:59 +03:00
Povilas Kanapickas
664c07c01a
genesys: Add a way to configure shading pixel offset
2020-04-13 07:37:58 +03:00
Povilas Kanapickas
df0fccf899
genesys: Fix incorrect handling of start position on gl843
2020-04-13 07:37:57 +03:00
Povilas Kanapickas
922cabc0be
genesys: Remove no longer used ccd_start_xoffset
2020-04-13 07:23:43 +03:00
Povilas Kanapickas
87f5637a47
genesys: Cleanup pixel position handling on gl124
2020-04-13 07:23:42 +03:00
Povilas Kanapickas
bae938b4be
genesys: Use output_pixel_offset for CCD offsets on gl847
2020-04-13 07:23:41 +03:00
Povilas Kanapickas
eca7a5ab91
genesys: Use output_pixel_offset for CCD offsets on gl845/gl846
2020-04-13 07:23:40 +03:00
Povilas Kanapickas
e5c46aee41
genesys: Use output_pixel_offset for CCD offsets on gl843
2020-04-13 07:23:39 +03:00
Povilas Kanapickas
dc00ab867b
genesys: Use output_pixel_offset for CCD offsets on gl841
2020-04-13 07:23:38 +03:00
Povilas Kanapickas
648a24830f
genesys: Use output_pixel_offset for CCD offsets on gl646
2020-04-13 07:23:37 +03:00
Povilas Kanapickas
1fc00f2b96
Merge branch 'genesys-cleanup-pixel-position-handling' into 'master'
...
genesys: Cleanup pixel position handling
See merge request sane-project/backends!401
2020-04-13 13:33:50 +00:00
Povilas Kanapickas
3693f4b12d
genesys: Simplify use of pixel_endx on gl124
2020-04-13 07:19:59 +03:00
Povilas Kanapickas
cdefc1cae5
genesys: Simplify pixel position handling on gl646
2020-04-13 07:19:58 +03:00
Povilas Kanapickas
e920d1bbce
genesys: Add a way to specify output pixel offset
2020-04-13 07:19:57 +03:00
Povilas Kanapickas
94f130cdfa
genesys: Simplify pixel position calculation on gl841
2020-04-13 07:19:56 +03:00
Povilas Kanapickas
8b37d4b15e
genesys: Remove handling of XCORRECTION on gl646
2020-04-13 07:19:55 +03:00
Povilas Kanapickas
2bec01cf60
genesys: Simplify optical pixel calculations on gl646
2020-04-13 07:19:54 +03:00
Povilas Kanapickas
f4b60c48bb
genesys: Remove unnecessary pixel averaging handling code on gl841
2020-04-13 07:19:53 +03:00
Povilas Kanapickas
1f43e6a7f8
genesys: Remove unused handling of partial resolutions
2020-04-13 07:19:52 +03:00
Povilas Kanapickas
71f3dd8643
genesys: Make definition of optical_resolution more consistent on gl646
2020-04-13 07:19:51 +03:00
Povilas Kanapickas
6db2f94598
genesys: Remove unused configuration of ccd_size_divisor
2020-04-13 07:19:50 +03:00
Povilas Kanapickas
12269c5ad4
genesys: Prefer not to use ccd_size_divisor on gl841
2020-04-13 07:19:49 +03:00
Povilas Kanapickas
48c377b5f0
genesys: Improve description of SetupParams::pixels
2020-04-13 07:19:48 +03:00
Povilas Kanapickas
901827c8c7
genesys: Disable currently unsupported resolutions on LiDE 700F
2020-04-13 07:19:29 +03:00
Povilas Kanapickas
35e48da4a8
genesys: Fix invalid home position reporting on LiDE 700F
2020-04-13 07:19:28 +03:00
Povilas Kanapickas
7fbc7dda54
genesys: Readd missed comment
2020-04-11 15:50:30 +03:00
Povilas Kanapickas
3b1d7d59c1
Merge branch 'genesys-reg-get-address' into 'master'
...
genesys: Remove uses of sanei_genesys_get_address()
See merge request sane-project/backends!399
2020-04-11 12:38:19 +00:00
Povilas Kanapickas
5ffd4039de
genesys: Fix crash when exact usb device is not specified
2020-04-11 15:20:30 +03:00
Povilas Kanapickas
55972a3efa
genesys: Fix crash during testing mode
2020-04-11 15:20:29 +03:00
Povilas Kanapickas
f48f0bf7d1
genesys: Fix scan area size on OpticFilm 8200i and 7400
2020-04-10 01:14:22 +03:00
Povilas Kanapickas
11cace00a8
Merge branch 'genesys-warmup' into 'master'
...
genesys: Fix and enable lamp warmup before first scan
See merge request sane-project/backends!396
2020-04-09 21:13:27 +00:00
Povilas Kanapickas
33b6052790
Merge branch 'genesys-8600f-ta-position' into 'master'
...
genesys: Fix position of transparency area on 8600F
See merge request sane-project/backends!395
2020-04-09 21:11:29 +00:00
Povilas Kanapickas
5cbb9eaae5
Merge branch 'genesys-cleanup-device-init' into 'master'
...
genesys: Cleanup device initialization
See merge request sane-project/backends!394
2020-04-09 21:09:03 +00:00
Povilas Kanapickas
ea94970b6a
genesys: Enable lamp warmup on scanners that need it
2020-04-09 23:57:13 +03:00
Povilas Kanapickas
f22dd4d7b2
genesys: Move lamp to transparency adapter if needed during lamp warmup
2020-04-09 23:57:12 +03:00
Povilas Kanapickas
21d9079eb7
genesys: Invert meaning of ModelFlag::SKIP_WARMUP
2020-04-09 23:57:11 +03:00
Povilas Kanapickas
8b65356047
genesys: Fix calculation of averages during lamp warmup
2020-04-09 23:57:10 +03:00
Povilas Kanapickas
c2480ac064
genesys: Simplify calculation of warmup success criteria
2020-04-09 23:57:09 +03:00
Povilas Kanapickas
40cb193cc3
genesys: Fix debug messages during lamp warmup on 16-bit scans
2020-04-09 23:57:08 +03:00
Povilas Kanapickas
0ab6e78657
genesys: Compare all subsequent scans during lamp warmup
2020-04-09 23:57:07 +03:00
Povilas Kanapickas
fa594d965d
genesys: Correctly initialize warmup registers in transparency scans
2020-04-09 23:57:06 +03:00
Povilas Kanapickas
6420e00a38
genesys: Don't hardcode depth during warmup
2020-04-09 23:57:05 +03:00
Povilas Kanapickas
4586ae4e56
genesys: Increase consistency of lamp warmup handling
2020-04-09 23:57:04 +03:00
Povilas Kanapickas
15b664fa32
genesys: Fix position of transparency area on 8600F
2020-04-09 23:55:57 +03:00
Povilas Kanapickas
40b4852eb7
genesys: Remove unused argument out of sanei_genesys_asic_init
2020-04-09 23:53:30 +03:00
Povilas Kanapickas
0992b379c8
genesys: Remove unnecessary scan out of gl841 initialization code
2020-04-09 23:53:29 +03:00
Povilas Kanapickas
57b0873a83
genesys: Don't move scanner head forward on startup on gl843
2020-04-09 23:53:28 +03:00
Povilas Kanapickas
0d1542cbe6
genesys: Fix bcdDevice filtering
2020-04-09 23:50:48 +03:00
Povilas Kanapickas
bb318cf8f3
genesys: Simplify USB id retrieval
2020-04-09 23:50:47 +03:00
Povilas Kanapickas
13dffa0915
genesys: Defer evaluation of bcdDevice until open()
2020-04-09 23:50:46 +03:00
Povilas Kanapickas
0e8f9c935e
genesys: Correctly initialize test USB device
2020-04-09 23:50:45 +03:00
Povilas Kanapickas
db50c91132
genesys: Remove uses of sanei_genesys_get_address()
2020-04-05 06:19:38 +03:00
Povilas Kanapickas
0d5f5b54ed
genesys: Enable bcdDevice filtering
2020-04-01 20:57:01 +03:00
Povilas Kanapickas
54f3b8efd1
genesys: Add support for early version of Plustek OpticFilm 7600i
2020-04-01 20:57:00 +03:00
Povilas Kanapickas
bfd0b82d2b
genesys: Add support for Plustek OpticFilm 8100
2020-04-01 20:56:59 +03:00
Povilas Kanapickas
a2a121ab8c
genesys: Add support for late version of Plustek OpticFilm 7600i
2020-04-01 20:56:58 +03:00
Povilas Kanapickas
ea128674a6
genesys: Add support for early version of Plustek OpticFilm 7400
2020-04-01 20:56:57 +03:00
Povilas Kanapickas
4a1667865a
genesys: Add support for Plustek OpticFilm 7200 (v2)
2020-04-01 20:56:56 +03:00
Povilas Kanapickas
9698bfece7
genesys: Add support for matching devices by bcdDevice
2020-03-28 23:15:48 +02:00
Povilas Kanapickas
0bdce7928f
genesys: Turn Genesys_USB_Device_Entry into a class
2020-03-28 23:15:47 +02:00
Povilas Kanapickas
b89751605f
genesys: Add support for reading bcdDevice value
2020-03-28 23:15:46 +02:00
Povilas Kanapickas
7508a21741
Merge branch 'lide-210-220-4800dpi' into 'master'
...
genesys: Add 4800dpi support for Canon LiDE 210 & 220
Closes #204
See merge request sane-project/backends!374
2020-03-27 22:04:15 +00:00
Povilas Kanapickas
e592a0c6f2
genesys: Fix x position of scan window on Plustek 7400
2020-03-27 23:05:49 +02:00
Povilas Kanapickas
8068a958b2
genesys: Fix setup of motor vref on gl846
2020-03-27 21:29:30 +02:00
Povilas Kanapickas
982d7d18aa
genesys: Fix log message when device is not supported
2020-03-27 21:29:29 +02:00
Povilas Kanapickas
6cb39e0a29
genesys: Add support for Plustek Opticfilm 8200i
2020-03-27 21:29:28 +02:00
Povilas Kanapickas
adaac29d90
genesys: Add support for Plustek Opticfilm 7400
2020-03-27 21:29:27 +02:00
Povilas Kanapickas
ef67ab0835
genesys: Fix support for transparency scanners on gl846
2020-03-27 21:29:26 +02:00
Povilas Kanapickas
0fc25ed2d4
genesys: Fix motor setup on gl846
2020-03-27 21:29:25 +02:00
Povilas Kanapickas
c3d7a02b0c
genesys: Fix bulk data read from USB on gl845
2020-03-27 21:29:24 +02:00
Povilas Kanapickas
69bfaa7256
genesys: Print MotorId as string instead of a numeric id
2020-03-27 21:29:23 +02:00
Povilas Kanapickas
71c81423fe
genesys: Print GpioId as string instead of a numeric id
2020-03-27 21:29:22 +02:00
Povilas Kanapickas
40d0641940
genesys: Print AdcId as string instead of a numeric id
2020-03-27 21:29:21 +02:00
Povilas Kanapickas
75da1523b8
genesys: Print ScanSession::pixel_count_ratio when serializing to stream
2020-03-27 21:29:20 +02:00
Matthew Petroff
5c1643291a
genesys: Add 4800dpi support for Canon LiDE 220.
2020-03-24 21:40:10 -04:00
Matthew Petroff
93f6bb19a9
genesys: Simplify GL124 shading data segment iteration.
2020-03-24 21:40:10 -04:00
Matthew Petroff
74f2af604b
genesys: Add 4800dpi support for Canon LiDE 210.
...
Based on USB logs from Windows driver.
2020-03-24 21:40:10 -04:00
Povilas Kanapickas
ef583d54f2
genesys: Rename dpiset_override to register_dpiset
2020-03-21 00:11:32 +02:00
Povilas Kanapickas
5bcb5f3e80
genesys: Simplify shading resolution calculation on gl646
2020-03-21 00:11:31 +02:00
Povilas Kanapickas
c8c9deaf6d
genesys: Simplify dpiset calculation on gl646
2020-03-21 00:11:30 +02:00
Povilas Kanapickas
989782bd72
genesys: Simplify dpiset calculation on gl847
2020-03-21 00:11:29 +02:00
Povilas Kanapickas
a43d362b7b
genesys: Simplify dpiset calculation on gl845/gl846
2020-03-21 00:11:28 +02:00
Povilas Kanapickas
4a5f65d2d2
genesys: Verify that dpiset_override is specified
2020-03-21 00:11:27 +02:00
Povilas Kanapickas
94cfdbfdc6
genesys: Simplify dpiset calculation on gl843
2020-03-21 00:11:26 +02:00
Povilas Kanapickas
d9cd672a43
genesys: Simplify shading data upload on gl841
2020-03-21 00:11:25 +02:00
Povilas Kanapickas
459c62c131
genesys: Simplify dpiset calculation on gl841
2020-03-21 00:11:24 +02:00
Povilas Kanapickas
cce3cdeaab
genesys: Update all sensors with calibrated exposure on gl841
2020-03-21 00:11:23 +02:00
Povilas Kanapickas
38cf079e99
genesys: Simplify dpihw register setup on gl841
2020-03-21 00:11:22 +02:00
Povilas Kanapickas
692178eade
genesys: Simplify dpiset calculation on gl124
2020-03-21 00:11:21 +02:00
Povilas Kanapickas
79e403bb89
genesys: Simplify register setup on gl841
2020-03-21 00:11:20 +02:00
Povilas Kanapickas
f1368cb34c
genesys: Add comments with asic types of sensors to the sensor tables
2020-03-21 00:11:19 +02:00
Povilas Kanapickas
127e56978c
genesys: Remove dead code in gl841 sensor setup impl
2020-03-21 00:11:18 +02:00
Povilas Kanapickas
8808fe7779
genesys: Remove no longer used logical_dpihw_override
2020-03-21 00:11:17 +02:00
Povilas Kanapickas
1e116f1223
genesys: Verify that sensor tables are setup correctly
2020-03-21 00:03:47 +02:00
Povilas Kanapickas
4cc233cde8
genesys: Add missed settings for HP N6310
2020-03-21 00:03:46 +02:00
Povilas Kanapickas
eb5a643c0a
genesys: Rename register_dpihw_override to register_dpihw
2020-03-21 00:03:45 +02:00
Povilas Kanapickas
c24886d7d7
genesys: Remove no longer used hwdpi calculation functions
2020-03-21 00:03:44 +02:00
Povilas Kanapickas
815d36c9c3
genesys: Simplify shading resolution computation
2020-03-21 00:03:43 +02:00
Povilas Kanapickas
163776a479
genesys: Simplify dpihw and shading resolution calculation on gl841
2020-03-21 00:03:42 +02:00
Povilas Kanapickas
88989a1616
genesys: Pass resolution setting to sanei_genesys_set_dpihw() directly
2020-03-21 00:03:41 +02:00
Povilas Kanapickas
2547f681f3
genesys: Remove no longer used ModelFlag::FULL_HWDPI_MODE
2020-03-21 00:03:40 +02:00
Povilas Kanapickas
fd90ddefdc
genesys: Simplify motor setup to use only model id for vref on gl843
2020-03-21 00:03:39 +02:00
Povilas Kanapickas
ca3ae12acf
genesys: Simplify sensor setup to use only model id on gl843
2020-03-21 00:03:38 +02:00
Povilas Kanapickas
2d7758f5f2
genesys: Simplify dpihw calculation on gl843
2020-03-21 00:03:37 +02:00
Povilas Kanapickas
cf4ce94fc4
genesys: Simplify computation of SHDAREA setting on gl843
2020-03-21 00:03:36 +02:00
Povilas Kanapickas
0fca1185f5
genesys: Simplify shading resolution computation on gl843
2020-03-21 00:03:35 +02:00
Povilas Kanapickas
f06238c97c
genesys: Simplify shading resolution computation on gl847
2020-03-21 00:03:34 +02:00
Povilas Kanapickas
3f6dcf84fe
genesys: Simplify shading resolution computation on gl846
2020-03-21 00:03:33 +02:00
Povilas Kanapickas
0c0b484728
genesys: Simplify dpihw calculation on gl846
2020-03-21 00:03:32 +02:00
Povilas Kanapickas
dd16101d44
genesys: Simplify dpihw calculation on gl847
2020-03-21 00:03:31 +02:00
Povilas Kanapickas
a41ffe3c33
genesys: Simplify motor setup on gl846
2020-03-21 00:03:30 +02:00
Povilas Kanapickas
fe8ffefe1b
genesys: Simplify lamp warmup setup on gl843
2020-03-21 00:03:29 +02:00
Povilas Kanapickas
3c8b103d82
genesys: Simplify shading resolution computation on gl124
2020-03-21 00:03:28 +02:00
Povilas Kanapickas
c0a94b9288
genesys: Simplify dpihw calculation on gl124
2020-03-21 00:03:27 +02:00
Povilas Kanapickas
028c9d398f
genesys: Simplify calculation of shading upload parameters on gl845/846
2020-03-21 00:03:26 +02:00
Povilas Kanapickas
6e3713c87d
genesys: Simplify calculation of shading upload parameters on gl847
2020-03-21 00:03:25 +02:00
Povilas Kanapickas
e54f15bcc8
genesys: Simplify calculation of shading upload parameters on gl124
2020-03-21 00:03:24 +02:00
Povilas Kanapickas
94efec957e
genesys: No longer specify per-sensor hwdpi divisor
2020-03-20 23:29:10 +02:00
Povilas Kanapickas
5a106f9e9c
genesys: Remove remaining uses of hwdpi_divisor
2020-03-20 23:29:09 +02:00
Povilas Kanapickas
31d5382b2b
genesys: Don't use hwdpi_divisor for motor vref computation
2020-03-20 23:29:08 +02:00
Povilas Kanapickas
ceb13f77d7
genesys: Simplify physical pixel count computation on gl843
2020-03-20 23:29:07 +02:00
Povilas Kanapickas
f34176edf2
genesys: Simplify physical pixel count computation on gl845
2020-03-20 23:29:06 +02:00
Povilas Kanapickas
5807e5d298
genesys: Simplify physical pixel count computation on gl846
2020-03-20 23:29:05 +02:00
Povilas Kanapickas
a1f10bf2bc
genesys: Simplify physical pixel count computation on gl847
2020-03-20 23:29:04 +02:00
Povilas Kanapickas
576d1fcdba
genesys: Simplify physical pixel count computation on gl124
2020-03-20 23:29:03 +02:00
Povilas Kanapickas
e2fc129b56
genesys: Make handling of stagger more uniform across chipsets
2020-03-20 23:29:02 +02:00
Povilas Kanapickas
75d227f9c4
genesys: Represent pixel count ratio as a class
2020-03-20 23:29:01 +02:00
Povilas Kanapickas
b2b569a743
genesys: Add a way to override pixel coordinate divisor
2020-03-20 23:29:00 +02:00
Povilas Kanapickas
559b2e314f
genesys: Make handling of hwdpi_divisor uniform across chipsets
2020-03-20 23:28:59 +02:00
Povilas Kanapickas
3da269b7de
genesys: Use common code path for memory layouts
2020-03-14 23:19:38 +02:00
Povilas Kanapickas
718550e2d4
genesys: Add a way to flush GenesysRegisterSettingSet without read back
2020-03-14 23:19:37 +02:00
Povilas Kanapickas
cb442169e4
genesys: Implement a way to serialize ModelId
2020-03-14 23:19:36 +02:00
Povilas Kanapickas
c1d4369410
genesys: Reuse generic value filtering code for scan method filtering
2020-03-14 23:19:35 +02:00
Povilas Kanapickas
c234ce6b77
genesys: Add generic value filter class for resolutions filtering
2020-03-14 23:19:34 +02:00
Povilas Kanapickas
ee2e026f2a
genesys: Don't overwrite RAM settings
2020-03-14 23:19:33 +02:00
Povilas Kanapickas
ea5047466c
genesys: Reuse common gpio code on gl846
2020-03-14 23:19:32 +02:00
Povilas Kanapickas
31fecb8140
genesys: Clean up motor setup on gl847
2020-03-14 23:19:31 +02:00
Povilas Kanapickas
b307eba5cc
genesys: Clean up motor setup on gl846
2020-03-14 23:19:30 +02:00
Povilas Kanapickas
884de5f9fe
genesys: Clean up motor setup on gl843
2020-03-14 23:19:29 +02:00
Povilas Kanapickas
cd43109966
genesys: Deduplicate gain calibration
2020-03-14 23:19:28 +02:00
Povilas Kanapickas
233cb4bd5a
genesys: Use single code path for gain code calculation
2020-03-14 23:19:27 +02:00
Povilas Kanapickas
e0bec6723d
genesys: Deduplicate offset calibration
2020-03-14 23:19:26 +02:00
Povilas Kanapickas
255da97fcb
genesys: Remove get_closest_resolution()
...
All gl646 scanners have sensors for all supported resolutions
2020-03-14 23:19:25 +02:00
Povilas Kanapickas
428293c1e2
genesys: Reflow sensor tables
2020-03-14 23:19:24 +02:00
Povilas Kanapickas
d8f09656b2
genesys: Deduplicate strip searching functionality
2020-02-22 11:02:57 +02:00
Povilas Kanapickas
5854246e88
genesys: Remove duplicate way to retrieve register dpihw
2020-02-22 11:02:56 +02:00
Povilas Kanapickas
01bd9b3cb2
genesys: Use register_dpihw_override to override dpihw
2020-02-22 11:02:55 +02:00
Povilas Kanapickas
4da92aaa50
genesys: Reuse scanner_clear_scan_and_feed_counts()
2020-02-22 11:02:54 +02:00
Povilas Kanapickas
8735e965ee
genesys: Reduce duplication in init_regs_for_scan()
2020-02-22 11:02:53 +02:00
Povilas Kanapickas
e0d7d74cdd
genesys: Inline sanei_gl841_repark_head()
2020-02-22 11:02:52 +02:00
Povilas Kanapickas
0d0c9f76b4
Merge branch 'genesys-remove-search-start' into 'master'
...
genesys: Remove start search functionality
See merge request sane-project/backends!342
2020-02-22 14:18:04 +00:00
Povilas Kanapickas
37297fdad3
genesys: Simplify definitions of x_size_calib_mm
2020-02-22 10:48:27 +02:00
Povilas Kanapickas
9d7aa61544
genesys: Define the width of the sensor in mm instead of pixels
2020-02-22 10:48:26 +02:00
Povilas Kanapickas
793703c93e
genesys: Update scan geometry on ScanJet 2300
2020-02-22 10:28:19 +02:00
Povilas Kanapickas
6653ec0ae6
genesys: Remove support for shading calibration without moving
2020-02-22 10:28:18 +02:00
Povilas Kanapickas
2cf05553c0
genesys: Remove no longer used code related to start position search
2020-02-22 10:28:17 +02:00
Povilas Kanapickas
5f8129b2d0
genesys: Disable SEARCH_START on gl646 scanners
2020-02-22 10:28:16 +02:00
Povilas Kanapickas
511969ded0
genesys: Remove dead code on gl841
2020-02-22 10:28:15 +02:00
Povilas Kanapickas
94ab4e2891
genesys: Fix shading calibration start position on 4400F
2020-02-21 22:40:34 +02:00
Povilas Kanapickas
fa9f5370b2
genesys: Turn off offset calibration on 4400F
2020-02-21 22:40:15 +02:00
Povilas Kanapickas
4c395182be
genesys: Remove no longer used coarse calibration ced path
2020-02-17 00:49:14 +02:00
Povilas Kanapickas
9e3bf1e1e2
genesys: Remove OFFSET_CALIBRATION as it's used on all scanners
2020-02-17 00:49:13 +02:00
Povilas Kanapickas
fff3959281
genesys: Increase low-brightness gain threshold
2020-02-16 10:46:19 +02:00
Povilas Kanapickas
88d9c08645
genesys: Use scanner_move() on gl841
2020-02-16 10:46:18 +02:00
Povilas Kanapickas
4261549e2d
genesys: Use separate settings for dark-white calibration area geometry
2020-02-16 10:46:17 +02:00
Povilas Kanapickas
aaf8a2fd49
genesys: Simplify model table by not definition optional fields
2020-02-16 10:46:16 +02:00
Povilas Kanapickas
4a11453b06
genesys: Use matching xdpi and ydpi when calibrating shading on gl841
2020-02-16 10:46:15 +02:00
Povilas Kanapickas
300bd3e645
genesys: Fix incorrect calibration position due to rounding on gl841
2020-02-16 10:46:14 +02:00
Povilas Kanapickas
63adf8eb80
genesys: Fix geometry of calibration strip on LiDE 60
2020-02-16 10:46:13 +02:00
Povilas Kanapickas
1e817987aa
genesys: Fix geometry of calibration strip on LiDE 50
2020-02-16 10:46:12 +02:00
Povilas Kanapickas
dcd5982de1
genesys: Improve LiDE 200 motor tables to fix lock-ups
2020-02-16 10:46:11 +02:00
Povilas Kanapickas
38b921e844
genesys: Improve LiDE 100 motor tables to fix lock-ups
2020-02-16 10:46:10 +02:00
Povilas Kanapickas
55000d82ac
genesys: Simplify shading line calculation by defining distance in mm
2020-02-16 10:46:09 +02:00
Povilas Kanapickas
1a55cc99e4
genesys: Don't ignore stagger or color offsets when acquiring calib data
2020-02-16 10:46:08 +02:00
Povilas Kanapickas
3f313376a7
genesys: Remove unnecessary register write during init on gl843
2020-02-16 10:41:30 +02:00
Povilas Kanapickas
b70b305d27
genesys: Use fast motor tables on all gl843 models
2020-02-16 10:41:29 +02:00
Povilas Kanapickas
2a3d5150cb
genesys: Simplify handling of fe register writes on gl843
2020-02-16 10:41:28 +02:00
Povilas Kanapickas
5b9aad649e
genesys: Stop scanner after moving head on gl843
2020-02-16 10:41:27 +02:00
Povilas Kanapickas
498b52fe98
genesys: Use same buffer and gamma write method on all chipsets
2020-02-16 10:41:26 +02:00
Povilas Kanapickas
aca291906c
genesys: Remove unused debug code
2020-02-16 10:41:25 +02:00
Povilas Kanapickas
dcfa45c5cd
genesys: Move gamma address reset to scanner interface on gl843
2020-02-16 10:41:24 +02:00
Povilas Kanapickas
9eb13d5a10
genesys: Remove reads from registers that are immediately overwritten
2020-02-16 10:41:23 +02:00
Povilas Kanapickas
7619e95eae
genesys: Cleanup progress message setup during calibration
2020-02-16 10:41:22 +02:00
Povilas Kanapickas
5375699260
genesys: Use same method to clear scan and feed counts
2020-02-16 10:41:21 +02:00
Povilas Kanapickas
de7375c7bb
genesys: Remove legacy buffer handling code
2020-02-16 10:41:20 +02:00
Povilas Kanapickas
000b28dd30
genesys: Only ensure full exposure value is nonzero, not each byte
2020-02-16 10:41:19 +02:00
Povilas Kanapickas
ddd72058b6
genesys: Reuse sanei_genesys_fixup_exposure()
2020-02-16 10:41:18 +02:00
Povilas Kanapickas
b2d378d413
genesys: Make sure we don't set exposure to zero
2020-02-16 10:41:17 +02:00
Povilas Kanapickas
054a73c02c
genesys: Fix calculation of secondary head position on gl843
2020-02-16 10:41:16 +02:00
Povilas Kanapickas
b8fbdd346a
genesys: Fix incorrect register definition on Canon 8600F
2020-02-16 10:41:15 +02:00
Povilas Kanapickas
51b09eec5c
genesys: Don't set powersaving when setting cache expiration time
2020-02-16 10:41:14 +02:00
Povilas Kanapickas
9bb7ed64b6
genesys: Fix initialization of shading data when scanning in gray mode
2020-02-16 10:41:13 +02:00
Povilas Kanapickas
6ab142155c
genesys: Correctly shutdown lamp on OpticFilm 7200i
2020-02-16 10:41:12 +02:00
Povilas Kanapickas
b78ea29130
genesys: Don't try to turn off XPA lamp when shutting down regular lamp
2020-02-16 10:41:11 +02:00
Povilas Kanapickas
2b584095ad
genesys: Remove no longer needed head movement workaround for LiDE 210
2020-02-16 10:41:10 +02:00
Povilas Kanapickas
883114f722
genesys: Use similar scan session for head movements
2020-02-16 10:41:09 +02:00
Povilas Kanapickas
b54d12bc4d
genesys: Define SetupParams::startx in terms of xres
2020-02-16 10:41:08 +02:00
Povilas Kanapickas
2428efd6af
genesys: Fix host-side calibration when scan start position is not zero
2020-02-15 14:12:44 +02:00
Povilas Kanapickas
6e7fc639f5
genesys: Add initial support for transparency on 4400F
2020-02-15 14:12:43 +02:00
Povilas Kanapickas
aec9d74845
genesys: Improve 4400F motor tables
2020-02-15 14:12:42 +02:00
Povilas Kanapickas
207f67e303
genesys: Use fast tables on 4400F
2020-02-15 14:12:41 +02:00
Povilas Kanapickas
a1e292b8e3
genesys: Reflow sensor tables to take less space
2020-02-15 14:12:40 +02:00
Povilas Kanapickas
b2ebbba41a
genesys: Move host-side calibration setting to the sensor
2020-02-15 14:12:39 +02:00
Povilas Kanapickas
294db2a616
genesys: Fix host-side calibration when calibration data is shifted
2020-02-14 19:08:30 +02:00
Povilas Kanapickas
7f454b3e0e
genesys: Observe DISABLE_SHADING flag during host-side calibration
2020-02-10 06:28:35 +02:00
Luiz Angelo Daros de Luca
e1934720c6
genesys: fix bigendian build
...
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2020-02-02 21:19:27 -03:00
Povilas Kanapickas
dc082d9066
genesys: Add a note about calibration size calculation
2020-02-03 01:00:49 +02:00
Povilas Kanapickas
9a142d6acc
genesys: Remove uses of calib_total_bytes_to_read
2020-02-03 01:00:49 +02:00
Povilas Kanapickas
328f39e39e
genesys: Remove uses of calib_lines
2020-02-03 01:00:49 +02:00
Povilas Kanapickas
53d51a6537
genesys: Fix wrong line count computation on gl646
...
It actually does not matter, because we overwrite LINCNT below anyway
and don't use any information affected by this variable when computing
how much data to retrieve.
2020-02-03 01:00:49 +02:00
Povilas Kanapickas
26eec0ba57
genesys: Remove uses of calib_channels
2020-02-03 01:00:47 +02:00
Povilas Kanapickas
9ddc64826c
genesys: Remove uses of calib_resolution
2020-02-03 01:00:36 +02:00
Povilas Kanapickas
10fb42cd68
genesys: Use calib_session to retrieve pixel counts
2020-02-03 01:00:34 +02:00
Povilas Kanapickas
87b2713628
genesys: Implement serialization of ScanSession
2020-02-03 00:41:59 +02:00
Povilas Kanapickas
fe02dc36d8
genesys: Implement comparison of ScanSession
2020-02-03 00:41:58 +02:00
Povilas Kanapickas
9b1fe59c2a
genesys: Set calib_session on all chipsets
2020-02-03 00:41:57 +02:00
Povilas Kanapickas
3b27241e07
genesys: Remove no longer needed conversions to single precision float
2020-02-03 00:41:56 +02:00
Povilas Kanapickas
325aba25f1
genesys: Use float to store tl_x and tl_y scan settings
2020-02-03 00:41:55 +02:00
Povilas Kanapickas
0a49fa10ee
genesys: Extract register initialization out of init_regs_for_shading()
2020-02-03 00:41:54 +02:00
Povilas Kanapickas
c1791e6c83
genesys: Pass the register set to modify to init_regs_for_scan()
2020-02-03 00:41:53 +02:00
Povilas Kanapickas
5fb5da4f78
genesys: Remove duplicate way to check for transparency support
2020-02-03 00:41:52 +02:00
Povilas Kanapickas
4cfc150bdc
genesys: Add a way to check whether a model supports scan method
2020-02-03 00:41:51 +02:00
Povilas Kanapickas
cce5e21829
genesys: Remove several unnecessary initializations of dev->initial_regs
2020-02-02 18:45:32 +02:00
Povilas Kanapickas
32041bc7fe
genesys: Rename calib_reg to initial_regs
2020-02-02 18:45:31 +02:00
Povilas Kanapickas
16e8ca3511
genesys: Don't modify calib_reg when calibrating
2020-02-02 18:45:30 +02:00
Povilas Kanapickas
86fe2f5f6d
genesys: Move modification of calib_reg out of shading reg init on gl646
2020-02-02 18:45:29 +02:00
Povilas Kanapickas
87473910cf
genesys: Use regular registers when computing what coefficient to send
2020-02-02 18:45:28 +02:00
Povilas Kanapickas
8e4c332ea6
genesys: Pass registers from callers to shading calibration
2020-02-02 18:45:27 +02:00
Povilas Kanapickas
2a3ae40d8d
genesys: Pass registers from callers to dark-white shading calibration
2020-02-02 18:45:26 +02:00
Povilas Kanapickas
25f097b445
genesys: Pass registers from callers in coarse calibration
2020-02-02 18:45:25 +02:00
Povilas Kanapickas
d80db65c58
genesys: Move writing to registers to coarse calibration functions
2020-02-02 18:45:24 +02:00
Povilas Kanapickas
b1b57026dd
genesys: Move writing to registers to calibration functions
2020-02-02 18:45:23 +02:00
Povilas Kanapickas
dff52ad713
genesys: Don't write registers in init_regs_for_warmup()
2020-02-02 18:45:22 +02:00
Povilas Kanapickas
55e3200158
genesys: Don't write registers in init_regs_for_coarse_calibration()
2020-02-02 18:45:21 +02:00
Povilas Kanapickas
bdc671b58b
genesys: Don't perform register writes in init_regs_for_shading()
2020-02-02 18:45:20 +02:00
Povilas Kanapickas
9fc3b38a9b
genesys: Use fixed float utilities instead of SANE_{FIX,UNFIX}
2020-02-02 15:23:21 +02:00
Povilas Kanapickas
7ee775e983
genesys: Remove the FixedFloat class
2020-02-02 15:23:20 +02:00
Povilas Kanapickas
62c6959df4
genesys: Add utilities for fixed floats
2020-02-02 15:23:19 +02:00
Povilas Kanapickas
e59401ed6b
genesys: Move model flags to a separate enum
2020-02-02 14:08:52 +02:00
Povilas Kanapickas
de10ace2e6
genesys: Remove invalid usage of GENESYS_HAS_NO_BUTTONS
2020-02-02 14:08:51 +02:00
Povilas Kanapickas
1c3d1e25ec
genesys: Remove unused model flags
2020-02-02 14:08:50 +02:00
Povilas Kanapickas
9e9bbb5a80
Merge branch 'genesys-improve-debug' into 'master'
...
genesys: Improve debug output slightly
See merge request sane-project/backends!324
2020-02-02 11:29:04 +00:00
Povilas Kanapickas
fee5b7e04f
genesys: Condense SetupParams debug dump output
2020-02-02 13:11:49 +02:00
Povilas Kanapickas
9d7f7abdcd
genesys: Remove extraneous debugging information
2020-02-02 13:11:48 +02:00
Povilas Kanapickas
9d1788cf5d
genesys: Fix loss of precision in during active area offset calibration
2020-02-02 13:08:50 +02:00
Povilas Kanapickas
91d9d8b2dc
genesys: Fix incorrect resolution being used in active area calibration
2020-02-02 13:08:49 +02:00
Povilas Kanapickas
6bbdb7afc8
genesys: Extract function to enable active area shading
2020-02-02 13:08:48 +02:00
Povilas Kanapickas
6e2e885ec5
genesys: Use same step type in motor tables on 8600F
2020-02-01 23:28:24 +02:00
Povilas Kanapickas
06cee81dbe
genesys: Fix incorrect selection of step type for fast table on gl843
2020-02-01 23:28:23 +02:00
Povilas Kanapickas
ac5e086eb7
genesys: Improve motor tables on 8400F
2020-02-01 16:58:35 +02:00
Povilas Kanapickas
d19e48d5ab
genesys: Improve motor tables on OpticFilm 7500i
2020-02-01 14:23:04 +02:00
Povilas Kanapickas
f3f0143500
genesys: Improve motor tables on OpticFilm 7300
2020-02-01 14:23:03 +02:00
Povilas Kanapickas
8b3b85c160
genesys: Improve motor tables on OpticFilm 7200i
2020-02-01 14:23:02 +02:00
Povilas Kanapickas
0b75ffdf36
genesys: Improve motor tables on 8400F
2020-02-01 14:23:01 +02:00
Povilas Kanapickas
6d15a0da5a
genesys: Improve motor tables on 8600F
2020-02-01 14:23:00 +02:00
Povilas Kanapickas
6f9a3cfa2c
Merge branch 'genesys-improve-motor-support' into 'master'
...
genesys: Improve motor support
See merge request sane-project/backends!318
2020-01-31 22:58:52 +00:00
Povilas Kanapickas
a5d63baf3d
genesys: Implement support for fast movement curves in the motor table
2020-01-31 20:13:18 +02:00
Povilas Kanapickas
91d5235d4b
genesys: Make get_motor_profile* reusable for different profile sets
2020-01-31 20:13:17 +02:00
Povilas Kanapickas
247a6b7882
genesys: Add support for per-resolution or per-method motor profiles
2020-01-31 20:13:16 +02:00
Povilas Kanapickas
479718a6b5
genesys: Add motor vref to motor profiles
2020-01-31 20:13:15 +02:00
Povilas Kanapickas
002d2ff2db
genesys: Use motor profiles from motor tables
2020-01-31 20:13:14 +02:00
Povilas Kanapickas
e5e8ea3d3f
genesys: Add motor profile information to motors table
2020-01-31 20:13:13 +02:00
Povilas Kanapickas
879587f303
genesys: Rename Genesys_Motor::{get_slope -> get_slope_with_step_type}
2020-01-31 20:13:12 +02:00
Povilas Kanapickas
7dca191b14
genesys: Merge chip-specific motor tables into one
2020-01-31 20:13:11 +02:00
Povilas Kanapickas
2d0fc3ce55
genesys: Don't rely on motor profile fallbacks
2020-01-31 20:13:10 +02:00
Povilas Kanapickas
99fde7b12e
genesys: Slightly tweak X TA offset on 8600F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
0c84e1951a
genesys: Fix incorrect X TA offset on 8600F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
9c10d59ce8
genesys: Fix 3200 dpi flatbed support on 8400F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
b9a4054775
genesys: Fix sensor tables on 8400F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
15bbc3d0b3
genesys: Rewrap sensor settings for 8400F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
0abb83ead4
genesys: Fix incorrect number of sensor pixels on 8400F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
75b2bd6445
genesys: Fix incorrect calculation of X offsets on 8400F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
8532e63194
genesys: Fix incorrect calculation of X offsets on 8600F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
1748e625f0
genesys: Fix recovery from interrupted transparency scans on 8600F
2020-01-25 15:11:45 +02:00
Povilas Kanapickas
0a7813177b
genesys: Reduce code duplication in gl841 session setup code
2020-01-25 11:28:30 +02:00
Povilas Kanapickas
374578abce
genesys: Reduce code duplication in gl843 session setup code
2020-01-25 11:28:29 +02:00
Povilas Kanapickas
8d07515bea
Merge branch 'genesys-refactor-motor-handling' into 'master'
...
genesys: Refactor motor handling
See merge request sane-project/backends!308
2020-01-12 19:26:35 +00:00
Povilas Kanapickas
c5f397e778
genesys: Extract handle_motor_position_after_hove_back_home_ta()
2020-01-12 10:57:11 +02:00
Povilas Kanapickas
e8e56e33d3
genesys: Make XPA motor mode handling more generic
2020-01-12 10:57:10 +02:00
Povilas Kanapickas
23f3f80e38
genesys: Remove duplicate head position reset
2020-01-12 10:57:09 +02:00
Povilas Kanapickas
645820bc4d
genesys: Improve set_head_pos_unknown() to set status per head
2020-01-12 10:57:08 +02:00
Povilas Kanapickas
a676810f5d
genesys: Implement function to apply settings with backup
2020-01-12 10:57:07 +02:00
Povilas Kanapickas
05978e1c8b
genesys: Move *_set_xpa_lamp_power() to common command set
2020-01-12 10:57:06 +02:00
Povilas Kanapickas
cbb3d98e83
genesys: Move *_set_xpa_motor_power() to common command set
2020-01-12 10:57:05 +02:00
Povilas Kanapickas
3753716e04
genesys: Add a class to move common command set functions to
2020-01-12 10:57:04 +02:00
Povilas Kanapickas
8b129b32ff
genesys: Simplify handling of xpa motor state on gl843
2020-01-12 10:57:03 +02:00
Ralph Little
c4a88e6bf4
genesys: renamed HP ScanJet 3670C to 3670. Model has no C suffix
2020-01-07 22:52:14 -08:00
Ralph Little
88ea0d48e7
genesys: added 50dpi to HP ScanJet 3670 backend
...
Windows driver supports 50dpi as the lowest mode.
2020-01-07 22:36:09 -08:00
Povilas Kanapickas
45952fdd69
genesys: Reduce duplication of scanner read methods on gl847
2020-01-04 12:09:29 +02:00
Povilas Kanapickas
8bd8174cc9
genesys: Reduce duplication of scanner read methods on gl846
2020-01-04 12:09:28 +02:00
Povilas Kanapickas
d74c4b6b68
genesys: Reduce duplication of scanner read methods on gl841
2020-01-04 12:09:27 +02:00
Povilas Kanapickas
67d3c134a9
genesys: Reduce duplication of scanner read methods on gl124
2020-01-04 12:09:26 +02:00
Povilas Kanapickas
c39cb0d4b9
genesys: Fix definition of session's output_segment_pixel_group_count
2020-01-04 12:09:25 +02:00
Povilas Kanapickas
2269e05fac
genesys: Fix pipeline setup in read_unshuffled_image_from_scanner()
2020-01-04 12:09:24 +02:00
Povilas Kanapickas
8d2081cda8
genesys: Deduplicate calculation of scan line count
2020-01-04 12:09:23 +02:00
Povilas Kanapickas
b5b50758f5
genesys: Remove out of date note
2020-01-04 12:09:22 +02:00
Povilas Kanapickas
eb45a1b709
genesys: Handle segmented sensors in read_unshuffled_image_from_scanner
2020-01-04 12:09:21 +02:00
Povilas Kanapickas
444f25b96f
genesys: Remove duplicate computations of line length
2020-01-04 12:09:20 +02:00
Povilas Kanapickas
53efe5822d
genesys: Remove excessive debug logs during data read
2019-12-26 17:13:34 +02:00