Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2e7ca0b7
authored
Jan 17, 2022
by
hschlueter
Committed by
tonihei
Jan 17, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add javadoc to TransformationRequest's public fields.
PiperOrigin-RevId: 422325859
parent
ba58be2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformationRequest.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformationRequest.java
View file @
2e7ca0b7
...
...
@@ -130,6 +130,8 @@ public final class TransformationRequest {
* @return This builder.
*/
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): Check encoder codec capabilities in order to allow arbitrary
// resolutions and reasonable fallbacks.
...
...
@@ -188,10 +190,37 @@ public final class TransformationRequest {
}
}
/**
* A {@link Matrix transformation matrix} to apply to video frames.
*
* @see Builder#setTransformationMatrix(Matrix)
*/
public
final
Matrix
transformationMatrix
;
/**
* Whether the input should be flattened for media containing slow motion markers.
*
* @see Builder#setFlattenForSlowMotion(boolean)
*/
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
;
/**
* 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
;
/**
* 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
;
private
TransformationRequest
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment