sane-project-website/old-archive/2001-05/0319.html

162 wiersze
6.2 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: [BUG] Epson 1640SU, xsane preview problem</TITLE>
<META NAME="Author" CONTENT="mh (crapsite@gmx.net)">
<META NAME="Subject" CONTENT="Re: [BUG] Epson 1640SU, xsane preview problem">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [BUG] Epson 1640SU, xsane preview problem</H1>
<!-- received="Thu May 24 01:53:13 2001" -->
<!-- isoreceived="20010524085313" -->
<!-- sent="Thu, 24 May 2001 09:46:05 +0200" -->
<!-- isosent="20010524074605" -->
<!-- name="mh" -->
<!-- email="crapsite@gmx.net" -->
<!-- subject="Re: [BUG] Epson 1640SU, xsane preview problem" -->
<!-- id="01052410103500.00606@slowcrap" -->
<!-- inreplyto="3B0C2ECD.7C0C0B4B@rauch-domain.de" -->
<STRONG>From:</STRONG> mh (<A HREF="mailto:crapsite@gmx.net?Subject=Re:%20[BUG]%20Epson%201640SU,%20xsane%20preview%20problem&In-Reply-To=&lt;01052410103500.00606@slowcrap&gt;"><EM>crapsite@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu May 24 2001 - 00:46:05 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0320.html">Henning Meier-Geinitz: "Re: Canon 620S conf file"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0318.html">Phil Cummins: "portable scanner recommendations?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0312.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0316.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#319">[ date ]</A>
<A HREF="index.html#319">[ thread ]</A>
<A HREF="subject.html#319">[ subject ]</A>
<A HREF="author.html#319">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Oliver Rauch, Mit, 23 Mai 2001 :
<BR>
<EM>&gt; Jean-Luc Coulon wrote:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; &gt; 1 - If I do a preview with the paper size set to &quot;full size&quot;, all is
</EM><BR>
<EM>&gt; &gt; right :
</EM><BR>
<EM>&gt; &gt; all the pictures dislayed in the preview window are correct in regard of
</EM><BR>
<EM>&gt; &gt; the position of the document on the bed.
</EM><BR>
<P><EM>&gt; &gt; 2 - If now, I switch to an other document size (i.e. DIN A4 port.), the
</EM><BR>
<EM>&gt; &gt; first preview is ok and the following ones are not : if I move the
</EM><BR>
<EM>&gt; &gt; document, the displayed picture is always the one of the first preview.
</EM><BR>
<EM>&gt; &gt; In this case, while the head is moving, the picture appears correctly
</EM><BR>
<EM>&gt; &gt; and jump to the previous place when the scanner head go back to its rest
</EM><BR>
<EM>&gt; &gt; position.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I suggest you enable debug output:
</EM><BR>
<EM>&gt; export XSANE_DEBUG=20
</EM><BR>
<EM>&gt; export SANE_DEBUG_EPSON=128
</EM><BR>
<EM>&gt; and try to find out what happens.
</EM><BR>
<P>Hi Oliver,
<BR>
just to let you know, I can reproduce this with the plustek backend too.
<BR>
I was browsing through your code this morning, and I think, that the following
<BR>
looks suspect:
<BR>
In xsane-preview.c (around line 2175/ version 0.76)
<BR>
/* See whether there is a saved preview and load it if present: */
<BR>
&nbsp;&nbsp;for(level = 2; level &gt;= 0; level--)
<BR>
&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//Problem:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//If you did a fullsize scan and afterwards e.g. an A5 scan,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//p-&gt;filename[0] holds a valid filename (== the name of the
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//fullsize preview); therefore the for loop will always count down
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;//to 0 and the fullsize preview is reloaded.
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if (p-&gt;filename[level])
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in = fopen(p-&gt;filename[level], &quot;rb&quot;); /* read binary (b for win32) */
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (in)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;quality = preview_restore_image_from_file(p, in, quality);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(in);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
&nbsp;&nbsp;}
<BR>
<P>I don't know, whether this is correct, but may be you can take a look at it.
<BR>
<P>Michael
<BR>
<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:%20[BUG]%20Epson%201640SU,%20xsane%20preview%20problem&In-Reply-To=&lt;01052410103500.00606@slowcrap&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0320.html">Henning Meier-Geinitz: "Re: Canon 620S conf file"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0318.html">Phil Cummins: "portable scanner recommendations?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0312.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0316.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#319">[ date ]</A>
<A HREF="index.html#319">[ thread ]</A>
<A HREF="subject.html#319">[ subject ]</A>
<A HREF="author.html#319">[ 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>Thu May 24 2001 - 01:55:19 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>