Juicy.Pixels icon indicating copy to clipboard operation
Juicy.Pixels copied to clipboard

Support for Incremental Input?

Open Zemyla opened this issue 10 years ago • 1 comments

Can the various decoding functions be augmented to support incremental input, such as is supported in the Data.Binary library used under the hood? This would allow decoding images from non-file inputs without having to load the entire image file into memory, and then parse the entire image file in memory.

Zemyla avatar Nov 02 '15 04:11 Zemyla

Right now, the answer is clearly no, every format working at bit level, violently extract a big bytestring from binary and put it in a bit reader structure (for performance reasons). It could be interesting, but it requires a major rewriting of nearly all file parsers, which is not likely to happen soon (for motivation reasons :])

Twinside avatar Nov 02 '15 08:11 Twinside