VideoFrameProcessor.Factory


public interface VideoFrameProcessor.Factory


A factory for VideoFrameProcessor instances.

Summary

Public methods

abstract VideoFrameProcessor
create(
    Context context,
    DebugViewProvider debugViewProvider,
    ColorInfo outputColorInfo,
    boolean renderFramesAutomatically,
    Executor listenerExecutor,
    VideoFrameProcessor.Listener listener
)

Creates a new VideoFrameProcessor instance.

Public methods

create

abstract VideoFrameProcessor create(
    Context context,
    DebugViewProvider debugViewProvider,
    ColorInfo outputColorInfo,
    boolean renderFramesAutomatically,
    Executor listenerExecutor,
    VideoFrameProcessor.Listener listener
)

Creates a new VideoFrameProcessor instance.

Parameters
Context context

A Context.

DebugViewProvider debugViewProvider

A DebugViewProvider.

ColorInfo outputColorInfo

The ColorInfo for the output frames.

boolean renderFramesAutomatically

If true, the instance will render output frames to the output surface automatically as VideoFrameProcessor is done processing them. If false, the will block until renderOutputFrame is called, to render or drop the frame.

Executor listenerExecutor

The Executor on which the listener is invoked.

VideoFrameProcessor.Listener listener

A Listener.

Returns
VideoFrameProcessor

A new instance.

Throws
androidx.media3.common.VideoFrameProcessingException

If a problem occurs while creating the .