EnhancementSessionDecorator.Builder


public final class EnhancementSessionDecorator.Builder


Builder for EnhancementSessionDecorator factories.

Summary

Public constructors

Builder(
    Context context,
    FrameProcessor.Factory baseFrameProcessorFactory
)

Creates a builder with the specified context and base FrameProcessor.Factory.

Public methods

EnhancementSessionDecorator.Factory

Builds the FrameProcessor.Factory.

EnhancementSessionDecorator.Builder
@CanIgnoreReturnValue
setDeblurAndDenoiseVideoEnabled(
    boolean isDeblurAndDenoiseVideoEnabled
)

Sets whether deblur and denoise is enabled.

EnhancementSessionDecorator.Builder

Sets the Looper that must be used for all calls to the enhancement session and internal callbacks.

EnhancementSessionDecorator.Builder
@CanIgnoreReturnValue
setTonemappingEnabled(boolean isTonemappingEnabled)

Sets whether tone mapping is enabled.

EnhancementSessionDecorator.Builder
@CanIgnoreReturnValue
setUpscaleVideoEnabled(boolean isUpscaleVideoEnabled)

Sets whether upscale is enabled.

Public constructors

Builder

public Builder(
    Context context,
    FrameProcessor.Factory baseFrameProcessorFactory
)

Creates a builder with the specified context and base FrameProcessor.Factory.

Public methods

setDeblurAndDenoiseVideoEnabled

@CanIgnoreReturnValue
public EnhancementSessionDecorator.Builder setDeblurAndDenoiseVideoEnabled(
    boolean isDeblurAndDenoiseVideoEnabled
)

Sets whether deblur and denoise is enabled.

setLooper

@CanIgnoreReturnValue
public EnhancementSessionDecorator.Builder setLooper(Looper looper)

Sets the Looper that must be used for all calls to the enhancement session and internal callbacks.

If not set, an internal HandlerThread will be created and managed by each EnhancementSessionDecorator instance.

setTonemappingEnabled

@CanIgnoreReturnValue
public EnhancementSessionDecorator.Builder setTonemappingEnabled(boolean isTonemappingEnabled)

Sets whether tone mapping is enabled.

setUpscaleVideoEnabled

@CanIgnoreReturnValue
public EnhancementSessionDecorator.Builder setUpscaleVideoEnabled(boolean isUpscaleVideoEnabled)

Sets whether upscale is enabled.