Wykres commitów

50 Commity (ba10bb37cd32d3aae858651f670a89c17b9d311b)

Autor SHA1 Wiadomość Data
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
Mattias Ellert 74c81b6daf Fix deps and missing includes 2008-02-02 21:18:13 +00:00
Alessandro Zummo f31871bd6d changed functions prefix (esci_ for device commands,
e2_ for driver's functions), better handling of tpu area,
fixed tpu detection, changed freeing of line buffers,
fixed some XXXs.
2008-01-09 17:10:08 +00:00
Alessandro Zummo 4cf7b16449 backend/epson2.c, added network scanner autodiscovery 2007-12-26 11:34:17 +00:00
Alessandro Zummo 569bdc5300 fixed model detection,
depth detection and removed some unused
variables.
2007-12-15 11:37:53 +00:00
Alessandro Zummo 83e5a63060 use epson2_model where possible,
fixed segmentation fault.
2007-12-10 17:32:54 +00:00
Alessandro Zummo 26e167cdec backend/epson2.c: removed quick-format option. it's
the job of a frontend to provide such a commodity.
removed confusing parameters (preview-speed, speed).
when a preview is requested, the scanner will be
set to high speed (if possible).
removed references to the never implemented zoom function.
the function that shortened the list was actually
missing the first entry.
more resolutions addedd for networked scanners.
added support for Perfection 4990 (Claus Boje).
2007-11-18 09:36:04 +00:00
Julien BLACHE 7ca41423ac OPT_NUM_OPTS must be of type SANE_TYPE_INT. 2007-10-26 14:56:38 +00:00
Alessandro Zummo 7a34d599e5 * sanei/sanei_tcp.c: added a missing include
* backend/epson2.c: fixed a bug while moving scanner data,
removed support for line mode (block or ext modes will be used).
2007-01-20 20:59:05 +00:00
Mattias Ellert 5d42e90718 String harmonization 2007-01-20 14:46:25 +00:00
Alessandro Zummo bf5a1290f7 * epson2: restructured code once more, splitted
in multiple files, added networking
support, added FS G extended handshaking mode,
make proper use of extended commands when possible
* sanei/sanei_tcp.c: read now wait until all
the requested data is available.
2006-12-18 00:13:09 +00:00
Alessandro Zummo 35d54905e8 epson2: removed calls to alloca(), code reorganization fixed a bug
with request_extended_status (reply length is 33 on older scanners).

include/.cvsignore: added two more entries
2006-12-12 01:12:07 +00:00
Alessandro Zummo 48b02b3489 epson2: reordered includes, replaced __FUNCTION__, use the new byteorder macros
moved acbyteorder.m4 to m4/byteorder.m4, added m4/stdint.m4
2006-12-07 19:28:02 +00:00
Alessandro Zummo 735130b0ff Added missing bits for epson2 driver. 2006-12-02 14:47:21 +00:00