pub fn bytes_per_pixel(self) -> u32 {
    if self.is_fourcc() {
      match self {
        PixelFormatEnum::YUY2 | PixelFormatEnum::UYVY | PixelFormatEnum::YVYU => 2,
        _ => 1,
      }
    } else {
      self as u32 & 0xFF
    }
  }
/// Bytes used per pixel.
///
/// Note: Formats with less than 8 bits per pixel give a result of 0 bytes per
/// pixel. Weird and all, but that's how it is.
Bytes used per pixel.
Note: Formats with less than 8 bits per pixel give a result of 0 bytes per
pixel. Weird and all, but that's how it is.
Bytes used per pixel . Note : Formats with less than 8 bits per pixel give a result of 0 bytes per pixel . Weird and all but that ' s how it is .
pub fn bytes_per_pixel(self) -> u32 {
    if self.is_fourcc() {
      match self {
        PixelFormatEnum::YUY2 | PixelFormatEnum::UYVY | PixelFormatEnum::YVYU => 2,
        _ => 1,
      }
    } else {
      self as u32 & 0xFF
    }
  }
pub fn bytes_per_pixel ( self ) -> u32 { if self . is_fourcc ( ) { match self { PixelFormatEnum :: YUY2 | PixelFormatEnum :: UYVY | PixelFormatEnum :: YVYU => 2 , _ => 1 , } } else { self as u32 & 0xFF } }
Bytes used per pixel.
Bytes used per pixel .
self
self