Wykres commitów

53 Commity (b31b82c8bd99e890835b0ab8f42cbf118481784e)

Autor SHA1 Wiadomość Data
David Ward b3d105cba5 Use snprintf() instead of strncpy() for space-padded strings
The output from the SCSI inquiry command uses fixed-length space-padded
strings, which are copied into null-terminated strings before use.

This is currently done using strncpy(), with the count parameter set to
the string's fixed length. Because a null terminator is not encountered
in the input, strncpy() does not write one in the output, and GCC warns
about potential string truncation. A null terminator is added manually,
but this is error prone (as shown by the fix for the microtek backend).

Use snprintf() instead, which guarantees a null-terminated result and
resolves the warnings from GCC.
2022-03-08 19:00:00 -05:00
Peter Marschall 3d1a5da4e1 spelling fixes for fujitsu backend 2020-08-29 09:18:03 +02:00
m. allan noah 336cbdfd4c fujitsu backend v136
- add support for fi-800R
- add support for card scanning slot (Return Path)
- fix bug with reading hardware sensors on first invocation
2020-02-07 21:06:50 -05:00
m. allan noah 156f7c9bd4 fujitsu backend v134
rewrite init_vpd for scanners which fail to report overscan correctly
update description and man page to match
rebuild po files with updated line numbers
2019-02-23 15:16:32 -05:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
m. allan noah 9712e2aa25 fujitsu backend v133 2017-04-08, MAN
- initial support for fi-7600/7700
- autodetect various double feed capabilities using VPD
- call send_lut if we are using a downloaded gamma table
2017-04-08 21:44:27 -04:00
m. allan noah e4aed53a1e fujitsu backend v132
- remove ipc_mode option and variables
- set ipc mode based on other options
- cleanup inverted logic DTC options
- fixes threshold option reported in #315069
2016-10-08 20:54:58 -04:00
m. allan noah 5ba37467e8 fujitsu backend v131
- hide compression-arg option when jpeg disabled
- add Send/SC/GHS macros for recent scanners
- add initial support for fi-74x0
- add initial support for fi-7030
- set has_MS_lamp=0 for fi-71x0
- add I18N macros to all option titles and descriptions
- add usb ids for many newer scanners
2016-06-09 21:53:13 -04:00
m. allan noah 41c31ac0e9 fujitsu backend v122
- add support for object_position halt
- call object_position halt in check_for_cancel when requested
2014-10-28 19:19:46 -04:00
m. allan noah 50236fab4e fujitsu backend v121
- add JFIF APP0 marker with resolution to jpeg images
- improve jpeg duplex parsing code
- simplify jpeg ifdefs
- add offtimer option for more recent scanners
2014-04-08 22:11:42 -04:00
m. allan noah 9f6ebc2f3c fujitsu backend v118
- support fi-7160, fi-7260, fi-7180 and fi-7280
- remove unused var from do_scsi_cmd()
- added more request_sense options
- add adv_paper_protect option
- enable paper protection by default
- increase max_x_fb for fi-6240 and fi-6230
2013-12-10 21:57:11 -05:00
m. allan noah b8cc128ea9 Fujitsu backend v117
default buffer-mode to off
improved error handling in sane_start
image width must be multiple of 8 when swcrop is used before binarization (iX500)
check hopper sensor before calling object_position(load) on iX500
2013-06-27 09:47:12 -04:00
m. allan noah 3c2bbdc7c3 Fujitsu backend v114
- support resolutions > 300 for iX500 using diag_preread()
- remove most communication with scanner during sane_control_option()
2013-03-01 21:57:54 -05:00
m. allan noah 36523e547d fujitsu backend v113
- support for ScanSnap iX500
- fix bug with jpeg de-interlacing code
- allow has_MS_* and has_pixelsize to be set in init_model
- fix use of uninitialized buffer in send_lut
- add send_q_table()
- allow wait_scanner() to be bypassed in object_position
- moved send_lut() to after set_window
2013-02-23 14:57:00 -05:00
m. allan noah c72e11a044 Add paper-protect, staple-detect and df-recovery options 2012-05-12 20:43:14 -04:00
m. allan noah 924498f608 Fujitsu backend v110
- correct max_y_fb for fi-62x0 series
- add must_fully_buffer helper routine
- add hwdeskewcrop option, with fallback to software versions
- add 'actual' param to get_pixelsize for post-scan
- add recent model VPD params
- only set params->lines = -1 when using ald without buffering
- fix bugs in background color when using software deskew
2012-05-09 21:17:33 -04:00
m. allan noah 3a3ff4b05f Add many new inquiry and mode select values 2012-05-09 21:17:32 -04:00
m. allan noah 5a48db9490 Fujitsu backend v109 2011-12-20 09:43:37 -05:00
m. allan noah fd96b9dca5 Fujitsu backend v105
- backup and restore image params around image processing code
- cache software crop/deskew parameters for use on backside of duplex
- fi-6110 does not support bgcolor or prepick
2010-12-02 09:27:46 -05:00
m. allan noah 504547028b Fujitsu backend v96, support hardware automatic length detection
- split sane_get_parameters into two functions
- remove unused code from get_pixelsize
- support hardware based auto length detection
- various status and comment updates
2009-08-07 16:49:58 -04:00
m. allan noah 8eaa9c65e4 fujitsu backend v82
- improved front-side endorser vpd detection
- send scanner_control_ric during sane_read of each side
- add fi-6770A and fi-6670A USB ID's
2008-11-01 01:34:18 +00:00
m. allan noah df25acfd38 * backend/fujitsu.[ch], backend/fujitsu-scsi.h: backend v81
- increase USB timeouts
- enable get_pixelsize() to update scan params after set_window()
- remove even_scan_line hack
2008-10-20 18:03:19 +00:00
m. allan noah 48e23ca24e * doc/descriptions/fujitsu.desc, backend/fujitsu.conf.in,
backend/fujitsu.[ch], backend/fujitsu-scsi.h: backend v79
- add usb ids for several models
- print additional hardware capability bits
- detect front-side endorser
- disable endorser-side controls if only one side installed
- add quirks for fi-6x70
2008-10-02 04:03:31 +00:00
m. allan noah b9aaa8a469 * backend/fujitsu.c, backend/fujitsu-scsi.h: backend v77
- override flatbed maximum area for fi-6230C and fi-6240C
 - set PF bit in all mode_select(6) CDB's
 - set SANE_CAP_INACTIVE on all disabled options
 - fix bug in mode_select page for sleep timer
2008-08-26 15:29:46 +00:00
m. allan noah 47772db938 2008-08-02 m. allan noah <kitno455 a t gmail d o t com>
* backend/fujitsu.c, backend/fujitsu-scsi.h: backend v74
        - replace global scsi blocks with local ones in each function
2008-08-04 00:51:24 +00:00
m. allan noah 40e5aaa7fe * backend/fujitsu.[ch], backend/fujitsu-scsi.h: backend v68,
- add halftone type and pattern options
 - support M3097G with IPC and CMP options via modified VPD response
* doc/descriptions/fujitsu.desc, doc/sane-fujitsu.man: backend v68,
 - manpage cleanup
2008-07-02 20:43:49 +00:00
m. allan noah da1587f897 backend v67,
- add IPC/DTC/SDTC options
- call check_for_cancel() in sane_cancel, unless reading flag is set
2008-07-01 21:21:16 +00:00
m. allan noah 07df99df47 backend version 66:
- restructure double feed detection options for finer-grained control
- add endorser side option
- prevent init_interlace() from overriding init_model()
- simplify sane_start() and fix interlaced duplex jpeg support
- simplify sane_read() and add non-interlaced duplex jpeg support
- removed unused code
2008-06-27 03:13:08 +00:00
m. allan noah f3ed5342cc backend version 65, add endorser support, add quirks for fi-4990 2008-06-25 02:30:54 +00:00
m. allan noah ad779e0865 backend version 64,
use model and serial to build sane.name (idea from Ryan Duryea),
 allow both serial_name and device_name to sane_open scanner,
 simulate missing VPD data for M3097G, probe scanner for color
 interlacing mode instead of hardcoding, other minor cleanups
