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
Mike Kelly 2012-03-21 21:01:00 -07:00
rodzic 0e159fc516
commit 0ab145c316
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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;