Wykres commitów

60 Commity (2ae58b0e6f15fca44984839c4e7dd6a9bb854b0b)

Autor SHA1 Wiadomość Data
m. allan noah 190fa52619 epjitsu backend v33
- S1300i: fix color plane offset at 225 and 330 dpi (fixes #538)
2022-11-17 20:52:29 -05:00
m. allan noah 6acd5366cb epjitsu backend v32
- fix hanging scan when using source = ADF Back (fixes #601)
- minor improvements to .desc and manpage
2022-11-15 22:01:19 -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
Peter Marschall d829ff835a epjitsu: read page_width pixels from scanner
This commit fixes a regression introduced in 1.0.25 for ADF scanners:
the scanning page-width was always set to a fixed value,
ignoring the page-width provided by the frontend.

This commit restores the behaviour that allows changing the page-width.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 79e76258cb epjitsu: enforce range.max >= range.min in option descriptors
In the option descriptor definitions of tl_x, tl_y, br_x & br_y
make sure the the maximal value of the range is not smaller than
the minimal value.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 1dab1f0121 epjitsu: fix start & finish DBG() calls in coarsecal*()
Adapt levels for start & finish logging to match the documentation
and the other functions.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:14 +02:00
Peter Marschall 16cdaf16e5 epjitsu: instrument finecal_send_cal() & finecal_get_line() with DBG() calls
No functional changes, but allow for easier debugging.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:13 +02:00
Peter Marschall 36b59bd2c1 epjitsu: introduce & use MAX() & MIN()
This change simplifies some expressions, and hence
allows for easier understanding of the intention.

Signed-off-by: Peter Marschall <peter@adpm.de>
2021-12-08 16:36:13 +02: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 d789545521 Apply 1 suggestion(s) to 1 file(s) 2020-09-06 07:17:00 +00:00
Peter Marschall 0ff0d7d25b spelling fixes for epjitsu backend 2020-08-29 09:18:03 +02:00
Ralph Little d1940cf9b8 epjitsu: strncpy() compiler warning suppressed. 2019-12-21 21:44:39 -08:00
Olaf Meeuwissen f0f187f995 .editorconfig: trim trailing blank lines 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
m. allan noah dcddb9505c epjitsu backend v31
- hardware gray support for fi-60F/65F (disabled pending calibration)
- merge fi-60F/65F settings
- improve desc, conf and man files
2017-04-11 21:32:37 -04:00
m. allan noah e6c8ea6f0b epjitsu backend v30 again
- typo in previous commit broke low resolution scans on fi-65F
2017-03-22 12:33:27 -04:00
m. allan noah a7fde11e15 epjitsu backend v30
- bump build number
2017-03-21 21:35:59 -04:00
m. allan noah 891e3984d0 epjitsu v30
- fix image truncation when using 150 DPI in Y direction
- add 200 and 400 DPI Y direction support for fi-60F/65F
2017-03-21 20:43:42 -04:00
m. allan noah eaa4d4407d epjitsu backend v29
- fix infinite loop when scaling in Y direction
2017-03-18 19:19:04 -04:00
m. allan noah 15e203de89 Various copyright comment updates 2016-02-23 21:11:00 -05: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
m. allan noah 0177d39642 epjitsu backend v28
call get_hardware_status before starting scan
2015-03-23 20:52:54 -04:00
m. allan noah 15deba5c57 epjitsu backend v27
- don't override br_x and br_y
- call change_params after changing page_width
2015-03-02 20:31:46 -05:00
m. allan noah 683f6d71f4 epjitsu backend v26
- add resolution scaling
- fix 150 dpi settings for fi-60F and fi-65F
- make adf_height_padding variable
- make white_factor variable
2014-07-02 09:48:55 -04:00
m. allan noah a7aa92f54d epjitsu backend v25
- initial support for fi-65F
- initial support for S1100
2014-06-12 21:25:14 -04:00
m. allan noah af80354325 epjitsu backend v24
enable fine calibration for S1300i 225 & 300 dpi, and S300 150 dpi
2014-06-01 08:31:21 -04:00
m. allan noah bac4009627 epjitsu backend v23
- add S1300i support
- fix buffer overruns in read_from_scanner
- set default page width
- simplified the 225x200 resolution code
2014-05-27 21:42:17 -04:00
Peter Marschall 2d438531b1 epjitsu.c: add/fix a few comments 2014-05-15 22:04:36 -04:00
Hiroshi Miura a4cff1c9e2 epjitsu: implement get_gcd
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura bc459dea9d epjitsu: ScanSnap S1100 support
Add S1100 support

The ideas and cmd data are comes from:
http://ubuntuforums.org/showthread.php?t=1678335

TBD: test on S1100, I don't have a machine.
2014-05-15 22:04:36 -04:00
Hiroshi Miura ceeb9bb2d3 epjitsu: refactor coarsecal()
Now refactoring coarsecal() for S1100 support.
it is carefully changed not to break S300/1300/1500.

the chunk come from http://ubuntuforums.org/showthread.php?t=1678335
2014-05-15 22:04:36 -04:00
Hiroshi Miura e6abe74b5c epjitsu: introduce object_position()
Rename ingest() to object_position()
now it can do both ingest and eject.
This is required by S1100 support.

chunk come from
http://ubuntuforums.org/showthread.php?t=1678335
2014-05-15 22:04:36 -04:00
Hiroshi Miura 2f7c6382f4 epjitsu: x,y_resolution difference treatment
ScanScanp has a resolution 225x200 in each model.

The function which treat it should use a mathematic theory.
Euclidean algorithm should be used to get GCD (Greatest Common Devisor)
for this calcuration.

This patch make a separate function that should be get_GCD and
simplize a logic in copy image function.

TBD: this don't have Euclidean algorithm. Just prepare for it.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura 25947781ec epjitsu: tl_y parameter support
The driver can cut top of image for padding.
We can also cut an ordered size at a top of image.
It make tl_y parameter works.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura 529a7611d2 epjitsu: skip top padding
The driver need a padding at top of page.
Because scansnap don't treat empty image
at the top of image that is generated when
loading paper, the driver cut top of page
in 1/2 inch.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura 5ab232d3a6 epjitsu: fix indent
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura f3d5455e9a epjitsu: optimize loop
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura 9f1542afc6 epjitsu: page width support
ScanSnap itself don't have a feature to
detect and scan area in demanded width.
Otherwise driver need to cut into proper width.

this introduce page_width parameter and facility
to cut image into page width.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
Hiroshi Miura 8ef91bb06d epjitsu: unit convert macro
introducing macros converting between scanner unit
and inches each other.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2014-05-15 22:04:36 -04:00
m. allan noah 583c345a39 epjitsu: comment changes, listed new models 2011-01-31 08:31:34 -05: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
m. allan noah e4e9eedc7f enable translations of all static strings via SANE_I18N macro 2010-02-10 22:07:49 -05:00
m. allan noah fcc43f328c cleaned #include lines and copyrights. added new models. 2010-02-09 22:02:08 -05:00
Ilia Sotnikov 798c96412a Use own private function instead of roundf() 2009-10-03 13:25:05 +03:00
m. allan noah 6c13f7d522 Epjitsu backend v19, better calibration from Richard at fascinationsoftware dot com 2009-08-31 09:58:06 -04: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
m. allan noah 690f1670c3 dont export private symbols 2009-01-21 15:12:08 +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
m. allan noah 7fa6ae708c typo in comment 2008-10-03 16:20:36 +00:00