EnhancementSessionDecorator.Builder


class EnhancementSessionDecorator.Builder


Builder for EnhancementSessionDecorator factories.

Summary

Public constructors

Builder(
    context: Context!,
    baseFrameProcessorFactory: FrameProcessor.Factory!
)

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

Public functions

EnhancementSessionDecorator.Factory!

Builds the FrameProcessor.Factory.

EnhancementSessionDecorator.Builder!
@CanIgnoreReturnValue
setDeblurAndDenoiseVideoEnabled(
    isDeblurAndDenoiseVideoEnabled: Boolean
)

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!

Sets whether tone mapping is enabled.

EnhancementSessionDecorator.Builder!

Sets whether upscale is enabled.

Public constructors

Builder

Builder(
    context: Context!,
    baseFrameProcessorFactory: FrameProcessor.Factory!
)

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

Public functions

setDeblurAndDenoiseVideoEnabled

@CanIgnoreReturnValue
fun setDeblurAndDenoiseVideoEnabled(
    isDeblurAndDenoiseVideoEnabled: Boolean
): EnhancementSessionDecorator.Builder!

Sets whether deblur and denoise is enabled.

setLooper

@CanIgnoreReturnValue
fun setLooper(looper: Looper!): EnhancementSessionDecorator.Builder!

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
fun setTonemappingEnabled(isTonemappingEnabled: Boolean): EnhancementSessionDecorator.Builder!

Sets whether tone mapping is enabled.

setUpscaleVideoEnabled

@CanIgnoreReturnValue
fun setUpscaleVideoEnabled(isUpscaleVideoEnabled: Boolean): EnhancementSessionDecorator.Builder!

Sets whether upscale is enabled.