get_bit_depth

Function get_bit_depth 

Source
pub fn get_bit_depth(encoding: &str) -> u8
Expand description

Returns the bit depth for the given encoding

§Arguments

  • encoding - The encoding to get the bit depth for (e.g. “rgb8”) Note: The bit depth is the number of bits per channel

§Returns

The bit depth for the given encoding