[sane-devel] Error on Canon CanoScanLiDE20

2005-06-09 Thread Steve Welsh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> for( tmp = usbDevs;  tmp; ) {
> tmp = usbDevs->next;
> free( usbDevs );
> usbDevs = tmp;
> }

should that not be
tmp = usbDevs;
while(tmp)  {
...
}

??

Why use a for loop without an increment/decrement condition??

- --
Steve Welsh

/
You know, nostalgia is not what it used to be
/

Public Key http://www.stevew.net/public.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCp4Ff1teYsA+RuzIRAi1BAKCFlDt48T/oFBcqiHS6Hcu48Q2GLwCfeCKg
NCZBxzPx+h0TpsAXPjDzgmE=
=bbNm
-END PGP SIGNATURE-



[sane-devel] Error on Canon CanoScanLiDE20

2005-06-09 Thread Gerhard Jaeger
Hi,

On Wednesday 08 June 2005 21:46, Steven Palm wrote:
> 
> On Jun 8, 2005, at 1:30 PM, Gerhard Jaeger wrote:
> > On Wednesday 08 June 2005 18:35, Steven Palm wrote:
> >
> >> scanimage(12019) malloc: *** error for object 0x303fe0: double free
> >> scanimage(12019) malloc: *** set a breakpoint in szone_error to debug
> 
> >>
> >> Is this a known issue, or something unique perhaps to MacOS X ?
> >>
> >
> > In the meantime, it is ;)
> > Mattias Ellert already informed me about that issue, although it's
> > currently not clear, where it comes from.
> 
>   Well, if I change the cleanup code for usbDevs in sane_exit() from:
> 
>  for( tmp = usbDevs;  tmp; tmp = usbDevs->next ) {
>  free( usbDevs );
>  usbDevs = tmp;
>  }
> 
>   to:
> 
>  for( tmp = usbDevs;  tmp; ) {
>  tmp = usbDevs->next;
>  free( usbDevs );
>  usbDevs = tmp;
>  }
> 
>   It eliminates the double-free malloc error, so the backend runs  
> cleanly without the error.

