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
6ae2629c
authored
Mar 04, 2022
by
claincly
Committed by
Ian Baker
Mar 04, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add method to disable passthrough.
PiperOrigin-RevId: 432461547
parent
02066223
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
libraries/transformer/src/main/java/androidx/media3/transformer/Codec.java
libraries/transformer/src/main/java/androidx/media3/transformer/TransformerVideoRenderer.java
libraries/transformer/src/main/java/androidx/media3/transformer/Codec.java
View file @
6ae2629c
...
...
@@ -106,6 +106,11 @@ public interface Codec {
*/
Codec
createForVideoEncoding
(
Format
format
,
List
<
String
>
allowedMimeTypes
)
throws
TransformationException
;
/** Returns whether the video needs to be encoded because of encoder specific configuration. */
default
boolean
videoNeedsEncoding
()
{
return
false
;
}
}
/**
...
...
libraries/transformer/src/main/java/androidx/media3/transformer/TransformerVideoRenderer.java
View file @
6ae2629c
...
...
@@ -99,6 +99,9 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
}
private
boolean
shouldPassthrough
(
Format
inputFormat
)
{
if
(
encoderFactory
.
videoNeedsEncoding
())
{
return
false
;
}
if
(
transformationRequest
.
enableHdrEditing
)
{
return
false
;
}
...
...
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