Banuba SDK
BNBFrameProcessor.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from effect_player.djinni
3 
4 #import "BNBFrameData.h"
5 #import "BNBProcessorResult.h"
6 #import "BNBProcessorType.h"
8 #import <Foundation/Foundation.h>
9 @class BNBFrameProcessor;
11 
12 
13 
14 #ifndef DJINNI_EXPORT
15  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
16 #endif
17 
19 @interface BNBFrameProcessor : NSObject
20 
21 /** Realtime feed processor. See RealtimeProcessorMode for more info. */
22 + (nullable BNBFrameProcessor *)createRealtimeProcessor:(BNBRealtimeProcessorMode)mode
23  config:(nullable BNBProcessorConfiguration *)config;
24 
25 /**
26  * Photo processor. `push` to set photo, processing happens on `pop` synchronously.
27  * Several `pop` calls return same result without unnecessary processing,
28  * except case when recognizer pipeline was changed by EffectPlayer, processing will be restarted.
29  */
30 + (nullable BNBFrameProcessor *)createPhotoProcessor:(nullable BNBProcessorConfiguration *)config;
31 
32 /** Video processor. Consistent `push` - `pop` will process frames synchronously. */
33 + (nullable BNBFrameProcessor *)createVideoProcessor:(nullable BNBProcessorConfiguration *)config;
34 
35 - (BNBProcessorType)getType;
36 
37 - (void)push:(nullable BNBFrameData *)fd;
38 
39 - (nonnull BNBProcessorResult *)pop;
40 
41 @end
BNBFrameProcessor
Definition: BNBFrameProcessor.h:19
-[BNBFrameProcessor getType]
BNBProcessorType getType()
BNBProcessorType.h
BNBProcessorResult
Definition: BNBProcessorResult.h:14
BNBProcessorConfiguration
Definition: BNBProcessorConfiguration.h:14
DJINNI_EXPORT
#define DJINNI_EXPORT
for order of values in action units array see action_units_indices enum
Definition: BNBActionUnits.h:9
-[BNBFrameProcessor pop]
nonnull BNBProcessorResult * pop()
BNBFrameData.h
BNBFrameData
getters throw exceptions when data are not available android NNs usually output gpu masks
Definition: BNBFrameData.h:35
BNBRealtimeProcessorMode.h
BNBProcessorResult.h