DefaultGlFrameProcessor.Factory


class DefaultGlFrameProcessor.Factory : FrameProcessor.Factory


A FrameProcessor.Factory that creates DefaultGlFrameProcessor instances.

Summary

Public constructors

Factory(
    context: Context!,
    glObjectsProvider: GlObjectsProvider!,
    hardwareBufferJniWrapper: HardwareBufferJniWrapper!,
    glExecutorService: ListeningExecutorService!
)

Creates an instance.

Public functions

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

Creates a FrameProcessor that sends frames to the given FrameWriter.

Public constructors

Factory

Factory(
    context: Context!,
    glObjectsProvider: GlObjectsProvider!,
    hardwareBufferJniWrapper: HardwareBufferJniWrapper!,
    glExecutorService: ListeningExecutorService!
)

Creates an instance.

The caller is responsible for setting up OpenGL resources and releasing them after closing the built DefaultGlFrameProcessor. The caller should also shut down the glExecutorService.

Public functions

create

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

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.