BNBFrameProcessor
Objective-C
@interface BNBFrameProcessor : NSObject
/** Realtime feed processor. See RealtimeProcessorMode for more info. */
+ (nullable BNBFrameProcessor *)createRealtimeProcessor:(BNBRealtimeProcessorMode)mode
config:(nullable BNBProcessorConfiguration *)config;
/**
* Photo processor. `push` to set photo, processing happens on `pop` synchronously.
* Several `pop` calls return same result without unnecessary processing,
* except case when recognizer pipeline was changed by EffectPlayer, processing will be restarted.
*/
+ (nullable BNBFrameProcessor *)createPhotoProcessor:(nullable BNBProcessorConfiguration *)config;
/** Video processor. Consistent `push` - `pop` will process frames synchronously. */
+ (nullable BNBFrameProcessor *)createVideoProcessor:(nullable BNBProcessorConfiguration *)config;
- (BNBProcessorType)getType;
- (void)push:(nullable BNBFrameData *)fd;
- (nonnull BNBProcessorResult *)pop;
@end
Swift
class BNBFrameProcessor : NSObject
Undocumented
-
Realtime feed processor. See RealtimeProcessorMode for more info.
Declaration
Objective-C
+ (nullable BNBFrameProcessor *) createRealtimeProcessor:(BNBRealtimeProcessorMode)mode config:(nullable BNBProcessorConfiguration *)config;
Swift
class func createRealtimeProcessor(_ mode: BNBRealtimeProcessorMode, config: BNBProcessorConfiguration?) -> BNBFrameProcessor?
-
Photo processor.
push
to set photo, processing happens onpop
synchronously. Severalpop
calls return same result without unnecessary processing, except case when recognizer pipeline was changed by EffectPlayer, processing will be restarted.Declaration
Objective-C
+ (nullable BNBFrameProcessor *)createPhotoProcessor: (nullable BNBProcessorConfiguration *)config;
Swift
class func createPhotoProcessor(_ config: BNBProcessorConfiguration?) -> BNBFrameProcessor?
-
Video processor. Consistent
push
-pop
will process frames synchronously.Declaration
Objective-C
+ (nullable BNBFrameProcessor *)createVideoProcessor: (nullable BNBProcessorConfiguration *)config;
Swift
class func createVideoProcessor(_ config: BNBProcessorConfiguration?) -> BNBFrameProcessor?
-
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)push:(nullable BNBFrameData *)fd;
Swift
func push(_ fd: BNBFrameData?)
-
Undocumented