[sane-devel] OS X Firewire support

2003-08-13 Thread Martijn van Oosterhout
--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 12, 2003 at 03:46:45PM +0200, Guy Brooker wrote:
=20
 Hi,
=20
 I've almost completed testing of a patch to sane_scsi.c which supports the
 IOKit SCSI Architecture Model API.

Very cool stuff!

 I need to complete some testing, and to tidy up the code a little beofre I
 post it, but before I do, can someone point me to some information on wha=
t I
 need to do to prepare and submit a patch to SANE ? I am sure I came across
 some documentation on the subject last week, but I can't find it via the
 standard web site anymore. (I'm sure it is staring me in the face!)

I don't know if there is a specific document but you have a choice.

1. Use diff to work out the differences between the base version and your c=
hanges
2. Or just post the code and how to make it work.

If it's verified by a developer with CVS access, they can just commit it for
you. But posting allows other people to test, which is always a good thing.

Remember, make sure the code is readable and clear. Document any sections
not obvious. Some poor schmoe might need to debug it later :)
--=20
Martijn van Oosterhout   klep...@svana.org   http://svana.org/kleptog/
 All that is needed for the forces of evil to triumph is for enough good
 men to do nothing. - Edmond Burke
 The penalty good people pay for not being interested in politics is to be
 governed by people worse than themselves. - Plato

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/OQJ2Y5Twig3Ge+YRAg7+AKDRHfAoko8kFYZdHR5ofzPMv3it8wCgshVD
6c6SOkL1z6dgIax/6gbHijg=
=MhSr
-END PGP SIGNATURE-

--gKMricLos+KVdGMg--


[sane-devel] How to increase the Color

2003-08-13 Thread aneesh m raj
This is a multi-part message in MIME format.

--=_NextPart_000_0017_01C36180.54B804C0
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

HI all,
Im using UMAX 2000p scanner and Im writing a frontend, how can i =
increase or decrease the color. I have noticed an options =
gamma-table,red-gamma-table,blue-gamma-table and green-gamma-table which =
has a size of 1024 each with value range 0 to 255. Do I have to assign =
all  the SANE_Word with the expected value(ie all the 1024/SANE_Word ). =
Will it be enough if I assign the value only to the gamma-table or do i =
have to assign the values to all the red,blue and green gamma-tables.
Thanks
Aneesh
--=_NextPart_000_0017_01C36180.54B804C0
Content-Type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=3DContent-Type content=3Dtext/html; =
charset=3Diso-8859-1
META content=3DMSHTML 6.00.2800.1106 name=3DGENERATOR
STYLE/STYLE
/HEAD
BODY bgColor=3D#ff
DIVFONT face=3DArial size=3D2HI all,/FONT/DIV
DIVFONT face=3DArial size=3D2Im using UMAX 2000p scanner and Im =
writing a=20
frontend, how can i increase or decrease the color. I have noticed an =
options=20
gamma-table,red-gamma-table,blue-gamma-table and =
green-gamma-tablenbsp;which=20
has a size of 1024 each with value range 0 to 255. Do I have to assign =
allnbsp;=20
the SANE_Word with the expected value(ie all the 1024/SANE_Word ). Will =
it be=20
enough if I assign the value only to the gamma-table or do i have to =
assign the=20
values to all the red,blue and green gamma-tables./FONT/DIV
DIVFONT face=3DArial size=3D2Thanks/FONT/DIV
DIVFONT face=3DArial size=3D2Aneesh/FONT/DIV/BODY/HTML

--=_NextPart_000_0017_01C36180.54B804C0--


[sane-devel] How to increase the Color

2003-08-13 Thread stef
On Wed, Aug 13, 2003 at 09:50:30AM +0530, aneesh m raj wrote:
 HI all,
 Im using UMAX 2000p scanner and Im writing a frontend, how can i increase or 
 decrease the color. I have noticed an options 
 gamma-table,red-gamma-table,blue-gamma-table and green-gamma-table which has 
 a size of 1024 each with value range 0 to 255. Do I have to assign all  the 
 SANE_Word with the expected value(ie all the 1024/SANE_Word ). Will it be 
 enough if I assign the value only to the gamma-table or do i have to assign 
 the values to all the red,blue and green gamma-tables.
 Thanks
 Aneesh

Hello,

