Wykres commitów

757 Commity (c86564a3e39c5407c770dca48ce37dee3c142b3c)

Autor SHA1 Wiadomość Data
Povilas Kanapickas c86564a3e3 genesys: Remove unsupported 75 and 100 dpi resolutions on LiDE 100 2021-12-28 02:49:58 +02:00
Povilas Kanapickas f5d5928346 genesys: Log the target motor speed in case it can't be acquired 2021-12-28 02:49:57 +02:00
Povilas Kanapickas 75ac76f87a genesys: Remove unneeded per-scanner register setup
These register values are overwritten later.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas f06e507de7 genesys: Fixed offset calibration on certain gl841 devices 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 334e4bd8d1 genesys: Use consistent initial exposure for led calibration on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas af175f6d4c genesys: Fix inconsistent exposure values in led calib in testing mode 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 3e9431d079 genesys: Ensure sensor exposure is up-to-date when scanning on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas c11a0e7ab6 genesys: Reuse gl124 led calibration acceptability criteria for gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas d19ccd2fad genesys: Remove no longer used led calibration fallback code on gl841
This was used only on scanners which did not have calibration target
intensity value. All gl841 scanners now have such setting, so the code
can be removed.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas e540778cfa genesys: Specify target white level for all gl841 devices 2021-12-27 22:39:19 +02:00
Povilas Kanapickas c1f731a7e0 genesys: Remove duplicate register write during led calibration on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas f1910ae58c genesys: Reset registers after move during led calibration on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 86fe51e224 genesys: Remove erroneous register write on LiDE 80 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 0f341bf5a0 genesys: Clean up exposure calibration on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 4ee36a2e31 genesys: Use more robust gain calibration on gl841 2021-12-27 22:39:19 +02:00
Povilas Kanapickas bbc1543525 genesys: Remove duplicate register writes in gl841 calibration 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 675497fcd8 genesys: Use host-side gray instead of device-side true-gray on gl841
True gray mode is not handled correctly by devices: they have bugs that
lead to incorrect LED color being emitted (e.g. dark red) and thus this
feature is completely unusable. At least LiDE 35/40/50, LiDE 60 and LiDE
80 are affected.

Simpy disabling true-gray unfortunately leads to even worse outcome
because the scanner then simply proceeds to perform a color scan.

To work around these problems we do a normal color scan and then produce
gray output based on the color data. This will satisfy the use cases
when correct gray is needed. In cases when it is sufficient to construct
gray from a single color channel, the color filter setting could be
used.
2021-12-27 22:39:19 +02:00
Povilas Kanapickas 7bbb6d8fdb genesys: Implement host-side gray support 2021-12-27 22:39:19 +02:00
Povilas Kanapickas 2f030f04e2 genesys: Implement image pipeline for merging color channels to gray 2021-12-27 22:22:44 +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 1e75025048 genesys: Fix incorrect scan exposure setup on gl841
When sensor exposure values are significantly different from each other
the total scan exposure will be too low leading to the device becoming
confused and significantly
2021-12-27 22:22:44 +02:00
Povilas Kanapickas 601705fa3a genesys: Inline gl841_get_led_exposure() 2021-12-27 22:22:44 +02:00
Povilas Kanapickas 6c0fafac79 genesys: Remove broken two-table feeding support from gl841
At least on LiDE 50 two-table feeding caused unexplained motor spin-up
failures on certain motor exposures. Various register modifications
showed that there's high likelihood on device-side bug. Even the
official drivers don't use proper two-table feeding.
2021-12-27 22:22:44 +02:00
Povilas Kanapickas e27d991fdf genesys: Remove unused two-table feeding support from gl847 2021-12-27 22:22:44 +02:00
Povilas Kanapickas d4dc13f527 genesys: Remove unused two-table feeding support from gl846 2021-12-27 22:22:44 +02:00
Povilas Kanapickas 137a2d676f genesys: Remove unused two-table feeding support from gl124 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 7c76892b98 genesys: Remove empty file 2021-12-26 16:09:16 +02:00
Povilas Kanapickas 3752d11c34 genesys: Wrap very long lines 2021-12-26 16:09:15 +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
Povilas Kanapickas bf4614b76e genesys: Store contrast and brightness adjustments in session params 2021-12-26 14:53:14 +02:00
Povilas Kanapickas ea0e57a05e genesys: Improve gray scan quality on LiDE 110
The fix has been suggested by Matthew Petroff <matthew@mpetroff.net>
2021-12-25 03:06:29 +02:00
Povilas Kanapickas 8ceb1dde8d genesys: Improve gray scan quality on LiDE 120
The fix has been suggested by Matthew Petroff <matthew@mpetroff.net>
2021-12-25 03:06:28 +02:00
Povilas Kanapickas 711a3c5c14 genesys: Improve gray scan quality on LiDE 210
The fix has been suggested by Matthew Petroff <matthew@mpetroff.net>
2021-12-25 03:06:27 +02:00
Povilas Kanapickas 723eaa5917 genesys: Improve gray scan quality on LiDE 220
The fix has been suggested by Matthew Petroff <matthew@mpetroff.net>
2021-12-25 03:06:26 +02:00
Povilas Kanapickas bd0f15f585 genesys: Move gl124 0x0c reg definition to sensor tables 2021-12-25 03:06:25 +02:00
Ralph Little bfa3e39de2 Merge branch 'scanjet_g4010' into 'master'
Updated button support for HP Scanjet G4010

