Simd Library Documentation.

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

Describes frame format type. More...

Inherits Enum.

Public Member Functions

int PlaneCount (self)
 Gets number of planes for current frame format. More...
 

Static Public Attributes

int Empty = 0
 An undefined pixel format.
 
int Nv12 = 1
 Two planes (8-bit full size Y plane, 16-bit interlived half size UV plane) NV12 pixel format.
 
int Yuv420p = 2
 Three planes (8-bit full size Y plane, 8-bit half size U plane, 8-bit half size V plane) YUV420P pixel format.
 
int Bgra32 = 3
 One plane 32-bit (4 8-bit channels) BGRA (Blue, Green, Red, Alpha) pixel format.
 
int Bgr24 = 4
 One plane 24-bit (3 8-bit channels) BGR (Blue, Green, Red) pixel format.
 
int Gray8 = 5
 One plane 8-bit gray pixel format.
 
int Rgb24 = 6
 One plane 24-bit (3 8-bit channels) RGB (Red, Green, Blue) pixel format.
 
int Rgba32 = 7
 One plane 32-bit (4 8-bit channels) RGBA (Red, Green, Blue, Alpha) pixel format.
 

Detailed Description

Describes frame format type.

It is used in Simd.Frame.

Member Function Documentation

◆ PlaneCount()

int PlaneCount (   self)

Gets number of planes for current frame format.

Returns
number of planes.