DefaultVideoFrameProcessor.Factory


class DefaultVideoFrameProcessor.Factory : VideoFrameProcessor.Factory


A factory for DefaultVideoFrameProcessor instances.

Summary

Public functions

DefaultVideoFrameProcessor.Factory.Builder!
DefaultVideoFrameProcessor!
create(
    context: Context!,
    debugViewProvider: DebugViewProvider!,
    outputColorInfo: ColorInfo!,
    renderFramesAutomatically: Boolean,
    listenerExecutor: Executor!,
    listener: VideoFrameProcessor.Listener!
)

Creates a new instance.

Public functions

create

fun create(
    context: Context!,
    debugViewProvider: DebugViewProvider!,
    outputColorInfo: ColorInfo!,
    renderFramesAutomatically: Boolean,
    listenerExecutor: Executor!,
    listener: VideoFrameProcessor.Listener!
): DefaultVideoFrameProcessor!

Creates a new instance.

Using HDR outputColorInfo requires OpenGL ES 3.0.

If outputting HDR content to a display, EGL_GL_COLORSPACE_BT2020_PQ_EXT or EGL_GL_COLORSPACE_BT2020_HLG_EXT is required.

outputColorInfo's colorRange values are currently ignored, in favor of COLOR_RANGE_FULL.

If outputColorInfois HDR, the context will be configured with EGL_CONFIG_ATTRIBUTES_RGBA_1010102. Otherwise, the context will be configured with EGL_CONFIG_ATTRIBUTES_RGBA_8888.

If invoking the listener on DefaultVideoFrameProcessor's internal thread is desired, pass a direct listenerExecutor.

If texture output is set, setOutputSurfaceInfo and renderOutputFrame will be no-ops, and renderFramesAutomatically will behave as if it is set to true.