Class NvCVImagePixelFormatExtensions
- Assembly
- VisioForge.Core.dll
Extension methods for VisioForge.Core.NvidiaMaxine.VideoEffects.API.NvCVImagePixelFormat that provide channel-count lookups.
public static class NvCVImagePixelFormatExtensionsInheritance
Inherited Members
Methods
GetChannelsCount(NvCVImagePixelFormat)
Returns the number of channels (components) per pixel for the specified pixel format.
public static int GetChannelsCount(this NvCVImagePixelFormat format)Parameters
formatNvCVImagePixelFormat-
The pixel format.
Returns
- int
-
Channel count: 1 for Y and A; 2 for YA; 3 for RGB, BGR, YUV420, YUV422, and YUV444; 4 for RGBA, BGRA, ARGB, and ABGR; 0 for unknown formats.