Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub

Describes pixel format type. More...

Inherits Enum.

Public Member Functions

int PixelSize (self)
 Gets pixel size in bytes. More...
 
int ChannelSize (self)
 Gets channel size in bytes. More...
 
int ChannelCount (self)
 Gets channels count. More...
 

Static Public Attributes

int Empty = 0
 Undefined pixel format.
 
int Gray8 = 1
 A 8-bit gray pixel format.
 
int Uv16 = 2
 A 16-bit (2 8-bit channels) pixel format (UV plane of NV12 pixel format).
 
int Bgr24 = 3
 A 24-bit (3 8-bit channels) BGR (Blue, Green, Red) pixel format.
 
int Bgra32 = 4
 A 32-bit (4 8-bit channels) BGRA (Blue, Green, Red, Alpha) pixel format.
 
int Int16 = 5
 A single channel 16-bit integer pixel format.
 
int Int32 = 6
 A single channel 32-bit integer pixel format.
 
int Int64 = 7
 A single channel 64-bit integer pixel format.
 
int Float = 8
 A single channel 32-bit float point pixel format.
 
int Double = 9
 A single channel 64-bit float point pixel format.
 
int BayerGrbg = 10
 A 8-bit Bayer pixel format (GRBG).
 
int BayerGbrg = 11
 A 8-bit Bayer pixel format (GBRG).
 
int BayerRggb = 12
 A 8-bit Bayer pixel format (RGGB).
 
int BayerBggr = 13
 A 8-bit Bayer pixel format (BGGR).
 
int Hsv24 = 14
 A 24-bit (3 8-bit channels) HSV (Hue, Saturation, Value) pixel format.
 
int Hsl24 = 15
 A 24-bit (3 8-bit channels) HSL (Hue, Saturation, Lightness) pixel format.
 
int Rgb24 = 16
 A 24-bit (3 8-bit channels) RGB (Red, Green, Blue) pixel format.
 
int Rgba32 = 17
 A 32-bit (4 8-bit channels) RGBA (Red, Green, Blue, Alpha) pixel format.
 
int Uyvy16 = 18
 A 16-bit (2 8-bit channels) UYVY422 pixel format.
 
int Argb32 = 19
 A 32-bit (4 8-bit channels) ARGB (Alpha, Red, Green, Blue) pixel format.
 

Detailed Description

Describes pixel format type.

It is used in Simd.Image.

Member Function Documentation

◆ PixelSize()

int PixelSize (   self)

Gets pixel size in bytes.

Returns
pixel size in bytes.

◆ ChannelSize()

int ChannelSize (   self)

Gets channel size in bytes.

Returns
channel size in bytes.

◆ ChannelCount()

int ChannelCount (   self)

Gets channels count.

Returns
channels count.