AI-generated Key Takeaways
-
The page outlines globally available constants used for specifying the source type of a
GMLImage. -
GMLImageSourceTypeconstants define whether the image source is aUIImage,CVPixelBuffer, orCMSampleBuffer. -
Each constant is assigned a numerical value:
GMLImageSourceTypeImage(0),GMLImageSourceTypePixelBuffer(1), andGMLImageSourceTypeSampleBuffer(2).
Constants
The following constants are available globally.
-
Image source is a
UIImage.Declaration
Objective-C
static const GMLImageSourceType GMLImageSourceTypeImage = 0 -
Image source is a
CVPixelBuffer.Declaration
Objective-C
static const GMLImageSourceType GMLImageSourceTypePixelBuffer = 1 -
Image source is a
CMSampleBuffer.Declaration
Objective-C
static const GMLImageSourceType GMLImageSourceTypeSampleBuffer = 2