kopia lustrzana https://gitlab.com/sane-project/website
223 wiersze
7.1 KiB
HTML
223 wiersze
7.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-2022-jp">
|
|
<TITLE>sane-devel: The scan mode of the preview and the scan</TITLE>
|
|
<META NAME="Author" CONTENT="Mitsuru Okaniwa (m-okaniwa@bea.hi-ho.ne.jp)">
|
|
<META NAME="Subject" CONTENT="The scan mode of the preview and the scan">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>The scan mode of the preview and the scan</H1>
|
|
<!-- received="Thu Dec 7 19:49:31 2000" -->
|
|
<!-- isoreceived="20001208034931" -->
|
|
<!-- sent="Fri, 8 Dec 2000 12:49:54 +0900" -->
|
|
<!-- isosent="20001208034954" -->
|
|
<!-- name="Mitsuru Okaniwa" -->
|
|
<!-- email="m-okaniwa@bea.hi-ho.ne.jp" -->
|
|
<!-- subject="The scan mode of the preview and the scan" -->
|
|
<!-- id="006101c060ca$1cd8bb80$6425530a@necpcuser" -->
|
|
<!-- charset="iso-2022-jp" -->
|
|
<STRONG>From:</STRONG> Mitsuru Okaniwa (<A HREF="mailto:m-okaniwa@bea.hi-ho.ne.jp?Subject=Re:%20The%20scan%20mode%20of%20the%20preview%20and%20the%20scan&In-Reply-To=<006101c060ca$1cd8bb80$6425530a@necpcuser>"><EM>m-okaniwa@bea.hi-ho.ne.jp</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu Dec 07 2000 - 19:49:54 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0052.html">Jeffrey H. Ingber: "Re: Which scanners REALLY provide 36 bit output? HP?"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0050.html">Bob Washburne: "Which scanners REALLY provide 36 bit output? HP?"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#51">[ date ]</A>
|
|
<A HREF="index.html#51">[ thread ]</A>
|
|
<A HREF="subject.html#51">[ subject ]</A>
|
|
<A HREF="author.html#51">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi
|
|
<BR>
|
|
I could use the xscanimage with the CanoScanFB620S by many and kind help of
|
|
<BR>
|
|
Mr.Abel Deuring.
|
|
<BR>
|
|
I have the next problem to modify "Fine color" in the Scan mode of the
|
|
<BR>
|
|
preview and the scan.
|
|
<BR>
|
|
In addition to "Fine color" scan mode, CanoScanFB620S has the "Color" scan
|
|
<BR>
|
|
mode.
|
|
<BR>
|
|
But the preview and the scan speed in "Fine color" scan mode is very slower
|
|
<BR>
|
|
than the speed in "Color" scan mode.
|
|
<BR>
|
|
So, I would like to modify in the following way.
|
|
<BR>
|
|
<P>When I select "Fine color" scan mode in the pulldown menu of xscanimage, at
|
|
<BR>
|
|
the only preview running "Color" scan mode is selected behind the GUI. And
|
|
<BR>
|
|
at the actual scanning by pushing the button of "Scan", "Fine color" scan
|
|
<BR>
|
|
mode is selected.
|
|
<BR>
|
|
<P>The source code about this is the following part of the canon-sane.c.
|
|
<BR>
|
|
===========================================================================
|
|
<BR>
|
|
#if 1
|
|
<BR>
|
|
DBG (3, "sane_start: sending DEFINE SCAN MODE for scan control
|
|
<BR>
|
|
conditions\n");
|
|
<BR>
|
|
memset (wbuf, 0, sizeof (wbuf));
|
|
<BR>
|
|
wbuf[0] = 0x20;
|
|
<BR>
|
|
wbuf[1] = 14;
|
|
<BR>
|
|
<P> /* modification for FB620S */
|
|
<BR>
|
|
if ( s->hw->info.model == FB620 && strcmp (mode_str, "Fine color") == 0)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
<P> wbuf[15] = 1 << 3; <=====This parameter is "1" then "Fine color" is
|
|
<BR>
|
|
available.
|
|
<BR>
|
|
<P> }
|
|
<BR>
|
|
else
|
|
<BR>
|
|
<P> wbuf[15] = 0; <=====This parameter is "0" then "Fine color" is not
|
|
<BR>
|
|
available.
|
|
<BR>
|
|
<P><P> /* For preview use always normal speed: */
|
|
<BR>
|
|
if (s->val[OPT_PREVIEW].w == SANE_FALSE)
|
|
<BR>
|
|
wbuf[11] = s->scanning_speed;
|
|
<BR>
|
|
status = define_scan_mode (s->fd, SCAN_CONTROL_CONDITIONS, wbuf);
|
|
<BR>
|
|
if (status != SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (1, "define scan mode failed: %s\n", sane_strstatus (status));
|
|
<BR>
|
|
return (status);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
<P> DBG (3, "sane_start: sending GET SCAN MODE for scan control
|
|
<BR>
|
|
conditions\n");
|
|
<BR>
|
|
memset (ebuf, 0, sizeof (ebuf));
|
|
<BR>
|
|
buf_size = sizeof (ebuf);
|
|
<BR>
|
|
status = get_scan_mode (s->fd, SCAN_CONTROL_CONDITIONS, ebuf, &buf_size);
|
|
<BR>
|
|
if (status != SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (1, "sane_start: GET SCAN MODE for scan control conditions
|
|
<BR>
|
|
failed\n");
|
|
<BR>
|
|
sanei_scsi_close (s->fd);
|
|
<BR>
|
|
return (SANE_STATUS_INVAL);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
for (i=0; i<buf_size; i++)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG(3, "scan mode byte[%d] = %d\n", i, ebuf[i]);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
#endif
|
|
<BR>
|
|
===========================================================================
|
|
<BR>
|
|
I would like to change this program as follows.
|
|
<BR>
|
|
<P>When I select the "Fine color" scan mode...
|
|
<BR>
|
|
1. At the preview running, "wbuf[15] = 0" in the define_scan_mode function
|
|
<BR>
|
|
is selected.
|
|
<BR>
|
|
2. At the actual "Scan" not the preview, "wbuf[15] = 1 << 3" in the
|
|
<BR>
|
|
define_scan_mode function is selected.
|
|
<BR>
|
|
<P>But if I select the "Fine color" scan mode, wbuf[15] = 1 << 3 in the
|
|
<BR>
|
|
define_scan_mode function is running at both the preview and the actual
|
|
<BR>
|
|
scan.
|
|
<BR>
|
|
I don't know the way of the modification about this problem.
|
|
<BR>
|
|
Does anybody have a good idea ?
|
|
<BR>
|
|
<P>The canon backend files are in the Web page of "SANE backend for Canon
|
|
<BR>
|
|
scanners".
|
|
<BR>
|
|
regards,
|
|
<BR>
|
|
<P>-----------------------------
|
|
<BR>
|
|
Mitsuru Okaniwa
|
|
<BR>
|
|
email : <A HREF="mailto:m-okaniwa@bea.hi-ho.ne.jp?Subject=Re:%20The%20scan%20mode%20of%20the%20preview%20and%20the%20scan&In-Reply-To=<006101c060ca$1cd8bb80$6425530a@necpcuser>">m-okaniwa@bea.hi-ho.ne.jp</A>
|
|
<BR>
|
|
tel : (Japan)0566-26-6105
|
|
<BR>
|
|
-----------------------------
|
|
<BR>
|
|
<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:%20The%20scan%20mode%20of%20the%20preview%20and%20the%20scan&In-Reply-To=<006101c060ca$1cd8bb80$6425530a@necpcuser>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0052.html">Jeffrey H. Ingber: "Re: Which scanners REALLY provide 36 bit output? HP?"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0050.html">Bob Washburne: "Which scanners REALLY provide 36 bit output? HP?"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#51">[ date ]</A>
|
|
<A HREF="index.html#51">[ thread ]</A>
|
|
<A HREF="subject.html#51">[ subject ]</A>
|
|
<A HREF="author.html#51">[ 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 Dec 07 2000 - 19:50:03 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|