Wykres commitów

63 Commity (6865eaf6edef0cc5ea30bcc0d72b52189132f4d6)

Autor SHA1 Wiadomość Data
Alessandro Zummo d0e7675e60 epson2: added support for Perfection V800 (Nick Stroustrup) 2015-07-31 22:01:19 +02:00
Alessandro Zummo 980b4f6b06 epson2: fix compilation error 2015-05-15 20:01:32 +02:00
Alessandro Zummo 66a15edbcf epson2: consolidate cleanup 2015-05-12 03:18:37 +02:00
Alessandro Zummo 025f886f4b epson2: fix error message 2015-05-12 03:10:22 +02:00
Alessandro Zummo 5d3c2edb8f epson2: fixed depth > 8bit (thanks to Thomas M.) 2015-03-15 01:18:36 +01:00
Alessandro Zummo a73d9e1ab0 epson2: cancel requests were not handled correctly 2015-03-15 01:18:36 +01:00
Alessandro Zummo e855744b5c epson2: improve debug output 2014-03-03 23:56:28 +01:00
Alessandro Zummo 83b9767539 epson2: fixed detection of multiple network-enabled scanners 2014-03-03 23:56:28 +01:00
Alessandro Zummo 543393d90c close connection if an error occurs in the detection process 2013-08-29 11:33:24 +02:00
Alessandro Zummo 909aa82085 epson2: handle TPU2 as a separate transparency unit (Claus <claus@egehuset.dk>) 2011-12-25 02:43:14 +01:00
Chris Bagwell 2c4b1da0bf add FreeBSD Port's patches
epson2-commands.c: Include <sys/types.h> to resolve u_long.
epson2.c, magicolor.c, xerox_mfp-tcp.c: Include <sys/types.h>
and to <sys/socket.h> for anyone using setsockopt().
sanei_tcp.h: Include <sys/types.h> since ssize_t is referenced.
sanei_usb.c: Newer FreeBSD version checks.