gamma tables are 256 SANE_Int values wide, and values must range from 0 
to 
255. The gamma-table is for grey scans, and the three others for color scans. So
you'll have to assign values according to the scan you are doing. 
The default gamma tables are fine, and you can get good scans without 
using
gamma tables.

Regards,
Stef


[sane-devel] Information about new EPSON Scanner Perfection 1670

2003-08-13 Thread Gerhard Jaeger
Quite funny,

I already got one request this morning from a guy in Australia who ordere=
d
the 1660 and got the 1670...
If it's similar (by means of the chipset) to the 1260, then it should be =
no
big deal to support this scanner with the plustek backend...

Ciao
   Gerhard


On Mittwoch, 13. August 2003 02:45, Karl Heinz Kremer wrote:
 The new EPSON Perfection 1670 is not and will not be supported by the
 EPSON backend.
 It's design seems to be similar to the Perfection 1260, which is
 supported by the Plustek
 backend. I have not seen this new scanner, so I don't know if it really
 falls into the same
 category as the Perfection 1670.

 The /proc/bus/usb/devices output  looks similar (at least it has an
 interrupt endpoint):

 E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   2 Ivl=3D256ms
 T:  Bus=3D01 Lev=3D01 Prnt=3D01 Port=3D05 Cnt=3D01 Dev#=3D  2 Spd=3D480=
 MxCh=3D 0
 D:  Ver=3D 2.00 Cls=3Dff(vend.) Sub=3Dff Prot=3Dff MxPS=3D64 #Cfgs=3D  =
1
 P:  Vendor=3D04b8 ProdID=3D011f Rev=3D 1.07
 S:  Manufacturer=3DEPSON
 S:  Product=3DEPSON Scanner
 C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3Dc0 MxPwr=3D100mA
 I:  If#=3D 0 Alt=3D 0 #EPs=3D 3 Cls=3Dff(vend.) Sub=3Dff Prot=3Dff Driv=
