TransformationResult.Builder


public final class TransformationResult.Builder


Summary

Public constructors

Creates a builder.

Public methods

TransformationResult

Builds a TransformationResult instance.

TransformationResult.Builder

Sets the name of the audio encoder used.

TransformationResult.Builder

Sets the average audio bitrate.

TransformationResult.Builder

Sets the average video bitrate.

TransformationResult.Builder

Sets the channel count.

TransformationResult.Builder

Sets the ColorInfo.

TransformationResult.Builder

Sets the duration of the output in milliseconds.

TransformationResult.Builder

Sets the file size in bytes.

TransformationResult.Builder

Sets the height.

TransformationResult.Builder

Sets the processed inputs.

TransformationResult.Builder

Sets the sample rate.

TransformationResult.Builder

Sets the TransformationException that caused the transformation to fail.

TransformationResult.Builder

Sets the name of the video encoder used.

TransformationResult.Builder

Sets the number of video frames.

TransformationResult.Builder

Sets the width.

Public constructors

Builder

public Builder()

Creates a builder.

Public methods

build

public TransformationResult build()

Builds a TransformationResult instance.

setAudioEncoderName

@CanIgnoreReturnValue
public TransformationResult.Builder setAudioEncoderName(@Nullable String audioEncoderName)

Sets the name of the audio encoder used.

setAverageAudioBitrate

@CanIgnoreReturnValue
public TransformationResult.Builder setAverageAudioBitrate(int averageAudioBitrate)

Sets the average audio bitrate.

Must be positive or RATE_UNSET_INT.

setAverageVideoBitrate

@CanIgnoreReturnValue
public TransformationResult.Builder setAverageVideoBitrate(int averageVideoBitrate)

Sets the average video bitrate.

Must be positive or RATE_UNSET_INT.

setChannelCount

@CanIgnoreReturnValue
public TransformationResult.Builder setChannelCount(int channelCount)

Sets the channel count.

Must be positive or LENGTH_UNSET.

setDurationMs

@CanIgnoreReturnValue
public TransformationResult.Builder setDurationMs(long durationMs)

Sets the duration of the output in milliseconds.

Must be positive or TIME_UNSET.

setFileSizeBytes

@CanIgnoreReturnValue
public TransformationResult.Builder setFileSizeBytes(long fileSizeBytes)

Sets the file size in bytes.

Must be positive or LENGTH_UNSET.

setHeight

@CanIgnoreReturnValue
public TransformationResult.Builder setHeight(int height)

Sets the height.

Must be positive or LENGTH_UNSET.

setSampleRate

@CanIgnoreReturnValue
public TransformationResult.Builder setSampleRate(int sampleRate)

Sets the sample rate.

Must be positive or RATE_UNSET_INT.

setTransformationException

@CanIgnoreReturnValue
public TransformationResult.Builder setTransformationException(
    @Nullable TransformationException transformationException
)

Sets the TransformationException that caused the transformation to fail.

setVideoEncoderName

@CanIgnoreReturnValue
public TransformationResult.Builder setVideoEncoderName(@Nullable String videoEncoderName)

Sets the name of the video encoder used.

setVideoFrameCount

@CanIgnoreReturnValue
public TransformationResult.Builder setVideoFrameCount(int videoFrameCount)

Sets the number of video frames.

Must be positive or 0.

setWidth

@CanIgnoreReturnValue
public TransformationResult.Builder setWidth(int width)

Sets the width.

Must be positive or LENGTH_UNSET.