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
96f8771d
authored
Mar 18, 2022
by
hschlueter
Committed by
Ian Baker
Mar 18, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Always use FrameEditor for Nexus 5 and Moto Z Play.
PiperOrigin-RevId: 435628703
parent
e476337d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
libraries/transformer/src/main/java/androidx/media3/transformer/VideoTranscodingSamplePipeline.java
libraries/transformer/src/main/java/androidx/media3/transformer/VideoTranscodingSamplePipeline.java
View file @
96f8771d
...
...
@@ -101,7 +101,8 @@ import org.checkerframework.dataflow.qual.Pure;
if
(
transformationRequest
.
enableHdrEditing
||
inputFormat
.
height
!=
encoderSupportedFormat
.
height
||
inputFormat
.
width
!=
encoderSupportedFormat
.
width
||
scaleToFitFrameProcessor
.
shouldProcess
())
{
||
scaleToFitFrameProcessor
.
shouldProcess
()
||
shouldAlwaysUseFrameEditor
())
{
frameEditor
=
FrameEditor
.
create
(
context
,
...
...
@@ -275,6 +276,17 @@ import org.checkerframework.dataflow.qual.Pure;
.
build
();
}
/** Always use {@link FrameEditor} to work around device-specific encoder issues. */
private
static
boolean
shouldAlwaysUseFrameEditor
()
{
switch
(
Util
.
MODEL
)
{
case
"XT1635-02"
:
case
"Nexus 5"
:
return
true
;
default
:
return
false
;
}
}
/**
* Feeds at most one decoder output frame to the next step of the pipeline.
*
...
...
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