public final class

TransformationResult.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.transformer.TransformationResult.Builder

Summary

Constructors
publicBuilder()

Creates a builder.

Methods
public TransformationResultbuild()

Builds a TransformationResult instance.

public TransformationResult.BuildersetAudioEncoderName(java.lang.String audioEncoderName)

Sets the name of the audio encoder used.

public TransformationResult.BuildersetAverageAudioBitrate(int averageAudioBitrate)

Sets the average audio bitrate.

public TransformationResult.BuildersetAverageVideoBitrate(int averageVideoBitrate)

Sets the average video bitrate.

public TransformationResult.BuildersetChannelCount(int channelCount)

Sets the channel count.

public TransformationResult.BuildersetColorInfo(ColorInfo colorInfo)

Sets the ColorInfo.

public TransformationResult.BuildersetDurationMs(long durationMs)

Sets the duration of the output in milliseconds.

public TransformationResult.BuildersetFileSizeBytes(long fileSizeBytes)

Sets the file size in bytes.

public TransformationResult.BuildersetHeight(int height)

Sets the height.

public TransformationResult.BuildersetProcessedInputs(<any> processedInputs)

Sets the processed inputs.

public TransformationResult.BuildersetSampleRate(int sampleRate)

Sets the sample rate.

public TransformationResult.BuildersetTransformationException(TransformationException transformationException)

Sets the TransformationException that caused the transformation to fail.

public TransformationResult.BuildersetVideoEncoderName(java.lang.String videoEncoderName)

Sets the name of the video encoder used.

public TransformationResult.BuildersetVideoFrameCount(int videoFrameCount)

Sets the number of video frames.

public TransformationResult.BuildersetWidth(int width)

Sets the width.

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

Constructors

public Builder()

Creates a builder.

Methods

public TransformationResult.Builder setProcessedInputs(<any> processedInputs)

Sets the processed inputs.

public TransformationResult.Builder setDurationMs(long durationMs)

Sets the duration of the output in milliseconds.

Must be positive or C.TIME_UNSET.

public TransformationResult.Builder setFileSizeBytes(long fileSizeBytes)

Sets the file size in bytes.

Must be positive or C.LENGTH_UNSET.

public TransformationResult.Builder setAverageAudioBitrate(int averageAudioBitrate)

Sets the average audio bitrate.

Must be positive or C.RATE_UNSET_INT.

public TransformationResult.Builder setChannelCount(int channelCount)

Sets the channel count.

Must be positive or C.LENGTH_UNSET.

public TransformationResult.Builder setSampleRate(int sampleRate)

Sets the sample rate.

Must be positive or C.RATE_UNSET_INT.

public TransformationResult.Builder setAudioEncoderName(java.lang.String audioEncoderName)

Sets the name of the audio encoder used.

public TransformationResult.Builder setAverageVideoBitrate(int averageVideoBitrate)

Sets the average video bitrate.

Must be positive or C.RATE_UNSET_INT.

public TransformationResult.Builder setColorInfo(ColorInfo colorInfo)

Sets the ColorInfo.

public TransformationResult.Builder setHeight(int height)

Sets the height.

Must be positive or C.LENGTH_UNSET.

public TransformationResult.Builder setWidth(int width)

Sets the width.

Must be positive or C.LENGTH_UNSET.

public TransformationResult.Builder setVideoFrameCount(int videoFrameCount)

Sets the number of video frames.

Must be positive or 0.

public TransformationResult.Builder setVideoEncoderName(java.lang.String videoEncoderName)

Sets the name of the video encoder used.

public TransformationResult.Builder setTransformationException(TransformationException transformationException)

Sets the TransformationException that caused the transformation to fail.

public TransformationResult build()

Builds a TransformationResult instance.