TransformationResult.Builder


class TransformationResult.Builder


Summary

Public constructors

Creates a builder.

Public functions

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

Builder()

Creates a builder.

Public functions

build

fun build(): TransformationResult!

Builds a TransformationResult instance.

setAudioEncoderName

@CanIgnoreReturnValue
fun setAudioEncoderName(audioEncoderName: String?): TransformationResult.Builder!

Sets the name of the audio encoder used.

setAverageAudioBitrate

@CanIgnoreReturnValue
fun setAverageAudioBitrate(averageAudioBitrate: Int): TransformationResult.Builder!

Sets the average audio bitrate.

Must be positive or RATE_UNSET_INT.

setAverageVideoBitrate

@CanIgnoreReturnValue
fun setAverageVideoBitrate(averageVideoBitrate: Int): TransformationResult.Builder!

Sets the average video bitrate.

Must be positive or RATE_UNSET_INT.

setChannelCount

@CanIgnoreReturnValue
fun setChannelCount(channelCount: Int): TransformationResult.Builder!

Sets the channel count.

Must be positive or LENGTH_UNSET.

setDurationMs

@CanIgnoreReturnValue
fun setDurationMs(durationMs: Long): TransformationResult.Builder!

Sets the duration of the output in milliseconds.

Must be positive or TIME_UNSET.

setFileSizeBytes

@CanIgnoreReturnValue
fun setFileSizeBytes(fileSizeBytes: Long): TransformationResult.Builder!

Sets the file size in bytes.

Must be positive or LENGTH_UNSET.

setHeight

@CanIgnoreReturnValue
fun setHeight(height: Int): TransformationResult.Builder!

Sets the height.

Must be positive or LENGTH_UNSET.

setSampleRate

@CanIgnoreReturnValue
fun setSampleRate(sampleRate: Int): TransformationResult.Builder!

Sets the sample rate.

Must be positive or RATE_UNSET_INT.

setTransformationException

@CanIgnoreReturnValue
fun setTransformationException(
    transformationException: TransformationException?
): TransformationResult.Builder!

Sets the TransformationException that caused the transformation to fail.

setVideoEncoderName

@CanIgnoreReturnValue
fun setVideoEncoderName(videoEncoderName: String?): TransformationResult.Builder!

Sets the name of the video encoder used.

setVideoFrameCount

@CanIgnoreReturnValue
fun setVideoFrameCount(videoFrameCount: Int): TransformationResult.Builder!

Sets the number of video frames.

Must be positive or 0.

setWidth

@CanIgnoreReturnValue
fun setWidth(width: Int): TransformationResult.Builder!

Sets the width.

Must be positive or LENGTH_UNSET.