Wykres commitów

6190 Commity (3c20a989cfec676fde7f64381f5d15dc6e30586a)

Autor SHA1 Wiadomość Data
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
Ordissimo e1b5c43b56 Escl add models Epson ET-6100 2021-08-31 20:09:33 +00:00
Adriaan de Groot 0400e23d30 uninitialized: set *status on all returns out of e2_ssend() 2021-08-30 17:45:21 +02:00
Ordissimo 4929387246 Fix redirect request. 2021-08-23 07:57:32 +00:00
John Keeping 6ea78a79ca epson2: Add XP-452 455 Series as supported
Tested via simple-scan with a device branded as XP-455 but which
identifies in the device descriptor's product string as "XP-452 455
Series".
2021-07-31 18:04:26 +01: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 1e88e1504e epsonds: Merge to master 2021-07-03 15:55:25 -07:00
Wolfram Sang 911be8af68 Merge branch 'cleanup_major_minor' into 'master'
treewide: use SANE_CURRENT_* macros consistently

See merge request sane-project/backends!632
2021-06-19 19:43:38 +00:00
Wolfram Sang 1a95dc7cde Merge branch 'gt68xx/proper_free' into 'master'
gt68xx: fix use-after-free and two mem leaks

See merge request sane-project/backends!634
2021-06-18 22:00:16 +00:00
Peter Seiderer b1021e09e4 backend/pixma: fix compile with NDEBUG
Fixes:

  .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: ./.libs/libpixma.a(libpixma_la-pixma_common.o): in function `sanei_pixma_read_image':
pixma_common.c:(.text+0xc05): undefined reference to `DBG'
  .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xc38): undefined reference to `DBG'
  .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xcbf): undefined reference to `DBG'

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
2021-06-18 20:10:02 +02:00
Peter Seiderer 7dafc52dda backend/sm3600-scanutil: fix uclibc compile (include stdarg.h for va_list/va_start/va_end)
Fixes:

  sm3600-scanutil.c: In function ‘debug_printf’:
  sm3600-scanutil.c:69:3: error: unknown type name ‘va_list’
     69 |   va_list ap;
        |   ^~~~~~~
  sm3600-scanutil.c:48:1: note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget to ‘#include <stdarg.h>’?
     47 | #include "sm3600-scantool.h"
    +++ |+#include <stdarg.h>
     48 |
  sm3600-scanutil.c:75:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-declaration]
     75 |   va_start(ap,szFormat);
        |   ^~~~~~~~
        |   sane_start
  sm3600-scanutil.c:76:28: warning: passing argument 3 of ‘vfprintf’ makes pointer from integer without a cast [-Wint-conversion]
     76 |   vfprintf(stderr,szFormat,ap);
        |                            ^~
        |                            |
        |                            int
  In file included from ../include/sane/sanei_config.h:50,
                   from sm3600.c:70:
  .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:339:23: note: expected ‘__va_list_tag *’ but argument is of type ‘int’
    339 |        __gnuc_va_list __arg);
        |        ~~~~~~~~~~~~~~~^~~~~
  In file included from sm3600.c:94:
  sm3600-scanutil.c:77:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration]
     77 |   va_end(ap);
        |   ^~~~~~

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
2021-06-18 19:56:56 +02:00
Peter Seiderer 145e16008e backend/microtek: fix uclibc compile (include stdarg.h for va_list/va_start/va_end)
Fixes:

  microtek.c: In function ‘MDBG_INIT’:
  microtek.c:163:3: error: unknown type name ‘va_list’
    163 |   va_list ap;
        |   ^~~~~~~
  microtek.c:78:1: note: ‘va_list’ is defined in header ‘<stdarg.h>’; did you forget to ‘#include <stdarg.h>’?
     77 | #include "microtek.h"
    +++ |+#include <stdarg.h>
     78 |
  microtek.c:164:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-declaration]
    164 |   va_start(ap, format);
        |   ^~~~~~~~
        |   sane_start
  microtek.c:165:54: warning: passing argument 4 of ‘vsnprintf’ makes pointer from integer without a cast [-Wint-conversion]
    165 |   vsnprintf(_mdebug_string, MAX_MDBG_LENGTH, format, ap);
        |                                                      ^~
        |                                                      |
        |                                                      int
  In file included from ../include/sane/sanei_config.h:50,
                   from microtek.c:70:
  .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:359:57: note: expected ‘__va_list_tag *’ but argument is of type ‘int’
    359 |         const char *__restrict __format, __gnuc_va_list __arg)
        |                                          ~~~~~~~~~~~~~~~^~~~~
  microtek.c:166:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration]
    166 |   va_end(ap);
        |   ^~~~~~

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
2021-06-18 19:51:45 +02:00
thierry1970 667d8f7acc The job URL is adapted to the information provided by the value of the Location property. 2021-06-12 00:57:07 +02:00
Wolfram Sang 63942f7a74 gt68xx: fix use-after-free and two mem leaks
The config file argument needs to be freed when a device is not set.
That was missed for two occasions. The other occasion was freeing it
unconditionally leading to a use-after-free for the regular use case.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980311

