pixma: fix end of line crop buffer size for better efficiency.

modified:   ChangeLog
	modified:   backend/pixma.c
merge-requests/1/head
Nicolas Martin 2010-07-03 21:27:44 +02:00
rodzic bb346c0725
commit b95d698f33
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,8 @@
2010-07-03 Nicolas Martin <nicols-guest at users.alioth.debian.org>
* doc/descriptions/pixma.desc, backend/pixma.c
pixma: fix ImageClass MF6550 description.
fix end of line crop buffer size.
2010-07-02 Nicolas Martin <nicols-guest at users.alioth.debian.org> 2010-07-02 Nicolas Martin <nicols-guest at users.alioth.debian.org>
* doc/descriptions/pixma.desc, doc/sane-pixma.man: * doc/descriptions/pixma.desc, doc/sane-pixma.man:
pixma: update doc to include ImageClass MF6550 support. pixma: update doc to include ImageClass MF6550 support.

Wyświetl plik

@ -1301,7 +1301,10 @@ sane_read (SANE_Handle h, SANE_Byte * buf, SANE_Int maxlen, SANE_Int * len)
{ {
DECL_CTX; DECL_CTX;
int sum, n; int sum, n;
SANE_Byte temp[60]; /* Due to 32 pixels alignment, sizeof(temp) is to be greater than:
* max(nchannels) * max (sp.line_size - output_line_size)
* so currently: 3 * 32 = 96 for better end line cropping efficiency */
SANE_Byte temp[100];
SANE_Status status; SANE_Status status;
if (len) if (len)