Hmmm, guess you are correct, as in my code, the address of usbDevs is
dereferenced after being freed :( That's done in the for() loop.
I also guess, that this is the cause of a long searched memory leak AND
highly system dependent, as here on my Linux box I couldn't trigger that.

The better code should be:
while( usbDevs ) {
tmp = usbDevs->next;
free(usbDevs);
usbDevs = tmp;
}

I'll change that - thanks for investigating...

> 
>   However, instead of scanning the whole page I get just a small  
> corner. I wonder if endian issues are at play here with the image  
> size the scanner is told to scan?

If you simply call scanimage to scan, the default vals will
be used and these are only some mm of the whole area...

Ciao,
Gerhard





[sane-devel] CanoScan3000F init/button scan reg/val recognizable?

2005-06-09 Thread a...@suomi24.fi
Quick cleanup of the usbsnoop-3000f-plugin.log (URBs 6-151+) turned into
registers and values:

Action  Reg Val Note
0x83 Write  0x920x00
0x83 Write  0xcf0x00
0x83 Write  0xa30x10
0x83 Write  0xa10x3f
0x83 Write  0x970x0a
0x84 Read   0x8b0x5f
0x84 Read   0x8b0x5f
0x83 Write  0x970x0f
0x84 Read   0x8b0xc30x8e reports twice, second with val=3D0x00?!?
0x8c BlindWrite 0x04
0x8c BlindWrite 0x00
0x8c BlindWrite 0x04
0x8c BlindWrite 0x00
0x8c BlindWrite 0x04
0x8c BlindWrite 0x00
0x8c BlindWrite 0x04
0x8c BlindWrite 0x00
0x8c BlindWrite 0x04
0x8c BlindWrite 0x00
0x83 Write  0x970x00
0x83 Write  0x0f0x92 0x60
0x84 Read   0x8b0xc3
0x83 BlindWrite 0x92 0x60
0x84 Read   0x8b0xc3
0x83 BlindWrite 0x92 0x00
0x83 BlindWrite 0x97 0x00
0x83 BlindWrite 0xa8 0x80 0x83 0x20 0x85 0x50
0x83 BlindWrite 0x83 0x00 0x85 0xc3 0x93 0x80
0x83 BlindWrite 0xa8 0x18
0x8c BlindWrite 0x02
0x8c BlindWrite 0x000x8e reports twice, second with val=3D0x00?!?
0x83 Write  0x920x00
0x83 Write  0xcf0x00
0x83 Write  0xa30x10
0x83 Write  0xa10x3f
0x83 Write  0x970x0a
0x84 Read   0x8b0x5f
0x83 Write  0x970x0f
0x84 Read   0x8b0xc30x8e reports twice, second with val=3D0x00?!?
0x83 Write  0x920x00
0x83 Write  0xcf0x00
0x83 Write  0xa30x10
0x83 Write  0xa10x3f
0x83 Write  0x970x0a
0x84 Read   0x8b0x5f
0x83 Write  0x970x0f
0x84 Read   0x8b0xc30x8e reports twice, second with val=3D0x00?!?
...

After each line the is a USB like this:

0x8e Read   0x01

That is obviously USB's common acknowledge signal?

After that there's a continuous loop that is obviously front button scan/=
check?

So the 0x92 ... 0x8b+0x8e=3D0x00 is the loop for the init and standby rou=
tine?

And until those "BlindWrite"s end, that's the init of the scanner?

So as there are so much questionmarks (and names like those "BlindWrite"
steps that are just my own wrong name for them I came up with), maybe I
should leech a USB specification docs for more close info, or could someo=
ne
tell me what to do next (except for clearing up actual scanned image logs=
)...

So what to do next, as I haven't yet found what backend is the closest on=
e
to massage for a quick-fix testing?


--
amth




[sane-devel] Bug in snapscan or sane network protocolo?

2005-06-09 Thread Giuseppe Sacco
Hi all,
I am using an EPSON Perfection 1670 over the network, via saned, and I
just found a problem.

Basically I do a scan of 210.0x297.0mm, using a 200dpi resolution.
Prior to scan I call get_parameters and receive an *estimated* values
for lines, pixelsperline, bytesperline; after receiving this data I
receive the frame data.

The problem is that get_parameters says:

[snapscan] sane_snapscan_get_parameters (0x8090aa8, 0xbc24)
[snapscan] sane_snapscan_get_parameters: Using estimated data
[snapscan] sane_snapscan_get_parameters: depth = 8
[snapscan] sane_snapscan_get_parameters: lines = 2338
[snapscan] sane_snapscan_get_parameters: pixels per line = 1653
[snapscan] sane_snapscan_get_parameters: bytes per line = 4959

while, when scanning, I get a different amount of data:

[snapscan] inquiry: exposure time: 4.6 ms
[snapscan] inquiry: ms per line: 4.60
[snapscan] inquiry: G2R_DIFF: 131
[snapscan] inquiry: B2R_DIFF: 134
[snapscan] inquiry: Chroma offsets=6; Red=6, Green:=3, Blue=0
[snapscan] inquiry: hardware config = 0xbd
[snapscan] inquiry: bits per pixel = 14
[snapscan] inquiry: pixels per scan line = 1652
[snapscan] inquiry: bytes per scan line = 4956
[snapscan] inquiry: number of scan lines = 2338
[snapscan] inquiry: effective buffer size = 64428 bytes, 27 lines
[snapscan] inquiry: expected total scan data: 11616864 bytes
[snapscan] sane_snapscan_start: after measuring speed:
4956 bytes per scan line
4.60 milliseconds per scan line.
==>1077.391327 bytes per millisecond
[snapscan] scan


As you may notice, the "pixel per line" value changed. So when I try to
create the image I have less data than expected.

I see two possible options:

1. Change the snapscan algorithm to have better supposed values
2. Change the sane network protocol in order to get all corrected
   parameter *with* or *after* the scanned data.

Any comment?

Giuseppe




[sane-devel] Scanning Time Question

2005-06-09 Thread Spiro Angeli
Hi,

Approaching 15000 pictures 35mm I wish to know, for those who already have the 
scanner (I am thinking to purchase a Nikon LS 4000 or LS 5000) how is the 
scanning process.

I explain better:
If I say I have 50 pictures to scan, how do you handle the scanning process? 
Is it possible to scan x number of pictures, holding them in memory and then 
save them to the disk all at once or do I have to scan and save, scan and 
save?

I am trying to understand what is that I will be faced with. I am also trying 
to figure out how much time it will take for me to scan pictures, and am 
trying to figure out how to standardize the process of manually scanning all 
these pictures.

I know that scanning time depends on the depth of the scanned picture. But is 
there a table that shows based on the depth of color and bits what is the 
time needed for the device to scan and save?

Thank you,
Spiro



[sane-devel] scanimage looks for the wrong libs

2005-06-09 Thread Henning Meier-Geinitz
Hi,

On Tue, Jun 07, 2005 at 09:21:39AM +0200, Antoine Jacoutot wrote:
> I'm in the process of making a sane-backends port to OpenBSD.

At least about a year ago, I could build sane-backends on OpenBSD
without any changes (and I could actually scan something). As far as I
know, nothing has changed in sane-backends concerning library loading
since then.

Maybe a change in libtool? Do you use the libtool that comes with SANE
or a different one?

Which was the last version of sane-backends that worked?

There is a now commented out part in the install traget of
backend/Makefile.in that was used for creating links. However, it
hasn't been used since 2 years:

| revision 1.75
| date: 2003/04/30 23:05:45;  author: hmg;  state: Exp;  lines: +17 -17
| Disable manual links for shared libraries.  This breaks MacOS X and
| doesn't seem to be necessary on other platforms any more.


> So far, I encountered only one problem.
> When starting scanimage with DEBUG, I can see that it is looking for 
> *.so.1.15 libs (ie : libsane-epson.so.1.15).

The dll backend looks for *.so.1 as far as I can see. 

> The thing is, this lib does 
> not exist, but *.so.1 (ie : libsane-epson.so.1) exists. I can 
> rename/symlink those libs so they end with 1 instead of 1.15 and it 
> works, but it's not a great solution.

The symlinking should be done by libtool.

> How can I either make scanimage look for the right libs or make libtool 
> (or other) install the libs with the correct name ?

scanimage itsself doesn't llok for any backends. Usually it's linked
statically or linked to the shared libsane-dll backend. The dll
backend then loads dynamically the other backends.

Bye,
  Henning



[sane-devel] Scanning Time Question

2005-06-09 Thread Johannes Berg
--=-hoVIH9nrX2io8lBFh1mw
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2005-06-09 at 12:22 +0200, Spiro Angeli wrote:

> Approaching 15000 pictures 35mm I wish to know,=20

Wow :)

