epjitsu: unit convert macro

introducing macros converting between scanner unit
and inches each other.

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
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>
epjitsu: optimize loop

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
epjitsu: fix indent

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
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>
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>
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>
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
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
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.
epjitsu: implement get_gcd

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
epjitsu.c: add/fix a few comments
epjitsu: document how to extract .nal files in Linux

In Fujitsu ScanSnap installation DVDs the .nal firmware files required
for the epjitsu backend to work are located in cabinet files.

The script snippet locates these cabinet files on the DVD and extracts all
.nal files it finds.
epjitsu: add Fujitsu S1300i to epjitsu.conf.in
Minor bug fix to man page
Correction of some spelling/grammatical errors and miscellany in man pages
Correction of some spelling/grammatical errors in source code
epjitsu: update desc file for S1100 and S1300i
fix MG7100 image data post processing @ high resolutions > 600dpi
Canon Pixma MG7100 Series scanner is working