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
b6e0ade9
authored
Sep 08, 2021
by
kimvde
Committed by
Ian Baker
Sep 08, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename transformer renderer methods to make them match
#exofixit PiperOrigin-RevId: 395479329
parent
bd38c28b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerAudioRenderer.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerAudioRenderer.java
View file @
b6e0ade9
...
@@ -118,15 +118,15 @@ import java.nio.ByteBuffer;
...
@@ -118,15 +118,15 @@ import java.nio.ByteBuffer;
if
(
ensureDecoderConfigured
())
{
if
(
ensureDecoderConfigured
())
{
if
(
ensureEncoderAndAudioProcessingConfigured
())
{
if
(
ensureEncoderAndAudioProcessingConfigured
())
{
while
(
drainEncoderToFeedMux
er
())
{}
while
(
feedMuxerFromEncod
er
())
{}
if
(
sonicAudioProcessor
.
isActive
())
{
if
(
sonicAudioProcessor
.
isActive
())
{
while
(
drainSonicToFeedEncoder
())
{}
while
(
feedEncoderFromSonic
())
{}
while
(
drainDecoderToFeedSonic
())
{}
while
(
feedSonicFromDecoder
())
{}
}
else
{
}
else
{
while
(
drainDecoderToFeedEn
coder
())
{}
while
(
feedEncoderFromDe
coder
())
{}
}
}
}
}
while
(
feedDecoder
InputFromSource
())
{}
while
(
feedDecoder
FromInput
())
{}
}
}
}
}
...
@@ -134,7 +134,7 @@ import java.nio.ByteBuffer;
...
@@ -134,7 +134,7 @@ import java.nio.ByteBuffer;
* Attempts to write encoder output data to the muxer, and returns whether it may be possible to
* Attempts to write encoder output data to the muxer, and returns whether it may be possible to
* write more data immediately by calling this method again.
* write more data immediately by calling this method again.
*/
*/
private
boolean
drainEncoderToFeedMux
er
()
{
private
boolean
feedMuxerFromEncod
er
()
{
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
if
(!
hasEncoderOutputFormat
)
{
if
(!
hasEncoderOutputFormat
)
{
@Nullable
Format
encoderOutputFormat
=
encoder
.
getOutputFormat
();
@Nullable
Format
encoderOutputFormat
=
encoder
.
getOutputFormat
();
...
@@ -170,7 +170,7 @@ import java.nio.ByteBuffer;
...
@@ -170,7 +170,7 @@ import java.nio.ByteBuffer;
* Attempts to pass decoder output data to the encoder, and returns whether it may be possible to
* Attempts to pass decoder output data to the encoder, and returns whether it may be possible to
* pass more data immediately by calling this method again.
* pass more data immediately by calling this method again.
*/
*/
private
boolean
drainDecoderToFeedEn
coder
()
{
private
boolean
feedEncoderFromDe
coder
()
{
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
if
(!
encoder
.
maybeDequeueInputBuffer
(
encoderInputBuffer
))
{
if
(!
encoder
.
maybeDequeueInputBuffer
(
encoderInputBuffer
))
{
...
@@ -201,7 +201,7 @@ import java.nio.ByteBuffer;
...
@@ -201,7 +201,7 @@ import java.nio.ByteBuffer;
* Attempts to pass audio processor output data to the encoder, and returns whether it may be
* Attempts to pass audio processor output data to the encoder, and returns whether it may be
* possible to pass more data immediately by calling this method again.
* possible to pass more data immediately by calling this method again.
*/
*/
private
boolean
drainSonicToFeedEncoder
()
{
private
boolean
feedEncoderFromSonic
()
{
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
MediaCodecAdapterWrapper
encoder
=
checkNotNull
(
this
.
encoder
);
if
(!
encoder
.
maybeDequeueInputBuffer
(
encoderInputBuffer
))
{
if
(!
encoder
.
maybeDequeueInputBuffer
(
encoderInputBuffer
))
{
return
false
;
return
false
;
...
@@ -225,7 +225,7 @@ import java.nio.ByteBuffer;
...
@@ -225,7 +225,7 @@ import java.nio.ByteBuffer;
* Attempts to process decoder output data, and returns whether it may be possible to process more
* Attempts to process decoder output data, and returns whether it may be possible to process more
* data immediately by calling this method again.
* data immediately by calling this method again.
*/
*/
private
boolean
drainDecoderToFeedSonic
()
{
private
boolean
feedSonicFromDecoder
()
{
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
if
(
drainingSonicForSpeedChange
)
{
if
(
drainingSonicForSpeedChange
)
{
...
@@ -268,7 +268,7 @@ import java.nio.ByteBuffer;
...
@@ -268,7 +268,7 @@ import java.nio.ByteBuffer;
* Attempts to pass input data to the decoder, and returns whether it may be possible to pass more
* Attempts to pass input data to the decoder, and returns whether it may be possible to pass more
* data immediately by calling this method again.
* data immediately by calling this method again.
*/
*/
private
boolean
feedDecoder
InputFromSource
()
{
private
boolean
feedDecoder
FromInput
()
{
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
MediaCodecAdapterWrapper
decoder
=
checkNotNull
(
this
.
decoder
);
if
(!
decoder
.
maybeDequeueInputBuffer
(
decoderInputBuffer
))
{
if
(!
decoder
.
maybeDequeueInputBuffer
(
decoderInputBuffer
))
{
return
false
;
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