AI-generated Key Takeaways
-
This documentation outlines globally available constants used for specifying the source type of a
GMLImage
. -
GMLImage
source can be represented byUIImage
,CVPixelBuffer
, orCMSampleBuffer
, each associated with a specific constant. -
These constants (
GMLImageSourceTypeImage
,GMLImageSourceTypePixelBuffer
,GMLImageSourceTypeSampleBuffer
) are primarily used within the Objective-C environment.
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