This is the least intrusive fix. The code really wants to be refactored.
Tested with a Mustek 1200 UB Plus.
2021-06-10 11:36:11 +02:00
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:

$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c

And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
Wolfram Sang 65b7e317a6 epson2: remove BUILD versioning
Makes no sense these days. Sane version is good enough.
2021-06-08 11:52:00 +02:00
Wolfram Sang 53641f8342 epson2: add usb ids provided by Epson
This patch is based on the file "epson2_fix.patch" from the archive
"SANE-patch-for-epsonds-epson2-20210518-5.zip" sent to the sane-devel
mailing list. The following changes have been made on top of the
original patch:

* in epson2.desc, the upstream entry for ET-2600 has been dropped
  because a better version was provided in the new additions
* the seperate entry for XP-240 has been merged into the combined entry
  for XP-243/245/247
* the new entries have been sorted into the existing entries
* original changes to epson2_usb.c have been dropped and were recreated
  using the updated epson2.desc and epson2usb.pl
2021-06-02 22:40:21 +02:00
Wolfram Sang db7a285e74 epson2: use 4 digits for USB IDs
Use the output of the updated epson2usb helper. Affects only the
sorting, no functional change. Also, fix minor whitespace issues at the
end of the file.
2021-05-29 12:22:55 +02:00
pimvantend 075bd9b7e9 canon_lide70: faster and brighter scanning at 600dpi for the lide600 2021-05-25 14:25:28 +02:00
pimvantend 3f80ebae93 lide70 and 600: many simplifications 2021-04-18 17:47:49 +02:00
Wolfram Sang 0943bf00bd Merge branch 'epson2/better_timeouts' into 'master'
epson2: better timeouts

See merge request sane-project/backends!605
2021-04-09 19:36:06 +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
Klaus Kämpf c5d84e5f17 Merge branch 'digitdia4000_slide' into 'master'
Enable Slide advance on DigitDia 4000 and correct misspelling

See merge request sane-project/backends!620
2021-04-06 13:39:11 +00:00
pimvantend df34fa403a canon_lide70
approximate slope tables with formula a/(1+b*(x-c))
2021-04-04 16:15:10 +02:00
grmpl 696ccd2d7b Enable Slide on DigitDia 4000, correct misspelling 2021-04-03 18:41:06 +02: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
Thierry HUCHARD f99687b3cc Fix scan all resolution with JPEG. 2021-03-31 17:35:40 +02:00
Ralph Little 0bbbf85528 genesys: add back Plustek Optifilm 7200 V2 config.
This has support in the backend and user reports works. I think this
might just be an oversight.
2021-03-28 21:07:21 -07:00
pimvantend 0ef485d189 lide70: more white balance, less slope tables 2021-03-25 13:55:13 +01:00
Ralph Little 1d30150c3c Merge branch 'epson2/disable_focus_properly' into 'master'
epson2: disable focus properly

See merge request sane-project/backends!604
2021-03-20 16:51:18 +00:00
Ralph Little acc5ca499f hp4200: memset incorrectly sized. registro[0] is pointer not int. 2021-03-13 17:05:13 -08:00
Wolfram Sang a696443555 epson2: remove double semicolon 2021-03-04 20:54:31 +01:00
Wolfram Sang 85d8047601 epson2: bail out if device is still initializing
The comment says it all.
2021-03-04 20:54:31 +01:00
Wolfram Sang c70426fde2 epson2: use longer USB timeout
With my 12000XL, using autofocus takes ~35 sec before scanning starts.
So, extend the default USB timeout.
2021-03-04 20:54:31 +01:00
Wolfram Sang 580c278dca epson2: disable focus properly
The old epson driver disabled the focus by erasing the setFocus command.
The epson2 driver turned it into a seperate flag. However, scanners
which disabled focus in post_init were not converted to use the new
flag. Because we meanwhile set focus during init, these scanners could
not start anymore. Convert them to use the new flag.

While here, update the comment how we handle focus detection and update
the debug strings accordingly.

Bug reported by Hans Meir and debugged by Zdenek Dohnal. Many thanks!
2021-03-04 08:30:46 +01:00
m. allan noah 5819a79ab0 canon_dr v62b
- rewrite do_cmd() timeout handling
- remove long timeout TUR from v61 (did not help)
- allow config file to set initial tur timeout for DR-X10C (#142)
2021-02-28 21:28:59 -05:00
m. allan noah 6d990e73e9 canon_dr v62a
- allow config file to set inq and vpd lengths for DR-M1060 (#263)
2021-02-28 21:28:59 -05:00
Ralph Little 44a085d685 Merge branch 'debug-minolta-dimage-scan-dual-ii' into 'master'
Add function to debug avision command

See merge request sane-project/backends!595
2021-02-24 01:21:13 +00:00
pimvantend 12c81e2f19 some color and geometry changes 2021-02-23 14:28:56 +01:00
Giovanni Cappellotto 325c775036 Add function to debug avision command
Define a new enum that contains Avision data type codes and use those instead
of pure values. I also added a couple of helper functions for debugging the
command operation and data type code if read or send.
2021-02-21 19:53:46 -05:00
Olaf Meeuwissen 00df971593 Merge branch 'release/1.0.32' into 'master'
Release/1.0.32

Closes #122 and #248

See merge request sane-project/backends!594
2021-02-14 12:24:09 +00:00
Olaf Meeuwissen 9c46d6bcac
genesys: Disable support for the CanoScan 4400F. Re #436 2021-02-14 10:46:36 +09:00
m. allan noah 7dbfccb532 canon_dr backend v61
- treat DR-P208 like P-208 (#356)
- treat DR-P215 like P-215 (#356)
- adjust wait_scanner to try one TUR with a long timeout (#142)
2021-02-13 15:15:09 -05:00
m. allan noah 5205d1d09d Various fujitsu and canon_dr doc updates
- update the copyright dates
- update dates and version numbers in man pages
- add iX1600 to supported list
- set duplex-offset for P-208
2021-02-13 14:00:47 -05: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
Ralph Little 23a4c86b32 niash: increased the maximum Y extent to 297mm
297mm is advertised in the official specs for this machine family.
Tested against the ScanJet 3300C and it doesn't bottom out or anything.
Issue came about because A4 is 297mm in height and 296mm too short.
Probably just a typo or an oversight.
2021-02-11 18:54:24 -08:00
Olaf Meeuwissen fe7b1a8f2d
Add missing backend dependencies for static linking. Re #124 2021-02-07 21:00:51 +09:00
Olaf Meeuwissen 4cb49c1f08
Disambiguate symbols for static linking scenarios. Re #124 2021-02-07 19:32:24 +09:00
Thierry HUCHARD 5f2209ffd9 Use header to activate hack localhost. 2021-01-30 20:32:00 +01:00
Ralph Little 7946a14cfb po: Added en_GB translations.
Note: also fixed a minor grammar point in the pixma backend.
2021-01-24 10:04:47 -08:00
Ordissimo 6f90442641 Fix sleep mode 2021-01-24 07:17:36 +00:00
Thierry HUCHARD 9dd8319a01 Utilise MakeAndModel pour le device au hack. 2021-01-17 17:23:56 +01:00
Ordissimo af445c2e9c Fix syntax in escl.conf.in 2021-01-16 22:11:36 +00:00
Thierry HUCHARD 4b6418476e Allows to activate the hack from the configuration file, only the first form supports it. 2021-01-16 23:01:31 +01:00
Thierry HUCHARD cb8b6d2ace Fixed variable initialization. 2021-01-16 09:06:01 +01:00
Thierry HUCHARD b24907c8a9 Fix scanjob for LaserJet FlowMFP M578 and LaserJet MFP M630. 2021-01-16 09:03:14 +01:00
Timo Teräs baa26ffd95 pixma: fix broadcast_sa size calculation
The sa_size was incorrectly used on the destination buffer which
likely contains wrong address family.

Fixes #426
2021-01-15 16:49:52 +02:00
Timo Teräs 891ccac3b6 escl: fix char_to_array memory allocation calculations
Too little memory allocated due to incorrect calculation.

Fixes #425
2021-01-15 16:46:12 +02:00
thierry1970 0293e662cf Fix check poppler-glib, (see issue #422). 2021-01-14 13:20:17 +01:00
Thierry HUCHARD fefc6f1818 The order of the parameters does not change the result. 2021-01-04 19:47:08 +01:00
Thierry HUCHARD 17023afb99 Get device informations with avahi. 2020-12-29 11:33:55 +01:00
Thierry HUCHARD ffc2bbb1ff pixma: Add models 2020-12-26 15:40:07 +02:00
Olaf Meeuwissen 77a3173e90
epson2: Add ET-2600 as supported
See https://gitlab.com/sane-project/backends/-/issues/395
2020-12-26 12:03:15 +09:00
thierry1970 1dbc316327 Fix messages and variable. 2020-12-22 16:14:44 +01:00
Ordissimo 4aa767327d Choose the format according to availability and options. 2020-12-21 20:17:03 +00:00
thierry1970 c0dae7e8f5 refactoring options code 2020-12-21 18:16:31 +01:00
Ralph Little e111c48562 avision: added increment of the line variable in non-interpolated case 2020-12-19 17:28:36 -08:00
Ralph Little 15e200a981 avision: added some brackets to silence warnings about precedence ambiguity 2020-12-19 17:27:23 -08:00
Thierry HUCHARD a5181be71b Fix a crash when asking for the list of options: scanimage -A 2020-12-19 22:04:30 +01:00
thierry1970 841680f610 Fix : Fixes the crash of devices that do not have a tray, discovered on the HP Deskjet 3760 device. 2020-12-16 13:41:31 +01:00
Povilas Kanapickas bb84652c3c Merge branch 'origin/pixma_bug_fixes' into 'master'
General pixma backend fixes

See merge request sane-project/backends!548
2020-12-07 13:21:30 +00:00
Olaf Meeuwissen f1154375f5 Merge branch 'master' into 'master'
drop CVS keywords

See merge request sane-project/backends!547
2020-11-30 11:07:40 +00:00
m. allan noah 7f7a4778be canon_dr backend v60
- add new gray and color interlacing options for DR-C120
- initial support for DR-C120 and C130
- enable fine calibration for P-208 (per @sashacmc in !546)
2020-11-29 18:03:23 -05:00
Mikolaj Kucharski cbf9627fd8 final Revision CVS keyword removal 2020-11-29 09:19:26 +00:00
Mikolaj Kucharski 4196d204f1 drop more tricky Revision CVS keyword 2020-11-29 09:17:33 +00:00
Mikolaj Kucharski 7de7c051fa more CVS keywords removed, Log and Revision 2020-11-29 09:06:48 +00:00
Ralph Little a388c3abc1 pixma: avoid structure copy on every read by using cinfo address. 2020-11-28 19:34:52 -08:00
Ralph Little 410f954f3b pixma: assignment must be inside the loop to be effective. 2020-11-28 19:29:06 -08:00
Ralph Little 08eaf1a22e pixma: MX490 series returns JPEG from ADF scans. 2020-11-28 19:19:26 -08:00
Mikolaj Kucharski 65f1131541 drop CVS keywords 2020-11-28 12:48:32 +00:00
RICCIARDI-Adrien 862ca098ae Fixed Artec AstraSlim SE configuration. 2020-11-21 11:58:17 +01:00
Iskren Chernev d0695c1470 pixma: Add --calibrate option
Feature was discussed in https://gitlab.com/sane-project/backends/-/issues/321
2020-11-02 22:50:48 +02:00
Olaf Meeuwissen e4ef0548bf Merge branch 'leak_fix' into 'master'
Fix memory leaks in dll and test backends

See merge request sane-project/backends!537
2020-10-20 09:01:15 +00:00
Fletcher Woodruff 6fe222ed29 test: do not leak initial values of string options
The default values for string options are set using static (i.e.
non-malloced) strings. Later, if new values are loaded from the config
file, those SANE_Strings will then point to dynamically allocated memory
which is eventually leaked.

Change the initial values for the string options to NULL, and initialize
them to the proper values within sane_init() using strdup(). This way,
whenever the value for the string is changed, we can safely free() the
previous value.

This eliminates the other main source of memory leaks in the test backend.

This patch also updates sane_init for the test backend to properly cleanup
memory if it fails.
2020-10-19 09:48:49 -06:00
Fletcher Woodruff f71ac6126f test: free memory used for string options
Inside Test_Device, track whether we've already called init_options().
If we have, don't call it again when calling sane_open() again.

Add a function cleanup_options() which frees the memory used for these
options, and call it in sane_exit() if we previously called
init_options().

Change Test_Devices to be initialized with calloc instead of malloc,
so that we can assume that uninitialized fields are NULL, and can safely
call free() on them unconditionally.

This eliminates some larger memory leaks within the test backend.
2020-10-19 09:48:36 -06:00
Olaf Meeuwissen 519c300ff0 Merge branch 'brightness_on_12000xl' into 'master'
epson2: fix lower brightness limit for DS-G20000/12000XL

See merge request sane-project/backends!529
2020-10-18 01:47:29 +00:00
Ralph Little 014c307e02 pixma: MX320 machine will not perform 1200 dpi scan from the ADF
600 dpi maximum from ADF.
2020-10-13 09:03:45 -07:00
Fletcher Woodruff de903b84c4 dll: fix memory leak in load
In the case where we are unable to get a path for loading libs, and
instead just use LIBDIR, we set 'src = strdup(LIBDIR)'. However, we
never update orig_src to point to src before tokenizing the path with
strsep(), so the memory is never freed.

Update load to always set orig_src to src so that we don't leak memory.
2020-10-12 16:25:07 -06:00
Gerhard Jäger 7f38f0f71c Merge branch 'canoscan_n650u_plustek_usb_workaround' into 'master'
[plustek] Add 1ms delay before writing to register 0x59 during reseting registers

Closes #137

See merge request sane-project/backends!535
2020-10-12 09:14:04 +00:00
Ralph Little 7e6231fe57 Merge branch '358-gt68xx-1-0-31-breaks-mustek-1248ub-after-first-scan' into 'master'
Resolve "gt68xx: 1.0.31 breaks Mustek 1248UB after first scan"

Closes #358

See merge request sane-project/backends!533
2020-10-10 19:22:41 +00:00
Ralph Little 42520aeaa9 gt68xx: added flag to fix stop scan bug
Some scanners (notably the Mustek 1248UB) doesn't like receiving a
STOP scan command when it is not scanning. Flag prevents it my making
sure that START/STOP commands are only ever paired up.
2020-10-10 12:01:33 -07:00
Thierry HUCHARD 8885312711 Fixes device discovery 2020-10-10 18:01:55 +02:00
Zdenek Dohnal 6af85ec669 plustek-usbhw.c: Add 1ms sleep before writing to register 0x59
Works around discovery problem for CanoScan N650U, fixes #137.
2020-10-09 08:55:41 +02:00
Ralph Little 6886cf6e80 gt68xx: Added temporary fix to avoid stop scan during cancel.
Calling this function upsets some scanners in this family.
This temporary sticking plaster permits the Mustek 1248UB scanner to
scan after cancelling. We need to look into this much more when a
scanner becomes available for investigation.
2020-10-03 10:38:50 -07:00
Nikolai Kostrigin 5ef217b19d add ID information for Avision AV186+ and AV188 sheetfed USB scanners
backend/avision.c: add AV186+ as 'good',
                       AV188 as 'untested'
doc/descriptions/avision.desc: add AV186+ as 'good',
                                   AV188 as 'untested'
2020-09-28 18:31:56 +03:00
Wolfram Sang 7139d6decf epson2: add autofocus
Enable autofocus support on my Epson 12000XL. The middle of the scan
area will be used as the focus point. An arbitrary X,Y is possible but
not implemented yet

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 17:14:47 +02:00
Wolfram Sang 5d706c2c35 epson2: implement full range manual focus settings
Allow the whole range of manual focus settings as an expert option. This
is also now independent of a TPU being installed or not. The old default
values are applied if the user changes the source type (either FLATBED
or TPU). Adding a focus group here because autofocus options will come
with later patches.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Wolfram Sang f9f75ca068 saneopts: add entries for focus/autofocus
coolscan2 has focus entries already reused in coolscan3. Because I want
to add the same options to epson2, it makes sense to make them available
globally. Add i18n while here.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Wolfram Sang a0e68f7de9 epson2: enable focus for all scanner types
Even with USB based scanners, we need to send the esci command to set
the focus. There is no byte in the extended scanning parameters for it.
So, move the code to a place where it is called for all cases.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 11:48:10 +02:00
Wolfram Sang 1653b0f80c Merge branch 'zdohnal/esci_set_focus_retval' into focus_on_12000XL 2020-09-26 11:47:57 +02:00
Rolf Bensch 429cc0efc0 pixma: backend version 0.28.6 2020-09-25 16:40:07 +02:00
Rolf Bensch 9db8fc305e pixma: add comment for last merge 2020-09-25 16:38:38 +02:00
Rolf Bensch e80612275e Merge branch 'patch-1' into 'master'
Added support for Canon Pixma MX340 buttons and ADF status

See merge request sane-project/backends!513
2020-09-25 14:35:40 +00:00
m. allan noah e46adab4f2 canon_dr v59: fine calibration updates
- restructure fine calibration code
- initial support for uploading fine calibration payloads
- improve DR-C225 support

Most canon scanners require that the driver apply fine (per-cell)
calibration information. But a few require that the info be loaded
into the scanner. Here, we add initial support for that, though the
needed values are hardcoded instead of calculated.
2020-09-23 21:43:35 -04:00
m. allan noah 588f01526e fujitsu v137b: brightness/contrast improvements
- change window_gamma init (fixes bright/contrast for iX1500)
- only call send_lut after set_window (remove late_lut)
2020-09-23 21:42:44 -04:00
m. allan noah 5b92a367c3 fujitsu v137a: fix JPEG duplex memory corruption 2020-09-23 21:39:14 -04:00
Zdenek Dohnal 94506b1787 epson2: check for return value of e2_esc_cmd 2020-09-22 11:34:56 +02:00
Wolfram Sang b1b412d5f8 epson2: fix lower brightness limit for DS-G20000/12000XL
I get -EINVAL with -4 (ROM Version 1.02). -3 works.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-18 20:37:40 +02:00
thierry1970 cd768b3692 Check options scan and fix xml. 2020-09-18 15:47:45 +02:00
Ordissimo b155955b0e Merge branch 'escl-add-scan-options' into 'master'
Added options: Brightness, Threshold, Sharpen and Contrast.

See merge request sane-project/backends!527
2020-09-17 20:29:28 +00:00
thierry1970 e281dfb0cd Fix style. 2020-09-17 18:55:03 +02:00
thierry1970 fcbeeccbf0 Added options: Brightness, Threshold, Sharpen and Contrast. 2020-09-17 18:50:33 +02:00
Your Name 0f7ce3fe7a Do not use fixed python executable name and use AM_PROG_PYTHON
On many systems now python executable it is python3.
On my system it the case and by this muild failed with:

make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
Generating pixma/pixma_sane_options.h from pixma/pixma.c
/bin/sh: python: command not found
make[2]: *** [Makefile:7317: pixma/pixma_sane_options.h] Error 127
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
make[2]: *** Waiting for unfinished jobs....

Using AM_PROG_PYTHON() nmacro cllows avoide tha by hecks current version of the
python and allw to use custom python executable by execute configure by:

$ PYTHON=</some/python> ./configure <params>

AM_PROG_PYTHON aclocal macro propagates to automake files $(PYTHON) variable
which could be used on geberate instaleable scripts on duting build process like
it is now in backend/Makefile.am.

Currently minum version of required vesion of the python is python >= 3.
2020-09-13 20:17:43 +01:00
Olaf Meeuwissen a380fb0894
pixma: Restore old behaviour in case XML support is missing
Fixes #345.
2020-09-13 18:47:32 +09:00
pimvantend 17ab6caa38 canon_lide70 simplified going back 2020-09-07 15:15:21 +02:00
Olaf Meeuwissen cea2a83ea2 Merge branch 'master-spelling' into 'master'
spelling fixes

See merge request sane-project/backends!516
2020-09-07 09:24:15 +00:00
Peter Marschall 33d1aecc7c Apply 1 suggestion(s) to 1 file(s) 2020-09-06 07:34:40 +00:00
Peter Marschall 950aded610 Apply 1 suggestion(s) to 1 file(s) 2020-09-06 07:29:49 +00:00
Peter Marschall 6e16f45b76 Apply 1 suggestion(s) to 1 file(s) 2020-09-06 07:29:44 +00:00
Peter Marschall d789545521 Apply 1 suggestion(s) to 1 file(s) 2020-09-06 07:17:00 +00:00
Olaf Meeuwissen c946aa5a84 Merge branch 'dell1600n_net_return_eaccess_if_local_only' into 'master'
dell1600n_net: return ACCESS_DENIED when local devices are requested

See merge request sane-project/backends!506
2020-09-04 11:48:13 +00:00
Olaf Meeuwissen 8894364c5b Merge branch 'master' into 'master'
backend/avision.c adf_reset(): In debug message "adf_reset: read ... failed...

See merge request sane-project/backends!515
2020-09-03 12:10:51 +00:00
Peter Marschall 2ad63d4e1e spelling fixes for sane core 2020-08-29 09:18:04 +02:00
Peter Marschall cd8c018585 spelling fixes for xerox_mfp backend 2020-08-29 09:18:04 +02:00
Peter Marschall 77406ed606 spelling fixes for sceptre backend 2020-08-29 09:18:04 +02:00
Peter Marschall 44755f6fc5 spelling fixes for dmc backend 2020-08-29 09:18:04 +02:00
Peter Marschall 5515db0272 spelling fixes for leo backend 2020-08-29 09:18:04 +02:00
Peter Marschall 5137304bb6 spelling fixes for ma1509 backend 2020-08-29 09:18:04 +02:00
Peter Marschall f8d08816a8 spelling fixes for sp15c backend 2020-08-29 09:18:04 +02:00
Peter Marschall 25af0a7403 spelling fixes for tamarack backend 2020-08-29 09:18:04 +02:00
Peter Marschall 66443f37e6 spelling fixes for ibm backend 2020-08-29 09:18:04 +02:00
Peter Marschall f6059bd3cb spelling fixes for gphoto2 backend 2020-08-29 09:18:04 +02:00
Peter Marschall a36cf4afda spelling fixes for dell1600n backend 2020-08-29 09:18:04 +02:00
Peter Marschall 9d368fd7a8 spelling fixes for dc25 backend 2020-08-29 09:18:04 +02:00
Peter Marschall 37bee66d05 spelling fixes for s9036 backend 2020-08-29 09:18:04 +02:00
Peter Marschall 56cbbdad5d spelling fixes for sharp backend 2020-08-29 09:18:04 +02:00
Peter Marschall 4984bedb6e spelling fixes for ricoh backend 2020-08-29 09:18:04 +02:00