> for those who already have the=20
> scanner (I am thinking to purchase a Nikon LS 4000 or LS 5000) how is the=
=20
> scanning process.

the LS5000 isn't currently supported by sane.

> If I say I have 50 pictures to scan, how do you handle the scanning proce=
ss?=20
> Is it possible to scan x number of pictures, holding them in memory and t=
hen=20
> save them to the disk all at once or do I have to scan and save, scan and=
=20
> save?

You'll probably want to write a script/program that scans an image and
saves it to disk while the next one scans. That way, you don't need gigs
of memory but the scanner need not wait for the disk, nor the other way
around. An image scanned with the LS5000 would probably approach 60megs
or so.

> I am trying to understand what is that I will be faced with. I am also tr=
ying=20
> to figure out how much time it will take for me to scan pictures, and am=20
> trying to figure out how to standardize the process of manually scanning =
all=20
> these pictures.

In what format are they? slides? negatives?

> I know that scanning time depends on the depth of the scanned picture. Bu=
t is=20
> there a table that shows based on the depth of color and bits what is the=
=20
> time needed for the device to scan and save?

There's a table here:
http://filmscanner.info/NikonSuperCoolscan5000ED.html

Scroll down all the way to the bottom, then up until you hit the tables.
Just a few things: 'ohne' =3D without, 'mit' =3D with, 'Bild'=3Dpicture,
'Bilder'=3Dpictures, 'Stunde' =3D hour, 'Dia' =3D slide, 'Stapel'=3Dbatch,
'Vorschau'=3Dpreview, 'Einzel'=3Dsingle, 'Belichtung'=3Dexposure. (Now you
should be able to understand the tables)

