Wykres commitów

16 Commity (09daef4a681e43a411b14389ceee9292ffbc29fc)

Autor SHA1 Wiadomość Data
Ilia Sotnikov 9d9cefb7a7 * Invert pixels in case of TMA Negatives source has been selected.
Thanks for Will Kranz who reported this.
2015-01-20 12:33:49 +03:00
Stéphane Voltz b5369068ac bug 314035 use after free
- apply bug fix from Nickolai Zeldovich (nickolai-guest) for use after
  free
2013-03-18 11:30:16 +01:00
Nhan Ngo Dinh 8932359312 * Fix hp5590 backend on big-endian platforms
Little Endian (working)
  =======================
  [hp5590] hp5590_init_scanner
  [hp5590] hp5590_cmd: USB-in-USB: command : 0012
  [hp5590] hp5590_control_msg: USB-in-USB: core data: no
  [hp5590] hp5590_control_msg: USB-in-USB: sending control msg
  [sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 143, index = 0, len = 8
  [sanei_usb] 0000: C0 04 00 12 00 00 32 00

  Big Endian (not working)
  ========================
  [hp5590] hp5590_init_scanner
  [hp5590] hp5590_cmd: USB-in-USB: command : 0012
  [hp5590] hp5590_control_msg: USB-in-USB: core data: no
  [hp5590] hp5590_control_msg: USB-in-USB: sending control msg
  [sanei_usb] sanei_usb_control_msg: rtype = 0x40, req = 4, value = 143, index = 0, len = 8
  [sanei_usb] 000 C0 04 00 12 00 00 00 32

  USB field wLength should always be treated little-endian, last command value during
  verification is received as little-endian as well.

  Thanks to Nhan Ngo Dinh for identifying the issue and providing the patch.

  Signed-off-by: Ilia Sotnikov <hostcc@gmail.com
2012-07-15 10:47:21 +03:00
Ilia Sotnikov 10c776769f hp5590: fixed detection of HP4500 devices (tested) and HP5550 (untested) -
these devices need no reading USB-in-USB acknowledgement after each command.
To achieve that, proto_flags are passed down to low-level functions. These
flags are taken from device descriptions
hp5590: fixed up get_status command - index should be 0x00, not 0x20
hp5590: bump up the backend version
2011-03-06 13:30:58 +02:00
Ilia Sotnikov 359114a7a0 hp5590: in ADF modes the device can scan up to 14", which is usually bigger
than what scanner reports back during initialization
2011-03-06 13:10:39 +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
chris@cnpbagwell.com 07c5723cab Merge branch 'master' of ssh://cbagwell-guest@git.debian.org/git/sane/sane-backends 2009-05-09 21:40:55 -05: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
Ilia Sotnikov 92076edd36 * HP5590:
- Updated the list of supported devices (HP 5500C which is similar to
    4570C, 5500C which is similar to 4500C) - only strings/comments, no
	code was changed
  - Updated backend version
  - Updated man page
2009-05-06 20:37:48 +03:00
Ilia Sotnikov d9bfa31c40 * [Bug #311316] Allow sane_open() to be called with empty (zero-length)
device name to select first available one (see special case described in
  SANE API Documentation, s. 4.3.4).
2008-12-22 07:52:43 +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
Ilia Sotnikov 7b4f5d36e8 * Fixed segmentation fault on invalid option passed to
sane_get_option_descriptor(), sane_control_option()
  (thanks to Albert Cervera i Areny)
2008-06-19 11:28:06 +00:00
Ilia Sotnikov 249681dbc6 + Added support for HP ScanJet 4570c (thanks to Markham Thomas) 2008-06-19 11:03:49 +00:00
Ilia Sotnikov 5bb041ea9a * Don't issue "Assertion 'ptr->opts != NULL' failed" when sane_exit() is called
without calling sane_open() first, just skip ptr->opts free()'ing in that case.
  Thanks to David Campbell for spotting this.
* Protect sane_control_option() from possible SIGSEGV when it would be called
  with uninitialized scanner options (scanner->opts == NULL).
2007-11-28 11:52:15 +00:00
Mattias Ellert a75a509bcc Updated localization files 2007-05-08 11:46:24 +00:00
Ilia Sotnikov bb31b94180 + Added files for 'hp5590' backend which supports HP ScanJet 5550/5590/7650
scanners
2007-04-24 17:56:36 +00:00