Banuba SDK
BNBConsistencyMode.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file 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 typedef NS_ENUM(NSInteger, BNBConsistencyMode)
21 {
22  BNBConsistencyModeSynchronous,
23  /** switches to async-inconsistent mode while effect is loading */
24  BNBConsistencyModeSynchronousWhenEffectLoaded,
25  BNBConsistencyModeAsynchronousInconsistent,
26  BNBConsistencyModeAsynchronousConsistent,
27  /** switches to async-inconsistent mode while effect is loading */
28  BNBConsistencyModeAsynchronousConsistentWhenEffectLoaded,
29 };
NS_ENUM
typedef NS_ENUM(NSInteger, BNBConsistencyMode)
These modes describe the relationship between processing loop and render loop frames.
Definition: BNBConsistencyMode.h:20