Wykres commitów

3449 Commity (4962b35abd7426b7b51a00d907a538a2a38dc859)

Autor SHA1 Wiadomość Data
Stéphane Voltz 6ebd7e35b4 LiDE80 WIP : Working frontend 2013-12-15 07:27:25 +01: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 c4a5bbc143 canon_dr backend v42
- initial DR-G1100 support
- add support for paper sensors (P-215 & P-208)
- add initial support for card reader (P-215)
- removed unused var from do_scsi_cmd()
2013-12-09 20:56:45 -05:00
Nils Philippsen d835d9d565 epson: don't leak memory if realloc() fails 2013-11-07 14:29:28 +01:00
Nils Philippsen dc76e7cce4 genesys: check return values 2013-11-06 12:03:23 +01:00
Nils Philippsen 5d7f7ffefb genesys: remove code which is never reached
The surrounding conditions always evaluate as FALSE because the
variables are set to different values before.
2013-11-06 12:03:23 +01:00
Nils Philippsen 602d6ecdfe rts8891: check return values 2013-11-06 12:03:23 +01:00
Nils Philippsen a3fe2c1ea5 genesys: compute MAX_SCANNERS from array length
... of genesys_usb_device_list[]
2013-11-05 15:51:05 +01:00
Nils Philippsen 2d89e37f36 kodakio: don't overrun option name array 2013-11-05 15:51:05 +01:00
Nils Philippsen 101f76c516 pixma: document falling through to next switch case 2013-11-05 15:19:48 +01:00
Nils Philippsen b53a58c4b5 genesys: avoid infinite loop
The stray semicolon prevents executing the loop which could reset the
REG41_FEBUSY bit.
2013-11-05 15:15:17 +01:00
Nils Philippsen 575f40a079 pixma: avoid buffer overflows 2013-11-05 15:12:20 +01:00
Nils Philippsen cf9129d62f pixma: u32tohex(): shift first, then cast to uint8_t 2013-11-05 14:54:13 +01:00
Nils Philippsen 66cb9b55c2 remove code which is never reached 2013-11-05 14:47:27 +01:00
Nils Philippsen 252ccdd926 genesys: fix some memory leaks 2013-11-05 14:17:12 +01:00
Nils Philippsen 8cd2d36f1e epson: ensure that command() allocates enough memory 2013-11-05 14:05:25 +01:00
Nils Philippsen 56104b5329 genesys: avoid dereferencing null pointer 2013-11-05 11:39:56 +01:00
Nils Philippsen d35d6326cb pixmap: omitting curly braces considered harmful
The break being outside of the else block effectively made an if clause
out of the while loop. This caused long hostnames to not be shortened
sufficiently which subsequentely made strcpy() write beyond buffer
boundaries.
2013-10-29 14:14:18 +01:00
Stéphane Voltz 4b6d50f662 LiDE 80 WIP : parking is now working 2013-10-19 21:30:04 +02:00
Stéphane Voltz eca8b300b5 LiDE 80 init working 2013-10-19 21:24:34 +02:00
Stéphane Voltz c88b3bc228 add LiDE 80 device description 2013-10-19 21:24:34 +02:00
Paul Newall 37523b867d Bugfix in kodakaio.c to fix segfault when non kodak scanners return unexpected data via avahi auto discovery 2013-10-14 22:22:53 +01:00
Rolf Bensch 70cfb5e71b Pixma backend version 0.17.5 2013-10-11 19:43:27 +02:00
Rolf Bensch ee4704f34a new scanner Canon i-SENSYS MF4890dw 2013-10-11 19:40:42 +02:00
Rolf Bensch 82f92ec004 use mf->generation instead of s->cfg->pid for generation 2 scanners 2013-10-11 19:29:58 +02:00
Rolf Bensch d5baddf003 reorder scanner defines 2013-10-11 19:20:13 +02:00
Rolf Bensch e95e888c3b fix button support for Canon CS8800F 2013-09-30 16:22:12 +02:00
Rolf Bensch a178841287 new scanner Canon imageCLASS MF4770n 2013-09-24 21:25:19 +02:00
Alex Belkin b5ca4318c3 usb id for dell 1235cn, reported by Jean-Francois Labrousse. 2013-09-18 22:52:34 +04:00
m. allan noah dbbcb61f09 microtek.c: add missing break (#314408) 2013-09-17 21:34:25 -04:00
Gerhard Jaeger b5d1459dfd Tweaked motor settings for CanoScan N650U 2013-09-16 17:16:23 +02:00
Gerhard Jaeger b77df93a26 Bumped build number 2013-09-16 17:15:39 +02:00
Rolf Bensch a8461cbe7a new scanners Canon imageCLASS MF4570dw and imageRUNNER 1133 2013-09-13 14:06:38 +02:00
Rolf Bensch c04b748b21 Pixma backend version 0.17.4 2013-09-11 22:56:18 +02:00
Rolf Bensch dbfcd4dbcf new scanners Canon Pixma MG2400, MG2500, MG3500, MG5500, MG64000, MG6500 and MG7100 2013-09-11 22:53:37 +02:00
Dan Kegel 0f23fb3fc1 Epson Perfection 1650 doesn't support the FSG_STATUS_CANCEL_REQ bit. Fixes sane bug 312793/ debian bug 597922. 2013-09-02 12:08:49 +02:00
Alessandro Zummo 543393d90c close connection if an error occurs in the detection process 2013-08-29 11:33:24 +02:00
Chris Bagwell bc2dc68fa5 Improve snmp detection when cross compiling.
Improving here means do not set LIBS/CFLAGS if library is not detected.
This prevents some unknown options based to ld when host is Linux and
target is mingw32/64.  Further improvements are needed if one wants this
snmp support when cross compiling to really work.

Also, to make commit bisectable, updated all autofoo files using
'autoreconf -i -f' and repatching ltmain.sh.

Also, test-driver was missing from git repo but the Makefile.in
checked in expected it to exist.
2013-08-15 13:10:39 -05:00
Stéphane Voltz e3e5e9b3a3 implement brightness/constrast enhancement using gamma tables 2013-08-11 21:51:26 +02:00
Stéphane Voltz 63d12e3ee9 add calibration file name option
- add an option to set calibration cache file name
- update man page and fr translation
2013-08-07 06:42:14 +02:00
Stéphane Voltz ff58b225bf add digital contrast and brightness 2013-08-05 21:28:39 +02:00
m. allan noah 4029979bd9 Add changelog entry and correct date for v41 2013-07-31 21:43:09 -04:00
m. allan noah eacdc3a5b3 canon_dr backend version 41
- initial P-208 and P-215 support
- bug fix for calibration of scanners with duplex_offset
- allow duplex_offset to be controlled from config file
2013-07-31 21:38:25 -04:00
Stéphane Voltz bf1f8988a1 fix incorrect cap for SWDEROTATE option (bug #314339) 2013-07-30 14:19:18 +02:00
Rolf Bensch 3578d4039e Canon Pixma MX920 has duplex ADF and supports max. 600 dpi @ ADF 2013-07-19 20:59:43 +02:00
Rolf Bensch 22ead4021c Pixma backend version 0.17.3 2013-07-18 22:54:37 +02:00
Rolf Bensch 11ba184235 new button option --scan-resolution
detailed button option description
2013-07-18 22:45:45 +02:00
Rolf Bensch ded994f348 Canon PIXMA MG8200 is working now 2013-07-18 22:24:39 +02:00
Stéphane Voltz 70bb3e2c60 some whitespaces clean up 2013-07-18 08:18:26 +02:00
Stéphane Voltz 1fa067861c update lide 110 to match scan lide 210
- use lide 210 mode for lide 110
- prepare true gray for GL124
2013-07-17 22:47:42 +02:00
Stéphane Voltz c9a4cbe7a1 improve linesel computing 2013-07-17 21:49:12 +02:00
Stéphane Voltz 1c3ec28ab8 improve below 600 dpi scan speed and quality for lide 210
- add half ccd mode for lide 210
2013-07-17 21:24:57 +02:00
Stéphane Voltz ca08a8ba2b switch genesys register address to 16 bits 2013-07-15 07:53:37 +02:00
Stéphane Voltz 5408c8cd27 use LINESEL in all cases fro GL124 2013-07-09 06:59:56 +02:00
Stéphane Voltz 730a2ba4e5 define specific LIDE210 sensor and motor instead of using LIDE110 ones 2013-07-04 04:28:09 +02:00
Stéphane Voltz 2812e1f81a add missing cases for CCD_PLUSTEK3800 2013-07-04 04:08:16 +02:00
Rolf Bensch 1c5760a897 fix mode list for infrared scans 2013-06-27 21:14:49 +02: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
Stéphane Voltz 2d7ebd42ea experimental code for GL845 based Opticbook 3800
- add GL845 ASIC which is almost identical to the GL846
- add Opticbook 3800 to genesys backend
2013-06-26 06:51:55 +02:00
Alex Belkin 2f02a7e6b8 One more Samsung (C460) USB id. 2013-06-25 17:51:39 +04:00
Alex Belkin 547e8ba068 Added multiple Samsung USB IDs as reported by Mikhail Elhimov. 2013-06-22 00:32:16 +04:00
Stéphane Voltz b98f24990f add cap to SENSOR and BUTTON group 2013-06-18 21:08:00 +02:00
Rolf Bensch ec0344af85 fix test mode 2013-06-15 22:27:07 +02:00
Rolf Bensch 51028a2c0e disable TPU negatives scan
negatives scan has no benefit
disabling avoids confusion
2013-06-10 21:32:31 +02:00
Rolf Bensch acb4c5b2b5 new scanner Canon CanoScan 9000F Mark II 2013-06-10 21:23:19 +02:00
Stéphane Voltz 9a8b640d8d bug 314293 fix
- don't use non-existent end of records
2013-06-03 06:33:08 +02:00
Stéphane Voltz 40b5d75aa3 fix bug #314261 2013-05-27 10:41:32 +02:00
Jonathan Bravo Lopez 09666ae089 * backend/hp3900_rts8822.c: fix compilation warnings. 2013-05-11 01:36:03 +02:00
Rolf Bensch 50df7af5cc update copyright 2013-04-26 22:52:44 +02:00
Rolf Bensch 3ca8dbc460 new scanners Canon Pixma E510 and E610
all scanners need further testing
2013-04-24 11:25:53 +02:00
Rolf Bensch 75c32c0de8 new scanner Canon Pixma MX720
this scanner needs further testing
2013-04-24 10:02:15 +02:00
Rolf Bensch 5f1da65108 new scanner Canon i-SENSYS MF3010 2013-04-19 23:12:52 +02:00
Rolf Bensch db8a565bc1 new scanners Canon Pixma MG2200, MG3200, MG5400, MX390, MX450, MX520 and MX920
all scanners need further testing
2013-04-11 22:05:09 +02:00
m. allan noah 9fc683d883 fujitsu backend v116
add swskip option
add sanei_magic_isBlank2
2013-04-03 21:54:48 -04:00
m. allan noah 120e303732 fujitsu: call set_mode() in init_interlace 2013-04-03 21:54:48 -04:00
Stéphane Voltz e6f23f201d fix hotplug detection of devices for lexmark backend
- create a probe_lexmar_devices() and call it from sane_init
- call probe_lexmar_devices() from sane_get_devices to update device list
- use sanei_usb_exit() and sanei_usb_find_devices()
2013-04-02 21:05:02 +02:00
Stéphane Voltz a056cb238e handle scanner unplugging detection 2013-03-29 22:02:50 +01:00
Stéphane Voltz e0e19b413e handle scanner hot-plug in sane_get_devices
- rescan usb bus
- rescan for new devices
2013-03-29 21:54:46 +01:00
Stéphane Voltz 2190d18a63 move device detection in a dedicated function
- create a probe_gt68xx_devices() function that ssearch and attach
  matching scanners
2013-03-29 21:54:32 +01:00
Stéphane Voltz c025a47671 fix compile warning 2013-03-29 21:53:16 +01:00
Stéphane Voltz 6a8469dd13 use sanei_usb_exit() 2013-03-29 21:53:05 +01:00
Stéphane Voltz 010f34710e option correctness fixes
- fix wrong cap due to wrong addressing
- ensure correctness of group options
2013-03-27 06:31:49 +01:00
Stéphane Voltz 1656585499 warning fixes
- unused parameters
- wrong printf fromat
- assigned to self
2013-03-27 06:28:11 +01:00
Rolf Bensch 7fd2286414 fix button support 2013-03-25 10:30:59 +01:00
Stéphane Voltz 7070fac113 convert genesys backend to use new sanei_usb functions
- call sanei_usb_scan_devices() in sane_get_devices to rescan bus to refresh
  USB scanner list
- call sanei_usb_exit() in sane_exit to free allocated resources
2013-03-24 14:20:06 +01:00
Rolf Bensch 1ef0342aa1 new scanner Canon Pixma MP230 2013-03-21 19:10:03 +01:00
Stéphane Voltz 5e93524960 bug 314038 use after free
- apply patch from Nickolai Zeldovich (nickolai-guest) to
  fix use after free errors
2013-03-18 11:56:33 +01:00
Stéphane Voltz ac768dbd72 bug 314037 use after free
- apply patch from Nickolai Zeldovich (nickolai-guest) to
  fix a use after free error
2013-03-18 11:55:18 +01:00
Stéphane Voltz 10bd9ed2e5 bug 314036 use after free
- apply patch from Nickolai Zeldovich (nickolai-guest) to
  fix a use after free error
2013-03-18 11:55:08 +01: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
Stéphane Voltz 49a7048db0 bug 314042 sane-hp4200.patch
- apply patch from Nickolai Zeldovich (nickolai-guest) to fix a
  potential division by 0
2013-03-18 11:27:15 +01:00
Rolf Bensch 8c075ae0a0 fix image post processing for 1200dpi and 2400dpi 2013-03-15 22:44:22 +01:00
Rolf Bensch d8242a49a5 new scanner Canon Pixma MG6300 2013-03-15 22:39:54 +01:00
m. allan noah cb943124b8 Fujitsu backend v115
- separate s->mode into s_mode and u_mode
- separate s->params into s_params and u_params
- generate grayscale and binary in software if required (iX500)
2013-03-11 21:11:38 -04:00
Oliver Schwartz cfecc1fbf6 Added support for Acer/Benq Scanwit 2720S film scanner by Andrew Goodbody in snapscan backend. 2013-03-04 23:40:44 +01: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
Stéphane Voltz 54742a1831 cppcheck errors and warnings fixes 2013-02-27 21:26:29 +01:00
Stéphane Voltz 6b78c69876 cppcheck errors and warings fixes 2013-02-27 21:26:28 +01: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 96628ed13f fujitsu backend v112
some scanners (fi-6x70 and later) don't enable IPC by default
fix minor compiler warning
2013-02-22 21:06:12 -05:00
Rolf Bensch 0349a3ddda push backend version to 0.17.2 2013-02-18 18:48:13 +01:00
Rolf Bensch 11ad6252fb scan IR channel with CS9000F 2013-02-18 18:07:50 +01:00
Rolf Bensch df33c7223f ease crop scan resolution to allowed values
add crop scan resolution for PIXMA_SCAN_MODE_TPUIR
2013-02-18 17:54:57 +01:00
Rolf Bensch f254809c0b new capability PIXMA_CAP_TPUIR
new scan mode PIXMA_SCAN_MODE_TPUIR
2013-02-18 17:37:30 +01:00
Rolf Bensch bb3806313d new device parameters tpuir_min_dpi and tpuir_max_dpi
only for Canoscan devices
2013-02-18 17:17:55 +01:00
Rolf Bensch 18c2ceb66f ease create_mode_list() and create_dpi_list()
- read the settings direct from (pixma_sane_t *ss)
2013-02-18 16:20:57 +01:00
Rolf Bensch 53c87a381e rename ext* to adftpu* 2013-02-18 16:03:18 +01:00
Stéphane Voltz 93e0d5f9b1 correct freeing of data 2013-02-13 21:53:17 +01:00
Stéphane Voltz 46c398e33f add declaration for unit tests
remove USB mode set
2013-02-13 21:53:17 +01:00
Stéphane Voltz b0edb1cd99 putative fix for SUB data transfer problem 2013-02-13 21:53:17 +01:00
Stéphane Voltz c62d5879a7 cppcheck fixes
- cppcheck fixes
- new macro to hanlde free on error path
- better error message in RIEx macros
2013-02-13 21:53:17 +01:00
Stéphane Voltz 1fb646582b cppcheck fixes 2013-02-13 21:53:17 +01:00
Gerhard Jaeger ac564e89f6 Fixed kernel module build for recent kernels
Defined internal "ULong" types to be in fact 32 bit wide,
this should fix issues on 64 bit machines.
2013-02-13 14:29:52 +01:00
Gerhard Jaeger 59d9a2d912 Bumped build number
Minor cleanup
2013-02-13 14:29:00 +01:00
Gerhard Jaeger 9a11fe5668 Applied typo and whitespace fixes spotted by Paul Menzel. 2013-02-13 13:58:22 +01:00
Gerhard Jaeger 53b15962e1 Bumped build number. 2013-02-13 10:33:29 +01:00
Gerhard Jaeger 00167c20c5 Added support for Q-Scan A6 - see bug report #312073 2013-02-13 10:32:28 +01:00
Gerhard Jaeger b91010f240 Cleanup, fix compilation warning conditions. 2013-02-13 10:31:22 +01:00
Rolf Bensch 0e8364f874 allow 0x10 as ADF paper OK 2013-02-11 19:58:43 +01:00
Rolf Bensch d2cfbda4c0 handle multiple pages scan session from adf
- start first page: step1(), start_session() and select_source()
- between pages: step1()
- after last page: abort_session()
2013-02-11 19:57:20 +01:00
Rolf Bensch 22a7163633 "activate" only for geneation 1 scanners 2013-02-11 19:50:10 +01:00
Rolf Bensch bfa5f45e94 new parameter mf->generation
- new multifunctionals are (generation == 2)
2013-02-11 19:25:44 +01:00
Rolf Bensch 8fb3a366cd fixed cppcheck warnings 2013-02-09 16:56:40 +01:00
Rolf Bensch 98700ee66a fixed compiler warnings 2013-02-09 12:43:38 +01:00
Rolf Bensch 883d191452 fixed button support for Canon Pixma MG6200 2013-02-06 22:16:58 +01:00
Stéphane Voltz ccc83e12da set usb transfer mode 2013-02-01 06:32:28 +01:00
Stéphane Voltz 41a2089c09 use common usb firmware command function 2013-02-01 06:32:28 +01:00
m. allan noah bc1a14518b Updates for recent genesys changes 2013-01-31 09:41:16 -05:00
Stéphane Voltz a5a6543cd0 support for 5th LiDE 210 button 2013-01-31 06:12:09 +01:00
Stéphane Voltz e1a74a94be warnings clean up 2013-01-29 06:43:15 +01:00
Stéphane Voltz 0897a60c60 genesys backend update
- groundwork for gl846 support
- asic init rework
- several refactors
2013-01-28 22:04:37 +01:00
Rolf Bensch d87619e71f fixed usb checksums for MF4100 2013-01-24 12:07:34 +01:00
Rolf Bensch 99b79f56c3 fix for post_process_image_data 2013-01-21 09:57:10 +01:00
Paul Newall c172bfa99b kodakaio Hero 4.1 added 2013-01-19 21:41:40 +00:00
Rolf Bensch afc84646c7 fixed button support 2013-01-18 12:11:31 +01:00
Nils Philippsen defdc1ab5c umax: initialize reader_pid early in sane_start()
This avoids that subsequent errors followed by do_cancel() attempt to
phtread_cancel() an invalid thread (which may cause a crash).
2013-01-16 12:06:09 +01:00
Rolf Bensch da2937dbb5 new scanner Canon i-SENSYS MF6680dn 2013-01-14 15:44:46 +01:00
Rolf Bensch 320b2c5582 new scanner Canon i-SENSYS MF5880dn 2013-01-14 15:25:45 +01:00
Rolf Bensch 580b55cb19 new scanner Canon i-SENSYS MF4550d 2013-01-14 14:21:58 +01:00
Rolf Bensch b4bb0062c5 fix for broken post_process_image_data() 2013-01-11 16:37:00 +01:00
Louis Lagendijk bf0758bc8b Changed the pixma bjnp implementation to use its own debug environment
variable (SANE_DEBUG_BJNP) so debugging for the bjnp protocol and the
backend proper can be controlled independently.
Updated manpage for sane-pixma to document the above changes as well
as the changed scannner buttjn options and the fact the bjnp protocol
has added support for IPv6
2013-01-10 21:10:41 +01:00
Louis Lagendijk 3276babdec Added optional support in saned for systemd socket activation. This will allow for
using backend debugging using SANE_DEBUG_xxx to be used for saned controlled
scanning when using socket activation. When only the socket is received we
use the existing code path.
2013-01-10 20:59:26 +01:00
Rolf Bensch d7d4437550 formatted white space 2013-01-10 16:48:01 +01:00
Rolf Bensch 9dd8f8ea74 fix for broken tpu scan 2013-01-08 10:44:25 +01:00
Paul Newall 1be4eb8264 kodakaio - detecting end of paper or padding when using adf is now an option 2013-01-03 21:23:20 +00:00
Paul Newall 6c43f2df2a kodakaio adf now detects end of paper 2012-12-31 20:13:32 +00:00
Rolf Bensch 4dd4f4f98e new scanner Canon Pixma MG4200 2012-12-31 20:04:19 +01:00
Alex Belkin 51a235bcfd Usb Id for Samsung CLX-3300 Series, reported by Jarkko A-L. 2012-12-28 10:23:07 +04:00
Paul Newall a8faa35b7b kodakaio fix bug to allow adf to scan more than 1 sheet with net connection 2012-12-23 21:23:43 +00:00
Louis Lagendijk f57a193198 Merge branch 'master' of ssh://git.debian.org/git/sane/sane-backends 2012-12-18 16:24:41 +01:00
Louis Lagendijk 8c7931cf89 Fixed issue where UDP ports were not closed in pixma_bjnp.c 2012-12-18 16:23:27 +01:00
Nils Philippsen a1273d1c65 coolscan3: average multiple samples
(ported from coolscan2, commit 4126b6796d)
2012-12-17 21:35:16 +01:00
Nils Philippsen 2bc59796ca coolscan3: set multi-sampling on scanner
(ported from coolscan2, commit 2385657904)
2012-12-17 21:35:12 +01:00
Nils Philippsen 6589dbd5c0 coolscan3: only offer samples-per-scan for devices supporting it
(ported from coolscan2, commit ed9ac6f15d)
2012-12-17 21:35:08 +01:00
Nils Philippsen 82139b0823 coolscan3: add samples-per-scan option
(ported from coolscan2, commit 121afa695b)
2012-12-17 21:30:13 +01:00
Nils Philippsen 4126b6796d coolscan2: average multiple samples 2012-12-13 13:13:36 +01:00
Nils Philippsen 2385657904 coolscan2: set multi-sampling on scanner 2012-12-13 13:13:36 +01:00
Nils Philippsen ed9ac6f15d coolscan2: only offer samples-per-scan for devices supporting it 2012-12-13 13:13:36 +01:00
Nils Philippsen 121afa695b coolscan2: add samples-per-scan option 2012-12-13 13:13:36 +01:00
Paul Newall fc4f54bd55 ESP2170 gets adf and adf y now 11.3 2012-12-09 23:29:07 +00:00
Stéphane Voltz bd44b058a0 gamma handling refactor
- use arrays instead of gamma tables
- send_gamma_table does only send gamma table and doesn't
  create ramp if no custom gamma
- create a default gamma table with gamma value from device
  description
2012-12-09 15:45:59 +01:00
Stéphane Voltz 3af19cf7ef enable GAIN4 by default 2012-12-09 15:45:59 +01:00
Rolf Bensch 667a5d81c0 Canon Pixma MG3100 reported as working 2012-12-07 20:07:23 +01:00
Rolf Bensch 3dc944302a new scanner Canon imageCLASS MF4430 2012-12-07 19:44:44 +01:00
Rolf Bensch e62bffb0a8 pixma version 0.17.1 2012-12-07 19:36:52 +01:00
Rolf Bensch 82eb323bfd Canon Pixma MX890 reported as working 2012-12-07 19:29:58 +01:00
Stéphane Voltz c3dbbf495b activate binary logging for gl124 2012-12-05 21:56:06 +01:00
Stéphane Voltz c3ebf3171d issue parking command as early as possible 2012-12-05 21:56:06 +01:00
m. allan noah f7fe42c33e canon_dr v40: DR-9050, 7550, 6050 and 3010 support 2012-11-28 21:51:13 -05:00
m. allan noah ed7a5f227d use automake instead of autoreconf so libtoolize is not run 2012-11-28 21:51:12 -05:00
m. allan noah 9b142567fa Revert "forgot to do autoreconf"
This reverts commit aa6f185452.
2012-11-28 21:51:12 -05:00
Paul Newall aa6f185452 forgot to do autoreconf 2012-11-28 22:11:04 +00:00
Paul Newall f31002ed06 kodakaio changed to use avahi for net discovery 2012-11-28 21:35:36 +00:00
Stéphane Voltz dd2448ddec rts8891 improved version
- fixed batch scan issues
- 600 dpi color mode OK for type 1 sensor
2012-11-24 08:34:28 +01:00
Stéphane Voltz 1211286c12 register setting improvment 2012-11-22 21:08:16 +01:00
Stéphane Voltz a2983760cc create separate regsiters set up functions to allow unit testing 2012-11-13 22:08:12 +01:00
Stéphane Voltz eb9af2d4a3 fix typo in shading target set up 2012-11-11 08:06:34 +01:00
Stéphane Voltz cf9f70564e gl124 based scanners calibration improvement
- move to calibration area before doing led calibration
- increase white target for shading data
- fix parking issue for scan at higher dpi than 600
2012-11-11 07:52:59 +01:00
Stéphane Voltz e5b886cb76 add optional doxygen documentation generation for the genesys backend 2012-11-02 21:46:44 +01:00
Louis Lagendijk d9e7dc5412 backend/pixma.c backend/pixma.h backend/pixma_mp150.c backend/pixma_mp810.c
backend/pixma_sane_options.c backend/pixma_sane_options.h:
- added new options:
     original (type of original to be scanned)
     target (action to be perfomed as target of the scan)
  Both these indocators can be returned by the scanner.
  pixma_mp810 can definately return these (e.g. for my MP980)
  I have assumed that the same applies to devices in pixma_mp150.c
  The target used to be returned in button1/2 in bits 0 - 8.
- All button options are now read and cached when any of the options
  are read (SANE_ACTION_GET_VALUE) or SANE_ACTION_SET_VALUE is used
  on option button_update.
  When reading an option again, the status of all options is re-read.
- Added a dummy info field that is used in case info is NULL
  as this is a valid input
2012-10-31 12:40:07 +01:00
Louis Lagendijk 240ea344b8 pixma_gen_options.py: Changed so the formatting of the files it
creates match the formatting of pixma.c (replaced \t at start of
a new line to 2 spaces)
2012-10-31 11:55:03 +01:00
Alex Belkin 01c2562b4c usb id for Samsung SCX-4833FD, reported by Frank Pennycook; description for SCX-3405W working in networking mode, reported by Patrick Mackinlay. 2012-10-29 08:08:57 +04:00
Stéphane Voltz a35050c8bf doxygen fixes 2012-10-24 21:30:17 +02:00
Stéphane Voltz 704c81a019 add experimental Canonscan 8400F support 2012-10-24 21:30:17 +02:00
Stéphane Voltz f92f82c216 improve GPIO setting for LiDE 35 2012-10-24 21:30:16 +02:00
Stéphane Voltz 6377674304 compile fix, remove unit testing code 2012-10-24 21:30:16 +02:00
Stéphane Voltz 8e57213407 minor code cleanup 2012-10-24 21:30:16 +02:00
Stéphane Voltz a05c11dd53 fix head parking issues detected by test suite 2012-10-24 21:30:16 +02:00
Stéphane Voltz d0759450a0 use a function instead of inlined code to compute LiDE50 shading coefficients 2012-10-24 21:30:15 +02:00
Stéphane Voltz c04c167ecd improve power saving handling and fix Lide 50 parking
- don't enable power save during head parking
- enable power save at sane_close()
- align gl841 parking on other ASICs
2012-10-24 21:30:15 +02:00
Stéphane Voltz e1a9cac4d3 use common register tracing function 2012-10-24 21:30:15 +02:00
Stéphane Voltz d069629212 Canoscan 4400F progress : 100 dpi color uncalibrated ready 2012-10-24 21:21:14 +02:00
Stéphane Voltz fb89d5d53c allow null usb device for unit testing 2012-10-24 21:21:14 +02:00
Stéphane Voltz e9908d0f70 use correct usb device number for CS4400F 2012-10-24 21:21:14 +02:00
Stéphane Voltz 3de973396f create flag when sensor is always at full hw resolution 2012-10-24 21:21:14 +02:00
Stéphane Voltz aa160f50f6 initial Canonscan 4400F work
- add 4400F to devices
- add settings for 100 dpi scan
2012-10-24 21:21:13 +02:00
Stéphane Voltz a7735b57df hardware lineart only for XP200 2012-10-24 21:21:13 +02:00
Mattias Ellert ef7023ae13 Fix arguments to IPv6 macros 2012-10-22 16:49:32 +02:00
Ondrej Zary 19cedde244 canon: Fix cancel for Canon IX-4015
IX-4015 requires medium_position after cancelling a scan. Without that, it
does not return to home position and refuses to accept any other commands.
2012-10-18 20:27:30 -04:00
Ondrej Zary 8e627110cd canon: Add support for Canon IX-4015 scanner
This adds support for Canon IX-4015 scanner. The difference from other scanners
supported by this backend is that it has no highlight and shadow settings - the
corresponding bytes in set_window command must be zero or it will fail.

IX-4015 has optical resolution of 400 dpi, can interpolate up to 800 dpi (color)
or 1200 dpi (grayscale).
2012-10-18 20:27:30 -04:00
Ondrej Zary 1594aa5a05 canon: Separate diagnose and calibrate capabilities
Some scanners (e.g. IX-4015) support diangostics but not calibration
so separate these two capabilities.
2012-10-18 20:27:30 -04:00
Ondrej Zary d750ed0b12 canon: Fix sense_handler
sense_handler() crashes with Canon IX-4015 after the scanner is powered on because
scanner returns "unit attention - power on reset" sense status as a reply to the
"Test Unit Ready" command after power on - and dev is still NULL at that time.

The non-NULL dev is needed only to check if the device is a scsi2 device. But all devices
supported by this backend have the is_scsi2 flag set so it's useless.

So remove the flag and all its usage. Also change the return value for "power on
reset" check condition to SANE_STATUS_GOOD to allow IX-4015 to work.
2012-10-18 20:27:29 -04:00
Alex Belkin c333c4b094 usb id for Samsung SCX-4100, reported by Antonello Lobianco 2012-10-17 17:38:45 +04:00
Louis Lagendijk 36e86bc6ff Cleanup of address structure.
Prefer FQDN over global address over link-local address for the scanner
2012-10-16 20:49:57 +02:00
Alex Belkin c18f185c4f usb id for Samsung SCX-4729FD, reported by wom balton. 2012-09-18 04:16:09 +04:00
Louis Lagendijk 5997295720 pixma_bjnp.c: use MDL instead of DES string as model for the scanner.
This avoids lookup mismatches due to unnessacary additions like "Canon" opr "Pixma" in the string
2012-09-08 20:47:03 +02:00
Louis Lagendijk 57d117a2d4 pixma_bjnp.c/pixma_bjnp_private.h:
sanei_bjnp_read_bulk() rewritten to be more readable
Solved issue where scanner returned 0 bytes available
2012-09-08 20:47:02 +02:00
Louis Lagendijk 8b76fc2045 pixma_io_sanei.c: improved error string for bjnp scanner lookup 2012-09-08 20:47:01 +02:00
Louis Lagendijk 7d6bd4d63c pixma_bjnp.c Corrected an read error in sanei_bjnp_read_bulk.
When the scanner reports no data, we need to send a new read request
2012-09-08 20:47:00 +02:00
Stéphane Voltz daf1956189 compute gl646 buffer size like other glXXX chips 2012-09-06 06:09:14 +02:00
Stéphane Voltz 9d97e5a606 enable hardware lineart for gl646 scanners 2012-09-06 06:07:40 +02:00
Rolf Bensch d6bbee89ba new scanner Canon imageCLASS D420 2012-09-05 10:18:30 +02:00
Rolf Bensch b671510a45 14" (ADF) / A4 (Flatbed) exception for Pixma MX410, MX420 2012-09-05 10:02:30 +02:00
Rolf Bensch efaa587115 Pixma MG5300 reported as working 2012-09-04 14:25:43 +02:00
Rolf Bensch a9e4f1370c use xdpi to check for 14" / A4 scan 2012-09-03 10:27:35 +02:00
Rolf Bensch 8da546df9c Pixma MX370 supports 1200 dpi 2012-09-03 10:04:23 +02:00
Louis Lagendijk 6f7a9645ed Merge ssh://git.debian.org/git/sane/sane-backends 2012-08-27 19:49:19 +02:00
Rolf Bensch f14ff15bdc MG6100 support reported 2012-08-27 15:40:21 +02:00
m. allan noah 854c461f92 Revert "Revert "PIXMA_CAP_EXPERIMENT removed""
This reverts commit 567be37c19.
2012-08-26 13:35:13 -04:00
m. allan noah 567be37c19 Revert "PIXMA_CAP_EXPERIMENT removed"
This reverts commit 17e3d3fff2.
2012-08-26 10:58:59 -04:00
Louis Lagendijk 9e68f66cc2 pixma_bjnp.c: Added more sockaddr support functions + some more re-factoring & clean-ups 2012-08-25 23:31:57 +02:00
Louis Lagendijk d929acb1b2 pixma_bjnp.c Added bjnp_sockaddr_t, a union that makes all explicit typecasts for sockaddr_xxx unnecessary
This makes the code much cleaner
2012-08-25 23:28:10 +02:00
Louis Lagendijk 177fde920c pixma_bjnp.c Minor code cleanups, add #defines for mosts hardcoded values 2012-08-25 23:27:53 +02:00
Louis Lagendijk 1b4cce5f2d pixma_bjnp.c Adeded scanner discovery for IPv6 2012-08-25 23:27:36 +02:00
Louis Lagendijk 62c2a094f9 pixma_bjnp.c: let prepare_socket determine destination for braodcast 2012-08-25 23:27:23 +02:00
Louis Lagendijk 3c693c66e5 pixma_bjnp.c: Move socket creation out of find_devices 2012-08-25 23:27:09 +02:00
Louis Lagendijk 2be2111a1a pixma_bjnp.c: some code cleanup
Use address from revfrom rather then the address returned n the discover response
Removed useless serial number code
Some refactoring to reduce the size of the find_devices() function: it is still too big
2012-08-25 23:26:49 +02:00
Louis Lagendijk d6040014df pixma_bjnp: added inintial ipv6 support 2012-08-25 23:26:35 +02:00
Louis Lagendijk f9a70e14be pixma_bjnp: add working scan button support 2012-08-25 23:25:49 +02:00
Louis Lagendijk cea03f3946 pixma_io_sanei.c: corrected error handling for bjnp interface 2012-08-25 23:25:38 +02:00
Louis Lagendijk fb1b31f82a pixma_bjnp.c Use a single socket for broadcasts so we can use a single port (8612) as well.
Right now we were not in compliance with the documentation that stated so.
This makes firewalling much easier.
2012-08-25 23:25:23 +02:00
Louis Lagendijk 750f2e2a09 pixma_bjnp.c: fix compiler warnings 2012-08-25 23:25:08 +02:00
Louis Lagendijk 0bcf1530e3 pixma_bjnp.c: Some buggy routers return a bogus name on a reverse name lookup.
Perform a forward lookup on the name and see if the returned ip-address matches
2012-08-25 23:24:55 +02:00
Rolf Bensch 17e3d3fff2 PIXMA_CAP_EXPERIMENT removed 2012-08-25 16:03:34 +02:00
Chris Bagwell 699babff39 Really fix scan() symbol issue. 2012-08-17 19:18:02 -05:00
Chris Bagwell ec0518cfe0 Fix scan symbol name issue in kvs40xx.c
Introduced in last commit to that file.
2012-08-17 18:55:44 -05:00
Rolf Bensch 6deca34cb9 remove fixme comment 2012-08-17 12:56:11 +02:00
Rolf Bensch 9e0d4aba0b copyright updated 2012-08-16 16:14:38 +02:00
Rolf Bensch 55426f0f38 lineart fix for generation 1+2 scanners 2012-08-11 22:50:30 +02:00
m. allan noah 5db1962493 cleanup recent kodakaio commit 2012-08-09 20:37:50 -04:00
Paul Newall 9ed65d3ea2 Tidy poll call in kodakaio 2012-08-09 16:33:41 +01:00
Stéphane Voltz fd47a2512c limit hardware lineart up to 600 dpi for gl847 scanners
- due to interleaving at bit level and uneven sub sensor length,
  hardware lineart is almost unworkable when resolution exceeds 600.
2012-08-08 20:46:23 +02:00
Stéphane Voltz d89087c6c6 make dynamic lineart work again with other digital processing 2012-08-08 20:46:23 +02:00
Stéphane Voltz bc944544d2 enable normal lineart for gl847 scanners 2012-08-08 20:46:23 +02:00
Stéphane Voltz 40e0e25046 btch scan fix for sheetfed scanners 2012-08-08 20:46:23 +02:00
Stéphane Voltz 726a2d0126 fix dynamic_lineart flag setup 2012-08-08 06:54:11 +02:00
Stéphane Voltz 07ec3ead6f fix dynamic lineart for sheet-fed gl841 scanner
- there number of bytes to read is equal to the number of bytes
in gray mode
2012-08-08 06:54:11 +02:00
Stéphane Voltz 1571492fcc fix lineart scanning below 300 dpi for gl124 scanners
- drop software line interpolation for LINESEL use
2012-08-08 06:54:11 +02:00
Stéphane Voltz 41733d874e fix genesys issues when using saned
- fix --clear-calibration option descriptor
- rewrite dynmaic lineart code to fix incorrect returned data length
2012-08-08 06:54:11 +02:00
Chris Bagwell 8d8eb5ee29 fix missing scan symbol broken in previous kvs20xx commit 2012-08-07 21:56:14 -05:00
Chris Bagwell 67b011b48c Fix duplicate symbol errors in kvs20xx/kvs40xx
These 2 backends are basically copy&paste of each other and so
have duplicate symbol names.

When using prelink backend option, the duplicates will conflict
and cause compile failure.  Probably even in shared libraries
this can be an issue in some cases.

Solved by converting functions to static when possible and
adding a kvs40xx_/kvs20xx_ prefix in remaining cases.
2012-08-07 21:01:35 -05:00
Chris Bagwell 8086c98434 Fix unresolved symbols in hp5590_low backend
It was using byte order utils but not including byteorder.h.
2012-08-07 21:00:13 -05:00
Chris Bagwell c8dde5e271 Make preload DLL backend's symbols make prototypes
Most errors were in return values. Some compilers, especially
64-bit ones, are picky about this and fail to compile.
2012-08-07 20:57:44 -05:00
Rolf Bensch 9996414623 pixma version 0.17.0 2012-07-31 13:27:19 +02:00
m. allan noah 91322ff8e8 Increase kvs1025 max paper size 2012-07-30 21:36:17 -04:00
Stef dd2b18c1d2 fix '5x5 2 fois' test case
- there is no sane_cancel call betewwen each scans in batch scanning
  so call end_scan when all data has been read from the scanner
2012-07-30 11:16:51 +02:00
Rolf Bensch 646fdaaa45 all 2012 untested new devices marked as experimental 2012-07-28 14:20:11 +02:00
Rolf Bensch f88fc5c9b4 caps updated for Canon PIXMA MX510 and MX890 2012-07-28 14:09:38 +02:00
Rolf Bensch 9ee5a9f248 new scanners Canon PIXMA E[56]00, MX370, MX4[123]0, MX710 2012-07-28 13:59:17 +02:00
m. allan noah 77c4ea1a7a Various cleanups for release 2012-07-24 21:17:15 -04: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
Stéphane Voltz 34a6dec3bf minor build number and documentation updates 2012-07-04 06:55:14 +02:00
Stéphane Voltz 7c038dc403 G4050 UTA not ready for SANE 1.0.23 2012-07-04 06:55:14 +02:00
m. allan noah 206e6ed094 Adding new kodakaio backend 2012-06-30 21:28:14 -04:00
Rolf Bensch 42748d44f0 48 bit flatbed scans for CS9000F 2012-06-27 10:52:05 +02:00
Rolf Bensch 76084da110 new scan modes for 48 bit flatbed scanners
- PIXMA_SCAN_MODE_COLOR_48 for 48 bit color scans
- PIXMA_SCAN_MODE_GRAY_16 for 24 bit grayscale scans
2012-06-27 10:49:09 +02:00
Rolf Bensch ecc472caff improve scan mode detection 2012-06-26 22:31:31 +02:00
Rolf Bensch 19f4398b45 unused capability PIXMA_CAP_48BIT removed 2012-06-26 21:35:04 +02:00
Rolf Bensch 26c9c5a071 Pixma backend v0.16.4 2012-06-26 15:41:07 +02:00
Stéphane Voltz 0f418d3308 genesys build 84 changelog entry 2012-06-04 21:35:10 +02:00
Stéphane Voltz c81c28c550 improve hotplug/remove detection of device 2012-06-04 21:35:10 +02:00
Stéphane Voltz faa758cb24 gl124 led calibration rework 2012-06-04 21:35:10 +02:00
Stéphane Voltz 2ed73ef3d9 add 2400x4800 dpi mode for LiDE 100, 110 and 210 2012-06-04 21:35:10 +02:00
Stéphane Voltz 9dda72a931 improve led_calibration
- use led calibration alog from gl847
2012-06-04 21:35:10 +02:00
Alex Belkin 79240ac397 increment BACKEND_BUILD to distinguish from buggy version 2012-06-03 01:48:45 +04:00
Stéphane Voltz da92353be1 led calibration fix 2012-06-01 07:14:41 +02:00
Stéphane Voltz 0315ded799 reindent get_devices 2012-06-01 06:28:47 +02:00
Stéphane Voltz 15403160f0 changelog entry for genesys build 83 2012-06-01 06:21:14 +02:00
Stéphane Voltz c87bfdc0be align gl124 code on latest gl847 improvements
- slow back home
- feeding
- unintialized dev->skip
2012-05-30 06:39:35 +02:00
Stéphane Voltz dd0e0deb9a gl847 sensor and motor modes cleanups 2012-05-29 16:10:11 +02:00
Stéphane Voltz 5f798d84a5 4800 dpi for LiDE 700F 2012-05-29 15:36:22 +02:00
Stéphane Voltz ac3125e752 GL847 move to scan area improvements
- gl847_feed is OK
- one table scan move is OK
2012-05-29 14:40:18 +02:00
Stéphane Voltz 3261ea7dc1 doc and changelog update for LiDE 700F support update 2012-05-28 08:24:12 +02:00
Stéphane Voltz 2c370e311f fix hang on warm boot for LiDE 200 2012-05-27 10:43:58 +02:00
Stéphane Voltz e77f93be51 LiDE 700F support completed 2012-05-26 18:38:06 +02:00
Stéphane Voltz 7c20724b1f LiDE 700F WIP 05 fialfixes before data reordering 2012-05-26 09:47:33 +02:00
Stéphane Voltz a3de8f3e4f LiDE 700F WIP 04
- only reordering must be fixed every thing else is working
2012-05-26 09:47:33 +02:00
Stéphane Voltz 42713d584d GL847 shading calibration data fix 2012-05-26 09:47:33 +02:00
Stéphane Voltz b9e41f89e1 LiDE 700F WIP 03
- shading calibration fixed
2012-05-26 09:47:33 +02:00
Stéphane Voltz 8e22b9418a LiDE 700F WIP
- shading calibration data not aligned yet
- slow_back home is going back too far during shading calibration
- y_offset_calib not working yet
- intermittent failure at start
2012-05-26 09:47:33 +02:00
Stéphane Voltz 5ae4f26c42 LiDE 700F WIP
- 75 to 2400 uncalibrated scans are ok
2012-05-26 09:46:40 +02:00
Stéphane Voltz 261905e759 GL847/GL124 data interleaving rewrite
- made data interleaving use an order matrix to handle different sensors
2012-05-26 09:41:39 +02: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 7303da89ee Fujitsu backend v111
- call send_* and mode_select_* from sane_start
- split read payloads into new debug level
2012-05-11 21:59:54 -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 7269ff0158 correct fb max size 2012-05-09 21:17:32 -04:00
Rolf Bensch 3c5cc2ab08 patch for Canon Pixma MP280
- PIXMA_EOF mapped to PIXMA_ETIMEDOUT
- maximum resolution reduced to 600dpi
- scanner added to doc files
2012-05-04 14:27:37 +02:00
Rolf Bensch 9b83cf6dc4 new description for device specific option "source" 2012-04-17 11:02:08 +02:00
Rolf Bensch 641e7f6e2a select first entries of dynamic dpi list and dynamic mode list as default values 2012-04-17 10:07:09 +02:00
Rolf Bensch d723944fae new scanners Canon Pixma MX510 and Canon Pixma MX890
both are untested
2012-04-04 18:49:32 +02:00
Rolf Bensch 9fc0ac9d1b color and grayscale negatives scan in TPU mode
for CS8800F and CS9000F
2012-04-04 15:15:18 +02:00
Rolf Bensch 9c6afe1b95 cropping y and h to scanable area in TPU mode
for CS8800F and CS9000F
2012-04-04 14:35:20 +02:00
Stéphane Voltz a1d3481265 update LiDE 110/210 scan area width 2012-03-29 21:57:31 +02:00
Stéphane Voltz 451badecc8 tune LiDE 110/210 geometry and feeding
- tune use of gl124_feed at high resolution
- tune LiDE 110/210 geometry
2012-03-29 21:42:00 +02:00
Mike Kelly d46d19808c Bumped version number. 2012-03-25 15:05:00 -07:00
Mike Kelly 2903d6687c Fixed bug using wrong enum in x/y range check.
In the "check if x/y ranges are valid" section of the attach() function, the
enum source_mode was being used instead of source_mode_dim.  Since these two
enums are very similar, it's not likely this change will affect anything, but
it does fix the compiler warning.
2012-03-25 15:04:00 -07:00
Mike Kelly bd7faf0917 Fixed warning about printf and size_t. 2012-03-25 15:03:00 -07:00
Mike Kelly 23ecd9bc5c Reverted AV610 USB IDs and removed AV_INT_STATUS
Previously I had changed the USB ID of this scanner from 0x0a18 back to
0x0a19, believing a previous commit to have been in error since it went
unmentioned in the commit log and duplicated the AV600U Plus scanner's USB
IDs.  Rolf Würdemann reported that his AV610 scanner used the 0x0a18 ID and
that it wasn't compatible with the AV_INT_STATUS flag.  This commit reverts
my USB ID changes and removes the AV_INT_STATUS flag for the AV610.

However, because this scanner shares its USB ID with the AV600U Plus, it's
possible that the AV600U Plus may require that the AV_INT_STATUS flag be set
in order to function, and thus will break with this change.  The code, as
it's written, isn't designed to deal well with the possibility of shared USB
IDs, so I'll wait to see if this actually becomes a problem before embarking
on the lengthy challenge of getting that to work.
2012-03-25 15:02:00 -07:00
Mike Kelly fec4800d7d Added firmware checking for HP5370c scanners 2012-03-25 15:01:00 -07:00
Mike Kelly b051c955e3 Added Xerox Documate 632. 2012-03-25 15:00:00 -07:00
Mike Kelly a66812940c Bumped build number. 2012-03-21 21:07:00 -07:00
Mike Kelly 557d60f156 Keep the number of lines to flip as a negative num
Keep track of the number of lines to flip on the reverse page using a negative
number.  This uses the ill-advised principle of overloading the meaning of a
variable.  Still, it kind of makes sense because these lines are upside down,
so the number should be "upside down" too.  Besides, leaving it as a positive
number trips up the code which does page padding, which would require even
more special case code.
2012-03-21 21:06:00 -07:00
Mike Kelly 0245820f6b Fix calculations when flipping back of duplex page. 2012-03-21 21:05:00 -07:00
Mike Kelly 983d44887c Corrected the logic to set lines = -1 for ADF mode. 2012-03-21 21:04:00 -07:00
Mike Kelly 33bb529c5f Added sane_reload_devices() to sane_init().
Adding sane_reload_devices() to sane_init() required sane_init() to be moved
below the sane_reload_devices() declaration.  This restores the original
functionality present before I split the sane_reload_devices() code out of
sane_init() so that it could be called from sane_get_devices().
2012-03-21 21:03:00 -07:00
Mike Kelly 11b3604e92 Moved a comment nearer its code. 2012-03-21 21:02:00 -07:00
Mike Kelly 0ab145c316 Skip post-processing when caching flipping duplex
In a previous patch, I attempted to avoid the possibility of a page remaining
partially inside the ADF unit of a flipping duplex scanner after a scan.
Unfortunately, I introduced a bug where the backside page was accidentally
returned to the client in addition to being cached.  This was because I had
a misunderstanding of the post-processing code.  This patch skips the post-
processing section altogether, avoiding any unnecessary post-processing and
subsequent unwanted output.  The other alternative here was to try to monkey
with the buffers (as is done for LINE deinterlacing), but I felt this would
be harder to implement and even harder to debug in the future.
2012-03-21 21:01:00 -07:00
Mike Kelly 0e159fc516 Added Gray mode support for Kodak i30 and i40. 2012-03-21 21:00:00 -07:00
Stéphane Voltz 9ffa856022 document end detection fix 2012-03-20 21:57:57 +01:00
Stéphane Voltz 19c43b4184 build number and copyright updates 2012-03-20 21:54:29 +01:00
Stéphane Voltz a61e2be3a5 gl841 sheetfed calibration improvement
- use maximum gain to detect first white strip for sheetfed calibration
- bpl/wpl correctness
2012-03-20 21:54:29 +01:00
Gerhard Jäger 67379f2684 Fix batch scanning.
Apply patch submitted by Elias Oltmanns <eo@nebensachen.de>
2012-03-19 17:27:54 +01:00
Stéphane Voltz 9b3ea47cf3 handle 4850c model when setting initial registers values 2012-03-19 06:51:12 +01:00
Stéphane Voltz 5a59a1c7ab update HP 4850 geomtry with values provided by Daniël Sonck <dsonck92@gmail.com> 2012-03-19 06:51:12 +01:00
Rolf Bensch 66fb96d9ad Replace index() with strchr(). Bug #313563. 2012-03-06 11:10:44 +01:00
Rolf Bensch d897992226 offset depends on size of windowX
do not allow negative sum
2012-02-29 23:42:00 +01:00
Rolf Bensch 4fb29c00f2 new device specific option 'theshold_curve' 2012-02-29 11:40:18 +01:00
Rolf Bensch e3e2ca1aab constraint range for threshold 2012-02-27 15:31:37 +01:00
Rolf Bensch aaa97ac050 new scanner Canon imageCLASS MF4410 from Vasiliy Olekhov 2012-02-27 10:25:00 +01:00
Rolf Bensch 9513986d96 MX360: no pixel reorder at high dpi 2012-02-21 21:24:09 +01:00
Rolf Bensch 9d931359d6 new device specific option 'gamma' 2012-02-16 19:58:23 +01:00
Rolf Bensch a749b0f48a enable threshold if scanner capability is PIXMA_CAP_LINEART 2012-02-16 18:11:52 +01:00
Rolf Bensch 050707e804 lineart: custom_gamma always enabled 2012-02-16 18:05:42 +01:00
Nils Philippsen 4911e3e1a0 fix install-lockpath target
Actually, current mkinstalldirs can't set users or groups anymore. Don't
attempt to do so.
2012-02-11 19:44:53 +01:00
Nils Philippsen 7de900d057 improve install-lockpath target
Make install process robust against problems with setting group on the
sane lock directory. This can e.g. happen if packaging sane-backends and
building as a user other than root.
2012-02-11 19:06:44 +01:00
Rolf Bensch dde5782ede 1 bit B/W lineart for CIS scanners with c=1
update ChangeLog for previous 1 bit B/W lineart commit
2012-02-09 09:57:19 +01:00
Rolf Bensch d8def30f36 updated device definition for mx360 2012-02-07 07:48:59 +01:00
Rolf Bensch 2ffa16dcdd new scanner Canon PIXMA MX360 2012-02-06 16:48:00 +01:00
Rolf Bensch 974ee17cf4 1 bit B/W lineart for pixma_mp150 and pixma_810 subdrivers 2012-02-03 22:05:32 +01:00
Rolf Bensch bd379a59aa set 600 dpi when switching the source 2012-02-03 21:26:50 +01:00
Rolf Bensch 55e7079002 allow TPU scans at 9600 dpi 2012-02-03 21:15:03 +01:00
Rolf Bensch 873eba4fa4 set pixma version to 0.16.3 2012-02-03 15:22:53 +01:00
Rolf Bensch 4b86c157a3 script to generate pixma_sane_options.c and pixma_sane_options.h
from pixma.c
2012-02-03 15:12:01 +01:00
Rolf Bensch 5e87569ac4 modify dpi_list dependent on different scanner capabilities
for normal (flatbed) and ADF/TPU modes.
2012-01-31 11:39:53 +01:00
Rolf Bensch 6aeb05275e MX882 belongs to MX880 Series
update ChangeLog for previous version
2012-01-23 11:21:02 +01:00
Rolf Bensch e9fd4b2d20 api / doc use the product name PIXMA MX882 instead of MX880
update ChangeLog for previous commit
2012-01-23 10:08:18 +01:00
Ruediger Meier f3a8705525 add checks for ntddscsi.h and ddk/ntddscsi.h (to be used for win32) 2012-01-21 22:10:10 -06:00
Ruediger Meier 5311781404 cleanup, uniq PATH_SEP defines
Always use the same portable PATH_SEP define (note _WIN32
is not defined on cygwin).
2012-01-21 22:02:20 -06:00
Ruediger Meier 3078e16435 cleanup, remove all unused PATH_SEP defines 2012-01-21 22:02:20 -06:00
Rolf Bensch 1456ca2219 new scanner MX880 2012-01-18 08:58:52 +01:00
Rolf Bensch 5f3c69ab7b flatbed mode supports max. 4800 dpi 2012-01-17 20:44:46 +01:00
m. allan noah 1da5bcc2aa Updated Pixma backend from Gernot Hassenpflug. 2012-01-14 21:48:19 -05:00
Stéphane Voltz c90128efff use CKSEL=1 for XPA 2012-01-02 22:11:33 +01:00
Stéphane Voltz 562c301059 fix GL646 CCD line number calculation 2012-01-02 22:11:33 +01:00
Stéphane Voltz bd718256e3 G4050 XPA slider control
- function to light on XPA
- functions to enable/disable XPA slider's motor
2012-01-02 22:11:33 +01:00
Stéphane Voltz 06847a5673 led calibration tuning 2012-01-02 22:10:59 +01:00
Alex Belkin 6c61cfff8a usb id for Samsung SCX-3205W, reported by sane tester.
Long forgotten usb id from the tracker:
https://alioth.debian.org/tracker/index.php?func=detail&aid=312902&group_id=30186&atid=410366
2011-12-30 10:17:58 +04:00
Alessandro Zummo 909aa82085 epson2: handle TPU2 as a separate transparency unit (Claus <claus@egehuset.dk>) 2011-12-25 02:43:14 +01:00
m. allan noah 5a48db9490 Fujitsu backend v109 2011-12-20 09:43:37 -05:00
Alessandro Zummo 56cac490f9 epson2: support TPU2 on GT-X800/V700 2011-12-02 00:27:28 +01:00
Stéphane Voltz b5eae79777 increase internal build number 2011-11-29 21:32:31 +01:00
Stéphane Voltz db23500243 improve GL847 shading calibration
- repark between each shading step
2011-11-29 21:32:31 +01:00
Stéphane Voltz f2acf37faa change led calibration for gl847 2011-11-29 21:32:31 +01:00
Stéphane Voltz f9447a43ff initialize fe before using it 2011-11-29 21:32:31 +01:00
m. allan noah 69b5f8cfcf Fujitsu backend v107 and v108
- M3091 does not support scanner_control(adf)
- Correct buffer overflow in read_from_3091duplex()
- sane_read() now always calls read_from_*()
- read_from_*() are callable when there is no data, and read to eof
- sane_read() will keep alternate duplex reads to similar length
- Added debugging statements
- Corrected comments
- Updated Copyright
- merged x/y resolution options
- moved page width/height to start of geometry group
- use mode to pick resolution list v/s range
- improved M3091 resolution choices
2011-11-21 15:19:26 -05:00
Chris Bagwell 2c4b1da0bf add FreeBSD Port's patches
epson2-commands.c: Include <sys/types.h> to resolve u_long.
epson2.c, magicolor.c, xerox_mfp-tcp.c: Include <sys/types.h>
and to <sys/socket.h> for anyone using setsockopt().
sanei_tcp.h: Include <sys/types.h> since ssize_t is referenced.
sanei_usb.c: Newer FreeBSD version checks.

All changes in this patch set come from FreeBSD ports patches.
Bug #312503.
2011-11-20 20:08:15 -06:00
Stéphane Voltz 0af5d2f94f genesys backend build 66 changelog 2011-11-20 11:34:30 +01:00
Stéphane Voltz b7a62c1d54 align offset/gain calibration of gl847 on gl124 code 2011-11-20 10:47:20 +01:00
Stéphane Voltz d0931a27c8 update HP N6310 description 2011-11-20 08:05:39 +01:00
Stéphane Voltz d090c32918 first step for N6310 2011-11-20 08:03:54 +01:00
Stéphane Voltz 3cd3534e87 fix calibration crash for LiDE 100/200 2011-11-20 08:02:55 +01:00
Stéphane Voltz 0e409babcc Merge branch 'gl843' 2011-11-19 09:53:06 +01:00
Stéphane Voltz c84445039d add HP 4850c as an untested gl843 device 2011-11-19 09:50:44 +01:00
Stéphane Voltz d750676ed0 XPA support for gl843 preparation
- define exposure map for XPA
- define optical flag for XPA
2011-11-19 09:34:12 +01:00
Nils Philippsen c648a4411e avision: reenable grayscale and lineart modes for AV220
See https://bugzilla.redhat.com/show_bug.cgi?id=700725
2011-11-18 12:17:22 +01:00
Alessandro Zummo cafa49bb92 epson2: fixup detection of GT-7000 2011-11-17 20:34:09 +01:00
Stéphane Voltz 6ddaf6fbc1 G4050 XPA progress
- define and tune move_to_ta for gl843
- GPIO settings to light XPA lamp
- GPIO settings to enable XPA lamp motor
- park XPA lamp function for gl843
2011-11-14 06:16:17 +01:00
Stéphane Voltz 23727765f8 handle XPA light on
- select XPA is trnasparency method
- toggle GPIO for XPA if needed
2011-11-14 06:16:17 +01:00
Stéphane Voltz 11ff6cfaa6 includes cleanup
- remove uneeded includes from genesys.c
- move backend name define to C file for unit testing
2011-11-14 06:16:17 +01:00
Stéphane Voltz 389cef9ca8 includes cleanup 2011-11-14 06:16:17 +01:00
Stéphane Voltz ec8bdc31a3 define and use HAS_UTA flag for G4050
- remove unused ALT_SLOPE flag
- create HAS_UTA_FLAG
- ease some compilation warnings
2011-11-14 06:16:17 +01:00
Stéphane Voltz 99df6f2b0a lamp off at sane_close() 2011-11-14 06:16:17 +01:00
Chris Bagwell 3125506715 revert broken sleep()->usleep conversion.
Got unit conversion wrong.
2011-11-10 18:39:12 -06:00
Chris Bagwell 50475719ef portabilty mods to epson2 backend
No behavior changes.  Wrap some optional headers with #ifdef's and
use usleep() instead of sleep() since it exist everywhere.
2011-11-09 21:50:18 -06:00
Chris Bagwell e7f01c3b36 Add --disable-dynamic/--disable-preload and update docs
Options were in README but removed at some point.  They
are useful so add them back.

Document BACKENDS and PRELOADABLE_BACKENDS variables in
README as well as in configure --help output.
2011-11-08 21:28:30 -06:00
Chris Bagwell db068dd6b1 complete preload linking fix.
dll.c is were optional preload behavior is implemented.
Since its linked in using a convienence library, we need
to libraries to have different behavior.
2011-11-08 20:06:30 -06:00
Chris Bagwell 0a6d41ff59 Add missing sanei_magic.lo to libsane backend.
At least Fujitsu backend uses it so needed to be able
to run "configure PRELOADABLE_BACKENDS=fujtsu".
2011-11-07 19:29:38 -06:00
Chris Bagwell 1dd768d534 Do not link in preload backends for libsane-dll
Current backend/Makefile.am states difference between libsane and
libsane-dll as:

> libsane.la and libsane-dll.la are the same thing except for
> the addition of backends listed by PRELOADABLE_BACKENDS that are
> statically linked in.

We were (mistakenly) linking in dll-preload.h and thus symbols
for all preload backends for both libraries but we were only
linking in those symbols for libsane.

This mistake became obvious on mingw which does not allow for
any unresolved symbols.  Resolve by forcing an empty preload
backend list for libsane-dll.
2011-11-06 16:39:06 -06:00
Chris Bagwell 5061c2d5b2 More mingw portability updates.
Add check for winsock2.h for socket.h replancement. Also, use this
check to add ws2_32 library. Also, switch all winsock.h references
to winsock2.h.

Add check for getuid and getpass; which are not on mingw.

Add a syslog() replacement that is basically a print(). This
is also used by vsyslog() replacement.

Comment out parts of replacement sigprocmask.c on mingw.

To support these configure.in changes, I need to rebuild all
related files with autoconf 2.68 and libtool 2.4. Hand ported
our sane-backend specific changes to newer ltmain.sh.
2011-11-06 12:40:00 -06:00
Chris Bagwell e7d1932f5b use usleep consistently in umax_pp_low.c
It was about an 90/10 split with usleep/sleep. We have portablity
logic to make usleep on all platforms but not sleep. This is
needed to link tools directory under mingw.
2011-11-06 11:24:45 -06:00
Stéphane Voltz 8f0f05225b includes for genesys_gl841.c 2011-11-02 08:41:10 +01:00
Stéphane Voltz 11d8819768 genesys code cleanup
- create an include file for genesys_gl841.c
- simplify includes
- cleanup warnings
2011-11-02 08:40:25 +01:00
m. allan noah 938469218b Merge branch 'master' of ssh://git.debian.org/git/sane/sane-backends
Conflicts:
	ChangeLog
2011-11-01 16:12:03 -04:00
m. allan noah 8ee3e59375 canon_dr: DR-2580C pads the backside of duplex scans 2011-11-01 15:23:08 -04:00
Stéphane Voltz f0e42223a7 include <sys/types> in a clean way 2011-11-01 16:10:07 +01:00
Stéphane Voltz 638d7750a9 fix gpo description of LIDE210 2011-11-01 10:08:36 +01:00
Mattias Ellert 9e639753a3 Include <sys/types.h> for definition of u_long on MacOS X 2011-10-30 10:32:34 +01:00
Mattias Ellert c048a73700 Use more precise path to internal headers 2011-10-30 10:27:47 +01:00
Mattias Ellert 97e89c3ad7 Use portable endian macros from config.h 2011-10-30 10:19:07 +01:00