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
4398af3a
authored
Dec 14, 2022
by
claincly
Committed by
Ian Baker
Dec 15, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Create frame processor in MCVR
PiperOrigin-RevId: 495368262
parent
91557ac9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
View file @
4398af3a
...
...
@@ -1097,6 +1097,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
if
(
codecOperatingRate
<=
assumedMinimumCodecOperatingRate
)
{
codecOperatingRate
=
CODEC_OPERATING_RATE_UNSET
;
}
onReadyToInitializeCodec
(
inputFormat
);
codecInitializingTimestamp
=
SystemClock
.
elapsedRealtime
();
MediaCodecAdapter
.
Configuration
configuration
=
getMediaCodecConfiguration
(
codecInfo
,
inputFormat
,
crypto
,
codecOperatingRate
);
...
...
@@ -1382,6 +1383,22 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
}
/**
* Called when ready to initialize the {@link MediaCodecAdapter}.
*
* <p>This method is called just before the renderer obtains the {@linkplain
* #getMediaCodecConfiguration configuration} for the {@link MediaCodecAdapter} and creates the
* adapter via the passed in {@link MediaCodecAdapter.Factory}.
*
* <p>The default implementation is a no-op.
*
* @param format The {@link Format} for which the codec is being configured.
* @throws ExoPlaybackException If an error occurs preparing for initializing the codec.
*/
protected
void
onReadyToInitializeCodec
(
Format
format
)
throws
ExoPlaybackException
{
// Do nothing.
}
/**
* Called when a {@link MediaCodec} has been created and configured.
*
* <p>The default implementation is a no-op.
...
...
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
View file @
4398af3a
This diff is collapsed.
Click to expand it.
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