Wykres commitów

3694 Commity (755e829caa23b9781863e4b1e1d24c3cfee9e8bf)

Autor SHA1 Wiadomość Data
Dave Platt 755e829caa avision.c: abort "wait for light" loop if interrupted
Adds a "cancelled" flag to the Avision device structure, cleared
in sane_start() and set in sane_cancel().  Test this flag in
wait_4_light() and bail out of the 90-second "wait for the
light to warm up" loop if the scan is cancelled.
2016-12-15 23:12:07 -08:00
Dave Platt 28963459a4 avision.c: Recognize "backlight on" status
Avision scanners can return an additional light-status value meaning
"Transparent Media Adapter back-light is on".  Accept this as
equivalent to "on" during the lamp-warmup check prior to starting a
scan.  Re-check the light status after sending the window command, as
the light selection might have been changed and a further warm-up
may be required.
2016-12-15 23:02:42 -08:00
Dave Platt 6585b6f60d avision.c: Add "skip-adf" option
The code which tries aggressively to reset/initialize HP 82xx/83xx
Automatic Document Feeders doesn't work well if there's no ADF attached,
because the scanner reports a non-zero ADF model type in this case.
The retry code makes several attempts to initialize the ADF, and then
bails out with an "Operation not supported" error.

Add a new "option skip-adf" which will cause the backend to believe
the "ADF not present" status if that's what the scanner reports.

Fixes #313751
2016-12-15 22:56:09 -08:00
Troy Rollo f58ce8f920 HP3500: Always enable the second set of CCDs. This
prevents ghosting that occurs when only enabling the
first set of CCDs, even though at some resolutions
we will not get any data from the second set.
2016-12-02 01:37:23 +11:00
Troy Rollo 77986b1d14 HP3500: Move to scan area more quickly if it is a
long way from the home position
2016-12-02 01:20:43 +11:00
Troy Rollo b1f3815014 Add missing math library to HP3500 backend link flags 2016-11-29 21:11:06 +11:00
Troy Rollo fd7a3505f6 HP3500 backend: fix #314811, greatly improve
calibration, support harware calibration
	in 120DPI and 400DPI, and add support for
	hardware gamma correction.
2016-11-29 20:47:59 +11:00
Alex Belkin 69a008830b Pre-create temporary file for Jpeg scanning.
Jpeg mode (as submitted by Samsung developer) uses temporary file with
fixed name. This opens attacks on reading its content or overwriting any
other user-writable file (with symlink). This change pre-creates
temporary file with O_CREAT|O_EXCL and mode 0600. Assuming usual +t
permissions for tmp this should mitigate issue.
2016-11-06 22:55:58 +03:00
Alex Belkin 226c2b9deb Update header and copyright statements for xerox_mfp. 2016-11-06 21:50:06 +03:00
Alex Belkin 58c1e43b83 Indent of xerox_mfp-tcp.c and xerox_mfp-usb.c
This is purely indent commit without any code changes, in
follow-up to 83bbcfe7d5.

Indent command used:
    astyle -A8 -U -H -k3 -W3 -o xerox_mfp-{usb,tcp}.c

Proof that code is not changed:
    git log -w -p xerox_mfp-{usb,tcp}.c
