Wykres commitów

20 Commity (b31b82c8bd99e890835b0ab8f42cbf118481784e)

Autor SHA1 Wiadomość Data
David Ward 6048724f22 coolscan2, coolscan3: Fix initialization of enum members in struct
GCC warns when setting an enum member to 0 without an explicit cast.
Use the corresponding value in the enum type instead.
2022-03-08 19:00:00 -05: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
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
Wolfram Sang f9f75ca068 saneopts: add entries for focus/autofocus
coolscan2 has focus entries already reused in coolscan3. Because I want
to add the same options to epson2, it makes sense to make them available
globally. Add i18n while here.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen d2576bbb94 Fix "discards 'const' qualifier from pointer target type" warnings
The cs3_xfree() functions is really just a checked call to free() so its
signature has been changed to match that.  The warnings that causes have
been fixed in the same way and on the same grounds as the previous commit.
2015-11-11 22:41:33 +09: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
Alessandro Zummo a37093431b coolscan3: setup of unknown options is now non fatal to aid debugging 2010-12-12 14:22:19 +01:00
Alessandro Zummo 1ab64487a0 coolscan3: enable infrared frame type
Enable infrared, remember to alter the #ifdef in sane.h
and use tiffscan svn to test.

http://code.google.com/p/tiffscan/

 tiffscan --device ... --scan --autofocus --ae-wb --depth=12 --infrared=yes
2009-06-27 17:55:09 +02: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
Alessandro Zummo 70b2085e1b temporarily disable infrared. 2009-04-21 00:43:05 +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
Chris Bagwell 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +00:00
m. allan noah b85947768d backend/*.[ch]: more consistent #include "../include/sane/config.h" 2009-02-25 02:11:17 +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
Mattias Ellert 2781ca398a Fix format warnings 2008-02-19 18:31:36 +00:00
Alessandro Zummo 4f022fba36 added coolscan3 backend 2008-02-19 10:46:06 +00:00