public interface

VideoFrameProcessor.Factory

 androidx.media3.common.VideoFrameProcessor.Factory

Subclasses:

DefaultVideoFrameProcessor.Factory

Overview

A factory for VideoFrameProcessor instances.

Summary

Methods
public VideoFrameProcessorcreate(Context context, DebugViewProvider debugViewProvider, ColorInfo outputColorInfo, boolean renderFramesAutomatically, java.util.concurrent.Executor listenerExecutor, VideoFrameProcessor.Listener listener)

Creates a new VideoFrameProcessor instance.

Methods

public VideoFrameProcessor create(Context context, DebugViewProvider debugViewProvider, ColorInfo outputColorInfo, boolean renderFramesAutomatically, java.util.concurrent.Executor listenerExecutor, VideoFrameProcessor.Listener listener)

Creates a new VideoFrameProcessor instance.

Parameters:

context: A .
debugViewProvider: A DebugViewProvider. In production usage, pass DebugViewProvider.NONE.
outputColorInfo: The ColorInfo for the output frames.
renderFramesAutomatically: If true, the instance will render output frames to the output surface automatically as VideoFrameProcessor is done processing them. If false, the VideoFrameProcessor will block until VideoFrameProcessor.renderOutputFrame(long) is called, to render or drop the frame.
listenerExecutor: The java.util.concurrent.Executor on which the listener is invoked.
listener: A VideoFrameProcessor.Listener.

Returns:

A new instance.