PinInputBuffer() page-locks the buffer an image is decompressed into, which an
uncompressed image never uses: it is read straight out of the reader's own
buffer, so the upload came from pageable memory. Measured on this card, 72.6 MB
crosses at 5.6 GB/s pageable and 14.6 GB/s registered - 12.9 ms against 5.0 ms,
on every image of a sweep that stores its frames uncompressed.
PinInputRegion() page-locks a region the caller owns and remembers it, so a
worker that reads every frame into the same buffer registers it once. The
registration is dropped with the engine, so the three workers that build one
declare their raw image before it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>