Wykres commitów

7283 Commity (b7a62c1d54d76f9490a347449a4ab58bbb50799a)

Autor SHA1 Wiadomość Data
m. allan noah f263134181 updated translations 2011-02-10 21:00:14 -05:00
Alessandro Zummo 71f68035b3 epson2: try to avoid a division by zero 2011-02-05 18:14:29 +01:00
Stéphane Voltz 66716a5666 disbale software crop/deskew and despeckle at 16 bit depth 2011-02-04 06:17:27 +01:00
Stéphane Voltz e375cef3b0 genesys asynchronous parking hadling fixes 2011-02-02 10:47:21 +01:00
Stéphane Voltz 99ede36f75 more asynchronous parking issues fixed 2011-02-02 09:30:13 +01:00
Reinhold Kainhofer c0b26b4568 sanei_usb: Add function sanei_usb_get_endpoint, add range check in sanei_usb_set_endpoint
Since we now have the possibility to change the endpoint used for a particular USB communication type,
we also need a way to retrieve the current endpoint, so that one can e.g. reset the endpoint to the
old value after a single usb operation on a different endpoint.
2011-01-31 22:42:29 +01:00
Stéphane Voltz 58d5d64e00 fix unused variables 2011-01-31 21:47:32 +01:00
Stéphane Voltz 66549b2b7d minor cleanups and changelog entry 2011-01-31 21:47:32 +01:00
Stéphane Voltz 5ea5757579 don't return EOF if some data was available 2011-01-31 21:46:22 +01:00
Stéphane Voltz d0ea6b8647 fix asynchronous parking issues 2011-01-31 21:46:22 +01:00
Stéphane Voltz 948aa52e54 handle writing of lineart data 2011-01-31 21:46:22 +01:00
Reinhold Kainhofer 0cc0b31f86 Update developer docs about translations 2011-01-31 20:43:22 +01:00
m. allan noah b9b8d9ec33 add magicolor 2011-01-31 14:26:00 -05:00
m. allan noah cde8951ef9 fujitsu backend v106:
- listed new models
- dont call mode_select with a page code the scanner does not support
2011-01-31 08:31:34 -05:00
m. allan noah 583c345a39 epjitsu: comment changes, listed new models 2011-01-31 08:31:34 -05:00
Reinhold Kainhofer 8e688f51b6 magicolor: Drop SNMP autodetection timout from 2.5 to 1.5 secs 2011-01-31 14:27:10 +01:00
Reinhold Kainhofer beb0aaef5b magicolor: backend needs net-snmp 5.6 for snmp auto-detection
In net-snmp 5.5 the UDP transport does not provide a public-API way to extract the originating IP of the
response to the SNMP auto-detection broadcast request... The structure that stores that information
was moved to the public include/library/snmp_transport.h header only in 5.6 :(
2011-01-31 14:26:46 +01:00
Mike Kelly 5d50544f77 Updated ChangeLog 2011-01-29 11:50:18 +09:00
Mike Kelly 8e623c473e Bumped the BUILD version 2011-01-29 11:50:17 +09:00
Mike Kelly b73d9e08e1 Updated Avision Homepage URL
Updated Avision Homepage URL for both description file and man page.
2011-01-29 11:50:16 +09:00
Mike Kelly edcf4cbadb Fixed initialization and duplexing for AV220-G
This fix correctly initializes the AV220-G by querying the firmware.
Added the correct option to support the interlaced duplex format used by
this unit.
2011-01-29 11:50:15 +09:00
Mike Kelly d7b3076142 Add page re-flipping as an option
Flipping duplex scanners must flip the page in order to scan the back side
of the page.  With this option set (which is the default), the page is
flipped back to the original orientation.  This is important if you have
a stack of papers.  However, if you don't care if every page ends up
flipped compared to how it was loaded, turning this option off might save
some scanning time as the paper won't have to be pulled back through the
ADF mechanism a third time.
2011-01-29 11:50:14 +09:00
Mike Kelly b82e9949b5 Fixed back page handling for flipping duplexers
Although the flipping duplexer is working, there are some issues relating to
the mechanics of physically flipping paper.  First among these is that the
back side of each page is physically scanned in reverse, resulting in an
upside down image.  Secondly, the page is held partially in the ADF
mechanism while waiting for the frontend to make another scan request for
the back side image, thus resulting in a stuck page if the frontend fails to
follow through.

My solution to these problems is to treat page flipping as an extreme
extension of interlaced scanning; page level interlacing.  This means making
another scan request on behalf of the frontend, and writing the resulting
image to a file as would have been done if the page were line interlaced.
We would have had to write this image to a file anyway to flip the image
right-side up, so we aren't doing any extra work, and technique allows us to
reuse existing code for most of the file handling.  The reader_process()
function is called again (recursively) after scanning the front page.  We
use the page length of the front side to determine the length of the back,
so that we can write the lines to the file starting at the end and working
towards the beginning (thus flipping the image).

A side effect of this solution was the discovery that the scanner must be
reminded that the paper needs to be re-flipped after each scan, so
set_window() must also be called in reader_process() before starting the
second scan.

Finally, with this change, a minor bug was exposed where frontends were
given the number of lines which would be scanned, which makes sense in
flatbed mode, but does not make sense for an ADF, where the page may be
smaller than the scan window.  The code was changed to follow the
specifications, returning -1 in ADF mode (when the length cannot be
determined).
2011-01-29 11:50:13 +09:00
Mike Kelly 104b43a183 Removed inquiry_adf_need_mirror_rear variable
After fixing the duplexer initialization, it became clear that the code was
mirroring the back pages.  Since the scanner already supports page
mirroring internally with an optional bit setting (which was already set)
it made the most sense to simplify the code base and remove the variable.
2011-01-29 11:50:12 +09:00
Mike Kelly 1b1b0b9a78 Fixed flipping duplexer initialization
For scanners which potentially have flipping duplexers, only enable
duplexing if there is an ADF present.  This leads to the next problem, that
the flipping duplexers (present only on the HP 8200 series AFAIK) don't
always seem to be properly configured when powered up.  To solve this some
magical values are written to magical memory locations, and some more
magical status is read back, causing an apparent firmware reset which
blocks communication for a short period of time.  See adf_reset() for
details.
2011-01-29 11:50:11 +09:00
Mike Kelly 12924236c6 Enable firmware reading for some scanners.
Sometimes scanners like to have their firmware read to cause them to
function properly.
2011-01-29 11:50:10 +09:00
Mike Kelly 1b1df46e41 Add feature type for flipping duplexing ADF units
Added the AV_ADF_FLIPPING_DUPLEX flag to activate the flipping duplex code
only for models known to have such duplexing ADFs.  Prior to this a doubious
huristic was used to guess when the hardware had a flipping duplex unit.
2011-01-29 11:50:09 +09:00
Mike Kelly 1904dad962 Removed additional_probe gatekeeper variable
The additional_probe variable protected add_source_mode() and
add_color_mode() from being entered upon subsequent calls.  These functions
were patched to not insert duplicate records in this case, removing the
need for the gatekeeper variable.
2011-01-29 11:50:08 +09:00
Mike Kelly 4d38523bda Return copied values in sane_get_parameters()
Until now the code has been changing the frontend supplied pointer to point
to our internal data structure.  There are two problems with this.  It
orphans the data previously associated with that pointer, which causes a
memory leak.  It also gives the frontend the ability to munge our internal
data structure.

The only downside to this change is the possibility that a frontend took the
spec too literally and merely supplies a pointer but does not allocate
storage space for the result.  Technically, the spec is a bit vague on this
point, because it does not specifically state who should allocate the
structure, but I feel a reasonable programmer would guess that space
allocation is a frontend obligation.
2011-01-29 11:50:07 +09:00
Mike Kelly 64caf38683 Don't compute parameters twice (in a row)
Removed a redundant call to compute parameters.  This function is called
from within the last function call, no need to call it again.
2011-01-29 11:50:06 +09:00
Mike Kelly b45400222d Added paper-length option to prevent double feeds
There was an old TODO in the code which suggests creating an option for using
the paper_length field to detect double feeds in the ADF.  I've added it as
an option, but set the default to not use it since it might cause older
scanners to get confused.
2011-01-29 11:50:05 +09:00
Mike Kelly 42cdb00aa1 Added a Misc option group to hold misc features
I felt that the ehancements group was doing double duity for image tuning and
other more hardware related options.  This new group takes ownership of those.
I'm not happy with the name, but that can always be changed.
2011-01-29 11:50:04 +09:00
Mike Kelly d48f749cae Fixed debug level for a single message
There is no reason that this message needs to be triggered at 100 when
everything else only goes to 9.
2011-01-29 11:50:03 +09:00
Mike Kelly 1bc4003b6c Whitespace changes. 2011-01-29 11:50:02 +09:00
Mike Kelly a230ee3ae2 Fixed spelling and grammar 2011-01-29 11:50:01 +09:00
Mike Kelly 260e86397f Updated copyright because it's 2011! 2011-01-29 11:50:00 +09:00
m. allan noah c78f416175 canon_dr backend v37:
- don't center window when using flatbed
- improve request sense error messages
- enable flatbed for all known models
- ad usb ids for DR-6030C, CR-135i & CR-190i
- moved DR-2020U to unsupported.desc
2011-01-26 22:05:02 -05:00
m. allan noah e237abad17 hopefully enable flatbed support 2011-01-26 22:05:02 -05:00
Reinhold Kainhofer e7532c03c5 magicolor: Get rid of the byteorder macros, copy the bytes manually to/from little endian
This also fixes some compiler error on 64-bit systems
2011-01-25 21:25:00 +01:00
Reinhold Kainhofer f054a4e8ee magicolor: cast size_t arguments to unsigned long for debug output and use the %lu format 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer 2d9f458992 magicolor: Get rid of compiler warning 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer a3cf04dd9b Apparently, autoreconf on the server somehow missed the HAVE_LIBSNMP variable... 2011-01-20 18:51:26 +01:00
Stéphane Voltz 0e2432be53 HP2400/G2410 support progress 2011-01-20 06:59:17 +01:00
m. allan noah 70da6167cc Disable automatic RIF of binary modes on DR-5060F 2011-01-19 08:42:05 -05:00
m. allan noah 40e40989d9 rebuild autofoo for magicolor and snmp support 2011-01-18 21:31:13 -05:00
m. allan noah 39ae267f06 improved scsi scanner detection 2011-01-18 10:46:33 -05:00
m. allan noah e3a1fa1088 Changelog entry for recent updates 2011-01-18 10:30:03 -05:00
m. allan noah 09662f0792 updated german translation from Matthias Mailander 2011-01-18 10:17:46 -05:00
m. allan noah 8a1a22e6ad updated polish translation from Jakub Bogusz 2011-01-18 10:14:09 -05:00
m. allan noah 5aa48d8b17 update credits 2011-01-18 10:08:38 -05:00