johannes

--=-hoVIH9nrX2io8lBFh1mw
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-BEGIN PGP SIGNATURE-
Comment: Johannes Berg (SIP Solutions)

iQIVAwUAQqh8dKVg1VMiehFYAQKLuRAAtms36cICrrnV5eQW6U2VVMTnzhisFuOd
o7bhMffpBNTIwXMz/YmO5w+b/qVhf8zG6w03LBQoPMr/yMoUERMvjLLHk4NrCkZj
iktWWIgdktkZTYHUWymXl+CL4j6tz2EJ12MFP/EgxeiqW81HQhrfPziu5JpQcWxu
1nEXSfCWKVe0/gfozXof4z8Eef7sjR/MjuI03eqgHOyMS7+LDPmjVaTV5UNnl0t+
i2fapY8XYjbfY+TQ+5ydKpGqoUrquzG8MizHQcIZZGkEkyfXwHhxeU7L366Av8Aj
SpilcwuwtdlEHrnPKRCKaaK5XogBYHwIIQ9H4t5pird+NyBS89uNSzgsm097xusv
J806qGS6nfID8nGaf9muncJOweHPjWCtDMy7IMscqcfqsJa14LuXHHSO9J05HL1f
qTDjwq3WJWRtmaEwO9/oG5dPm0Xz7c+6ze3S4AzqpaIBl/FoF2CzGz7IXD9VwML3
EHSfdyc3nDH7e/7ASmVvpj5SMaTtU7fpkDVYn/lc2NAdn7Uoj2jJL1MkvolLs5Cn
7nrJdpnpp6rl2QSjkpoaZ519pLs2tEIIajKG9ipezoHZ6UkpTlRe2yksyBAMkz+6
EzU9uCOs88kOt9U33fgs9PDFnYmRg9AbLsTxTYcjnWuzb5ekd32jm+LBNg7m81h1
VTGrDEq/bHU=
=22GK
-END PGP SIGNATURE-

--=-hoVIH9nrX2io8lBFh1mw--




