Commit fdffdfee by huangdarwin Committed by microkatz

Minor javadoc and scoping cleanup.

No functional changes.

PiperOrigin-RevId: 472245797
(cherry picked from commit 8e14611d)
parent 7cb2b54b
...@@ -39,7 +39,6 @@ import com.google.android.exoplayer2.util.Log; ...@@ -39,7 +39,6 @@ import com.google.android.exoplayer2.util.Log;
import com.google.android.exoplayer2.util.MediaFormatUtil; import com.google.android.exoplayer2.util.MediaFormatUtil;
import com.google.android.exoplayer2.util.MimeTypes; import com.google.android.exoplayer2.util.MimeTypes;
import com.google.android.exoplayer2.util.TraceUtil; import com.google.android.exoplayer2.util.TraceUtil;
import com.google.android.exoplayer2.util.Util;
import com.google.android.exoplayer2.video.ColorInfo; import com.google.android.exoplayer2.video.ColorInfo;
import com.google.common.base.Ascii; import com.google.common.base.Ascii;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
...@@ -106,7 +105,7 @@ public final class DefaultCodec implements Codec { ...@@ -106,7 +105,7 @@ public final class DefaultCodec implements Codec {
@Nullable Surface inputSurface = null; @Nullable Surface inputSurface = null;
try { try {
boolean requestedHdrToneMapping = boolean requestedHdrToneMapping =
Util.SDK_INT >= 29 && Api29.isSdrToneMappingEnabled(configurationMediaFormat); SDK_INT >= 29 && Api29.isSdrToneMappingEnabled(configurationMediaFormat);
mediaCodec = MediaCodec.createByCodecName(mediaCodecName); mediaCodec = MediaCodec.createByCodecName(mediaCodecName);
configureCodec(mediaCodec, configurationMediaFormat, isDecoder, outputSurface); configureCodec(mediaCodec, configurationMediaFormat, isDecoder, outputSurface);
if (SDK_INT >= 29 && requestedHdrToneMapping) { if (SDK_INT >= 29 && requestedHdrToneMapping) {
......
...@@ -86,7 +86,7 @@ public final class EncoderUtil { ...@@ -86,7 +86,7 @@ public final class EncoderUtil {
for (int i = 0; i < mediaCodecInfos.size(); i++) { for (int i = 0; i < mediaCodecInfos.size(); i++) {
MediaCodecInfo mediaCodecInfo = mediaCodecInfos.get(i); MediaCodecInfo mediaCodecInfo = mediaCodecInfos.get(i);
if (mediaCodecInfo.isAlias() if (mediaCodecInfo.isAlias()
|| !EncoderUtil.isFeatureSupported( || !isFeatureSupported(
mediaCodecInfo, mimeType, MediaCodecInfo.CodecCapabilities.FEATURE_HdrEditing)) { mediaCodecInfo, mimeType, MediaCodecInfo.CodecCapabilities.FEATURE_HdrEditing)) {
continue; continue;
} }
......
...@@ -535,8 +535,9 @@ public final class Transformer { ...@@ -535,8 +535,9 @@ public final class Transformer {
* @param originalTransformationRequest The unsupported {@link TransformationRequest} used when * @param originalTransformationRequest The unsupported {@link TransformationRequest} used when
* building {@link Transformer}. * building {@link Transformer}.
* @param fallbackTransformationRequest The alternative {@link TransformationRequest}, with * @param fallbackTransformationRequest The alternative {@link TransformationRequest}, with
* supported {@link TransformationRequest#outputHeight} and {@link * supported {@link TransformationRequest#audioMimeType}, {@link
* TransformationRequest#videoMimeType} values set. * TransformationRequest#videoMimeType}, {@link TransformationRequest#outputHeight}, and
* {@link TransformationRequest#enableRequestSdrToneMapping} values set.
*/ */
default void onFallbackApplied( default void onFallbackApplied(
MediaItem inputMediaItem, MediaItem inputMediaItem,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment