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
3f615040
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
b83c2cb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Codec.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerVideoRenderer.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Codec.java
View file @
3f615040
...
...
@@ -104,6 +104,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
;
}
}
/**
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerVideoRenderer.java
View file @
3f615040
...
...
@@ -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