3DiVi Face SDK  3.25.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
Context.h
1 #import <Foundation/Foundation.h>
2 #import "ContextTemplate.h"
3 #import "DynamicTemplateIndex.h"
4 
16 typedef NS_ENUM(int32_t, CtxFormat){
22  CtxFORMAT_BGR = 0,
23 
29  CtxFORMAT_RGB = 1,
30 
36  CtxFORMAT_BGRA8888 = 2,
37 
43  CtxFORMAT_YUV420 = 3,
44 
50  CtxFORMAT_YUV_NV12 = 4,
51 
57  CtxFORMAT_NV21 = 5,
58 };
59 
60 
67 @interface Context : NSObject
68 {
69  void *_ptr;
70 }
71 
72 @property (readonly) void* _Nonnull ptr;
73 
74 -(nonnull instancetype) init: (void* _Nonnull) context;
75 -(void) dealloc;
76 
85 -(void) setLong: (int64_t) value;
86 
95 -(void) setDouble: (double) value;
96 
105 -(void) setBool: (bool) value;
106 
115 -(void) setString: (NSString *_Nonnull) value;
116 
127 -(void) setDataPtr: (const uint8_t *_Nullable) value : (int) copy_sz;
128 
137 -(void) setNSData: (NSData* _Nonnull) data;
138 
148 -(void) setContextTemplate: (ContextTemplate* _Nonnull) value;
149 -(ContextTemplate* _Nonnull) getContextTemplate;
150 -(bool) isContextTemplate;
151 
152 -(void) setDynamicTemplateIndex: (DynamicTemplateIndex* _Nonnull) value;
153 -(DynamicTemplateIndex* _Nonnull) getDynamicTemplateIndex;
154 -(bool) isDynamicTemplateIndex;
155 
156 -(void) set: (Context* _Nonnull) other;
157 
166 -(int64_t) getLong;
167 
176 -(double) getDouble;
177 
186 -(bool) getBool;
187 
196 -(NSString *_Nonnull) getString;
197 
206 -(uint8_t* _Nonnull) getDataPtr;
207 
216 -(const NSData* _Nonnull) getNSData: (int64_t) size;
217 
226 -(Context* _Nonnull) at: (int) index;
227 
236 -(Context* _Nonnull) get: (NSString *_Nonnull) key;
237 
246 -(size_t) size;
247 
258 -(bool) contains: (NSString *_Nonnull) key;
259 
270 -(bool) compare: (Context *_Nonnull) other;
271 
278 -(void) clear;
279 
288 -(void) erase: (NSString *_Nonnull) key;
289 
298 -(void) reserve: (size_t) size;
299 
308 -(void) saveToJsonFile: (NSString *_Nonnull) path;
309 
310 
319 -(nonnull NSMutableArray*) getKeys;
320 
329 -(void) pushBack: (Context *_Nonnull) value;
330 
339 -(void) pushBackLong: (int64_t) value;
340 
349 -(void) pushBackDouble: (double) value;
350 
359 -(void) pushBackBool: (bool) value;
360 
369 -(void) pushBackString: (NSString *_Nonnull) value;
370 
379 -(bool) isNone;
380 
389 -(bool) isObject;
390 
399 -(bool) isArray;
400 
409 -(bool) isBool;
410 
419 -(bool) isString;
420 
429 -(bool) isDouble;
430 
439 -(bool) isLong;
440 
449 -(bool) isDataPtr;
450 
451 @end
452 
Definition: DynamicTemplateIndex.h:5
Context is an interface object for storing data and interacting with methods from the Processing Bloc...
Definition: Context.h:67
Definition: ContextTemplate.h:4
typedef NS_ENUM(int32_t, CtxFormat)
Format of image data.
Definition: Context.h:16