Class AppleGlobalCommon
Common base class for Apple platform global utilities shared between iOS and macOS. Provides pixel format conversion and CMSampleBuffer/CVPixelBuffer processing utilities.
public class AppleGlobalCommon
- Inheritance
-
AppleGlobalCommon
- Derived
- Inherited Members
Constructors
AppleGlobalCommon()
public AppleGlobalCommon()
Methods
ConvertToCVPixelFormatType(PixelFormat)
Converts an internal PixelFormat to the corresponding Core Video pixel format type.
public static CVPixelFormatType ConvertToCVPixelFormatType(PixelFormat pixelFormat)
Parameters
pixelFormatPixelFormatThe internal pixel format to convert.
Returns
- CVPixelFormatType
The corresponding CoreVideo.CVPixelFormatType, or 0 if not supported.
ConvertToPixelFormat(CVPixelFormatType)
Converts a Core Video pixel format type to the internal PixelFormat enumeration.
public static PixelFormat ConvertToPixelFormat(CVPixelFormatType subtype)
Parameters
subtypeCVPixelFormatTypeThe Core Video pixel format type to convert.
Returns
- PixelFormat
The corresponding PixelFormat, or None if not recognized.