pub(crate) fn n_block_rows( image_size: ImageSize, block_size: BlockSize, ) -> usize
Computes the number of block rows for the given image and block sizes.