[sane-devel] [PATCH][RFC] gt68xx backend: sheetfed calibration WIP
stef
stef.dev at free.fr
Wed Nov 11 07:57:23 UTC 2009
Hello,
thanks for another hardware donation from Jack McGill (an OpticSlim M12), I
have started to work on adding sheet fed scanner calibration for gt68xx based
scanners. Since to my knowledge there is no active maintainer for this
backend, I submit the first patches done so I can get feedback before
committing anything.
The appended patches bring only calibration for the M12 for 100 dpi full
width scans for now. It works by adding a gt68xx_sheetfed_calibrate()
function. It is called whenever the OPT_CALIBRATE button option is set. It
then find a white area on the inserted document and runs the existing
calibration code. Once the corresponding image GT68xx_Calibrator are created,
all subsequent 100 dpi scans can be done with image quality corrections.
The new code is guarded by a device specific flag, so existing device aren't
impacted and only tested device can use this calibration.
In its current form, it only works for 100 dpi full width scans, and white
area detection is picky. The next steps I plan are:
- extend the GT68xx_Scanner struct to keep per dpi calibration data
- improve calibration function do calibration for all available resolution in
one call
- build needed GT68xx_Calibrator with these data before each scan
- make the calibration persist in file
I don't expect to have all this finished soon, so I don't think anything
should bet committed before next release.
Regards,
Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-GT68XX_FLAG_HAS_CALIBRATE-flag.patch
Type: text/x-patch
Size: 2379 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091111/a753239b/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-add-an-OPT_CALIBRATE-option.patch
Type: text/x-patch
Size: 3186 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091111/a753239b/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-gt68xx_sheetfed_scanner_calibrate-function.patch
Type: text/x-patch
Size: 4890 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091111/a753239b/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-add-needed-flags-to-Optic-Slim-M12.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091111/a753239b/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-OpticSlim-M12-geometry-fixup.patch
Type: text/x-patch
Size: 1311 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20091111/a753239b/attachment-0009.bin>
More information about the sane-devel
mailing list