Banuba SDK
Loading...
Searching...
No Matches
realtime_processor_mode.hpp File Reference
#include <functional>

Go to the source code of this file.

Enumerations

enum class  bnb::interfaces::realtime_processor_mode : int { sync , sync_when_effect_loaded , async , async_when_effect_loaded }
 

Enumeration Type Documentation

◆ realtime_processor_mode

Enumerator
sync 

Synchronous mode.

Frame drop not allowed, pop will block on processing.

sync_when_effect_loaded 

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.

async 

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.

async_when_effect_loaded 

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.

Definition at line 14 of file realtime_processor_mode.hpp.

14 : int {
15 /** Synchronous mode. Frame drop not allowed, `pop` will block on processing. */
16 sync,
17 /**
18 * Synchronous mode when effect loaded. Frame drop not allowed.
19 * During effect loading `push` will forward frames to `pop`, `pop` will return SKIP.
20 * When effect loaded, `pop` will block on processing.
21 */
23 /**
24 * Asynchronous mode. Frame drop is allowed. `push` and `pop` do not block on processing.
25 * `push` can drop frames, if processor busy,
26 * `pop` can return EMPTY, if no processed frame data for now.
27 */
28 async,
29 /**
30 * Asynchronous mode. Frame drop is allowed. `push` and `pop` do not block on processing.
31 * During effect loading `push` will forward frames to `pop`, `pop` will return SKIP.
32 * When effect loaded, `push` can drop frames, if processor busy,
33 * `pop` can return EMPTY, if no processed frame data for now.
34 */
36};
@ sync_when_effect_loaded
Synchronous mode when effect loaded.
@ async_when_effect_loaded
Asynchronous mode.