er=3Dusbscanner
 E:  Ad=3D81(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms
 E:  Ad=3D02(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms
 E:  Ad=3D83(I) Atr=3D03(Int.) MxPS=3D   8 Ivl=3D4096ms

 I already know of one unlucky customer who thought because the model
 number
 was similar than the 1660, it would work the same way.

 Karl Heinz

 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 http://www.mostang.com/mailman/listinfo/sane-devel



[sane-devel] Information about new EPSON Scanner Perfection 1670

2003-08-13 Thread k...@khk.net
THis is not a coincidence: That's the same guy, and I told him that
he had a better chance to get his scanner to work if he gets in touch
with you :-)

It looks like Epson is selling these new devices first in Australia. Here
in the US they are still marked as not available on the EPson web page.

Don't know what the situation in Europe is.

Karl Heinz

 Quite funny,

 I already got one request this morning from a guy in Australia who ordered
 the 1660 and got the 1670...
 If it's similar (by means of the chipset) to the 1260, then it should be
 no
 big deal to support this scanner with the plustek backend...

 Ciao
Gerhard


 On Mittwoch, 13. August 2003 02:45, Karl Heinz Kremer wrote:
 The new EPSON Perfection 1670 is not and will not be supported by the
 EPSON backend.
 It's design seems to be similar to the Perfection 1260, which is
 supported by the Plustek
 backend. I have not seen this new scanner, so I don't know if it really
 falls into the same
 category as the Perfection 1670.

 The /proc/bus/usb/devices output  looks similar (at least it has an
 interrupt endpoint):

 E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms
 T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
 D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1
 P:  Vendor=04b8 ProdID=011f Rev= 1.07
 S:  Manufacturer=EPSON
 S:  Product=EPSON Scanner
 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
 I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbscanner
 E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
 E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
 E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=4096ms

 I already know of one unlucky customer who thought because the model
 number
 was similar than the 1660, it would work the same way.

 Karl Heinz

 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 http://www.mostang.com/mailman/listinfo/sane-devel

 ___
 Sane-devel mailing list
 sane-de...@www.mostang.com
 http://www.mostang.com/mailman/listinfo/sane-devel




[sane-devel] Re: Coolscan 2 and autofocus

2003-08-13 Thread Major A
[I'm also replying to the SANE mailing list, please send questions
like this to that list in the first place.]

 I have a Nikon LS-2000 (Super Coolscan 2000) that I'm trying to get
 working with SANE.  It will not autofocus properly.  The driver sends
 the focus command and the scanner makes focusing noises for a while, but
 then the driver gets back 0.  Looking at the actual data returned from
 the scanner in s-recv_buf, it is 13 nulls.  Any idea what the problem
 is?

That's weird. I've had reports from at least one LS-2000 user who says
the scanner works fine, including AF, so this is interesting.

AF is performed in three steps in coolscan2 -- the first two cause the
scanner to autofocus, the third reads the focus position back. I guess
you're talking about the third command when you refer to recv_buf.

Thus it seems that your scanner performs AF properly, but then fails
to send the resulting focus position back to the computer, if I
understand what you're saying. Have you tried scanning with manual
focus to see whether that works?

Finally, what SCSI controller do you use?

 Also, do you have documentation on the scanner?  I would like to help
 out with driver development and fixing bugs like this but lack any
 documentation apart from the user manual.

I have, but it's under an NDA, so I can't distribute it.

  Andras

===
Major Andras
e-mail: and...@users.sourceforge.net
www:http://andras.webhop.org/
===


[sane-devel] How to increase the Color

2003-08-13 Thread abel deuring
stef wrote:
   gamma tables are 256 SANE_Int values wide, and values must range from 0 
 to 
 255. The gamma-table is for grey scans, and the three others for color scans. 
 So
 you'll have to assign values according to the scan you are doing. 
   The default gamma tables are fine, and you can get good scans without 
 using
 gamma tables.

well, the size of the gamma table and the the range of the allowed 
values depend on the backend and on the scanner. For a scanner with a 10 
bit ADC it is reasonable to use a table with 1024 entries. Some other 
scanner with a 12 bit ADC may map 12 bit input value to 12 bit output 
values, so that the table has 4096 entries where each value may be in 
the range 0...4095

Abel



[sane-devel] Option not active

2003-08-13 Thread stef
On Wed, Aug 13, 2003 at 05:03:47PM +0530, aneesh m raj wrote:
 Hi all,
 Im trying to set the red-gamma-table option for a UMAX 2000p scanner but 
 SANE_OPTION_IS_ACTIVE return false,I have changed the mode to Color. what 
 will be the problem.
 Thanks
 Aneesh

As given by 'scanimage --help -d umax_pp:/dev/parport0'  :

Options specific to device `umax_pp:/dev/parport0':
  Scan mode:
-- 

--mode Lineart|Grayscale|Color [Grayscale]
Selects the scan mode (e.g., lineart,monochrome, or color).
--resolution 75..1200dpi [75]
Sets the resolution of the scanned image.
--preview[=(yes|no)] [no]
Request a preview-quality scan.
--preview-in-gray[=(yes|no)] [no]
Request that all previews are done in monochrome mode.  On a
three-pass scanner this cuts down the number of passes to one and on a
one-pass scanner, it reduces the memory requirements and scan-time of
the preview.
  Geometry:
-- 

-l 0..5100pel [0]
Top-left x position of scan area.
-t 0..7000pel [0]
Top-left y position of scan area.
-x 0..5100pel [5100]
Width of scan-area.
-y 0..7000pel [7000]
Height of scan-area.
  Enhancement:
-- 

--lamp-control[=(yes|no)] [yes]
Sets lamp on/off
--UTA-control[=(yes|no)] [inactive]
Sets UTA on/off
--custom-gamma[=(yes|no)] [inactive]
Determines whether a builtin or a custom gamma-table should be used.
--gamma-table 0..255,...
Gamma-correction table.  In color mode this option equally affects the
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
--red-gamma-table 0..255,...
Gamma-correction table for the red band.
--green-gamma-table 0..255,...
Gamma-correction table for the green band.
--blue-gamma-table 0..255,...
Gamma-correction table for the blue band.
--manual-channel-brightness[=(yes|no)] [no]
Color channels brightness settings
--gray-brightness 0..15 [inactive]
Sets gray channel brightness
--red-brightness 0..15 [inactive]
Sets red channel brightness
--green-brightness 0..15 [inactive]
Sets green channel brightness
--blue-brightness 0..15 [inactive]
Sets blue channel brightness
--manual-contrast[=(yes|no)] [no]
Color channels contrast settings
--gray-contrast 0..15 [inactive]
Sets gray channel contrast
--red-contrast 0..15 [inactive]
Sets red channel contrast
--green-contrast 0..15 [inactive]
Sets green channel contrast
--blue-contrast 0..15 [inactive]
Sets blue channel contrast


So --custom-gamma must be set to yes before setting gamma table.

Regards,
Stef