[sane-devel] Calculating maxlen

2004-09-19 Thread abel deuring
Paul wrote: > Hi, > > >>max_len is set by the frontend. The buffer is allocated by the frontend >>and the size of the buffer must be at least max_len bytes. >> >>max_len and the size of the buffer are arbitary. The backend must be >>able to handle each size from max_len=1 to max_len > size of the

[sane-devel] Calculating maxlen

2004-09-19 Thread Oliver Rauch
Hello Paul. max_len is set by the frontend. The buffer is allocated by the frontend and the size of the buffer must be at least max_len bytes. max_len and the size of the buffer are arbitary. The backend must be able to handle each size from max_len=1 to max_len > size of the image. Best regards

[sane-devel] Calculating maxlen

2004-09-19 Thread Paul
--=-X2JfoKz2QG0ksGE+DK3H Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, > max_len is set by the frontend. The buffer is allocated by the frontend > and the size of the buffer must be at least max_len bytes. >=20 > max_len and the size of the buffer are arbitary. The back

[sane-devel] Calculating maxlen

2004-09-19 Thread Paul
--=-EyBgZc7L2eK+2KbXNi9a Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Just a small one here. I'm using sane_read. handle is fine, but I need to pass a buffer the size of maxlen for *data. How do I work out maxlen? Is it simply the bytes per line * pixels per line or i