VideoFrameProcessorTestRunner.Builder


class VideoFrameProcessorTestRunner.Builder


A builder for VideoFrameProcessorTestRunner instances.

Summary

Public constructors

Creates a new instance with default values.

Public functions

VideoFrameProcessorTestRunner!
VideoFrameProcessorTestRunner.Builder!

Sets the BitmapReader.

VideoFrameProcessorTestRunner.Builder!

Sets the Effects used.

VideoFrameProcessorTestRunner.Builder!

Sets the Effects used.

VideoFrameProcessorTestRunner.Builder!

Sets the method to be called in onEnded.

VideoFrameProcessorTestRunner.Builder!

Sets the method to be called in onOutputFrameAvailableForRendering.

VideoFrameProcessorTestRunner.Builder!

Sets the output ColorInfo.

VideoFrameProcessorTestRunner.Builder!

Sets the output file label.

VideoFrameProcessorTestRunner.Builder!

Sets the pixelWidthHeightRatio.

VideoFrameProcessorTestRunner.Builder!

Sets the test ID, used to generate output files.

VideoFrameProcessorTestRunner.Builder!

Sets the input video asset path.

VideoFrameProcessorTestRunner.Builder!

Sets the VideoFrameProcessor.Factory.

Public constructors

Builder

Builder()

Creates a new instance with default values.

Public functions

setBitmapReader

@CanIgnoreReturnValue
fun setBitmapReader(
    bitmapReader: VideoFrameProcessorTestRunner.BitmapReader!
): VideoFrameProcessorTestRunner.Builder!

Sets the BitmapReader.

The default value is a SurfaceBitmapReader instance.

setEffects

@CanIgnoreReturnValue
fun setEffects(effects: Array<Effect!>!): VideoFrameProcessorTestRunner.Builder!

Sets the Effects used.

The default value is an empty list.

setEffects

@CanIgnoreReturnValue
fun setEffects(effects: (Mutable)List<Effect!>!): VideoFrameProcessorTestRunner.Builder!

Sets the Effects used.

The default value is an empty list.

setOnEndedListener

@CanIgnoreReturnValue
fun setOnEndedListener(
    onEndedListener: VideoFrameProcessorTestRunner.OnVideoFrameProcessingEndedListener!
): VideoFrameProcessorTestRunner.Builder!

Sets the method to be called in onEnded.

The default value is a no-op.

setOnOutputFrameAvailableForRenderingListener

@CanIgnoreReturnValue
fun setOnOutputFrameAvailableForRenderingListener(
    onOutputFrameAvailableListener: VideoFrameProcessorTestRunner.OnOutputFrameAvailableForRenderingListener!
): VideoFrameProcessorTestRunner.Builder!

Sets the method to be called in onOutputFrameAvailableForRendering.

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

The default value is a no-op.

setOutputColorInfo

@CanIgnoreReturnValue
fun setOutputColorInfo(outputColorInfo: ColorInfo!): VideoFrameProcessorTestRunner.Builder!

Sets the output ColorInfo.

The default value is SDR_BT709_LIMITED.

setOutputFileLabel

@CanIgnoreReturnValue
fun setOutputFileLabel(outputFileLabel: String!): VideoFrameProcessorTestRunner.Builder!

Sets the output file label.

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

The default value is an empty string.

setPixelWidthHeightRatio

@CanIgnoreReturnValue
fun setPixelWidthHeightRatio(pixelWidthHeightRatio: Float): VideoFrameProcessorTestRunner.Builder!

Sets the pixelWidthHeightRatio.

The default value is DEFAULT_PIXEL_WIDTH_HEIGHT_RATIO.

setTestId

@CanIgnoreReturnValue
fun setTestId(testId: String!): VideoFrameProcessorTestRunner.Builder!

Sets the test ID, used to generate output files.

This is a required value.

setVideoAssetPath

@CanIgnoreReturnValue
fun setVideoAssetPath(videoAssetPath: String!): VideoFrameProcessorTestRunner.Builder!

Sets the input video asset path.

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

setVideoFrameProcessorFactory

@CanIgnoreReturnValue
fun setVideoFrameProcessorFactory(
    videoFrameProcessorFactory: VideoFrameProcessor.Factory!
): VideoFrameProcessorTestRunner.Builder!

Sets the VideoFrameProcessor.Factory.

This is a required value.