compute_frame_count

Function compute_frame_count 

Source
pub const fn compute_frame_count(bits: u8) -> usize
Expand description

Computes the number of frames needed for a given bit depth

This is used to determine how many frames are needed to achieve the desired color depth through Binary Code Modulation (BCM).

§Arguments

  • bits - Number of bits per color channel

§Returns

Number of frames required for the given bit depth