Wykres commitów

28 Commity (e6abe74b5c49ceff31034fb153f007ae030c8fb6)

Autor SHA1 Wiadomość Data
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
m. allan noah 9371a0c8fb * backend/epjitsu.[ch]: backend v17:
- increase scan height ~1/2 inch due to head offset
- change page length autodetection condition
2008-10-03 15:54:39 +00:00
m. allan noah 7274bfc500 * backend/epjitsu.[ch]: backend v16:
- split fill_frontback_buffers_S300 into 3 functions
- enable threshold_curve option
- add 1-D dynamic binary thresholding code
- remove y-resolution option
- pad 225x200 data to 255x225
2008-10-02 03:38:40 +00:00
m. allan noah 0bbf8bac04 2008-09-25 m. allan noah <kitno455 a t gmail d o t com>
* backend/epjitsu.[ch], backend/epjitsu-cmd.h: backend v 13, 14 and 15:
        - add working page-height control
        - add working brightness, contrast and threshold controls
        - add disabled threshold curve and geometry controls
        - move initialization code to sane_get_devices, for hotplugging
        - support S300 on USB power
        - support S300 225x200 and 600x600 scans
        - support for automatic paper length detection (parm.lines = -1)
        - expose hardware buttons/sensors as options for S300
        * doc/descriptions/epjitsu.desc: change S300 status to good
2008-09-25 03:15:49 +00:00
m. allan noah 2dc0cb38bd separate x-resolution from resolution, and update all backends that use
it, to prevent ui change
2008-07-26 03:53:44 +00:00
m. allan noah 8c2f857f39 backend v1.0.12: fix double free error 2008-04-29 00:57:26 +00:00
m. allan noah db29ded1d1 sanei_read_config has already cleaned string, fix bug #310597 2008-02-14 16:37:45 +00:00
m. allan noah 3f857c4c82 update backend as per m. ellert's FIRMWARE_DIRS/DATADIR suggestion 2007-12-30 01:31:13 +00:00
m. allan noah d3cc1b13a8 backend version 1.0.10- fix missing function 2007-12-19 22:14:19 +00:00
m. allan noah 38f280276d Updated company name. 2007-12-18 02:36:55 +00:00
m. allan noah 559212e96e Adding v1.0.9 of the epjitsu backend: supports Epson-based Fujitsu scanners,
currently the fi-60F flatbed and ScanSnap S300 duplex ADF machines
2007-12-18 02:02:51 +00:00