[][src]Function exr::image::read_filtered_lines_from_buffered

#[must_use]
pub fn read_filtered_lines_from_buffered<T>(
    read: impl Read + Seek + Send,
    new: impl Fn(&[Header]) -> Result<T>,
    filter: impl Fn(&T, &Header, &TileIndices) -> bool,
    insert: impl FnMut(&mut T, &[Header], LineRef) -> UnitResult,
    options: ReadOptions<impl OnReadProgress>
) -> Result<T>

Reads ad decompresses all desired chunks of a file sequentially, possibly seeking. Will skip any parts of the file that do not match the specified filter condition. Will never seek if the filter condition matches all chunks. Does not buffer the reader, you should always pass a BufReader. The progress argument may be a closure.