pub const fn bits_per_pixel(&self) -> u8 {
        use PixFmt::*;
        match self {
            Mono8 => 8,
            Mono32f => 32,
            RGB8 => 24,
            RGBA8 => 32,
            BayerRG8 => 8,
            BayerRG32f => 32,
            BayerBG8 => 8,
            BayerBG32f => 32,
            BayerGB8 => 8,
            BayerGB32f => 32,
            BayerGR8 => 8,
            BayerGR32f => 32,
            YUV444 => 24,
            YUV422 => 16,
            NV12 => 12,
        }
    }
/// The average number of bits per pixel.
The average number of bits per pixel.
The average number of bits per pixel .
pub const fn bits_per_pixel(&self) -> u8 {
        use PixFmt::*;
        match self {
            Mono8 => 8,
            Mono32f => 32,
            RGB8 => 24,
            RGBA8 => 32,
            BayerRG8 => 8,
            BayerRG32f => 32,
            BayerBG8 => 8,
            BayerBG32f => 32,
            BayerGB8 => 8,
            BayerGB32f => 32,
            BayerGR8 => 8,
            BayerGR32f => 32,
            YUV444 => 24,
            YUV422 => 16,
            NV12 => 12,
        }
    }
pub const fn bits_per_pixel ( & self ) -> u8 { use PixFmt :: * ; match self { Mono8 => 8 , Mono32f => 32 , RGB8 => 24 , RGBA8 => 32 , BayerRG8 => 8 , BayerRG32f => 32 , BayerBG8 => 8 , BayerBG32f => 32 , BayerGB8 => 8 , BayerGB32f => 32 , BayerGR8 => 8 , BayerGR32f => 32 , YUV444 => 24 , YUV422 => 16 , NV12 => 12 , } }
The average number of bits per pixel.
The average number of bits per pixel .
&self
&self