SimpleGlFrameProcessor.Factory


class SimpleGlFrameProcessor.Factory : FrameProcessor.Factory


Summary

Public constructors

Factory(
    context: Context,
    hardwareBufferJniWrapper: HardwareBufferJniWrapper,
    overlaySettingsProvider: (HardwareBufferFrame) -> OverlaySettings
)

Public functions

open FrameProcessor
create(
    output: FrameWriter,
    listenerExecutor: Executor,
    listener: FrameProcessor.Listener
)

Creates a FrameProcessor that sends frames to the given FrameWriter.

Public constructors

Factory

Factory(
    context: Context,
    hardwareBufferJniWrapper: HardwareBufferJniWrapper,
    overlaySettingsProvider: (HardwareBufferFrame) -> OverlaySettings = { _ -> StaticOverlaySettings.Builder().build() }
)

Public functions

create

open fun create(
    output: FrameWriter,
    listenerExecutor: Executor,
    listener: FrameProcessor.Listener
): FrameProcessor

Creates a FrameProcessor that sends frames to the given FrameWriter.

Parameters
output: FrameWriter

The FrameWriter to which the FrameProcessor outputs.

listenerExecutor: Executor

The Executor on which the listener is invoked.

listener: FrameProcessor.Listener

A Listener to be invoked for FrameProcessor events.