mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Add javadoc to TransformationRequest's public fields.
PiperOrigin-RevId: 422325859
This commit is contained in:
parent
61a0bf3f8c
commit
a18b64d20d
@ -132,6 +132,8 @@ public final class TransformationRequest {
|
|||||||
* @return This builder.
|
* @return This builder.
|
||||||
*/
|
*/
|
||||||
public Builder setResolution(int outputHeight) {
|
public Builder setResolution(int outputHeight) {
|
||||||
|
// TODO(b/209781577): Define outputHeight in the javadoc as height can be ambiguous for videos
|
||||||
|
// where rotationDegrees is set in the Format.
|
||||||
// TODO(b/201293185): Restructure to input a Presentation class.
|
// TODO(b/201293185): Restructure to input a Presentation class.
|
||||||
// TODO(b/201293185): Check encoder codec capabilities in order to allow arbitrary
|
// TODO(b/201293185): Check encoder codec capabilities in order to allow arbitrary
|
||||||
// resolutions and reasonable fallbacks.
|
// resolutions and reasonable fallbacks.
|
||||||
@ -190,10 +192,37 @@ public final class TransformationRequest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A {@link Matrix transformation matrix} to apply to video frames.
|
||||||
|
*
|
||||||
|
* @see Builder#setTransformationMatrix(Matrix)
|
||||||
|
*/
|
||||||
public final Matrix transformationMatrix;
|
public final Matrix transformationMatrix;
|
||||||
|
/**
|
||||||
|
* Whether the input should be flattened for media containing slow motion markers.
|
||||||
|
*
|
||||||
|
* @see Builder#setFlattenForSlowMotion(boolean)
|
||||||
|
*/
|
||||||
public final boolean flattenForSlowMotion;
|
public final boolean flattenForSlowMotion;
|
||||||
|
/**
|
||||||
|
* The requested height of the output video, or {@link C#LENGTH_UNSET} if inferred from the input.
|
||||||
|
*
|
||||||
|
* @see Builder#setResolution(int)
|
||||||
|
*/
|
||||||
public final int outputHeight;
|
public final int outputHeight;
|
||||||
|
/**
|
||||||
|
* The requested output audio sample {@link MimeTypes MIME type}, or {@code null} if inferred from
|
||||||
|
* the input.
|
||||||
|
*
|
||||||
|
* @see Builder#setAudioMimeType(String)
|
||||||
|
*/
|
||||||
@Nullable public final String audioMimeType;
|
@Nullable public final String audioMimeType;
|
||||||
|
/**
|
||||||
|
* The requested output video sample {@link MimeTypes MIME type}, or {@code null} if inferred from
|
||||||
|
* the input.
|
||||||
|
*
|
||||||
|
* @see Builder#setVideoMimeType(String)
|
||||||
|
*/
|
||||||
@Nullable public final String videoMimeType;
|
@Nullable public final String videoMimeType;
|
||||||
|
|
||||||
private TransformationRequest(
|
private TransformationRequest(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user