Wykres commitów

62 Commity (master)

Autor SHA1 Wiadomość Data
Ralph Little 1f22e0dadd avision: added ADF and lightbox installed options.
Also sorted out the options texts to make them translatable.
2023-02-19 15:08:59 -08:00
Ralph Little d88920ffb6 avision: correction for ADF presence detect.
Scanjet 8300 has an ADF port but does not necessarily have an ADF
fitted. In the test case, there is a lightbox instead. Trying to
reset/probe for an ADF that isn't there is futile.
2023-02-18 13:02:29 -08:00
Christian Theis 999a52f691 discussed amendments 2022-06-01 18:04:29 +01:00
Christian Theis 39f9083deb compile avision with -Wconversion -Wtype-limits 2022-05-21 17:28:21 +01:00
Ralph Little f85e2fb9c2 Resolve "Fix `mkstemp` error handling" 2022-05-01 22:02:55 +00:00
Giovanni Cappellotto 325c775036 Add function to debug avision command
Define a new enum that contains Avision data type codes and use those instead
of pure values. I also added a couple of helper functions for debugging the
command operation and data type code if read or send.
2021-02-21 19:53:46 -05:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.

Re #320.
2021-02-12 17:41:38 +09:00
Peter Marschall 269a7c0413 spelling fixes for avision backend 2020-08-29 09:18:04 +02:00
Michael Niewöhner 6a6927b198 backend/avision: implement ADF first-sheet offset compensation
i1120 has another offset. When scanning in ADF multi-page mode (the
default), the very first sheet is moved 1.5mm down. That leads to 1.5mm
being cut off at the bottom.
This implements the (hopefully last) offset setting for multi-sheet ADF
scans.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewöhner e96ce8887e backend/avision: add ADF front-only offset compensation
This adds offset compensation for ADF front-only scans, which may
have different offsets than ADF duplex scans.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewöhner 58a3cdd042 backend/avision: Rewrite offset compensation
This is a complete rewrite of the offset compensation using a
combination of overscan and line skipping. It replaces the option
AV_REAR_OFFSET by specifying exact offset values for each scanner.
This was needed for Kodak i1120 which needs bottom line skipping.
The old implementation could not skip bottom lines since we could
not know how many lines we will get in the end from ADF.
The new implementation redirects the output file descriptor to a
temporary file. After the current page is completely scanned,
offsets are applied and the output is passed to the original
output file descriptor.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:07 +02:00
Michael Niewoehner b4716f6264 backend/avision: i1120: Add option AV_MULTI_SHEET_SCAN
Kodak i1120 has single-sheet and multi-sheet scan modes. This option sets
bitset3[7] which enables multi-sheet scan by default so there is no pause
of 1s between two sheets in ADF scan mode. This also fixes some offsets
when scanning multiple sheets.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner e54c9602e9 backend/avision: i1120: add option AV_GAMMA_UINT16
Kodak i1120 has a different gamma table format that looks like a
uint16/double array. Implement it and add an option for it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner d8bf392424 backend/avision: i1120: add option AV_GAMMA_10
Kodak i1120 needs gamma to be set to 1.0 to give decent scan results.
Add an option for this.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 886bf85d88 backend/avision: i1120: add option AV_NO_QCALIB_MODE
i1120 does not have an explicit "quality-calibration" mode. Add an
option to disable this mode.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner de19ebc61a backend/avision: i1120: add option AV_FASTFEED_ON_CANCEL
Some scanners like i1120 support fast feed-out of the sheet when
cancelling a running scan. Add a new option for this release type.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 692f87389b backend/avision: i1120: add option AV_OVERSCAN_OPTDPI
i1120 uses optical DPI for overscan calculation. Add an option for it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner 74e94e6901 backend/avision: i1120: add option AV_NO_QSCAN_MODE
i1120 does not have an explicit quality-scan mode. Add an option to disable it.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Michael Niewoehner f393f8f246 backend/avision: i1120: add option AV_FORCE_CALIB
Add option AV_FORCE_CALIB to force calibration when scanner claims it is
not needed but it is.

Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
2020-07-26 12:16:06 +02:00
Ralph Little fdc23d129a 1) Correct some spelling mistakes
2) Convert some British spellings to US
3) Modified some longer sentences to improve readability.
4) Modified en_GB to suit
2019-08-05 20:54:18 -07:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Dave Platt 755e829caa avision.c: abort "wait for light" loop if interrupted
Adds a "cancelled" flag to the Avision device structure, cleared
in sane_start() and set in sane_cancel().  Test this flag in
wait_4_light() and bail out of the 90-second "wait for the
light to warm up" loop if the scan is cancelled.
2016-12-15 23:12:07 -08:00
René Rebe 9511c27e59 fixed new avision feature bits for 32-bit build 2015-03-07 18:51:14 +00:00
René Rebe f69a1ad50e removed unnecessary feature_type2 clutter by using a uint64_t to share all bits 2015-03-07 11:16:47 +00: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 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 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 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 24237f2562 Added support for the Avision AV210D2+ scanner
Added support for the Avision AV210D2+ scanner.  This is the first scanner
to require the use of the gray filter bits, so code was added to enable them.
Regenerated description file to reflect this change.
2010-12-23 19:47:56 +09:00
Mike Kelly 7999eeb19d Changed AVISION_FILTER_* defs to use final values
Changed the AVISION_FILTER_* defines to their final values rather than
bit-shifting them prior to use.  This make reading the code much easier
since no mental calculation is necessary to determine what the final
bit-pattern/value will be.
2010-12-23 19:38:13 +09:00
m. allan noah 1465e3b12e updated settings for Visioneer 9450 2010-02-13 13:09:38 -05:00
Rene Rebe 3f0f3be9e3 * backend/avision.{c,h}: merged latest upstream SVN changes, bug fixes
and device ID updates, including fixing uninitialized variables due
          former defect merge and exposure control for film / dia scanners
