Expand description
Composable structures to handle reading an image.
Structs§
- Decode all chunks in the file without seeking. The decoded chunks can be decompressed by calling
decompress_parallel
,decompress_sequential
, orsequential_decompressor
orparallel_decompressor
. Callon_progress
to have a callback with each block. Also contains the image meta data. - Decode the desired chunks and skip the unimportant chunks in the file. The decoded chunks can be decompressed by calling
decompress_parallel
,decompress_sequential
, orsequential_decompressor
orparallel_decompressor
. Callon_progress
to have a callback with each block. Also contains the image meta data. - Decode chunks in the file without seeking. Calls the supplied closure for each chunk. The decoded chunks can be decompressed by calling
decompress_parallel
,decompress_sequential
, orsequential_decompressor
. Also contains the image meta data. - Decompress the chunks in a file in parallel. The first call to
next
will fill the thread pool with jobs, starting to decompress the next few blocks. These jobs will finish, even if you stop reading more blocks. Implements iterator. - Decode the meta data from a byte source, keeping the source ready for further reading. Continue decoding the remaining bytes by calling
filtered_chunks
orall_chunks
. - Read all chunks from the file, decompressing each chunk immediately. Implements iterator.
Traits§
- Decode chunks in the file. The decoded chunks can be decompressed by calling
decompress_parallel
,decompress_sequential
, orsequential_decompressor
. Callon_progress
to have a callback with each block. Also contains the image meta data.