2008-05-30 08:47:38 +00:00
m. allan noah 2016e8f019 backend version 1.0.62, begin sane 1.1.0 compliance 2008-05-21 02:27:14 +00:00
m. allan noah 39458249b5 backend version 1.0.58:
- page code 32 is not color interlacing, rename to 'unknown'
- increase number of bytes in response buffer of init_ms()
- protect debug modification code in init_ms() if NDEBUG is set
- proper async sane_cancel support
- re-enable JPEG support
- replace s->img_count with s->side
- sane_get_parameters(): dont round up larger than current paper size
- sane_start() rewritten, shorter, more clear
- return values are SANE_Status, not int
- hide unused functions
2008-04-20 01:31:29 +00:00
m. allan noah ebf7fbc30b fujitsu backend v1.0.57, minor updates to debug color interlace on fi-5900 2008-02-26 02:16:06 +00:00
m. allan noah e343cc59cf * backend/fujitsu.[ch], backend/fujitsu-scsi.h: update to v1.0.50,
add JPEG support, usb command sending and scan params cleanups
* include/sane/sane.h: add SANE_FRAME_JPEG
* frontend/scanimage.c: dont crash on unknown frame types
2007-07-10 16:07:25 +00:00
m. allan noah 4eabb3820c updated to backend version 1.0.44, updated maintainer email addy 2007-01-27 01:42:13 +00:00
m. allan noah 2eb55005c6 update to v1.0.43 2006-09-19 12:04:54 +00:00
m. allan noah 5bbc2fef6c update to v1.0.41 2006-08-28 23:45:25 +00:00
m. allan noah e47693e107 updated to v 1.0.40 2006-08-27 00:49:43 +00:00
m. allan noah 8b9df6bcbf update to backend v1.0.37 2006-07-15 01:17:33 +00:00
m. allan noah cdbe31d245 update to backend v1.0.35 2006-07-05 22:46:42 +00:00
m. allan noah f9927937af update fujitsu backend to v 1.0.34 2006-07-05 00:42:05 +00:00
m. allan noah 8f80793464 updated to v 1.0.29, the 'ram-eater' release 2006-06-04 03:59:48 +00:00
m. allan noah 394aabdaa9 updated scsi_open, minor compiler warning fixes 2006-05-19 21:12:41 +00:00
m. allan noah ebda4d0b71 fix sane_read bug, better timeouts 2006-05-17 18:58:41 +00:00
m. allan noah 4cf409d452 here goes nothing- release updated backend. lets see who screams :) 2006-05-14 15:29:08 +00:00
Oliver Schirrmeister a15136f82b merged the 3092 and the 3091 functions
inverted the image in mode color and grayscale
          jpg hardware compression support (fi-4530C)
2004-02-20 17:12:47 +00:00
Oliver Schirrmeister bfdf791597 added fujitsu fi-4120C support 2003-03-28 14:46:17 +00:00
Oliver Schirrmeister 86a3214291 patch from Ron Cemer <ron@roncemer.com>
fixes the broken "ADF empty" detection on the Fujitsu scanners
 when connected via USB.  It also fixes a sense-request issues,
 which were required in order to determine whether the ADF is
 empty.  It also eliminates some duplicate code blocks.
 renamed some functions
2003-03-14 18:21:22 +00:00
Oliver Schirrmeister 711bb118b4 displays the offending byte when something is wrong in the
window descriptor block.
2003-03-10 12:38:36 +00:00
Oliver Schirrmeister d74d4231ce patch from <ron@roncemer.com>
fi4220 support
usb support
2003-02-20 13:33:07 +00:00