See merge request sane-project/backends!622
2021-12-16 05:00:36 +00:00
Povilas Kanapickas 75801bffd3 genesys: Address wrong indentation warning
This is separate commit because the previous commit introducing this
warning is completely unrelated and would not benefit from this change
being included.
2021-12-15 23:59:28 +02:00
Ralph Little 8347191b5f genesys: Added transparency button option
This is introduced primarily for the ScanJet G4010 which has "Scan Film"
buttons.
2021-12-15 23:59:28 +02:00
Ralph Little fa414e46b1 genesys: updated button support for HP Scanjet G4010 2021-12-15 23:59:28 +02:00
Peter Seiderer 1db13a713f genesys: fix gcc-4.8 compile
Fixes:

  genesys/utilities.h:229:23: error: invalid initialization of non-const reference of type 'std::basic_ios<char>&' from an rvalue of type '<brace-enclosed initializer list>'
           stream_{stream}
                         ^
  genesys/image_pipeline.cpp:715:19: error: invalid initialization of non-const reference of type 'genesys::ImagePipelineNode&' from an rvalue of type '<brace-enclosed initializer list>'
       source_{source}
                     ^

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
2021-12-15 23:56:23 +02:00
Ralph Little 9a0fa0da86 Merge branch '231-canon-lide-120-wrong-size-with-y-x-after-update-to-sane-backends-1-0-28-1078-g5747ffa9' into 'master'
Resolve "Canon LiDE 120: wrong size with -y -x after update to sane-backends 1.0.28-1078-g5747ffa9"

Closes #231

See merge request sane-project/backends!423
2021-07-17 22:40:54 +00:00
Ralph Little 730e4ada37 genesys: fixed indentation again.
Hopefully, I will get it right this time. Uses 4 space indents rather
than 2 as used elsewhere in the code base.
2021-04-07 09:06:39 -07:00
Ralph Little 5702046a9c genesys: fix indentation 2021-04-07 09:01:29 -07:00
Ralph Little 7ce23d05e2 genesys: ensure that vector ptr is initialized 2021-04-06 08:41:41 -07:00
Peter Seiderer 691d774f75 genesys: use usleep instead of std::this_thread::sleep_for to re-enable thread less compile
Fixes:

  genesys/scanner_interface_usb.cpp: In member function ‘virtual void genesys::ScannerInterfaceUsb::sleep_us(unsigned int)’:
  genesys/scanner_interface_usb.cpp:484:10: error: ‘std::this_thread’ has not been declared
    484 |     std::this_thread::sleep_for(std::chrono::microseconds{microseconds});
        |          ^~~~~~~~~~~

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
2021-03-31 22:57:48 +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
pobrn 45f84a569c respect 'local_only' parameter of sane_get_devices()
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.

Changes:

1. Modify 'sanei_configure_attach()' so that backend specific
   data may be passed to the 'attach()' function.

2. Use this in certain backends to pass the value of the
   'local_only' parameter so that network related activities
   are only carried out when the value is false.
2020-08-12 12:29:38 +02:00