Module machine_vision_formats::pixel_format

source ·
Expand description

Implementations of specific pixel formats.

Structs§

  • Bayer Blue Green pattern, 1 byte per pixel.
  • Bayer Blue Green pattern, 4 bytes per pixel.
  • Bayer Green Blue pattern, 1 byte per pixel.
  • Bayer Green Blue pattern, 4 bytes per pixel.
  • Bayer Green Red pattern, 1 byte per pixel.
  • Bayer Green Red pattern, 4 bytes per pixel.
  • Bayer Red Green pattern, 1 byte per pixel.
  • Bayer Red Green pattern, 4 bytes per pixel.
  • Luminance, 1 byte per pixel. Sometimes also called Gray8.
  • Luminance, 32 bytes per pixel, Little-Endian, IEEE-754
  • NV12 format, average 12 bits per pixel
  • Red, Green, Blue, 1 byte each, total 3 bytes per pixel.
  • Red, Green, Blue, Alpha, 1 byte each, total 4 bytes per pixel.
  • YUV 4:2:2 8-bit, total 2 bytes per pixel.
  • YUV 4:4:4 8-bit, total 3 bytes per pixel.

Enums§

  • This type allows runtime inspection of pixel format.

Traits§

  • Implementations of this trait describe the format of raw image data.

Functions§

  • Convert a compile-time type FMT into a runtime type.