3DiVi Face SDK  3.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
Context.h
1 #import <Foundation/Foundation.h>
2 
14 typedef NS_ENUM(int32_t, CtxFormat){
20  CtxFORMAT_BGR = 0,
21 
27  CtxFORMAT_RGB = 1,
28 
34  CtxFORMAT_BGRA8888 = 2,
35 
41  CtxFORMAT_YUV420 = 3,
42 
48  CtxFORMAT_YUV_NV12 = 4,
49 
55  CtxFORMAT_NV21 = 5,
56 };
57 
58 
65 @interface Context : NSObject
66 {
67  void *_ptr;
68 }
69 
70 @property (readonly) void* _Nonnull ptr;
71 
72 -(nonnull instancetype) init: (void* _Nonnull) context;
73 -(void) dealloc;
74 
83 -(void) setLong: (int64_t) value;
84 
93 -(void) setDouble: (double) value;
94 
103 -(void) setBool: (bool) value;
104 
113 -(void) setString: (NSString *_Nonnull) value;
114 
125 -(void) setDataPtr: (const uint8_t *_Nullable) value : (int) copy_sz;
126 
135 -(void) setNSData: (NSData* _Nonnull) data;
136 
145 -(void) set: (Context* _Nonnull) other;
146 
155 -(int64_t) getLong;
156 
165 -(double) getDouble;
166 
175 -(bool) getBool;
176 
185 -(NSString *_Nonnull) getString;
186 
195 -(uint8_t* _Nonnull) getDataPtr;
196 
205 -(const NSData* _Nonnull) getNSData: (int64_t) size;
206 
215 -(Context* _Nonnull) at: (int) index;
216 
225 -(Context* _Nonnull) get: (NSString *_Nonnull) key;
226 
235 -(size_t) size;
236 
247 -(bool) contains: (NSString *_Nonnull) key;
248 
259 -(bool) compare: (Context *_Nonnull) other;
260 
267 -(void) clear;
268 
277 -(void) erase: (NSString *_Nonnull) key;
278 
287 -(void) reserve: (size_t) size;
288 
297 -(void) saveToJsonFile: (NSString *_Nonnull) path;
298 
299 
308 -(nonnull NSMutableArray*) getKeys;
309 
318 -(void) pushBack: (Context *_Nonnull) value;
319 
328 -(void) pushBackLong: (int64_t) value;
329 
338 -(void) pushBackDouble: (double) value;
339 
348 -(void) pushBackBool: (bool) value;
349 
358 -(void) pushBackString: (NSString *_Nonnull) value;
359 
368 -(bool) isNone;
369 
378 -(bool) isObject;
379 
388 -(bool) isArray;
389 
398 -(bool) isBool;
399 
408 -(bool) isString;
409 
418 -(bool) isDouble;
419 
428 -(bool) isLong;
429 
438 -(bool) isDataPtr;
439 
440 @end
441 
Context is an interface object for storing data and interacting with methods from the Processing Bloc...
Definition: Context.h:65
typedef NS_ENUM(int32_t, CtxFormat)
Format of image data.
Definition: Context.h:14