fn bytes_per_sample(format: u8) -> usize