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
8e14611d
authored
Sep 05, 2022
by
huangdarwin
Committed by
Marc Baechinger
Oct 19, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Minor javadoc and scoping cleanup.
No functional changes. PiperOrigin-RevId: 472245797
parent
87926f0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/DefaultCodec.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/EncoderUtil.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Transformer.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/DefaultCodec.java
View file @
8e14611d
...
...
@@ -39,7 +39,6 @@ import com.google.android.exoplayer2.util.Log;
import
com.google.android.exoplayer2.util.MediaFormatUtil
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.TraceUtil
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.video.ColorInfo
;
import
com.google.common.base.Ascii
;
import
com.google.common.collect.ImmutableList
;
...
...
@@ -106,7 +105,7 @@ public final class DefaultCodec implements Codec {
@Nullable
Surface
inputSurface
=
null
;
try
{
boolean
requestedHdrToneMapping
=
Util
.
SDK_INT
>=
29
&&
Api29
.
isSdrToneMappingEnabled
(
configurationMediaFormat
);
SDK_INT
>=
29
&&
Api29
.
isSdrToneMappingEnabled
(
configurationMediaFormat
);
mediaCodec
=
MediaCodec
.
createByCodecName
(
mediaCodecName
);
configureCodec
(
mediaCodec
,
configurationMediaFormat
,
isDecoder
,
outputSurface
);
if
(
SDK_INT
>=
29
&&
requestedHdrToneMapping
)
{
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/EncoderUtil.java
View file @
8e14611d
...
...
@@ -86,7 +86,7 @@ public final class EncoderUtil {
for
(
int
i
=
0
;
i
<
mediaCodecInfos
.
size
();
i
++)
{
MediaCodecInfo
mediaCodecInfo
=
mediaCodecInfos
.
get
(
i
);
if
(
mediaCodecInfo
.
isAlias
()
||
!
EncoderUtil
.
isFeatureSupported
(
||
!
isFeatureSupported
(
mediaCodecInfo
,
mimeType
,
MediaCodecInfo
.
CodecCapabilities
.
FEATURE_HdrEditing
))
{
continue
;
}
...
...
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Transformer.java
View file @
8e14611d
...
...
@@ -535,8 +535,9 @@ public final class Transformer {
* @param originalTransformationRequest The unsupported {@link TransformationRequest} used when
* building {@link Transformer}.
* @param fallbackTransformationRequest The alternative {@link TransformationRequest}, with
* supported {@link TransformationRequest#outputHeight} and {@link
* TransformationRequest#videoMimeType} values set.
* supported {@link TransformationRequest#audioMimeType}, {@link
* TransformationRequest#videoMimeType}, {@link TransformationRequest#outputHeight}, and
* {@link TransformationRequest#enableRequestSdrToneMapping} values set.
*/
default
void
onFallbackApplied
(
MediaItem
inputMediaItem
,
...
...
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