BNBRealtimeProcessorMode
Objective-C
NS_ENUM(NSInteger, BNBRealtimeProcessorMode)
{
/** Synchronous mode. Frame drop not allowed, `pop` will block on processing. */
BNBRealtimeProcessorModeSync,
/**
* Synchronous mode when effect loaded. Frame drop not allowed.
* During effect loading `push` will forward frames to `pop`, `pop` will return SKIP.
* When effect loaded, `pop` will block on processing.
*/
BNBRealtimeProcessorModeSyncWhenEffectLoaded,
/**
* Asynchronous mode. Frame drop is allowed. `push` and `pop` do not block on processing.
* `push` can drop frames, if processor busy,
* `pop` can return EMPTY, if no processed frame data for now.
*/
BNBRealtimeProcessorModeAsync,
/**
* Asynchronous mode. Frame drop is allowed. `push` and `pop` do not block on processing.
* During effect loading `push` will forward frames to `pop`, `pop` will return SKIP.
* When effect loaded, `push` can drop frames, if processor busy,
* `pop` can return EMPTY, if no processed frame data for now.
*/
BNBRealtimeProcessorModeAsyncWhenEffectLoaded,
/**
* Asynchronous mode. Frame drop is allowed. `push` and `pop` do not block on processing.
* During processor bootstrap `push` will forward frames to `pop`, `pop` will return SKIP.
* When effect loaded, `push` can drop frames, if processor busy,
* `pop` can return EMPTY, if no processed frame data for now.
*/
BNBRealtimeProcessorModeAsyncWhenBootstrapped,
}
Swift
enum BNBRealtimeProcessorMode : Int, @unchecked Sendable
Undocumented
-
Synchronous mode. Frame drop not allowed,
popwill block on processing.Declaration
Objective-C
BNBRealtimeProcessorModeSyncSwift
case sync = 0 -
Synchronous mode when effect loaded. Frame drop not allowed. During effect loading
pushwill forward frames topop,popwill return SKIP. When effect loaded,popwill block on processing.Declaration
Objective-C
BNBRealtimeProcessorModeSyncWhenEffectLoadedSwift
case syncWhenEffectLoaded = 1 -
Asynchronous mode. Frame drop is allowed.
pushandpopdo not block on processing.pushcan drop frames, if processor busy,popcan return EMPTY, if no processed frame data for now.Declaration
Objective-C
BNBRealtimeProcessorModeAsyncSwift
case async = 2 -
Asynchronous mode. Frame drop is allowed.
pushandpopdo not block on processing. During effect loadingpushwill forward frames topop,popwill return SKIP. When effect loaded,pushcan drop frames, if processor busy,popcan return EMPTY, if no processed frame data for now.Declaration
Objective-C
BNBRealtimeProcessorModeAsyncWhenEffectLoadedSwift
case asyncWhenEffectLoaded = 3 -
Asynchronous mode. Frame drop is allowed.
pushandpopdo not block on processing. During processor bootstrappushwill forward frames topop,popwill return SKIP. When effect loaded,pushcan drop frames, if processor busy,popcan return EMPTY, if no processed frame data for now.Declaration
Objective-C
BNBRealtimeProcessorModeAsyncWhenBootstrappedSwift
case asyncWhenBootstrapped = 4
BNBRealtimeProcessorMode Enumeration Reference