[sane-devel] proposel for buffer size increase frontends scanimage ..
gerard klaver
gerard@gkall.hobby.nl
Tue, 18 Jan 2005 18:04:39 +0100
--=-G2Ge2qX71EHeEV2nS+0H
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
Proposal to increase the buffersize of buffer[32 * 1024] to
buffer[1024 * 1024] for frontend scanimage for diff zie attachment.
In this way the write cycle in sane_read will be reduced and is it
possible to write a image from for example a 640 x 480 webcam in
one cycle to the frontend buffer.
For other frontends its the same but i tested only xscanimage at this
moment (patch (with other patches) is in sane/experimental but needs a
update)
For:
saned ??
scanadf ??
Others
??
Any comments?
--
--------
m.vr.gr.
Gerard Klaver
--=-G2Ge2qX71EHeEV2nS+0H
Content-Disposition: attachment; filename=scanimage.diff
Content-Type: text/x-patch; name=scanimage.diff; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
--- scanimage-orig.c 2005-01-18 17:33:20.000000000 +0100
+++ scanimage.c 2005-01-18 17:34:03.000000000 +0100
@@ -1020,7 +1020,7 @@
scan_it (void)
{
int i, len, first_frame = 1, offset = 0, must_buffer = 0;
- SANE_Byte buffer[32 * 1024], min = 0xff, max = 0;
+ SANE_Byte buffer[1024 * 1024], min = 0xff, max = 0;
SANE_Parameters parm;
SANE_Status status;
Image image = { 0, 0, 0, 0, 0, 0 };
--=-G2Ge2qX71EHeEV2nS+0H--