Package com.banuba.sdk.offscreen
Class OffscreenEffectPlayerConfig.Builder
java.lang.Object
com.banuba.sdk.offscreen.OffscreenEffectPlayerConfig.Builder
- Enclosing class:
- OffscreenEffectPlayerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theOffscreenEffectPlayerConfig
object.setDebugSaveFrames
(boolean debugSaveFrames) Set debug save frames flag.setDebugSaveFramesDivider
(int debugSaveFramesDivider) Set debug save frames divider.setRealtimeProcessorMode
(com.banuba.sdk.effect_player.RealtimeProcessorMode mode) Sets RealtimeProcessor mode.setUseFutureFrameFilter
(boolean use) Enables the filter of future frames.
-
Constructor Details
-
Builder
-
-
Method Details
-
setDebugSaveFrames
Set debug save frames flag.- Parameters:
debugSaveFrames
- debug save frames flag value.- Returns:
OffscreenEffectPlayerConfig.Builder
instance.
-
setDebugSaveFramesDivider
@NonNull public OffscreenEffectPlayerConfig.Builder setDebugSaveFramesDivider(int debugSaveFramesDivider) Set debug save frames divider.- Parameters:
debugSaveFramesDivider
- debug save frames divider value.- Returns:
OffscreenEffectPlayerConfig.Builder
instance.
-
setRealtimeProcessorMode
@NonNull public OffscreenEffectPlayerConfig.Builder setRealtimeProcessorMode(com.banuba.sdk.effect_player.RealtimeProcessorMode mode) Sets RealtimeProcessor mode. See the definition of RealtimeProcessorMode for details. By default configured to RealtimeProcessorMode.SYNC_WHEN_EFFECT_LOADED. In this mode, the effect player does not wait for new results from the recognizer and renders the data collected for the previously processed frame. This improves the performance and reduces CPU usage.- Parameters:
mode
- the desired realtime processor mode for the Effect Player.- Returns:
OffscreenEffectPlayerConfig.Builder
instance.
-
setUseFutureFrameFilter
Enables the filter of future frames. By default filter is disabled, If enabled, the OEP returns the previous frame for the rendering as an output, but overall reduces the jittering of the face mask via correction of data of the previous frame based on results collected for the current frame.- Parameters:
use
- if true the future frame filter will be enabled for the Effect Player.- Returns:
OffscreenEffectPlayerConfig.Builder
instance.
-
build
Build theOffscreenEffectPlayerConfig
object.- Returns:
OffscreenEffectPlayerConfig
object.
-