TransformationRequest
@UnstableApi
public final class TransformationRequest
A media transformation request.
Summary
Nested types |
|---|
public final class TransformationRequest.BuilderA builder for |
Public fields |
|
|---|---|
final @Nullable String |
The requested output audio sample |
final int |
The |
final int |
The requested height of the output video. |
final @Nullable String |
The requested output video sample |
Public methods |
|
|---|---|
TransformationRequest.Builder |
Returns a new |
boolean |
|
int |
hashCode() |
String |
toString() |
Public fields
audioMimeType
public final @Nullable String audioMimeType
The requested output audio sample MIME type, or null if inferred from the input.
| See also | |
|---|---|
setAudioMimeType |
hdrMode
@Composition.HdrMode
public final int hdrMode
The Composition.HdrMode specifying how to handle HDR input video.
| See also | |
|---|---|
setHdrMode |
outputHeight
public final int outputHeight
The requested height of the output video.
This field is
- Always set to
LENGTH_UNSETin theoriginalTransformationRequestparameter ofonFallbackApplied. - Set to
LENGTH_UNSETin thefallbackTransformationRequestparameter ofonFallbackAppliedto indicate that it is inferred from the input.
videoMimeType
public final @Nullable String videoMimeType
The requested output video sample MIME type, or null if inferred from the input.
| See also | |
|---|---|
setVideoMimeType |
Public methods
buildUpon
public TransformationRequest.Builder buildUpon()
Returns a new TransformationRequest.Builder initialized with the values of this instance.