1 #import <Foundation/Foundation.h>
2 #import <AVFoundation/AVFoundation.h>
71 -(nonnull instancetype) init: (
int) X : (
int) Y : (
int) Width : (
int) Height;
127 -(nonnull instancetype) init: (
int) width : (
int) height : (
int) format : (const
unsigned char *_Nullable) data;
135 -(nonnull instancetype) init: (
void *_Nonnull)image;
136 -(nonnull instancetype) init;
144 -(nonnull instancetype) init: (CMSampleBufferRef _Nullable)sampleBuffer : (
int) format;
159 @property (readonly ,nonnull)
void *raw_image;
167 @property (readonly)
int width;
175 @property (readonly)
int height;
188 @property (readonly, nonnull)
const unsigned char * data;
int width
Width of the rectangle.
Definition: RawImage.h:62
int x
X coordinate of the top-left corner.
Definition: RawImage.h:60
typedef NS_ENUM(int32_t, Format)
Format of image data.
Definition: RawImage.h:15
int y
Y coordinate of the top-left corner.
Definition: RawImage.h:61
int height
Image height.
Definition: RawImage.h:117
const unsigned char * data
Pointer to the image data buffer. All pixels must be stored continuously, row by row, without gaps at the end of each row.
Definition: RawImage.h:118
int height
Height of the rectangle.
Definition: RawImage.h:63
Struct that provides raw image data and optional cropping information.
Definition: RawImage.h:113
int width
Image width.
Definition: RawImage.h:116
Rectangle in an image.
Definition: RawImage.h:58