Wykres commitów

15 Commity (bae9f0a3d3bc83928e95e0cf5abb7c63b9552e75)

Autor SHA1 Wiadomość Data
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
Ondrej Zary 8e627110cd canon: Add support for Canon IX-4015 scanner
This adds support for Canon IX-4015 scanner. The difference from other scanners
supported by this backend is that it has no highlight and shadow settings - the
corresponding bytes in set_window command must be zero or it will fail.

IX-4015 has optical resolution of 400 dpi, can interpolate up to 800 dpi (color)
or 1200 dpi (grayscale).
2012-10-18 20:27:30 -04:00
Ondrej Zary 1594aa5a05 canon: Separate diagnose and calibrate capabilities
Some scanners (e.g. IX-4015) support diangostics but not calibration
so separate these two capabilities.
2012-10-18 20:27:30 -04:00
Ondrej Zary d750ed0b12 canon: Fix sense_handler
sense_handler() crashes with Canon IX-4015 after the scanner is powered on because
scanner returns "unit attention - power on reset" sense status as a reply to the
"Test Unit Ready" command after power on - and dev is still NULL at that time.

The non-NULL dev is needed only to check if the device is a scsi2 device. But all devices
supported by this backend have the is_scsi2 flag set so it's useless.

So remove the flag and all its usage. Also change the return value for "power on
reset" check condition to SANE_STATUS_GOOD to allow IX-4015 to work.
2012-10-18 20:27:29 -04:00
Ulrich Deiters e55d3d8ce6 Ulrich Deiters: got rid of some compiler warnings 2006-06-15 15:55:28 +00:00
Ulrich Deiters a97d0bf43c inserted definition for SSIZE_MAX 2005-07-04 07:01:53 +00:00
Ulrich Deiters 20aff8e022 restored actual version of the Canon-SCSI backend 2005-07-01 19:21:55 +00:00
Ulrich Deiters 19fed4c4f8 Ulrich Deiters: removed option "OPT_PAGE" from Canon-SCSI backend 2004-05-21 20:35:26 +00:00
Henning Geinitz 0e70e29baf Moved union Option_Value from backend header files to sanei_backend.h. No need
to copy it over and over again. Changed header inclusion order in backend
files to include backend.h after sanei_backend.h. Based on a patch from stef
<stef-listes@wanadoo.fr>.
2003-09-12 16:10:33 +00:00
Ulrich Deiters bf3546ca14 adjusted backend/canon-sane.c to use the new sanei_constrain_value()
made some cosmetic changes to reduce the number of compiler warnings
2003-02-28 09:35:24 +00:00
Ulrich Deiters 4fe497b559 * modified the Canon SCSI backend (now version 1.12):
* backend/canon.c, canon-sane.c, canon.h: Added support for
  the FB1200S flatbed scanner.
* backend/canon.c: Made the sense handler generate meaningful
  status information for new scanner models (solved the Mandrake
  crash problem).
* backend/canon.c, canon-sane.c, canon.h: Moved model-dependent
  declarations and decisions to a common location.
* backend/canon-sane.c: Fixed the out-of-memory problem of
  xscanimage when doing previews with scanners using hardware
  scan resolutions only.
2003-02-26 13:50:00 +00:00
Henning Geinitz 9f0dbb0d8f Don't export option_name.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-21 15:33:22 +00:00
Abel Deuring 33846a6c94 backend/canon-sane.c, backend/canon-scsi.c, backend/canon.c,
backend/canon.h, doc/sane-canon.man,
doc/descriptions/canon.desc: added support for FB620S and
and FS2700, by Mitsuru Okaniwa <m-okaniwa@bea.hi-ho.ne.jp>
and Ulrich Deiters <ukd@xenon.pc.Uni-Koeln.DE>

Abel
2002-04-21 10:29:18 +00:00
Petter Reinholdtsen 760423d864 Merged main branch with current DEVEL_1_9. 2000-03-05 13:57:25 +00:00
Petter Reinholdtsen 30ab5e718a Initial revision 1999-08-09 18:06:01 +00:00