Wykres commitów

64 Commity (3c9b46a096fee6573f77757baf77b8bbd571894c)

Autor SHA1 Wiadomość Data
Ondrej Zary 464dfeb5c6 rts8891: gamma-correct image in find_origin and find_margin
Apply gamma correction to image in find_origin and find_margin
to allow correct detection with cold lamp.
Also find 4 consecutive white pixels (instead of one) in find_margin.
2024-09-07 16:50:59 -07:00
Ondrej Zary 4e4180c459 rts8891: add lamp warm-up
Implement lamp warm-up for Umax.
2024-09-07 16:50:36 -07:00
Ondrej Zary eff6358dd7 rts8891: fix 100dpi
Make 100dpi scanning (and preview) really work.
Register 0x7a is x-divider, setting it to 2 divides the 200dpi horizontal
resolution to 100dpi.
So the amount of data is halved but the scanning area and shading data must
be set as when scanning at 200dpi.
2024-09-07 16:50:33 -07:00
Ondrej Zary d281e7e230 rts8891: bugfix 2024-09-07 16:49:49 -07:00
Ondrej Zary 8bbf8d5a5a rts8891: resume work on Umax Astra 4400/4450
Resume work on Umax Astra 4400/4450 support from 2015.
2024-09-07 16:49:45 -07:00
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.

Use another approach that suppresses warnings from both compilers.
2022-03-08 19:00:00 -05:00
David Ward 4cf3b09e49 rts8822, rts8891: Replace abs() with fabs() where needed
abs() has an integer parameter and returns an integer value. Floating-
point values should be passed to fabs() instead.

In particular, this affected calculations for gain and offset, where a
value with floating-point precision is clearly expected.
2022-03-08 19:00:00 -05:00
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:

$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c

And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
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
Peter Marschall f69854bb48 spelling fixes for rts8891 backend 2020-08-29 09:18:03 +02:00
pobrn 45f84a569c respect 'local_only' parameter of sane_get_devices()
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.

Changes:

1. Modify 'sanei_configure_attach()' so that backend specific
   data may be passed to the 'attach()' function.

2. Use this in certain backends to pass the value of the
   'local_only' parameter so that network related activities
   are only carried out when the value is false.
2020-08-12 12:29:38 +02:00
Povilas Kanapickas b7b5ca79c8 rts8891: Remove uses of unused UNIT_TESTING ifdef 2019-03-20 23:09:04 +02:00
Olaf Meeuwissen c6bfe88c31 Update mailing lists addresses to new location 2018-04-18 21:36:00 +09:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst e21bb28e50 Source code string typo fixes 2017-05-13 18:38:43 +09:00
Olaf Meeuwissen 7dc416b7ae Remove unnecessary cast 2015-11-11 22:42:08 +09:00
Olaf Meeuwissen e65fd1b4cb Fix "discards 'const' qualifier from pointer target type" warnings
The resources pointed to have been acquired by the backend.  It is safe
to cast away the 'const' qualifier when releasing these resources.
2015-11-11 22:41:22 +09:00
Nils Philippsen 602d6ecdfe rts8891: check return values 2013-11-06 12:03:23 +01:00
Nils Philippsen 66cb9b55c2 remove code which is never reached 2013-11-05 14:47:27 +01:00
Stéphane Voltz 6b78c69876 cppcheck errors and warings fixes 2013-02-27 21:26:28 +01: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 34a6dec3bf minor build number and documentation updates 2012-07-04 06:55:14 +02:00
Julien BLACHE f535dd8cd9 rts8891: fix format string 2010-06-23 18:21:39 +02:00
Stéphane Voltz 1dacd8d4be fix register 11 setting for sensor type XPA 2010-03-16 06:38:48 +01:00
Stéphane Voltz eb661970bb fix registers settings for 600 dpi scans for sensor type 1 2010-03-11 06:19:43 +01:00
Stéphane Voltz e253e63695 tweak register settings for sensor type 1 at 600 dpi 2010-03-07 23:20:57 +01:00
Stéphane Voltz c2440fc395 fix sensor detection for HP4470 2010-03-05 13:43:30 +01:00
Stéphane Voltz 4d19a35456 change build number 2010-03-04 06:24:13 +01:00
Stéphane Voltz fda12eb959 add debug traces for sensor used 2010-03-03 06:29:59 +01: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
Stéphane Voltz 79348f194e - fix blocking bug due to scanner sharing enabled by default
- fix wrong waiting time for warming up
	- copyright notices and version updates
2009-04-27 15:29:35 +00:00
Stéphane Voltz f033f08646 - date and version update 2009-04-13 08:07:45 +00:00
m. allan noah 0342a63033 Updates to prepare for 1.0.20 release:
* configure.in: change version to 1.0.20cvs
* configure: rebuild from configure.in
* include/sane/sane.h: hide API changes (minor, frame and status)
* backend/canon_dr.c, backend/fujitsu.c: SANE_FRAME_JPEG
* backend/coolscan3.c: SANE_FRAME_RGBI
* backend/genesys_gl646.c, backend/genesys_gl841.c: STATUS_HW_LOCKED
* backend/rts8891.c, frontend/scanimage.c: STATUS_WARMING_UP
* backend/pixma_io_sanei.c, backend/xerox_mfp.c,
  backend/sane_strstatus.c: STATUS_HW_LOCKED & STATUS_WARMING_UP
* doc/releases.txt: minor updates for new build system
2009-04-12 19:40:31 +00:00
Stéphane Voltz fa2f9968e6 - scan register setting fix
- documentation update
2008-12-11 05:35:26 +00:00
Stéphane Voltz e04240297d - possible fix for failed scan at 300 and 1200 dpi for
HP4400 with sensor type 2
2008-12-03 20:33:31 +00:00
Stéphane Voltz 12d1b49896 - fix 'commit scan' value. Should fix 150/1200 dpi scan problems
for HP4400 with sensor type 2
2008-11-22 06:40:46 +00:00
Stéphane Voltz b1be8ec61f - calibration fixes for hp440 with sensor type 3 2008-11-20 19:57:28 +00:00
Stéphane Voltz ca5bfa59f3 - fix sensor mis-detection for HP4400
- lighting change for HP4400
2008-11-12 06:59:38 +00:00
Stéphane Voltz 948020bf1c - added 600 and 1200 dpi scans for HP4400
- added 600 and 1200 dpi scans for HP4470 with 'xpa' sensor
2008-10-31 06:15:26 +00:00
Stéphane Voltz 5633288e36 - added 300 dpi scans for HP4400, sensor type 2 2008-10-15 05:01:28 +00:00
Stéphane Voltz 8d3d0f1037 - added 150 dpi scan for HP4400
- added sensor detection for HP4400
2008-10-15 04:36:30 +00:00
Stéphane Voltz 049d3c644f - fixed a configuration option bug 2008-10-06 04:25:23 +00:00
Stéphane Voltz 0214a5091b - add a 'sensornumber' option to override sensor detection 2008-10-02 19:54:52 +00:00
Stéphane Voltz c2f747a22d - fixed typo in HP4400 sensor detection 2008-09-23 19:22:42 +00:00
Stéphane Voltz 9f081c4508 - head parking fix for HP4400
- 75 dpi support for a sensor varaint of the HP4400
	- better sensor detection at init
2008-09-20 07:00:10 +00:00
Stéphane Voltz c21bb0ab56 - fix head parking for HP4400
- tune dark calibration for HP4400
2008-09-11 04:38:19 +00:00
Stéphane Voltz a2cb00cdc3 - minor tweaks for hp4400 support 2008-09-03 04:43:15 +00:00