Wykres commitów

71 Commity (0b4165b27f43b646063ca89c956b8dbefd1a266c)

Autor SHA1 Wiadomość Data
Rolf Bensch 107f334d7f pixma: update copyright 2019-01-01 14:20:46 +01:00
Earle F. Philhower, III 5e5183c84e Return NO_DOCS after last ADF page, not IO_ERROR
When scanning from ADF in MP150 based scanners, after the last page is
scanned the XML session-close was sent.  However, when using the ADF, if
the frontend called sane_start/sane_read(), it would try and send an
XML command that was not valid after the session abort.  This would give
an IO error up through the stack.

Now, check if ADF scanning is happening and on reads after the last page
return SANE_STATUS_NO_DOCS on read. and abort.

Finally, minor fix of max DPI for Pixma MAXIFY MB21xx/27xx to 1200 DPI.
2018-05-16 07:09:00 -07:00
Earle F. Philhower, III d90f9054c6 Add JPEG scanning, MB2100/2700 to PIXMA
The Maxify scanners seem to only be able to return JPEG data for ADF
sources.  Attempting to send a gamma LUT will result in an error on
sane_start when trying to use the ADF.  Flatbed scanning is unaffected
and runs fine with LUTs like prior models.

This patch adds support to the PIXMA backend for returned JPEG scans
and keys it off of the new capability, ADF_JPEG.

Tested on a Maxify MB2120 using the ADF and the flatbed scanner.

This may also fix other Maxify MB* models where it seems the ADF does
not with with the prior code, but I only have the MB2120 to test.
2018-05-10 19:11:35 -07:00
Olaf Meeuwissen 73861ea91c pixma: Fix [-Wint-conversion] and [-Wpedantic] compiler warnings
These are also related to the SANE_Pid type issues.
2017-07-15 17:11:06 +09:00
Olaf Meeuwissen df1aba21bc SANE_Pid: Fix [-Wint-conversion] issues
Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.

The musl C library uses a `struct __pthread *` which triggered the
warnings.  As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight.  All
backends have been changed to use these macros.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen 6ad9e8479d pixma: Fix [-Wmisleading-indentation] compiler warning
There is no point in falling through the case branch so the break
should be at the same level as the if.
2017-06-26 18:07:11 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Rolf Bensch a2e2657272 pixma: signal scan cancel from the frontend with new parameter s->param->frontend_cancel 2017-04-04 11:27:38 +02:00
Rolf Bensch 17f3899b15 pixma: new option adf-wait 2017-04-04 11:23:03 +02:00
Olaf Meeuwissen d3d5dc3da0 Update to autoconf-2.69
This gets rid of a number of obsoleted macros and replaces RETSIGTYPE
with a void literal which can be assumed for C89 and later.

This changeset was prepared using autoupdate and modified to get rid of
whitespace and doubled [] changes.  Changes to acinclude.m4 were added
by hand.
2016-06-13 22:05:34 +09:00
Rolf Bensch 81c429082c pixma: update copyright 2016-01-08 16:43:46 +01:00
Olaf Meeuwissen e094c5b43b Invert sense of sanei_thread validity check
Double negatives suck.
2015-11-24 18:19:31 +09:00
Olaf Meeuwissen fe12d31e68 Fix SANE_Pid related -Wsign-compare warnings
This may fix threading related issues on WIN32 platforms, BTW.
2015-11-24 18:19:31 +09:00
Rolf Bensch c063b8fa8f update copyright 2015-04-03 19:19:02 +02:00
Rolf Bensch 0efb64d126 update copyright 2014-01-02 20:51:00 +01:00
Rolf Bensch 11ba184235 new button option --scan-resolution
detailed button option description
2013-07-18 22:45:45 +02:00
Rolf Bensch 1c5760a897 fix mode list for infrared scans 2013-06-27 21:14:49 +02:00
Rolf Bensch 50df7af5cc update copyright 2013-04-26 22:52:44 +02: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 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
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 afc84646c7 fixed button support 2013-01-18 12:11:31 +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
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
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 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 9fc0ac9d1b color and grayscale negatives scan in TPU mode
for CS8800F and CS9000F
2012-04-04 15:15:18 +02: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 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
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 5e87569ac4 modify dpi_list dependent on different scanner capabilities
for normal (flatbed) and ADF/TPU modes.
2012-01-31 11:39:53 +01:00
m. allan noah 1da5bcc2aa Updated Pixma backend from Gernot Hassenpflug. 2012-01-14 21:48:19 -05:00
Nicolas Martin 68c15af1b2 pixma: several updates for MP830, MP990, memmove bug fix, and 64 bits image size.
modified:   ChangeLog
	modified:   backend/pixma.c
	modified:   backend/pixma.h
	modified:   backend/pixma_common.c
	modified:   backend/pixma_common.h
	modified:   backend/pixma_mp150.c
2011-01-04 22:19:52 +01:00
Nicolas Martin 2fccb8ffbe pixma: changes supplied by Gernot Hassenpflug for
- supporting Lineart on several Pixma devices
       - descriptions updates
2010-09-01 21:18:14 +02:00
Nicolas Martin 9c8244f006 pixma: some changes for future Lineart support in the backend
add some settings for MF8030, not yet working (different protocol)

	modified:   backend/pixma.c
	modified:   backend/pixma.h
	modified:   backend/pixma_common.c
	modified:   backend/pixma_imageclass.c
2010-07-25 21:38:07 +02:00
Nicolas Martin b95d698f33 pixma: fix end of line crop buffer size for better efficiency.
modified:   ChangeLog
	modified:   backend/pixma.c
2010-07-03 21:27:44 +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
Nicolas Martin f9e6dc5ce1 pixma: some routine maintenance updates to backend and documentation. 2009-12-26 14:40:39 +01:00
Nicolas Martin f2e98f7975 pixma: bumped version, added compilation type debug message, updated docs for MX330.
doc/descriptions/pixma.desc
doc/sane-pixma.man
backend/pixma_mp150.c
  Updated docs for MX330, supported by the pixma backend.

backend/pixma.h: Bumped pixma backend version added debug message.
backend/pixma.c: added compilation type (w or w/o pthread) debug message.
2009-12-06 15:40:58 +01:00
Nicolas Martin 7d659f87df pixma: bumped minor, added compilation type debug message, updated MX330 doc.
- doc/descriptions/pixma.desc
  doc/sane-pixma.man
  backend/pixma_mp150.c
            updated doc and desc (support for MX330)
- backend/pixma.h
  backend/pixma.c
            bumped backend minor
2009-12-06 15:33:10 +01:00
Nicolas Martin 13641ac5b3 pixma: fix for PTHREAD compilation, add support for MP990 in docs.
- backend/pixma.c: fix end of scan buggy exit when compiled with USE_PTHREAD/-lpthread
- backend/pixma_mp150.c, doc/descriptions/pixma.desc, doc/sane-pixma.man:
  change support to complete for MP990 in documentation, as reported by Jean-Michel Pouré.
2009-11-28 15:11:05 +01: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