Wykres commitów

6128 Commity (escl-add-user-and-password)

Autor SHA1 Wiadomość Data
David Ward bfa69c26e6 snapscan: Fix debug logging in sense_handler()
Remove an extraneous log message.

Ensure that a separate log message is only printed when the preceding
if-statement is true (and its string argument has actually been set).

Both issues were identified from GCC warnings about indentation.
2022-03-08 19:00:00 -05:00
David Ward 23addf5590 sm3840: Fix argument types for variadic function
Values of type unsigned char are automatically promoted to a larger
integer type, so they cannot be used as variadic function arguments.
2022-03-08 19:00:00 -05:00
David Ward 4cf3b09e49 rts8822, rts8891: Replace abs() with fabs() where needed
abs() has an integer parameter and returns an integer value. Floating-
point values should be passed to fabs() instead.

In particular, this affected calculations for gain and offset, where a
value with floating-point precision is clearly expected.
2022-03-08 19:00:00 -05:00
David Ward e859ea4d89 pieusb: Add missing calls to sanei_pieusb_convert_status()
Fix cases where values of type PIEUSB_Status were used or returned when
the expected type was SANE_Status.
2022-03-08 19:00:00 -05:00
David Ward f651d6f098 microtek: Fix null termination of string, and adjust buffer lengths
The Product Revision Level field in the SCSI inquiry data has a fixed
length of 4 bytes. When copying it as a null-terminated string, place
the null terminator in the correct position; currently the string has
an extra character that is never initialized in memory.

Reduce the length of each string buffer, so it does not extend beyond
the null terminator.
2022-03-08 19:00:00 -05:00
David Ward a519a3529a mustek_usb2: Replace STATUS type with SANE_Status
In some cases, a return value with type SANE_Status was assigned to a
variable with type STATUS. It is easiest to remove the redundant type
here.
2022-03-02 21:16:47 -05:00
David Ward b2c2b74858 escl: convert get_PDF_data() to use GMappedFile and GBytes 2022-04-19 12:11:24 +00:00
Ralph Little 41866df6e1 genesys: fix for computation of total file size exceeding unsigned
Large scans that exceed 32-bits need cast to allow 64-bit size.
2022-02-27 18:55:26 -08:00
Ralph Little 9512d05fe6 genesys: added conf entry for Plustek OpticFilm 7600i
User reports scanner works fine, but entry missing from config.
2022-02-22 16:22:23 -08:00
David Ward ba07a8a7f5 backend/Makefile: Fix installation of backend libraries
When using Automake variables like sanelib* to install files in a custom
directory, the files are assumed to be platform-independent, unless these
variables contain "exec" in the name. This affects whether the files are
installed during "make install-data" or "make install-exec". It does not
matter whether a suffix like _DATA or _LTLIBRARIES is added to this name.

The packaging scripts for Debian call those Makefile targets separately
and are affected by this behavior. Since the backend libraries themselves
are platform-dependent files, rename these variables to execsanelib*.
2022-02-06 23:02:01 -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
Zdenek Dohnal d8ebd5a4d7 genesys: GL845 has vector size 257 as well
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2042316
2022-01-28 22:31:09 +02:00
Povilas Kanapickas 3f955dd532 Merge branch 'make-jpeg-compression-optional' into 'master'
xerox_mfp: make JPEG compression user-configurable

See merge request sane-project/backends!615
2021-12-30 18:50:56 +00:00
Andrew Sayers a336f5ed2f xerox_mfp: make JPEG compression user-configurable
JPEG compression improves scan time, and some scanners require it
for high DPI values.  But it loses some data, and we already support
toggling it at compile-time.

Add an advanced option so users can decide at scan-time.
2021-12-30 20:34:05 +02:00
Povilas Kanapickas cf7dde3c4b genesys: Remove several accidental edits
Fixes 59506f866d.
2021-12-30 20:21:31 +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 eca148dbf4 genesys: Remove unsupported 75 and 100 dpi resolutions on LiDE 200 2021-12-28 02:49:59 +02:00
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
Ordissimo 584f16e2ee pixma: add 2021 models.
Fix white space

