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,
}
Swift
enum BNBRealtimeProcessorMode : Int, @unchecked Sendable
Undocumented
-
Synchronous mode. Frame drop not allowed,
pop
will block on processing.Declaration
Objective-C
BNBRealtimeProcessorModeSync
Swift
case sync = 0
-
Synchronous mode when effect loaded. Frame drop not allowed. During effect loading
push
will forward frames topop
,pop
will return SKIP. When effect loaded,pop
will block on processing.Declaration
Objective-C
BNBRealtimeProcessorModeSyncWhenEffectLoaded
Swift
case syncWhenEffectLoaded = 1
-
Asynchronous mode. Frame drop is allowed.
push
andpop
do not block on processing.push
can drop frames, if processor busy,pop
can return EMPTY, if no processed frame data for now.Declaration
Objective-C
BNBRealtimeProcessorModeAsync
Swift
case async = 2
-
Asynchronous mode. Frame drop is allowed.
push
andpop
do not block on processing. During effect loadingpush
will forward frames topop
,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.Declaration
Objective-C
BNBRealtimeProcessorModeAsyncWhenEffectLoaded
Swift
case asyncWhenEffectLoaded = 3