[sane-devel] Saned

Andi McLean andi_mclean@ntlworld.com
Wed, 15 Jun 2005 18:36:57 +0100


--nextPart29457534.IBl18DDrQn
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 15 Jun 2005 17:49, Henning Meier-Geinitz wrote:
> Hi,
>
> On Sun, Jun 12, 2005 at 12:26:22PM +0100, Andi McLean wrote:
> > I have an issue with the Sane netowork protocol.
> >
> > To find the size / resolution and pixel depth of an image, I need to ca=
ll
> > sane_get_parameters()
> > If I do this before calling sane_start() the values are estimates, which
> > can cause problems. If i try to call it diretly after sane_start() but
> > before reading the data from another port. the call is not serviced.
>
> What do you mean by "the call is not serviced"?


>
> > DO I have to call, sane_start() read the data into a buffer (File or
> > memory) then call sane_getparameters()?
> > Or is there another way?
>
> See SANE standard for how to do a scan:
>
> sane_start ()
> sane_get_parameters()
> sane_read()
There is no sane_read() in the network protocol. When you send sane_start()
a port number is returned. You read data from this port, (The data is in th=
e=20
same format as sane_read) . The original port you sent the request is block=
ed=20
until all image data has been read.

>
> Bye,
>   Henning

--nextPart29457534.IBl18DDrQn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBCsGc8js5zLoK322MRAu3MAJ4k5zQF028No0c4Dl1jfqUcWKfyVwCgqs2E
Y+7qglfUiX3WKSO0S1+j/lI=
=1+ny
-----END PGP SIGNATURE-----

--nextPart29457534.IBl18DDrQn--