pub fn cal_block_count(
    image_width: u32,
    image_height: u32,
    block_width: u32,
    block_height: u32
) -> u32