kopia lustrzana https://gitlab.com/sane-project/backends
Skip post-processing when caching flipping duplex
In a previous patch, I attempted to avoid the possibility of a page remaining partially inside the ADF unit of a flipping duplex scanner after a scan. Unfortunately, I introduced a bug where the backside page was accidentally returned to the client in addition to being cached. This was because I had a misunderstanding of the post-processing code. This patch skips the post- processing section altogether, avoiding any unnecessary post-processing and subsequent unwanted output. The other alternative here was to try to monkey with the buffers (as is done for LINE deinterlacing), but I felt this would be harder to implement and even harder to debug in the future.merge-requests/1/head
rodzic
0e159fc516
commit
0ab145c316
|
@ -7054,7 +7054,7 @@ reader_process (void *data)
|
|||
}
|
||||
DBG (9, "reader_process: after page flip: useful_bytes: %d, stripe_fill: %d\n",
|
||||
useful_bytes, stripe_fill);
|
||||
}
|
||||
} else {
|
||||
|
||||
/*
|
||||
* Perform needed data conversions (packing, ...) and/or copy the
|
||||
|
@ -7412,6 +7412,7 @@ reader_process (void *data)
|
|||
out_data + useful_bytes - s->avdimen.hw_bytes_per_line,
|
||||
s->avdimen.hw_bytes_per_line);
|
||||
}
|
||||
}
|
||||
|
||||
/* save image date in stripe buffer for next next stripe */
|
||||
stripe_fill -= useful_bytes;
|
||||
|
|
Ładowanie…
Reference in New Issue