public final class

VideoFrameProcessorTestRunner.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.test.utils.VideoFrameProcessorTestRunner.Builder

Overview

A builder for VideoFrameProcessorTestRunner instances.

Summary

Constructors
publicBuilder()

Creates a new instance with default values.

Methods
public VideoFrameProcessorTestRunnerbuild()

public VideoFrameProcessorTestRunner.BuildersetBitmapReader(VideoFrameProcessorTestRunner.BitmapReader bitmapReader)

Sets the VideoFrameProcessorTestRunner.BitmapReader.

public VideoFrameProcessorTestRunner.BuildersetEffects(Effect effects[])

Sets the Effects used.

public VideoFrameProcessorTestRunner.BuildersetEffects(java.util.List<Effect> effects)

Sets the Effects used.

public VideoFrameProcessorTestRunner.BuildersetOnEndedListener(VideoFrameProcessorTestRunner.OnVideoFrameProcessingEndedListener onEndedListener)

Sets the method to be called in .

public VideoFrameProcessorTestRunner.BuildersetOnOutputFrameAvailableForRenderingListener(VideoFrameProcessorTestRunner.OnOutputFrameAvailableForRenderingListener onOutputFrameAvailableListener)

Sets the method to be called in .

public VideoFrameProcessorTestRunner.BuildersetOutputColorInfo(ColorInfo outputColorInfo)

Sets the output ColorInfo.

public VideoFrameProcessorTestRunner.BuildersetOutputFileLabel(java.lang.String outputFileLabel)

Sets the output file label.

public VideoFrameProcessorTestRunner.BuildersetPixelWidthHeightRatio(float pixelWidthHeightRatio)

Sets the pixelWidthHeightRatio.

public VideoFrameProcessorTestRunner.BuildersetTestId(java.lang.String testId)

Sets the test ID, used to generate output files.

public VideoFrameProcessorTestRunner.BuildersetVideoAssetPath(java.lang.String videoAssetPath)

Sets the input video asset path.

public VideoFrameProcessorTestRunner.BuildersetVideoFrameProcessorFactory(VideoFrameProcessor.Factory videoFrameProcessorFactory)

Sets the .

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

Constructors

public Builder()

Creates a new instance with default values.

Methods

public VideoFrameProcessorTestRunner.Builder setTestId(java.lang.String testId)

Sets the test ID, used to generate output files.

This is a required value.

public VideoFrameProcessorTestRunner.Builder setVideoFrameProcessorFactory(VideoFrameProcessor.Factory videoFrameProcessorFactory)

Sets the .

This is a required value.

Sets the VideoFrameProcessorTestRunner.BitmapReader.

The default value is a VideoFrameProcessorTestRunner.SurfaceBitmapReader instance.

public VideoFrameProcessorTestRunner.Builder setVideoAssetPath(java.lang.String videoAssetPath)

Sets the input video asset path.

No default value is set. Must be set when the input is a video file.

public VideoFrameProcessorTestRunner.Builder setOutputFileLabel(java.lang.String outputFileLabel)

Sets the output file label.

This value will be postfixed after the testId to generated output files.

The default value is an empty string.

public VideoFrameProcessorTestRunner.Builder setEffects(java.util.List<Effect> effects)

Sets the Effects used.

The default value is an empty list.

public VideoFrameProcessorTestRunner.Builder setEffects(Effect effects[])

Sets the Effects used.

The default value is an empty list.

public VideoFrameProcessorTestRunner.Builder setPixelWidthHeightRatio(float pixelWidthHeightRatio)

Sets the pixelWidthHeightRatio.

The default value is VideoFrameProcessorTestRunner.Builder.DEFAULT_PIXEL_WIDTH_HEIGHT_RATIO.

public VideoFrameProcessorTestRunner.Builder setOutputColorInfo(ColorInfo outputColorInfo)

Sets the output ColorInfo.

The default value is ColorInfo.SDR_BT709_LIMITED.

public VideoFrameProcessorTestRunner.Builder setOnOutputFrameAvailableForRenderingListener(VideoFrameProcessorTestRunner.OnOutputFrameAvailableForRenderingListener onOutputFrameAvailableListener)

Sets the method to be called in .

The method will be called on the thread the VideoFrameProcessorTestRunner is created on.

The default value is a no-op.

Sets the method to be called in .

The default value is a no-op.