2016-11-06 21:42:52 +03:00
Alex Belkin 83bbcfe7d5 Run indent: astyle -A8 -U -H -k3 -W3 -o xerox_mfp.[ch]
This is purely indent commit w/o any code changes.
To prove run `git diff -w`.
2016-11-06 20:24:02 +03:00
m. allan noah e4aed53a1e fujitsu backend v132
- remove ipc_mode option and variables
- set ipc mode based on other options
- cleanup inverted logic DTC options
- fixes threshold option reported in #315069
2016-10-08 20:54:58 -04:00
Rolf Bensch cfa98fd0d1 pixma: backend version 0.17.34 2016-10-08 14:25:33 +02:00
Rolf Bensch 7e20475c8b pixma: new scanner Canon PIXMA MG3000 Series
see bug report #315521
2016-10-08 14:24:53 +02:00
Rolf Bensch 3b63fdab2b pixma: backend version 0.17.33 2016-10-05 20:05:37 +02:00
Rolf Bensch c751a9ca22 fix ADF scanning for Canon MF57x0 devices
- ignore result from calibrate(): don't interrupt @ PIXMA_STATUS_BUSY
- MF57x0 devices don't require abort_session() after the last page
- reported by Dmitry Deshevoy
2016-10-05 19:52:02 +02:00
Olaf Meeuwissen e6faafcdc9 xerox_mfp: fix [-Wunused-parameter] compiler warnings
These are issued when libjpeg was not found during configuration.
2016-09-25 15:44:36 +09:00
Olaf Meeuwissen ee550e5de8 pieusb: fix [-Wunused-parameter] compiler warnings
The functions that trigger these warnings were not used.
2016-09-20 09:12:53 +09:00
Olaf Meeuwissen fb0464d9e3 niash: fix [-Wunused-but-set-variable] compiler warning
This makes explicit what the compiler has effectively been doing all
along anyway since at least 727dd4ab (2004-08-03).
2016-09-19 12:41:58 +09:00
Olaf Meeuwissen 6f4b88b617 epson2: fix [-Wunused-but-set-variable] compiler warning
This makes explicit what the compiler has effectively been doing all
along anyway since at least 728e032a (2009-06-01).
2016-09-19 12:41:58 +09:00
m. allan noah 9d388c3593 canon_dr v56
- add initial support for P-150M (and probably P-150)
2016-09-11 19:04:34 -04:00
Olaf Meeuwissen 737977199c umax_pp: fix [-Wunused-but-set-variable] compiler warning 2016-09-05 23:40:39 +09:00
Olaf Meeuwissen 50fa8efdcf gphoto2: fix libgphoto2 logging integration
In libgphoto2-2.5.0 (tagged for release on 2012-07-10) the GPLogFunc no
longer takes a va_list.  Instead, it passes a formatted message.
2016-09-04 14:39:52 +09:00
Olaf Meeuwissen 74b4a34e82 dll: fix pedantic compiler warning 2016-09-04 12:12:14 +09:00
Olaf Meeuwissen a65e74fe83 umax_pp: fix [-Werror=unused-but-set-parameter] compiler warnings 2016-08-28 15:49:44 +09:00
Olaf Meeuwissen 4eaefe4371 magicolor: fix [-Werror] compiler warning
This casts away const-ness in the hope that libsnmp doesn't change
the session.peername.
2016-08-28 15:27:50 +09:00
Olaf Meeuwissen 31ac0db736 magicolor: fix [-Werror=pointer-sign] compiler warnings
The libsnmp API requires a u_char *session.community :-(
2016-08-28 15:25:43 +09:00
Olaf Meeuwissen c32d48ef5f kodakaio: fix [-Weror=format=] compiler warning 2016-08-28 14:19:34 +09:00
Olaf Meeuwissen 0337514b8f kodakaio: fix [-Werror=sign-compare] compiler warning 2016-08-28 14:18:00 +09:00
Olaf Meeuwissen 763816814b hp5400: fix [-Werror=overflow] compiler warning
This explicitly implements what gcc and clang assign.
2016-08-28 13:56:16 +09:00
Olaf Meeuwissen 984fefd551 plustek_pp: fix [-Werror=sign-compare] compiler warning 2016-08-28 13:21:11 +09:00
Olaf Meeuwissen f0153bc7fe v4l: fix [-Werror=sign-compare] compiler warning 2016-08-28 12:58:56 +09:00
Olaf Meeuwissen cb3090cb54 pixma: Fix include guard typo
This was introduced in f573865 on 2008-10-18.
2016-08-03 22:16:26 +09:00
Olaf Meeuwissen 5389808029 Fix memory leak 2016-08-02 21:56:09 +09:00
Olaf Meeuwissen 1006445982 Use DIR_SEP instead of hard-coding ":"
Fixes 313540
2016-08-02 21:38:43 +09:00
Troy Rollo b021c3bee8 Fix bug 314571 - hp3500 backend does not set correct size for string option. 2016-07-31 22:47:25 +10:00
Olaf Meeuwissen f6c8be1380 kvs40xx: fix [-Wunused-function] compiler warning
This rather unceremoniously removed the function.  Note that a near copy
can be found in the kvs20xx backend code.
2016-07-18 20:55:14 +09:00
Olaf Meeuwissen effc26e402 kvs20xx: fix [-Wunused-function] compiler warning
This rather unceremoniously removed the function.  Note that a near copy
can be found in the kvs40xx backend code.
2016-07-18 20:53:51 +09:00
Olaf Meeuwissen 2d46885228 pnm: fix [-Wformat=] compiler warning 2016-07-18 17:32:21 +09:00
Olaf Meeuwissen 2f39c72270 v4l: fix [Wunused-parameter] compiler warnings 2016-07-18 17:11:26 +09:00
Olaf Meeuwissen 8809927390 sm3600: fix [-Wunused-parameter] compiler warning 2016-07-18 17:10:56 +09:00
Olaf Meeuwissen 99c14f2d95 Use a single symbol to flag unused parameters
The __sane_unused__ symbol was used slightly more often then UNUSEDARG
and, more importantly, defined in include/sane/sanei_backend.h.  That
makes it readily available to virtually all backends.
2016-07-18 16:51:08 +09:00
Olaf Meeuwissen b73a6e5017 niash: fix [-Wunused-parameter] compiler warning
The attribute needs to go before the pointer designation for it to have
any effect.
2016-07-18 16:14:20 +09:00
Olaf Meeuwissen 61719e0a13 dc240: fix [-Wunused-parameter] compiler warning
The attribute needs to go before the pointer designation for it to have
any effect.
2016-07-18 16:11:39 +09:00
Olaf Meeuwissen bfd1626c4b Sync autofoo 2016-07-13 23:44:26 +09:00
Olaf Meeuwissen 2481e1e98b Sync autofoo 2016-07-10 21:54:24 +09:00
Olaf Meeuwissen fa41b18001 Refactor API spec conversion support
Unless explicitly asked to do without, all formats for which required
tools are found will be built.  Checks cover PostScript, PDF and HTML.

All logic and files involved are now collected in a single "section"
and grouped in such a way that their function should be clearer.

fixup! Refactor API spec conversion support
2016-07-10 21:53:32 +09:00
Olaf Meeuwissen c962368626 Sync autofoo 2016-07-01 23:45:43 +09:00
Olaf Meeuwissen a9c813944e Make libusb-1.0 the default for USB support
When libusb-1.0 is not found, libusb-0.1 will be tried.  On BeOS and
OS2, nothing should have changed in terms of detection of USB support.

On all systems the --enable-libusb* flags are now ignored.  Instead, the
--with-usb and --without-usb flags now control support.  When neither is
given USB support will be enable if possible and disabled otherwise.  If
--with-usb is requested but not possible, ./configure will fail.  There
is no support to prefer libusb-0.1 over libusb-1.0.
2016-07-01 23:44:37 +09:00
Olaf Meeuwissen f03f1f66d4 Sync autofoo files 2016-06-29 22:15:06 +09:00