Class TransformationResult.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.TransformationResult.Builder
-
- Enclosing class:
- TransformationResult
@Deprecated public static final class TransformationResult.Builder extends Object
Deprecated.UseExportResult.Builder
instead.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Deprecated.Creates a builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TransformationResult
build()
Deprecated.Builds aTransformationResult
instance.TransformationResult.Builder
setAudioEncoderName(String audioEncoderName)
Deprecated.Sets the name of the audio encoder used.TransformationResult.Builder
setAverageAudioBitrate(int averageAudioBitrate)
Deprecated.Sets the average audio bitrate.TransformationResult.Builder
setAverageVideoBitrate(int averageVideoBitrate)
Deprecated.Sets the average video bitrate.TransformationResult.Builder
setChannelCount(int channelCount)
Deprecated.Sets the channel count.TransformationResult.Builder
setColorInfo(ColorInfo colorInfo)
Deprecated.Sets theColorInfo
.TransformationResult.Builder
setDurationMs(long durationMs)
Deprecated.Sets the duration of the output in milliseconds.TransformationResult.Builder
setFileSizeBytes(long fileSizeBytes)
Deprecated.Sets the file size in bytes.TransformationResult.Builder
setHeight(int height)
Deprecated.Sets the height.TransformationResult.Builder
setProcessedInputs(ImmutableList<TransformationResult.ProcessedInput> processedInputs)
Deprecated.Sets the processed inputs.TransformationResult.Builder
setSampleRate(int sampleRate)
Deprecated.Sets the sample rate.TransformationResult.Builder
setTransformationException(TransformationException transformationException)
Deprecated.Sets theTransformationException
that caused the transformation to fail.TransformationResult.Builder
setVideoEncoderName(String videoEncoderName)
Deprecated.Sets the name of the video encoder used.TransformationResult.Builder
setVideoFrameCount(int videoFrameCount)
Deprecated.Sets the number of video frames.TransformationResult.Builder
setWidth(int width)
Deprecated.Sets the width.
-
-
-
Method Detail
-
setProcessedInputs
@CanIgnoreReturnValue public TransformationResult.Builder setProcessedInputs(ImmutableList<TransformationResult.ProcessedInput> processedInputs)
Deprecated.Sets the processed inputs.
-
setDurationMs
@CanIgnoreReturnValue public TransformationResult.Builder setDurationMs(long durationMs)
Deprecated.Sets the duration of the output in milliseconds.Must be positive or
C.TIME_UNSET
.
-
setFileSizeBytes
@CanIgnoreReturnValue public TransformationResult.Builder setFileSizeBytes(long fileSizeBytes)
Deprecated.Sets the file size in bytes.Must be positive or
C.LENGTH_UNSET
.
-
setAverageAudioBitrate
@CanIgnoreReturnValue public TransformationResult.Builder setAverageAudioBitrate(int averageAudioBitrate)
Deprecated.Sets the average audio bitrate.Must be positive or
C.RATE_UNSET_INT
.
-
setChannelCount
@CanIgnoreReturnValue public TransformationResult.Builder setChannelCount(int channelCount)
Deprecated.Sets the channel count.Must be positive or
C.LENGTH_UNSET
.
-
setSampleRate
@CanIgnoreReturnValue public TransformationResult.Builder setSampleRate(int sampleRate)
Deprecated.Sets the sample rate.Must be positive or
C.RATE_UNSET_INT
.
-
setAudioEncoderName
@CanIgnoreReturnValue public TransformationResult.Builder setAudioEncoderName(@Nullable String audioEncoderName)
Deprecated.Sets the name of the audio encoder used.
-
setAverageVideoBitrate
@CanIgnoreReturnValue public TransformationResult.Builder setAverageVideoBitrate(int averageVideoBitrate)
Deprecated.Sets the average video bitrate.Must be positive or
C.RATE_UNSET_INT
.
-
setColorInfo
@CanIgnoreReturnValue public TransformationResult.Builder setColorInfo(@Nullable ColorInfo colorInfo)
Deprecated.Sets theColorInfo
.
-
setHeight
@CanIgnoreReturnValue public TransformationResult.Builder setHeight(int height)
Deprecated.Sets the height.Must be positive or
C.LENGTH_UNSET
.
-
setWidth
@CanIgnoreReturnValue public TransformationResult.Builder setWidth(int width)
Deprecated.Sets the width.Must be positive or
C.LENGTH_UNSET
.
-
setVideoFrameCount
@CanIgnoreReturnValue public TransformationResult.Builder setVideoFrameCount(int videoFrameCount)
Deprecated.Sets the number of video frames.Must be positive or
0
.
-
setVideoEncoderName
@CanIgnoreReturnValue public TransformationResult.Builder setVideoEncoderName(@Nullable String videoEncoderName)
Deprecated.Sets the name of the video encoder used.
-
setTransformationException
@CanIgnoreReturnValue public TransformationResult.Builder setTransformationException(@Nullable TransformationException transformationException)
Deprecated.Sets theTransformationException
that caused the transformation to fail.
-
build
public TransformationResult build()
Deprecated.Builds aTransformationResult
instance.
-
-