Wykres commitów

27 Commity (dd9d90223e7c4581bac36f458c073fd2ff8e43ae)

Autor SHA1 Wiadomość Data
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
Bernard B Badeer 1f383b3795 Add options for reading LCD counter and LED indicator.
* Add command line parameters for readling LCD counter and LED indicator.
* Code refactoring: Use static parameter strings instead of dynamically
allocated string in order to avoid memory leak.
2019-06-03 06:10:26 +00:00
Povilas Kanapickas d6aace7d51 hp5590: Fix compile error 2018-07-21 03:39:09 +03:00
Ilia Sotnikov 1a2a8ee744 backend/hp5590.c, backend/hp5590_cmds.c:
+ Files header have been expanded to mention of scanbd integration by
   Damiano Scaramuzza and Bernard Badr
2018-07-15 14:09:49 +03:00
Bernard B Badr 1649d5bfea HP5590: scanbd integration is ready. 2018-07-15 11:00:18 +00:00
Ilia Sotnikov a80f3b575e backend/hp5590.c, backend/hp5590_cmds.c:
+ Files header have been expanded to mention of ADF page detection and
   high DPI fixes by Bernard Badr
 * Use C-style comments instead of C++ ones
2018-06-11 11:11:53 +03:00
Bernard Badr b1da51f7fe HP5590: Fixed ADF handling, fixed 48bit color mode, fixed 2400 dpi color layer shift. 2018-06-11 07:56:28 +00:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Volker Diels-Grabsch baec5e0395 Use consistently __func__ instead of __FUNCTION__
Some parts of SANE used __FUNCTION__ while other parts used __func__.
Now, __func__ is used consistently throughout the SANE sources.  This
fixes all occurrences of the following GCC warning:

warning: ISO C does not support '__FUNCTION__' predefined identifier
2015-12-20 15:27:45 +09:00
Volker Diels-Grabsch 6aced758f4 Fix typos in comments
While reading through the SANE sources I noticed some annoying typos
in the comments.  This patch is my contribution to make the SANE
sources slightly more pleasant to read.
2015-12-20 14:43:56 +09:00
Luiz Angelo Daros de Luca 33495ef9b4 Add missing <sys/types.h> includes 2015-10-27 22:34:52 +09:00
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