kopia lustrzana https://gitlab.com/sane-project/website
76 wiersze
3.1 KiB
HTML
76 wiersze
3.1 KiB
HTML
<!-- received="Thu Apr 24 01:00:57 1997 MST" -->
|
|
<!-- sent="Thu, 24 Apr 1997 09:53:40 +0200 (MET DST)" -->
|
|
<!-- name="Matthias Lautner" -->
|
|
<!-- email="lautner@hoggle.syscomp.de" -->
|
|
<!-- subject="sane-0.55:can't allocate image buffer" -->
|
|
<!-- id="199704240753.JAA30900@hoggle.syscomp.de" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: sane-0.55:can't allocate image buffer</title>
|
|
<h1>sane-0.55:can't allocate image buffer</h1>
|
|
<b>Matthias Lautner</b> (<a href="mailto:lautner@hoggle.syscomp.de"><i>lautner@hoggle.syscomp.de</i></a>)<br>
|
|
<i>Thu, 24 Apr 1997 09:53:40 +0200 (MET DST)</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#86">[ date ]</a><a href="index.html#86">[ thread ]</a><a href="subject.html#86">[ subject ]</a><a href="author.html#86">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0087.html">Mathias Weigt: "xscanimage performance"</a>
|
|
<li> <b>Previous message:</b> <a href="0085.html">Gordon Matzigkeit: "sane-0.55: PINT/NetBSD fixes"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Hi!<br>
|
|
<p>
|
|
I cann't scan images with more than 255 lines with scanimage.<br>
|
|
<p>
|
|
scanimage -v -d mustek --mode Color --resolution 100 -l 10 -x 80 -t 7 -y 80 \<br>
|
|
<i> >out.pnm</i><br>
|
|
<p>
|
|
results in:<br>
|
|
<p>
|
|
scanimage: scanning image of size 318x319 pixels at 8 bits/pixel<br>
|
|
scanimage: can't allocate image buffer (318x63)<br>
|
|
<p>
|
|
This occures due to a bug in advance() in scanimage.c<br>
|
|
image.y = -1<br>
|
|
image.height = 63 (= parm.lines - STRIP_HEIGHT) should by < -1 to allocate<br>
|
|
memory<br>
|
|
<p>
|
|
add the following to fix the bug:<br>
|
|
<p>
|
|
if (++image->y >= image->height || !image->data)<br>
|
|
^^^^^^^^^^^^^^^^<br>
|
|
but one bug still remains:<br>
|
|
after the first plane is completed a realloc is done with STRIP_HEIGHT further<br>
|
|
lines.<br>
|
|
<p>
|
|
Another problem I reported about a few days ago is that the kernel complains<br>
|
|
about "Wrong buffer length supplied for request sense (4)". This is just a<br>
|
|
warning cause scanning still works.<br>
|
|
<p>
|
|
I tested it out on my 2.0.27 kernel with an aha1542.<br>
|
|
<p>
|
|
changing the result array of request_sense() in mustek.c to length 16 will avoid<br>
|
|
this warning.<br>
|
|
<p>
|
|
Matthias<br>
|
|
------------------------------------------------------------------<br>
|
|
Matthias Lautner email: <a href="mailto:m_lautner@syscomp.de">m_lautner@syscomp.de</a><br>
|
|
Fa. SYSCOMP GmbH Augsburg, Germany phone: 0821 / 4201-139<br>
|
|
Biochemische Dienstleistungen fax : 0821 / 4201-411<br>
|
|
<p>
|
|
<pre>
|
|
--
|
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0087.html">Mathias Weigt: "xscanimage performance"</a>
|
|
<li> <b>Previous message:</b> <a href="0085.html">Gordon Matzigkeit: "sane-0.55: PINT/NetBSD fixes"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|