kopia lustrzana https://gitlab.com/sane-project/website
160 wiersze
5.3 KiB
HTML
160 wiersze
5.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: Problems with Prisa 620S [snapscan] + BUG in xs</TITLE>
|
|
<META NAME="Author" CONTENT="Ben Stanley (bds02@uow.edu.au)">
|
|
<META NAME="Subject" CONTENT="Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76</H1>
|
|
<!-- received="Fri May 25 07:06:54 2001" -->
|
|
<!-- isoreceived="20010525140654" -->
|
|
<!-- sent="Sat, 26 May 2001 00:10:01 +1000" -->
|
|
<!-- isosent="20010525141001" -->
|
|
<!-- name="Ben Stanley" -->
|
|
<!-- email="bds02@uow.edu.au" -->
|
|
<!-- subject="Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76" -->
|
|
<!-- id="3B0E67B9.2080109@uow.edu.au" -->
|
|
<!-- inreplyto="3B0BE118.C062F4A4@rauch-domain.de" -->
|
|
<STRONG>From:</STRONG> Ben Stanley (<A HREF="mailto:bds02@uow.edu.au?Subject=Re:%20Problems%20with%20Prisa%20620S%20[snapscan]%20%2B%20BUG%20in%20xsane%200.76&In-Reply-To=<3B0E67B9.2080109@uow.edu.au>"><EM>bds02@uow.edu.au</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Fri May 25 2001 - 07:10:01 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0342.html">Karl Heinz Kremer: "Re: EPSON ES-8500 success"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0340.html">Matto Marjanovic: "Re: Problem with Microtek 35t slide/negative scanner"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0307.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0288.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#341">[ date ]</A>
|
|
<A HREF="index.html#341">[ thread ]</A>
|
|
<A HREF="subject.html#341">[ subject ]</A>
|
|
<A HREF="author.html#341">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Oliver Rauch wrote:
|
|
<BR>
|
|
<P><EM>>Ben Stanley wrote:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>>Looks like your theory is confirmed. Not sure I know what to do about it
|
|
</EM><BR>
|
|
<EM>>>yet... I mean, I know the backend has to be fixed, but I'm not in a
|
|
</EM><BR>
|
|
<EM>>>position to be able to do it yet :-).
|
|
</EM><BR>
|
|
<EM>>>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Hi Ben,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>a close look shows this:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>lines is defined by remaining,
|
|
</EM><BR>
|
|
<EM>>remaining is set to pss->lines*pss->bytes_per_line
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>pss->lines is defined in function inquriy()
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>th function inquiry is called in sane_start, after this
|
|
</EM><BR>
|
|
<EM>>pss->lines should be correct.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>I would test the following:
|
|
</EM><BR>
|
|
<EM>>edit snapscan.c, line 2018 (in cvs) (here lines 2013-2019:
|
|
</EM><BR>
|
|
<EM>> if (pss->psrc != NULL)
|
|
</EM><BR>
|
|
<EM>> {
|
|
</EM><BR>
|
|
<EM>> /* use what the source chain says */
|
|
</EM><BR>
|
|
<EM>> p->pixels_per_line = pss->psrc->pixelsPerLine(pss->psrc);
|
|
</EM><BR>
|
|
<EM>> p->bytes_per_line = pss->psrc->bytesPerLine(pss->psrc);
|
|
</EM><BR>
|
|
<EM>> p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
|
|
</EM><BR>
|
|
<EM>> }
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>change
|
|
</EM><BR>
|
|
<EM>> p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
|
|
</EM><BR>
|
|
<EM>>to
|
|
</EM><BR>
|
|
<EM>> p->lines = pss->lines;
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>May be this already solves the problem.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>>Bye
|
|
</EM><BR>
|
|
<EM>>Oliver
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
I am now able to perform a preview without xsane segfaulting.
|
|
<BR>
|
|
Thanks! That was a really simple fix!
|
|
<BR>
|
|
<P>Ben.
|
|
<BR>
|
|
<P><P><P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problems%20with%20Prisa%20620S%20[snapscan]%20%2B%20BUG%20in%20xsane%200.76&In-Reply-To=<3B0E67B9.2080109@uow.edu.au>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0342.html">Karl Heinz Kremer: "Re: EPSON ES-8500 success"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0340.html">Matto Marjanovic: "Re: Problem with Microtek 35t slide/negative scanner"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0307.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0288.html">Oliver Rauch: "Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#341">[ date ]</A>
|
|
<A HREF="index.html#341">[ thread ]</A>
|
|
<A HREF="subject.html#341">[ subject ]</A>
|
|
<A HREF="author.html#341">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Fri May 25 2001 - 07:07:11 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|