kopia lustrzana https://gitlab.com/sane-project/website
378 wiersze
11 KiB
HTML
378 wiersze
11 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: The problem of xscanimage by CanoscanFB620S</TITLE>
|
||
|
<META NAME="Author" CONTENT="Mitsuru Okaniwa (m-okaniwa@bea.hi-ho.ne.jp)">
|
||
|
<META NAME="Subject" CONTENT="Re: The problem of xscanimage by CanoscanFB620S">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Re: The problem of xscanimage by CanoscanFB620S</H1>
|
||
|
<!-- received="Sun Oct 8 07:52:48 2000" -->
|
||
|
<!-- isoreceived="20001008145248" -->
|
||
|
<!-- sent="Sun, 8 Oct 2000 21:57:12 +0900" -->
|
||
|
<!-- isosent="20001008125712" -->
|
||
|
<!-- name="Mitsuru Okaniwa" -->
|
||
|
<!-- email="m-okaniwa@bea.hi-ho.ne.jp" -->
|
||
|
<!-- subject="Re: The problem of xscanimage by CanoscanFB620S" -->
|
||
|
<!-- id="001201c03127$537a8d80$6425530a@necpcuser" -->
|
||
|
<!-- inreplyto="053801c02e2f$62ba6fe0$bf0aa8c0@dufusiii" -->
|
||
|
<STRONG>From:</STRONG> Mitsuru Okaniwa (<A HREF="mailto:m-okaniwa@bea.hi-ho.ne.jp?Subject=Re:%20The%20problem%20of%20xscanimage%20by%20CanoscanFB620S&In-Reply-To=<001201c03127$537a8d80$6425530a@necpcuser>"><EM>m-okaniwa@bea.hi-ho.ne.jp</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Sun Oct 08 2000 - 05:57:12 PDT
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0074.html">Lawrence Glaister: "Re: [SnapScan] color problem 300dpi"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0072.html">Steve Underwood: "Re: [SnapScan] color problem 300dpi"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0047.html">Lawrence Glaister: "Re: The problem of xscanimage by CanoscanFB620S"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#73">[ date ]</A>
|
||
|
<A HREF="index.html#73">[ thread ]</A>
|
||
|
<A HREF="subject.html#73">[ subject ]</A>
|
||
|
<A HREF="author.html#73">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
----- Original Message -----
|
||
|
<BR>
|
||
|
from: "Lawrence Glaister" <<A HREF="mailto:lg@jfm.bc.ca?Subject=Re:%20The%20problem%20of%20xscanimage%20by%20CanoscanFB620S&In-Reply-To=<001201c03127$537a8d80$6425530a@necpcuser>">lg@jfm.bc.ca</A>>
|
||
|
<BR>
|
||
|
to: <<A HREF="mailto:sane-devel@mostang.com?Subject=Re:%20The%20problem%20of%20xscanimage%20by%20CanoscanFB620S&In-Reply-To=<001201c03127$537a8d80$6425530a@necpcuser>">sane-devel@mostang.com</A>>
|
||
|
<BR>
|
||
|
date: 3:15 / 5 / Oct. / 2000
|
||
|
<BR>
|
||
|
subject: Re: The problem of xscanimage by CanoscanFB620S
|
||
|
<BR>
|
||
|
<P><P><EM>> The bytesperline looks ok if you are doing a color scan of 637 pixels/line
|
||
|
</EM><BR>
|
||
|
<EM>> 637*3 = 1911 bytes. There is one byte each for red/green/blue pixel data.
|
||
|
</EM><BR>
|
||
|
<EM>> I'm not sure what your other problem could be. Can you scan at any
|
||
|
</EM><BR>
|
||
|
<EM>> resolution successfully? How about greyscale scans?
|
||
|
</EM><BR>
|
||
|
<EM>> =======================================================
|
||
|
</EM><BR>
|
||
|
<EM>> Lawrence Glaister VE7IT email: <A HREF="mailto:lg@jfm.bc.ca?Subject=Re:%20The%20problem%20of%20xscanimage%20by%20CanoscanFB620S&In-Reply-To=<001201c03127$537a8d80$6425530a@necpcuser>">lg@jfm.bc.ca</A>
|
||
|
</EM><BR>
|
||
|
<EM>> 1462 Madrona Drive <A HREF="http://jfm.bc.ca">http://jfm.bc.ca</A>
|
||
|
</EM><BR>
|
||
|
<EM>> Nanoose Bay BC Canada
|
||
|
</EM><BR>
|
||
|
<EM>> V9P 9C9
|
||
|
</EM><BR>
|
||
|
<EM>> =======================================================
|
||
|
</EM><BR>
|
||
|
<P>Thank you, Mr. Lawrence Glaister !
|
||
|
<BR>
|
||
|
I found my thought was wrong as Mr.Abel Deuring gave me a good advice.
|
||
|
<BR>
|
||
|
I can't scan at any resolution and the greyscale also scans makes abnormal
|
||
|
<BR>
|
||
|
image.
|
||
|
<BR>
|
||
|
<P>I changed 'width' and 'length' in canon.c and canon-sane.c as follows.
|
||
|
<BR>
|
||
|
<P>width = (SANE_UNFIX(s->val[OPT_BR_X].w - s->val[OPT_TL_X].w) + 0.05)
|
||
|
<BR>
|
||
|
* s->hw->info.mud / MM_PER_INCH;
|
||
|
<BR>
|
||
|
<P>length = (SANE_UNFIX(s->val[OPT_BR_Y].w - s->val[OPT_TL_Y].w) + 0.05)
|
||
|
<BR>
|
||
|
* s->hw->info.mud / MM_PER_INCH;
|
||
|
<BR>
|
||
|
<P>This changing resolved a part of the problem.
|
||
|
<BR>
|
||
|
The scanimage is not diagonal !
|
||
|
<BR>
|
||
|
Thanks to Mr.Abel's help, I could do this.
|
||
|
<BR>
|
||
|
<P>But the problem is not resolved completely.
|
||
|
<BR>
|
||
|
1. The xscanimage by CanoscanFB620S makes too many long and narrow images.
|
||
|
<BR>
|
||
|
2. It makes too much black blank below images.
|
||
|
<BR>
|
||
|
3. The top of image is not scanned.
|
||
|
<BR>
|
||
|
4. The button 'negative' in xscanimage is disabled.
|
||
|
<BR>
|
||
|
<P>I think a reason of the problem(1,2,3) is the following.
|
||
|
<BR>
|
||
|
<P>This is a part of a debug-file by the normal xscanimage on Canoscan600(this
|
||
|
<BR>
|
||
|
model is supported by canon backend). I have got this file from my friend.
|
||
|
<BR>
|
||
|
================================================================
|
||
|
<BR>
|
||
|
[canon] >> sane_start
|
||
|
<BR>
|
||
|
[canon] >> sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: width='5102', xres='37', mud='600'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: length='6990', yres='37', mud='600'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: pixels_per_line='314', lines='431'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: xres='0', yres='0', pixels_per_line='314',
|
||
|
<BR>
|
||
|
bytes_per_line='942', lines='431'
|
||
|
<BR>
|
||
|
[canon] << sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] s->width='5102', s->length='6990'
|
||
|
<BR>
|
||
|
[canon] RIF=0, GRC=0, Mirror=0, AE=0
|
||
|
<BR>
|
||
|
[canon] HR=255, SR=0, HG=255, SG=0, HB=255, SB=0
|
||
|
<BR>
|
||
|
[canon] >> set_window
|
||
|
<BR>
|
||
|
[canon] << set_window
|
||
|
<BR>
|
||
|
[canon] >> get_window
|
||
|
<BR>
|
||
|
[canon] << get_window
|
||
|
<BR>
|
||
|
[canon] xres=37
|
||
|
<BR>
|
||
|
[canon] yres=37
|
||
|
<BR>
|
||
|
[canon] ulx=0
|
||
|
<BR>
|
||
|
[canon] uly=0
|
||
|
<BR>
|
||
|
[canon] width=5102
|
||
|
<BR>
|
||
|
[canon] length=6990
|
||
|
<BR>
|
||
|
[canon] >> scan
|
||
|
<BR>
|
||
|
[canon] << scan
|
||
|
<BR>
|
||
|
[canon] >> get_data_status
|
||
|
<BR>
|
||
|
[canon] << get_data_status
|
||
|
<BR>
|
||
|
<P>[canon] Magnified Width=942 <=== Look at this number(A) !
|
||
|
<BR>
|
||
|
[canon] Magnified Length=431<=== Look at this number(B) !
|
||
|
<BR>
|
||
|
<P>[canon] Data=406002 bytes
|
||
|
<BR>
|
||
|
[canon] 314 pixels per line, 942 bytes, 431 lines high, total 406002 bytes,
|
||
|
<BR>
|
||
|
dpi=37
|
||
|
<BR>
|
||
|
[canon] << sane_start
|
||
|
<BR>
|
||
|
[canon] >> sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: xres='37', yres='37', pixels_per_line='314',
|
||
|
<BR>
|
||
|
<P>bytes_per_line='942', <=== Look at this number(A) !
|
||
|
<BR>
|
||
|
lines='431' <========== Look at this number(B) !
|
||
|
<BR>
|
||
|
<P>[canon] << sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] >> sane_set_io_mode
|
||
|
<BR>
|
||
|
[canon] << sane_set_io_mode
|
||
|
<BR>
|
||
|
[canon] >> sane_read
|
||
|
<BR>
|
||
|
[canon] >> read_data
|
||
|
<BR>
|
||
|
[canon] << read_data
|
||
|
<BR>
|
||
|
=================================================================
|
||
|
<BR>
|
||
|
The number of Magnified Width is equal to the number of bytes_per_line.
|
||
|
<BR>
|
||
|
The number of Magnified Length is equal to the number of lines.
|
||
|
<BR>
|
||
|
<P>The following is a debug-file the abnormal xscanimage on CanoscanFB620S(its
|
||
|
<BR>
|
||
|
sane was changed in the way Mr.Abel taught me.)
|
||
|
<BR>
|
||
|
=================================================================
|
||
|
<BR>
|
||
|
[canon] >> sane_start
|
||
|
<BR>
|
||
|
[canon] >> sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: width='5104', xres='75', mud='600'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: length='7016', yres='75', mud='600'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: pixels_per_line='638', lines='877'
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: xres='0', yres='0', pixels_per_line='638',
|
||
|
<BR>
|
||
|
bytes_per_line='1914', lines='877'
|
||
|
<BR>
|
||
|
[canon] << sane_get_parameters
|
||
|
<BR>
|
||
|
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
|
||
|
<BR>
|
||
|
[canon] s->width='5104', s->length='7016'
|
||
|
<BR>
|
||
|
[canon] RIF=1, GRC=0, Mirror=0, AE=0
|
||
|
<BR>
|
||
|
[canon] HR=255, SR=0, HG=255, SG=0, HB=255, SB=0
|
||
|
<BR>
|
||
|
[canon] >> set_window
|
||
|
<BR>
|
||
|
[sanei_scsi] scsi_req_enter: entered 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi.issue: 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
|
||
|
<BR>
|
||
|
[canon] << set_window
|
||
|
<BR>
|
||
|
[canon] >> get_window
|
||
|
<BR>
|
||
|
[sanei_scsi] scsi_req_enter: entered 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi.issue: 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: read 108 bytes
|
||
|
<BR>
|
||
|
[canon] << get_window
|
||
|
<BR>
|
||
|
[canon] xres=600
|
||
|
<BR>
|
||
|
[canon] yres=600
|
||
|
<BR>
|
||
|
[canon] ulx=0
|
||
|
<BR>
|
||
|
[canon] uly=0
|
||
|
<BR>
|
||
|
[canon] width=5104
|
||
|
<BR>
|
||
|
[canon] length=7016
|
||
|
<BR>
|
||
|
[canon] >> scan
|
||
|
<BR>
|
||
|
[sanei_scsi] scsi_req_enter: entered 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi.issue: 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
|
||
|
<BR>
|
||
|
[canon] << scan
|
||
|
<BR>
|
||
|
[canon] >> get_data_status
|
||
|
<BR>
|
||
|
[sanei_scsi] scsi_req_enter: entered 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi.issue: 0x8080e28
|
||
|
<BR>
|
||
|
[sanei_scsi] sanei_scsi_req_wait: read 64 bytes
|
||
|
<BR>
|
||
|
[canon] << get_data_status
|
||
|
<BR>
|
||
|
<P>[canon] Magnified Width=638 <==== Look at this number(A) !
|
||
|
<BR>
|
||
|
[canon] Magnified Length=7016 <=== Look at this number(B) !
|
||
|
<BR>
|
||
|
<P>[canon] Data=4476208 bytes
|
||
|
<BR>
|
||
|
[canon] 638 pixels per line, 1914 bytes, 877 lines high, total 1678578
|
||
|
<BR>
|
||
|
bytes, dpi=75
|
||
|
<BR>
|
||
|
[canon] << sane_start
|
||
|
<BR>
|
||
|
[dll] get_parameters(handle=0x8099990,params=0x80a3318)
|
||
|
<BR>
|
||
|
[canon] >> sane_get_parameters
|
||
|
<BR>
|
||
|
[canon] sane_get_parameters: xres='75', yres='75', pixels_per_line='638',
|
||
|
<BR>
|
||
|
<P>bytes_per_line='1914', <==== Look at this number(not A) !
|
||
|
<BR>
|
||
|
lines='877' <============ Look at this number(not B) !
|
||
|
<BR>
|
||
|
<P>[canon] << sane_get_parameters
|
||
|
<BR>
|
||
|
[dll] set_io_mode(handle=0x8099990,nonblocking=1)
|
||
|
<BR>
|
||
|
[canon] >> sane_set_io_mode
|
||
|
<BR>
|
||
|
[canon] << sane_set_io_mode
|
||
|
<BR>
|
||
|
[dll] read(handle=0x8099990,data=0xbfffcc1c,maxlen=8192,lenp=0xbfffcc18)
|
||
|
<BR>
|
||
|
[canon] >> sane_read
|
||
|
<BR>
|
||
|
[canon] >> read_data
|
||
|
<BR>
|
||
|
==================================================================
|
||
|
<BR>
|
||
|
I think the number of 'Magnified Width' must be equal to the number of
|
||
|
<BR>
|
||
|
'bytes_per_line' and
|
||
|
<BR>
|
||
|
the number of 'Magnified Length' must be equal to the number of 'lines'.
|
||
|
<BR>
|
||
|
I think a part to change is a source of 'Magnified Width or Length' and the
|
||
|
<BR>
|
||
|
source is the function
|
||
|
<BR>
|
||
|
of 'get_data_status' in "canon-scsi.c".
|
||
|
<BR>
|
||
|
But I don't know the meaning of cmd[0],cmd[1].....cmd[n].
|
||
|
<BR>
|
||
|
What does change, when I change the number of cmd[n] ?
|
||
|
<BR>
|
||
|
<P>Mitsuru Okaniwa
|
||
|
<BR>
|
||
|
<P><P><P><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:%20The%20problem%20of%20xscanimage%20by%20CanoscanFB620S&In-Reply-To=<001201c03127$537a8d80$6425530a@necpcuser>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0074.html">Lawrence Glaister: "Re: [SnapScan] color problem 300dpi"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0072.html">Steve Underwood: "Re: [SnapScan] color problem 300dpi"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0047.html">Lawrence Glaister: "Re: The problem of xscanimage by CanoscanFB620S"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#73">[ date ]</A>
|
||
|
<A HREF="index.html#73">[ thread ]</A>
|
||
|
<A HREF="subject.html#73">[ subject ]</A>
|
||
|
<A HREF="author.html#73">[ 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>Sun Oct 08 2000 - 07:55:22 PDT</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|