All changes in this patch set come from FreeBSD ports patches.
Bug #312503.
2011-11-20 20:08:15 -06:00
Chris Bagwell 3125506715 revert broken sleep()->usleep conversion.
Got unit conversion wrong.
2011-11-10 18:39:12 -06:00
Chris Bagwell 50475719ef portabilty mods to epson2 backend
No behavior changes.  Wrap some optional headers with #ifdef's and
use usleep() instead of sleep() since it exist everywhere.
2011-11-09 21:50:18 -06:00
Alessandro Zummo 14d0ca4364 epson2: fixed segfault when attaching network devices 2010-12-12 13:56:52 +01:00
Alessandro Zummo e75d6e5e0c epson2: do not call set_color_correction_coefficients where unsupported 2010-04-04 17:07:06 +02:00
Alessandro Zummo 74c0db99eb epson2: disable thresholding by default 2010-04-04 17:05:34 +02:00
m. allan noah ff048f4176 add three new SANE_VALUE macros and use mode name macros from saneopts.h 2010-02-10 23:48:21 -05:00
Alessandro Zummo 63a8dd4ebc epson2: improved error detection 2010-01-09 23:21:50 +01:00
Alessandro Zummo 506c1be1a4 epson2: fixed handling of cancel requests 2010-01-09 22:08:41 +01:00
Alessandro Zummo 503f9a6d46 epson2: simplified color correction, built in profiles active by default 2010-01-09 17:24:33 +01:00
Alessandro Zummo 8013bd7acb epson2: improved debug messages and comments 2010-01-09 15:25:27 +01:00
Alessandro Zummo dd0e0dd7d4 epson2: fixed color shuffling bug for Perfection 610, added more debugging 2010-01-09 15:25:27 +01:00
Alessandro Zummo b7c37f5aef epson2: limit the capabilities of group options to SANE_CAP_ADVANCED 2010-01-04 02:59:42 +01:00
Alessandro Zummo d3eb202464 epson2: fixed sane_get_parameters and handlign of "net" string
in epson2.conf
2009-09-05 21:10:09 +02:00
Alessandro Zummo 017696919b epson2: add infrared support
Adds infrared support for GT-X800 and GT-X700. Can be tested
by enabling the infrared frame type in sane.h and using
tiffscan (http://code.google.com/p/tiffscan/)

 tiffscan --mode=infrared --scan
2009-06-27 17:33:23 +02:00
Alessandro Zummo 3730e34c91 epson2: added support for color correction profiles
Color correction profiles have been imported from the epkowa driver.
The user can specify his own or let the backend choice. The
feature is not enabled by default.

This feature is in beta stage, works only for color scans
and automatic mode.

Enable with --color-correction 'Automatic'
2009-06-22 22:43:07 +02:00
Alessandro Zummo a2e6237f6e epson2: code cleanup
Style and dead code cleanup.
2009-06-18 11:39:04 +02:00
Alessandro Zummo 2d89885211 epson2: fixed network issue 2009-06-18 02:00:30 +02:00
Alessandro Zummo e5bb03de2a epson2: removed unused code and options
Code and setup for never implemented or removed options
has been cleaned up.
2009-06-17 12:39:34 +02:00
Alessandro Zummo c8e84cd579 epson2: reinstated i18n in backend options
This reverts commit 45fef7b043.
2009-06-17 02:29:31 +02:00
Alessandro Zummo 3d223411cd epson2: avoid probing when device name is given
The code flow has been modified to avoid unnecessary probing
and double opening of a device. There's no more delay before
opening a networked scanner and the whole scan process begins
much earlier.

Accepted device names are:

 net:ipaddress
 net:hostname

 libusb:vendor:product

 pio:0xnnn

plus any form supported by the SANE scsi and usb
routines.

The code has been tested on network, scsi and libusb. Unfortunately
I do not have any parallel port based scanner.
2009-06-16 23:51:07 +02:00
Alessandro Zummo ebb98839d1 epson2: improved error detection in networking code, fixed buffer size
Error checking has been added when receiving the network
header and welcome message. Timeout has been added too and
a wrong buffer size has been corrected.
2009-06-16 17:27:27 +02:00
Alessandro Zummo 92f729ea83 epson2: removed invert image, cleaned up some code
Image inversion is something that can be handled by a frontend,
in the epson2 backend I want to avoid to add any complexity
that doesn't belong to the hardware.
2009-06-16 17:27:10 +02:00
Alessandro Zummo 45fef7b043 epson2: removed i18n from backend options
Internationalized backend options lead to incompatible shell
scripts, so they've been removed. A trailing dot has been removed
from some descriptions and a few includes moved around.
2009-06-16 17:27:10 +02:00
Alessandro Zummo e73177a177 epson2: allow get_devices to be called multiple times
The probing code has been streamlined and is now more maintenable.
The backend will probe when required and the get_devices hook can
be called multiple times. Transfer buffers are now selected based
on the connection type.
2009-06-10 21:09:05 +02:00
Alessandro Zummo 83b0f1f4f5 epson2: code style fixes
Minor code style fixes, like missing tabs, lenghty line, etc
2009-06-03 02:28:44 +02:00
Alessandro Zummo e1b835bf48 epson2: check for warming up condition after a start failure
Sometimes a "fatal error" is given back when the scanner is warming up.
The previousversion of the code checked for that issue only when
the ADF was in use.
2009-06-02 19:19:29 +02:00
Alessandro Zummo 728e032a5a epson2 reorganization
Some subroutines have been moved from epson2.c to epson2-ops.c and
there's also a temporary fix for the networking code.
This is work in progress but should work.
2009-06-02 01:03:33 +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
Alessandro Zummo 3d05683f81 fixed TPU warmup retry 2009-04-25 13:55:06 +00:00
m. allan noah b85947768d backend/*.[ch]: more consistent #include "../include/sane/config.h" 2009-02-25 02:11:17 +00:00
Chris Bagwell b52b0c0c14 * backend/epson2.c backend/pixma_bjnp.c, include/sane/sanei_backend.h,
sanei/sanei_tcp.c, sanie/sanei_udp.c: Improve portablity by
  removing usage of MSG_WAITALL since not all platforms support
  that (cygwin).  Default is to be blocking anyways.  Changed
  usage of MSG_NOTWAIT to use fcntl() function as needed as well.
  * configure.in, lib/Makefile.in, lib/strcasestr.c: Add internal
  strcasestr() for platforms missing it (cygwin).
  * pixma_common.c: My source match header prototype for picky
  compilers (cygwin).
  * backend/umax_pp_mid.c: Allow BACKEND_NAME to be filename
  yet debug to be SANE_DEBUG_UMAX_PP to match man page.
2009-01-29 15:10:19 +00:00
Alessandro Zummo 7ee4156e7d do not use request_identity2 with
networked scanners, fixed generation of resolution list.
2009-01-15 19:18:05 +00:00
Alessandro Zummo 642e29f9be backend/epson2.c: changed version code, added protection from wrong settings. 2008-12-26 22:02:32 +00: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
Alessandro Zummo 9227e7d6bc fixed bug when an extended command
was used with D8 level scanners. bug reported
by Kare Sars <kare.sars@kolumbus.fi>
2008-11-18 20:26:55 +00:00
Julien BLACHE 89b77cef58 Initialize s->fd to -1 once the struct Epson_Scanner is allocated and zeroed
out in attach(). Otherwise the backend sends inquiry data to fd 0, which it
obviously shouldn't do; this breaks scanning over saned.

Thanks to Giuseppe Sacco who experienced the issue and pointed to epson2 as
the probable cause.
2008-05-03 14:43:07 +00:00
Alessandro Zummo e16b0e2051 backend/epson2.c: fixed attach() error path. 2008-04-18 21:24:32 +00:00
Mattias Ellert 1aaed781b6 Fix format warnings 2008-02-03 12:09:09 +00:00
Mattias Ellert af663bc5e7 Fix format warnings 2008-02-03 10:34:20 +00:00