Type Alias: PixelFormat
PixelFormat:
"yuv"
|"rgb"
|"unknown"
Represents the pixel format of a Frame
.
If you intend to read Pixels from this Frame or use an ML model for processing, make sure that you are
using the expected PixelFormat
, otherwise the plugin might not be able to properly understand the Frame's content.
Most ML models operate in either yuv
(recommended) or rgb
.
yuv
: Frame is in YUV pixel-format (Y'CbCr 4:2:0 or NV21, 8-bit)rgb
: Frame is in RGB pixel-format (RGBA or BGRA, 8-bit)unknown
: Frame has unknown/unsupported pixel-format.
Defined in​
types/PixelFormat.ts:13