# sane-0.67 Mustek 600 II N patch

Andreas Czechanowski (m075@ins.uni-stuttgart.de)
Wed, 12 Nov 1997 09:32:12 +0100 (MET)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Michael Burghart: "OCR Software..?!"
- Previous message: David Mosberger-Tang: "Re: REQ: Info about drivers."

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--92974122-851401618-879323532=:26972
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello Mustek users !

Here's a simple patch to make the Mustek 600 II N work with
sane-0.67. I have tried with xscanimage for color and grayscale.
The patch can be applied in the ".../sane-0.67" directory.

Color images will have the legendary horizontal stripes due to
wrong coefficients for the line-distance-correction (a kind of
fractional accumulating color assignment algorithm), but this
hopefully will go away for the next release (the correct set
of coefficients is already known, but not yet implemented).

There are also horizontal stripes at the buffer boundaries,
but this is also known how to fix. (To DavidM: copying the
remainder of the buffer back to the beginning really seems
necessary)

Andreas.

--92974122-851401618-879323532=:26972
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sane-0.67-patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.96.971112093212.26972B@inshp01.ins.uni-stuttgart.de>
Content-Description: sane-0.67-patch

KioqIC4vYmFja2VuZC9tdXN0ZWsuYy5vcmlnCVN1biBOb3YgIDIgMDY6NTY6
MTggMTk5Nw0KLS0tIC4vYmFja2VuZC9tdXN0ZWsuYwlUdWUgTm92IDExIDIx
OjM3OjA4IDE5OTcNCioqKioqKioqKioqKioqKg0KKioqIDEwMTUsMTAyMCAq
KioqDQotLS0gMTAxNSwxMDIyIC0tLS0NCiAgCSAgREJHKDQsICJkb19zdG9w
OiBzZW5kaW5nIFNUT1AgY29tbWFuZFxuIik7DQogIAkgIHN0b3Bfc2NhbiAo
cyk7DQogIAl9DQorICAgICAgIGlmIChzLT5ody0+ZmxhZ3MgJiBNVVNURUtf
RkxBR19QUCkNCis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
YwlUdWUgTm92IDExIDIxOjA3OjQ5IDE5OTcNCioqKioqKioqKioqKioqKg0K
KioqIDMzMSwzMzcgKioqKg0KICB7DQogICAgaWYgKHBvcnRbZmRdLnBvcnRf
ZmQgPCAwKQ0KICAgICAgew0KISAgICAgICBpZiAoIXBvcnRbZmRdLmhhdmVf
aW9fcHJpdnMpDQogIAlpZiAoaW9wZXJtIChwb3J0W2ZkXS5iYXNlLCAzLCAx
KSAhPSAwKQ0KICAJICByZXR1cm4gU0FORV9TVEFUVVNfSU9fRVJST1I7DQog
ICAgICAgIHBvcnRbZmRdLmhhdmVfaW9fcHJpdnMgPSAxOw0KLS0tIDMzMSwz
MzcgLS0tLQ0KICB7DQogICAgaWYgKHBvcnRbZmRdLnBvcnRfZmQgPCAwKQ0K
ICAgICAgew0KISAgICAgICAvKiBpZiAoIXBvcnRbZmRdLmhhdmVfaW9fcHJp
dnMpIC0gQUNaICovDQogIAlpZiAoaW9wZXJtIChwb3J0W2ZkXS5iYXNlLCAz
LCAxKSAhPSAwKQ0KICAJICByZXR1cm4gU0FORV9TVEFUVVNfSU9fRVJST1I7
DQogICAgICAgIHBvcnRbZmRdLmhhdmVfaW9fcHJpdnMgPSAxOw0K
--92974122-851401618-879323532=:26972--

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

- Next message: Michael Burghart: "OCR Software..?!"
- Previous message: David Mosberger-Tang: "Re: REQ: Info about drivers."