Wykres commitów

24 Commity (f4fb21e33410c9d246a4028573efd95f26cd8ad3)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen 68ec98d7b1 hp3500: Fix [-Wunused-function] compiler warning
The sigtermHandler is only used when _POSIX_SOURCE is defined.
2017-07-15 22:15:18 +09:00
Olaf Meeuwissen df1aba21bc SANE_Pid: Fix [-Wint-conversion] issues
Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.

The musl C library uses a `struct __pthread *` which triggered the
warnings.  As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight.  All
backends have been changed to use these macros.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09: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 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
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 a82798d5e1 hp3500: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Volker Diels-Grabsch 7c8c8e29be Remove dead code due to unused variables
This fixes some occurrences of the following GCC warning:

warning: variable '...' set but not used
2015-12-20 15:21:45 +09:00
Olaf Meeuwissen e094c5b43b Invert sense of sanei_thread validity check
Double negatives suck.
2015-11-24 18:19:31 +09:00
Olaf Meeuwissen fe12d31e68 Fix SANE_Pid related -Wsign-compare warnings
This may fix threading related issues on WIN32 platforms, BTW.
2015-11-24 18:19:31 +09:00
Troy Rollo 91ea92686d hp3500.c: Remove interdependency between contrast and brightness 2011-03-13 10:07:33 +11:00
Troy Rollo b7d79169f3 Add grayscale and line art scanning to HP3500 backend, as well as contrast
and brightness controls that influence calibration of the scanner.
2011-03-12 20:36:43 +11:00
Troy Rollo 8ec394d648 Stop hp3500 backend from calling exit() at the end of a scan (which is
unhelpful when sane threads are threads rather than processes).
2009-10-18 12:14:25 +11:00
Alessandro Zummo b39c12dd7b Define MM_PER_INCH once for all 2009-06-18 15:54:49 +02:00
chris@cnpbagwell.com 4d9e8138af standardize including local sane/ include files.
Source code was inconsistent on how they were referencing
include files in include/sane.  In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Mattias Ellert d5ae0bbc3d Fix for bug #306751: sanei-thread with pthreads on 64 bit 2008-05-15 12:50:25 +00:00
Mattias Ellert 7c6b4d6a99 Fix handling of valid "negative" PIDs 2007-11-18 10:59:18 +00:00
Julien BLACHE 7ca41423ac OPT_NUM_OPTS must be of type SANE_TYPE_INT. 2007-10-26 14:56:38 +00:00
Troy Rollo ee413cf781 HP3500 backend:
Improve speed and reduce noise of most resolutions
	Deal with an escape code discovered in the scanner's protocol
	Use hardware detailed calibrations for resolutions up to 300
	Use improved software detailed calibration for other resolutions
	Add more debug information
	Drop the 25dpi resolution
	Make 200dpi the default (the same as the Windows frontend)
	Add code (not used yet) to deal partially with grayscale and
		lineart scanning
	Use I18N strings where appropriate
2007-04-21 07:19:14 +00:00
Troy Rollo b1f38bc825 Fix latent error in HP3500 backend 2006-02-04 02:28:51 +00:00
Troy Rollo 0fb42d0ef6 Fix error causing HP3500 driver to return an extra row on each scan. 2006-02-04 02:13:57 +00:00
Henning Geinitz 07757d4c85 Added hp3500 backend which supports the HP ScanJet 3500 series, including the
3500C, 3530C and 3570C (patch from Troy Rollo <sane@troy.rollo.name>) (bug
#302687).
2005-12-20 17:55:45 +00:00