Fix build

Add descriptions

Reduces the length of the line
2021-12-27 16:33:37 +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
Ordissimo 98869ebedf Merge branch 'fix-old-tls-connections' into 'master'
Fix old tls connections

See merge request sane-project/backends!663
2021-12-17 12:13:07 +00:00
Ordissimo 7394329b69 Merge branch 'escl-ipv6' into 'master'
Escl ipv6

See merge request sane-project/backends!565
2021-12-16 11:09:33 +00:00
Povilas Kanapickas c8f42d6bd5 Merge branch 'devel/avision' into 'master'
Added support for Avision FB2280E

See merge request sane-project/backends!657
2021-12-16 11:08:40 +00:00
Paul Wolneykien b49deae017 avision: Added support for Avision FB2280E
It seems to be the same as FB2080E.

Signed-off-by: Paul Wolneykien <manowar@altlinux.org>
2021-12-16 12:43:26 +02:00
genkn b8df4a0cf6 canon_dr: Add basic support for Canon R40 scanner
Initial support for Canon R40 SSM scanner with Letter-size ADF.
Hardware provides: gray/color, simplex/duplex, full-width, 300/600dpi
horizontal, with front mirrored horizontally.
2021-12-16 12:24:34 +02:00
Andrew Sayers 40f4885ab8 xerox_mfp: return correct value in dev_acquire()
dev_acquire() is expected to return 1 on success and 0 on failure.
Fix the cases where it returned non-zero on error.
2021-12-16 11:59:52 +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
thierry1970 d77743b243 Search for the TLS version used by the device, then force the TLS version if necessary.
Check constant curl_ssl

Fix build
2021-12-16 00:30:56 +01:00
Thierry HUCHARD 4752a9c379 added support for ipv6.
Fixes a possible memory overflow.
2021-12-15 23:30:02 +01:00
Povilas Kanapickas db6e4fd77f Merge branch 'xerox_workcentre_3025' into 'master'
Add Xerox WorkCentre 3025

See merge request sane-project/backends!654
2021-12-15 22:21:53 +00:00
Povilas Kanapickas 7b19eb2115 Merge branch 'pixma-mf56x0' into 'master'
pixma: move MF56x0 to MP730 backend

See merge request sane-project/backends!628
2021-12-15 22:17:12 +00:00
Povilas Kanapickas dc32df1001 Merge branch 'ps-devel-fix-gcc-4-8-compile-001' into 'master'
genesys: fix gcc-4.8 compile

See merge request sane-project/backends!609
2021-12-15 22:12:13 +00:00
Andrii Pravorskyi 9ed6873292 xerox_mfp: Add Xerox WorkCentre 3025 2021-12-16 00:06:04 +02:00
Konstantin Tcepliaev 0a038376a6 pixma: move MF56x0 to MP730 backend 2021-12-16 00:01:53 +02: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
Povilas Kanapickas 9ad2aa54b9 Merge branch '519-imageRUNNER1133A-support' into 'master'
Added support for imageRUNNER1133A

