TransformationRequest


@UnstableApi
public final class TransformationRequest


A media transformation request.

Summary

Nested types

A builder for TransformationRequest instances.

Public fields

final @Nullable String

The requested output audio sample MIME type, or null if inferred from the input.

final int

The Composition.HdrMode specifying how to handle HDR input video.

final int

The requested height of the output video.

final @Nullable String

The requested output video sample MIME type, or null if inferred from the input.

Public methods

TransformationRequest.Builder

Returns a new TransformationRequest.Builder initialized with the values of this instance.

boolean
int
String

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

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.

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()