BNBFeature
Objective-C
@protocol BNBFeature
/**must return unique id (e.g. a feature pointer or a true random number(most likely) satisfies this criteria) */
- (int64_t)id;
- (nonnull NSString *)name;
- (BOOL)requiresMainThread;
- (void)clean;
- (void)process:(nullable BNBFrameData *)frameData;
- (void)postprocess:(nullable BNBFrameData *)fd
futureFd:(nullable BNBFrameData *)futureFd;
@end
Swift
protocol BNBFeature
Undocumented
-
must return unique id (e.g. a feature pointer or a true random number(most likely) satisfies this criteria)
Declaration
Objective-C
- (int64_t)id;
Swift
func id() -> Int64
-
Undocumented
Declaration
Objective-C
- (nonnull NSString *)name;
Swift
func name() -> String
-
Undocumented
Declaration
Objective-C
- (BOOL)requiresMainThread;
Swift
func requiresMainThread() -> Bool
-
Undocumented
Declaration
Objective-C
- (void)clean;
Swift
func clean()
-
Undocumented
Declaration
Objective-C
- (void)process:(nullable BNBFrameData *)frameData;
Swift
func process(_ frameData: BNBFrameData?)
-
Undocumented
Declaration
Objective-C
- (void)postprocess:(nullable BNBFrameData *)fd futureFd:(nullable BNBFrameData *)futureFd;
Swift
func postprocess(_ fd: BNBFrameData?, futureFd: BNBFrameData?)