2008-05-26 09:57:28 +00:00
Mattias Ellert d5ae0bbc3d Fix for bug #306751: sanei-thread with pthreads on 64 bit 2008-05-15 12:50:25 +00:00
Rene Rebe 6b45291c02 * backend/avision.[ch]:
Implemented support for latest Avision ASICs and features,
          including overscan, background raster, software scaling for
          cheaper ASICs used in HP scanners. Changed types used to
          more portable uint* ones, without underscore (_), removed
          in-file ChangeLog history, as the files became big enough.
          Implemented early calibration for easier handling of
          Avision-based film scanners and implemented support for
          2-pass duplex scanners.
2007-11-17 16:19:53 +00:00
Rene Rebe 66fe987c4d Avision backend update (Build 182 -> 201), the ChaneLog has the details 2006-06-06 11:24:18 +00:00
Rene Rebe dff12fc90b * backend/avision.c backend/avision.h: updated the Avision backend
from BUILD 167 to 179, including support for HP 5370, AV600U,
          AV210C2, AV220C2,  et. al. The USB i/o paths got hardened, and a
          lot of fixes as well es enhancements and optimizations where added
          and a lot of typos, mostly in debug output and comments, got fixed.
          The "Line Art" mode was renamed to "Lineart" to match the other
          backends.
2005-12-04 21:29:22 +00:00
Rene Rebe e5a5f45497 Updated the Avision backend with the latest off-site maintained version:
fixed segmentation faults for some modes, many many new devices, two
different duplex modes are supported, vast speedup of multi page batch scans,
buttons as well a 7-segment LED readout and some quirks for old scanners not
filling all fields
2005-07-15 09:12:27 +00:00
Rene Rebe 5eb4ca04c1 * backend/avision.h backend/avision.c: update of the scanner ID table,
wait_4_light bugfixes, fixed color packing, fixed 16bit modes
  (especially for big-endian systems), avoid 16bit modes for default
  modes, fixed gamma-table for some models as well as spelling on the
  way
2004-10-21 15:01:04 +00:00
Rene Rebe 4897ea92fa * backend/avision.c, backend/avision.h, doc/sane-avision.man:
Fixed compilation warning (Bug #300399) and added a force-a3
  option, needed for A3 scanner returning bogus scan area definitions
2004-06-22 14:12:52 +00:00
Mattias Ellert ac9ec0ff1c Missed one... 2004-06-20 01:22:44 +00:00
Rene Rebe c4b01509ab 2004-04-14 Rene Rebe <rene@rocklinux.org>
* backend/avision.h, backend/avision.c: the current development state,
          including cleanups, code refactoring, dynamic color and scan source
          list creation, implemented ADF mirroring needed for some ASICs ,
          some scan window scaliing fixes for some ASICs, added 16bit gray
          and color support, fixed a tiny big-endian issue, fixed command
          error reporting for some ASICs, improved inquiry logging and some
          tiny fixes for film-scanners.

Sorry for such a bit chunk so late in feature freeze (...). But tested on Ultra
SPARC, PowerPC and x86 Linux ... ;-)
2004-04-14 20:20:39 +00:00
Rene Rebe 477b0029ff * backend/avision.c backend/avision.h: the current development state,
including cleanups, code refactoring and nearly complete HP
  53xx/75xx ADF support
2003-11-23 23:35:53 +00:00
Rene Rebe 023f7c1e7a Also fixed Bugs #300288 and #300196, removed the conflicting Option_Value
now present in sanei_backend.h and made requested clarifications (Bugs #300290,
#300291)
2003-10-28 11:24:21 +00:00
Rene Rebe 8425846c8e merge of the current Subversion revision of SANE/Avision. The fixes include:
endianess fixes, calibration code, ADF detection, correct lamp warmup,
gamma table for new ASICs, some workarounds for ASIC variations and the
convertion to use OPT_SOURCE instead of seperate OPT_ADF and OPT_TRANS.
2003-10-28 09:41:27 +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
Rene Rebe 8ce6e0d515 Updated the avision backend to latest build. This includes user-space
USB support and OS/2 thread handling.
2003-03-25 01:43:35 +00:00
Rene Rebe 2f8f90a79a Update to the latest Avision backend release. It includes feature
and stability improvements and bug fixes. The sane man-page now
mentions that the avision backend supports more than the AV 630 CS ...
2003-02-16 17:35:05 +00:00