Package com.banuba.sdk.effect_player
Enum RealtimeProcessorMode
- java.lang.Object
-
- java.lang.Enum<RealtimeProcessorMode>
-
- com.banuba.sdk.effect_player.RealtimeProcessorMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RealtimeProcessorMode>
public enum RealtimeProcessorMode extends java.lang.Enum<RealtimeProcessorMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASYNC
Asynchronous mode.ASYNC_WHEN_EFFECT_LOADED
Asynchronous mode.SYNC
Synchronous mode.SYNC_WHEN_EFFECT_LOADED
Synchronous mode when effect loaded.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RealtimeProcessorMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RealtimeProcessorMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYNC
public static final RealtimeProcessorMode SYNC
Synchronous mode. Frame drop not allowed, `pop` will block on processing.
-
SYNC_WHEN_EFFECT_LOADED
public static final RealtimeProcessorMode 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
public static final RealtimeProcessorMode 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
public static final RealtimeProcessorMode 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.
-
-
Method Detail
-
values
public static RealtimeProcessorMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RealtimeProcessorMode c : RealtimeProcessorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RealtimeProcessorMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-