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>
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>
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>
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>
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).
* 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