public final class

DefaultVideoFrameProcessor.Factory

extends java.lang.Object

implements VideoFrameProcessor.Factory

 java.lang.Object

↳androidx.media3.effect.DefaultVideoFrameProcessor.Factory

Overview

A factory for DefaultVideoFrameProcessor instances.

Summary

Methods
public DefaultVideoFrameProcessor.Factory.BuilderbuildUpon()

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

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

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 ColorInfo.colorRange values are currently ignored, in favor of C.COLOR_RANGE_FULL.

If outputColorInfo is HDR, the context will be configured with GlUtil.EGL_CONFIG_ATTRIBUTES_RGBA_1010102. Otherwise, the context will be configured with GlUtil.EGL_CONFIG_ATTRIBUTES_RGBA_8888.

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

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