exr::meta

Function calculate_block_position_and_size

source
pub fn calculate_block_position_and_size(
    total_size: usize,
    block_size: usize,
    block_index: usize,
) -> Result<(usize, usize)>
Expand description

Compute the start position and size of a block inside a dimension.