See merge request sane-project/backends!658
2021-12-15 21:39:12 +00:00
Mikhail Remnev d32e6c4115 Added iclass_device for imageRUNNER1133A 2021-12-15 23:23:08 +02:00
Thierry HUCHARD c7575b3679 plustek-pp: Reuse sanei_directio for inb/outb 2021-12-15 22:39:46 +02:00
Thierry HUCHARD ab11e42894 sanei: Reuse sanei_directio in sanei_pio 2021-12-15 22:39:40 +02:00
Thierry HUCHARD 3e8885f937 sanei: Reuse sanei_directio in sanei_pa4s2 2021-12-15 22:39:36 +02:00
Thierry HUCHARD abbc93df1a qcam: Reuse sanei_directio 2021-12-15 22:39:33 +02:00
Thierry HUCHARD 79e470cf9a sanei: Reuse sanei_directio in sanei_ab306 2021-12-15 22:39:31 +02:00
Thierry HUCHARD db83d55495 sanei: Reuse sanei_directio in sanei_pp 2021-12-15 22:39:28 +02:00
Thierry HUCHARD 7b5386ff6e Factoring of umax_pp_low functions concerning sys/io.h to sanei lib 2021-12-15 22:39:25 +02:00
Thierry HUCHARD 374521c4b6 p5_device: Rename inb/out/INB to prevent name clashes 2021-12-15 22:39:17 +02:00
Povilas Kanapickas ed51223cfb backend/Makefile: Reduce excessive line lengths 2021-12-13 22:45:51 +02:00
Peter Marschall d829ff835a epjitsu: read page_width pixels from scanner
This commit fixes a regression introduced in 1.0.25 for ADF scanners:
the scanning page-width was always set to a fixed value,
ignoring the page-width provided by the frontend.

This commit restores the behaviour that allows changing the page-width.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 79e76258cb epjitsu: enforce range.max >= range.min in option descriptors
In the option descriptor definitions of tl_x, tl_y, br_x & br_y
make sure the the maximal value of the range is not smaller than
the minimal value.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 1dab1f0121 epjitsu: fix start & finish DBG() calls in coarsecal*()
Adapt levels for start & finish logging to match the documentation
and the other functions.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 16cdaf16e5 epjitsu: instrument finecal_send_cal() & finecal_get_line() with DBG() calls
No functional changes, but allow for easier debugging.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:13 +02:00
Peter Marschall 36b59bd2c1 epjitsu: introduce & use MAX() & MIN()
This change simplifies some expressions, and hence
allows for easier understanding of the intention.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:13 +02:00
Wolfram Sang 952976c6a6 Merge branch 'epson2/more_ids' into 'master'
epson2/epsonds: add new IDs provided by Epson

See merge request sane-project/backends!659
2021-12-08 08:47:29 +00:00
Ralph Little 0bbf1155af pixma: Added testing information for Canon XK90 and added large image interleave. 2021-12-07 20:54:54 +00:00
Wolfram Sang 91c24b2955 epson2/epsonds: add new IDs provided by Epson
Sent by Nakamura Iwao via sane-devel mailing list on Nov, 29th. I only
sorted the epson2 descriptions alphabetically.

 Subject: [sane-devel] Additional model support for epson2 / epsonds backend
 Message-ID: <TYCPR01MB7872CDD0461B7572D5DBD7A8EB669@TYCPR01MB7872.jpnprd01.prod.outlook.com>
2021-12-03 12:36:33 +01:00
Ordissimo 72992f4e25 Fix segfault sane-escl. 2021-10-20 22:25:10 +02:00
Ordissimo 3440ef60b3 Merge branch 'master' into 'master'
escl: Follow the 302 redirects

See merge request sane-project/backends!652
2021-10-18 11:45:22 +00:00
Jindřich Makovička 1b5344ba56 escl: Follow the 302 redirects
Recent ipp-usb redirects from http://127.0.0.1 to http://localhost
2021-10-14 20:05:19 +02:00
Ralph Little 3a5f128e8a Add int_inexact option to test SANE_INFO_INEXACT. 2021-10-14 14:47:51 +00:00
Ordissimo 88934578ec The name of the device, allows to disable the use of the PDF format. 2021-09-26 06:35:31 +00:00
Klaus Kämpf d12533fced Add Reflecta RPS 10M to pieusb
(aka Pacific Image PrimeFilm XAs)

Thanks to Thomas Wilshaw for testing.

Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
2021-09-21 14:25:16 +02:00
Wolfram Sang a3558af0fc Merge branch 'epson2-uninitialized' into 'master'
epson2: fix up uninitialized variables

See merge request sane-project/backends!636
2021-09-18 18:38:12 +00:00