Banuba SDK
BNBConsistencyMode.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from effect_player.djinni
3 
4 #import <Foundation/Foundation.h>
5 
6 /**
7  * These modes describe the relationship between processing loop and render loop frames
8  *
9  * <h3> Synchronous - Asynchronous:</h3>
10  * <br/> - Synchronous means to output (render) a frame only once after a new frame was fully processed
11  * <br/> - Asynchronous may render multiple (not waiting for frx), further divided into Consistent and
12  * Inconsistent sub-modes. (note: Synchronous mode by definition is always Consistent.)
13  *
14  * <h3>Consistent - Inconsistent:</h3>
15  * <br/> - Consistent renders the processed frames as-is, the only change being in the advancement of time
16  * (e.g. animations, videos), while
17  * <br/> - Inconsistent changes the camera image for that frame to the latest available (not yet processed),
18  * resulting in smoother rendering in case frx is slow or unsteady.
19  *
20  * <h3>"Smart" modes:</h3>
21  * <br/> There are modes with the "when effect loaded" suffix. These modes behave exactly the same as
22  * corresponding modes without such suffix, but only with one difference - they are activated only
23  * when the effect was completely loaded.
24  * <br/> These modes can be used to avoid image freeze during effect activation.
25  */
26 typedef NS_ENUM(NSInteger, BNBConsistencyMode)
27 {
28  BNBConsistencyModeSynchronous,
29  /** switches to async-inconsistent mode while effect is loading */
30  BNBConsistencyModeSynchronousWhenEffectLoaded,
31  BNBConsistencyModeAsynchronousInconsistent,
32  BNBConsistencyModeAsynchronousConsistent,
33  /** switches to async-inconsistent mode while effect is loading */
34  BNBConsistencyModeAsynchronousConsistentWhenEffectLoaded,
35 };
NS_ENUM
typedef NS_ENUM(NSInteger, BNBConsistencyMode)
These modes describe the relationship between processing loop and render loop frames.
Definition: BNBConsistencyMode.h:26