kopia lustrzana https://gitlab.com/sane-project/website
182 wiersze
6.9 KiB
HTML
182 wiersze
6.9 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 03:28:01 2001" -->
|
|
<!-- isoreceived="20010524102801" -->
|
|
<!-- sent="Thu, 24 May 2001 12:02:28 +0200" -->
|
|
<!-- isosent="20010524100228" -->
|
|
<!-- name="mh" -->
|
|
<!-- email="crapsite@gmx.net" -->
|
|
<!-- subject="Re: [BUG] Epson 1640SU, xsane preview problem" -->
|
|
<!-- id="01052412231000.00606@slowcrap" -->
|
|
<!-- inreplyto="3B0CD6E8.2626F0CD@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=<01052412231000.00606@slowcrap>"><EM>crapsite@gmx.net</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu May 24 2001 - 03:02:28 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0323.html">Jean-Luc Coulon: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0324.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0323.html">Jean-Luc Coulon: "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="0324.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#322">[ date ]</A>
|
|
<A HREF="index.html#322">[ thread ]</A>
|
|
<A HREF="subject.html#322">[ subject ]</A>
|
|
<A HREF="author.html#322">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Oliver Rauch, Don, 24 Mai 2001 :
|
|
<BR>
|
|
<EM>> mh wrote:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> > Hi Oliver,
|
|
</EM><BR>
|
|
<EM>> > just to let you know, I can reproduce this with the plustek backend too.
|
|
</EM><BR>
|
|
<EM>> > I was browsing through your code this morning, and I think, that the following
|
|
</EM><BR>
|
|
<EM>> > looks suspect:
|
|
</EM><BR>
|
|
<EM>> > In xsane-preview.c (around line 2175/ version 0.76)
|
|
</EM><BR>
|
|
<EM>> > /* See whether there is a saved preview and load it if present: */
|
|
</EM><BR>
|
|
<EM>> > for(level = 2; level >= 0; level--)
|
|
</EM><BR>
|
|
<EM>> > {
|
|
</EM><BR>
|
|
<EM>> > //Problem:
|
|
</EM><BR>
|
|
<EM>> > //If you did a fullsize scan and afterwards e.g. an A5 scan,
|
|
</EM><BR>
|
|
<EM>> > //p->filename[0] holds a valid filename (== the name of the
|
|
</EM><BR>
|
|
<EM>> > //fullsize preview); therefore the for loop will always count down
|
|
</EM><BR>
|
|
<EM>> > //to 0 and the fullsize preview is reloaded.
|
|
</EM><BR>
|
|
<EM>> > if (p->filename[level])
|
|
</EM><BR>
|
|
<EM>> > {
|
|
</EM><BR>
|
|
<EM>> > in = fopen(p->filename[level], "rb"); /* read binary (b for win32) */
|
|
</EM><BR>
|
|
<EM>> > if (in)
|
|
</EM><BR>
|
|
<EM>> > {
|
|
</EM><BR>
|
|
<EM>> > quality = preview_restore_image_from_file(p, in, quality);
|
|
</EM><BR>
|
|
<EM>> > fclose(in);
|
|
</EM><BR>
|
|
<EM>> > }
|
|
</EM><BR>
|
|
<EM>> > }
|
|
</EM><BR>
|
|
<EM>> > }
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > I don't know, whether this is correct, but may be you can take a look at it.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> This is correct.
|
|
</EM><BR>
|
|
<EM>> level=0 is maximum scanner surface,
|
|
</EM><BR>
|
|
<EM>> level=1 is reduced scanner surface, subpart of level 0
|
|
</EM><BR>
|
|
<EM>> level=2 is zoomed area, subpart of level 0 and 1
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> quality = preview_restore_image_from_file(p, in, quality);
|
|
</EM><BR>
|
|
<EM>> loads the given file when:
|
|
</EM><BR>
|
|
<EM>> - it covers the area that has to be shown in the preview window
|
|
</EM><BR>
|
|
<EM>> - it has a higher quality than a possibly already loaded image
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> It does not display the complete image, it only uses the wanted subpart.
|
|
</EM><BR>
|
|
<P>Errm, it displays the wanted subpart, but uses the *wrong* preview for this.
|
|
<BR>
|
|
(I think that's what the original poster was talking about).
|
|
<BR>
|
|
<P>BTW, this should happen independently of the backend(?):
|
|
<BR>
|
|
-insert a document and scan a fullsize preview
|
|
<BR>
|
|
-insert a new document, change the previewsize to A5 e.g.
|
|
<BR>
|
|
-If you now start a preview scan, the new document is shown for a short moment,
|
|
<BR>
|
|
but gets immediately replaced with the subpart of the *previous* document
|
|
<BR>
|
|
(p->filename[0], which is a preview of the first document, and not of the
|
|
<BR>
|
|
current document in this case)
|
|
<BR>
|
|
Or is this intended; does one have to scan a fullsize preview first ?
|
|
<BR>
|
|
<P>bb
|
|
<BR>
|
|
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=<01052412231000.00606@slowcrap>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0323.html">Jean-Luc Coulon: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0321.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0324.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0323.html">Jean-Luc Coulon: "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="0324.html">Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#322">[ date ]</A>
|
|
<A HREF="index.html#322">[ thread ]</A>
|
|
<A HREF="subject.html#322">[ subject ]</A>
|
|
<A HREF="author.html#322">[ 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 - 03:29:12 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|