[sane-devel] Failed to open device `snapscan:libusb:002:002': Error during device I/O

2005-06-09 Thread Henning Meier-Geinitz
Hi,

On Wed, Jun 08, 2005 at 11:30:03AM -0400, Mauricio Hernandez wrote:
> [snapscan] add_usb_device: Detected (kind of) an USB device
> [snapscan] snapscani_usb_open(libusb:002:002)
> [snapscan] snapscani_usb_open: Can't get semaphore

Uhh. Looks like semget failed. Maybe you can get more details when
running scanimage by strace and searching for "semget"?

Bye,
  Henning



[sane-devel] Bug in snapscan or sane network protocolo?

2005-06-09 Thread Henning Meier-Geinitz
Hi,

On Thu, Jun 09, 2005 at 04:47:05PM +0200, Giuseppe Sacco wrote:
> Basically I do a scan of 210.0x297.0mm, using a 200dpi resolution.
> Prior to scan I call get_parameters and receive an *estimated* values
> for lines, pixelsperline, bytesperline; after receiving this data I
> receive the frame data.

Which frontend do you use?

> while, when scanning, I get a different amount of data:

This is perfectly legal (see SANE standard). The normal way is:

sane_get_parameters (returns estimated values)
sane_start
sane_get_parameters (returns exact parameters)
--> malloc memory for image, ...

> I see two possible options:
> 
> 1. Change the snapscan algorithm to have better supposed values

If snapscan doesn't return the correct parameters after sane_start,
it's broken. But I'd be very surprised if that were the case as that
would break all frontends.

> 2. Change the sane network protocol in order to get all corrected
>parameter *with* or *after* the scanned data.

I haven't checked that but you can get the parameters after running
sane_start, can't you?

You can test the behaviour of frontends concerning the estimated
parameters with the "test" backend (use option "fuzzy parameters").

Bye,
  Henning



[sane-devel] Scanning Time Question]

2005-06-09 Thread Johannes Berg
--=-AVo7SEvfXqtm8421c6eX
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

> Pictures are all 35mm of set of 4 per negative. They are not ( unfortunat=
ely )=20
> on a roll.

So they're in strips? That sucks. You're in for quite a bit of strip
changing then.

> As for application, because I am unable to run Nikon original software un=
der=20
> Gentoo Linux, I was thinking of  http://www.hamrick.com/ VueScan as offer=
ing=20
> the same and more features than what Nicon offers. Do you know anything a=
bout=20
> this or do you think gimps would be fine? Anything else to advice as=20
> application?

I thought you were going to use SANE. Then you don't need vuescan.

> As for format, I do not know yet. I assume it will be either jpeg or tiff=
. I=20
> think jpeg with a good resolution would be sufficient. It is not only for=
=20
> displaying on the monitor but also for prints. They have told me that=20
> nowadays, even a jpeg can be a good graphic format as long as it is well=20
> scanned.
> As for space, once I decided the file format and the compression I can fi=
gure=20
> out how much disk space I will need.

Yeah, whatever. You don't want to keep 20 images in memory though :)

> I like a lot the idea of the script that in the background while scanning=
 the=20
> next picture save the previous one.

Should be fairly easy. Trivial, however, is
scanning,saving,scanning,saving,

> Summing up, as of now, I have the idea of purchasing the Nikon 4000, with=
=20
> slides accessory (as I also have 300 slides) and perhaps VueScan software=
.

If you get the 4000 with the slides accessory you'll probably be able to
just scan from the command line and write a script to advance to the
next slide, scan, save it,  (or use scanadf maybe).

> There is a new Epson scanner PhotoPC F-3200 which I do not know well but =
it=20
> does not show up in the compatibility list.=20

No idea.

> Do you know if VueScan still needs SANE as backend?

No idea.

> LAST QUESTION: Any time I have to submit/reply an email, I mail it, it ge=
st on=20
> hold, and then it is sent to the mailing list. Is there a way to eliminat=
e=20
> the hold process, so that when I need help, I just write to=20
> sane-devel@lists.alioth.debian.org and it gets posted?

Subscribe to the list.

johannes

--=-AVo7SEvfXqtm8421c6eX
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-BEGIN PGP SIGNATURE-
Comment: Johannes Berg (SIP Solutions)

iQIVAwUAQqiTlKVg1VMiehFYAQL/Cg//f/FTS5865vivhLcVECdm2BGOEyv72oDU
Sf3D7W1Di+pJwzWxUx9oQKakFw4cHI3K9JaHq5sO2ZxcMmQAQA4JxvY4j2caVl4H
+ZR7fXo0q9Avi2ncTjRd/kHfvpD+VlXvgztkYbXB5uDE2Ne7nKC//KNM8bm7knxH
ud6WOP+ZZ570yKKd8G8sEy0tAx2AEVt8Xk2TUI54+TkAB9LJwF9wXKDJIFEMFEsU
sD6cCwk8k2io46ChM46DTuoHo7NGQRw8x91X9y1wlG15i1QuNqE6MfQENOHXberp
XkgnTiQWQ6bWqOGcrGhrpgt6P+sU8l6b7qexvAlIzkXc+ExnPQGs2hNeLWrhDEi+
v69XtI3kJot1k3B0+xx4ungZl0SO1uWH+tIVjqQHK9Kw/LGAGQzM6+JwTj5Sv7DM
EeT26BpCkzQqo/dIXnZGAlmyJ6cR9J/8ddutqAtpNvLCpqtBJHfeZ25I6tdizniZ
PNtWlIj4R5BjnhysEF7yQqqjt6LRI3WhCfKJ+6LzfoiX0R1QjiVg/35wXBTQMzU8
b+3FYxDYPfSmYNUUp7S3u/FmbliN0TG1y6EjpM431qmfaEvzSJaYCxzFnGVZhrec
lGE8eSeKwZAIiXWrNhWbwbXwnbcRwcOxP/dz3H1mo+fmqGQZR8MQ7z3iHo3pf0cS
hC9zWHnjtKU=
=R/X/
-END PGP SIGNATURE-

--=-AVo7SEvfXqtm8421c6eX--




[sane-devel] Scanning Time Question]]

2005-06-09 Thread Johannes Berg
--=-FWC4exitATKR8YvzoVOf
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

> I did subscribe to sane-devel@lists.alioth.debian.org All I do is new ema=
il=20
> and send it to: sane-devel@lists.alioth.debian.org
> Is this correct? If so, yes I am still getting the  [Your message to=20
> sane-devel awaits moderator approval]
> Please help me clarify this issue.

Oh, sorry. Then the list's server doesn't like you for some reason. But
I don't know why, the list admin might see it.

> > I thought you were going to use SANE. Then you don't need vuescan.
> So basically, SANE is the back end. Correct? Then as front end what will =
I=20
> use? I believe I was referring to VueScan as front-end. Please clarify th=
is=20
> for me if I have a wrong understanding of SANE.

sane is the backend, yeah, but you want to use a script or a program
sane has as the frontend, like scanadf.

> Last, any good web resource for learning and preparing myself for scannin=
g?=20
> Like understanding colors saturations, etc...,=20

No idea, maybe others can help (I'd be interested too).

> besides also learning the=20
> front end program?

You don't want a GUI front end, you want something simple that scans the
pictures in succession and saves them with numbers. if you'd need to
push a button (or more) for each picture you'll  well...

johannes

--=-FWC4exitATKR8YvzoVOf
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-BEGIN PGP SIGNATURE-
Comment: Johannes Berg (SIP Solutions)

iQIVAwUAQqiav6Vg1VMiehFYAQKEEA/7BQJce5mnzD5PxmzkbD9Lz7wlHDF7ZWfu
uZDDT+COaNPE+fiGWhW4yfAUib4ag0Ws8gw/xltUL3BnPvQIKWcUTQ2iEZ9iQHBa
FXp+T+2LqmZOoZcuYMDjoX5qeC4x2IzSAhQokGLE4AohBVysnWu5AqZIP51q5F0w
5RD80RIanovcmkLV1A35P3IJ417SfTfRDyU29BDPow6qBUrqePfwGGOHnd/aVXfE
pHXQfz6i+myhtSCxqrCAsLBIXK9P4MhqRtCJkrCey9GGqIV/WiKh7ypu0Kq4NNrb
WENdFcVoNrkD214cLJUqPUl2uuJfIx7rlTCMHQQZLPrG/bZoKGjNx8fI9KrZuiNI
6yaniXB6svQVvPJ70UuBogmgSBx49yGOMB43yFpbKyhN+6zsNl+xIxB2pnw6ESAF
B29KCQxxdeSarAAMzWZe5jfRmVBnR5JMOmsa9NUbCUlhwaOlBu933WcoNP+TSFbE
yT8qvejWugOd1PySfakpn8yMKKnRD/6s5vINBtyZs+ocn+Mj6zTXrFkWr2rGcJMn
rD+r7uu9Vm2+4aTIXaK+jpTbQQT6A8M7x613P1JBsP9VMA+ajtyi+GBO5D0sWwPG
SSLrnWUz1r/VF2FtlVONAihvjzYJa5mzE5lnHM1BW6Ia47SyGG5v7dnP8oh5TIwJ
+bHKv/buIFc=
=BjK7
-END PGP SIGNATURE-

--=-FWC4exitATKR8YvzoVOf--




[sane-devel] Bug in snapscan or sane network protocolo?

2005-06-09 Thread Giuseppe Sacco
Il giorno gio, 09-06-2005 alle 19:50 +0200, Henning Meier-Geinitz ha
scritto:
> Hi,
> 
> On Thu, Jun 09, 2005 at 04:47:05PM +0200, Giuseppe Sacco wrote:
> > Basically I do a scan of 210.0x297.0mm, using a 200dpi resolution.
> > Prior to scan I call get_parameters and receive an *estimated* values
> > for lines, pixelsperline, bytesperline; after receiving this data I
> > receive the frame data.
> 
> Which frontend do you use?

I am using a java application. I use jsane as SANE library.

>From a client side point of view, we do:

1. device open
2. set all options
3. get frame:
   3.1 get parameters
   3.2 start
   3.3 download all frames
4. compose image using frames

> > while, when scanning, I get a different amount of data:
> 
> This is perfectly legal (see SANE standard). The normal way is:
> 
> sane_get_parameters (returns estimated values)
> sane_start
> sane_get_parameters (returns exact parameters)
> --> malloc memory for image, ...

Is this possible?

> > I see two possible options:
> > 
> > 1. Change the snapscan algorithm to have better supposed values
> 
> If snapscan doesn't return the correct parameters after sane_start,
> it's broken. But I'd be very surprised if that were the case as that
> would break all frontends.
> 
> > 2. Change the sane network protocol in order to get all corrected
> >parameter *with* or *after* the scanned data.
> 
> I haven't checked that but you can get the parameters after running
> sane_start, can't you?

I don't know. I will try it tomorrow.

Thanks for all comments,
Giuseppe




[sane-devel] Scanning Time Question]

2005-06-09 Thread Spiro Angeli
Hi  johannes,

Yes, It is a big progect I have to work on.
Pictures are all 35mm of set of 4 per negative. They are not ( unfortunately ) 
on a roll.
Yes, writing a script would be super. I would have to learn this first.
But, as for model, if Nikon LS 5000 is not supported I think I will choose 
Nikon LS 4000 (which by now is well supported) as also comes with a rebate 
which makes it affordable.
As for application, because I am unable to run Nikon original software under 
Gentoo Linux, I was thinking of  http://www.hamrick.com/ VueScan as offering 
the same and more features than what Nicon offers. Do you know anything about 
this or do you think gimps would be fine? Anything else to advice as 
application?
As for format, I do not know yet. I assume it will be either jpeg or tiff. I 
think jpeg with a good resolution would be sufficient. It is not only for 
displaying on the monitor but also for prints. They have told me that 
nowadays, even a jpeg can be a good graphic format as long as it is well 
scanned.
As for space, once I decided the file format and the compression I can figure 
out how much disk space I will need.

I like a lot the idea of the script that in the background while scanning the 
next picture save the previous one.

Summing up, as of now, I have the idea of purchasing the Nikon 4000, with 
slides accessory (as I also have 300 slides) and perhaps VueScan software.
There is a new Epson scanner PhotoPC F-3200 which I do not know well but it 
does not show up in the compatibility list. 

Do you know if VueScan still needs SANE as backend?

LAST QUESTION: Any time I have to submit/reply an email, I mail it, it gest on 
hold, and then it is sent to the mailing list. Is there a way to eliminate 
the hold process, so that when I need help, I just write to 
sane-devel@lists.alioth.debian.org and it gets posted?

Thank you so much for the help.!
Spiro


> On Thu, 2005-06-09 at 12:22 +0200, Spiro Angeli wrote:
> > Approaching 15000 pictures 35mm I wish to know,
>
> Wow :)
>
> > for those who already have the
> > scanner (I am thinking to purchase a Nikon LS 4000 or LS 5000) how is the
> > scanning process.
>
> the LS5000 isn't currently supported by sane.
>
> > If I say I have 50 pictures to scan, how do you handle the scanning
> > process? Is it possible to scan x number of pictures, holding them in
> > memory and then save them to the disk all at once or do I have to scan
> > and save, scan and save?
>
> You'll probably want to write a script/program that scans an image and
> saves it to disk while the next one scans. That way, you don't need gigs
> of memory but the scanner need not wait for the disk, nor the other way
> around. An image scanned with the LS5000 would probably approach 60megs
> or so.
>
> > I am trying to understand what is that I will be faced with. I am also
> > trying to figure out how much time it will take for me to scan pictures,
> > and am trying to figure out how to standardize the process of manually
> > scanning all these pictures.
>
> In what format are they? slides? negatives?
>
> > I know that scanning time depends on the depth of the scanned picture.
> > But is there a table that shows based on the depth of color and bits what
> > is the time needed for the device to scan and save?
>
> There's a table here:
> http://filmscanner.info/NikonSuperCoolscan5000ED.html
>
> Scroll down all the way to the bottom, then up until you hit the tables.
> Just a few things: 'ohne' = without, 'mit' = with, 'Bild'=picture,
> 'Bilder'=pictures, 'Stunde' = hour, 'Dia' = slide, 'Stapel'=batch,
> 'Vorschau'=preview, 'Einzel'=single, 'Belichtung'=exposure. (Now you
> should be able to understand the tables)
>
> johannes



[sane-devel] Epson iscan for Linux

2005-06-09 Thread Spiro Angeli
Hi,

I also have an Epson Perfection 2400 scanner. While browsing around, I ended 
up here: http://www.avasys.jp/english/linux_e/dl_scan.html It is a site with 
software for Linux. The software is called iscan.

Has anyone heard of it? If so, has anybody installed on Gentoo?
Lastly, is this iscan an application or a twaine or what? I noticed that it 
interfaces with gimp too.

I Thank you for the clarification.
Spiro



[sane-devel] Scanning Time Question]]

2005-06-09 Thread Spiro Angeli
Hi johannes,

> > LAST QUESTION: Any time I have to submit/reply an email, I mail it, it
> > gest on hold, and then it is sent to the mailing list. Is there a way to
> > eliminate the hold process, so that when I need help, I just write to
> > sane-devel@lists.alioth.debian.org and it gets posted?
>
> johannes: Subscribe to the list.

I did subscribe to sane-devel@lists.alioth.debian.org All I do is new email 
and send it to: sane-devel@lists.alioth.debian.org
Is this correct? If so, yes I am still getting the  [Your message to 
sane-devel awaits moderator approval]
Please help me clarify this issue.

> I thought you were going to use SANE. Then you don't need vuescan.
So basically, SANE is the back end. Correct? Then as front end what will I 
use? I believe I was referring to VueScan as front-end. Please clarify this 
for me if I have a wrong understanding of SANE.

> So they're in strips? That sucks. You're in for quite a bit of strip
> changing then.
Don't mention it. I already feel like a disk-jokey. But, patience will do it.

Last, any good web resource for learning and preparing myself for scanning? 
Like understanding colors saturations, etc..., besides also learning the 
front end program?

Thank you a lot,
Spiro