Files
rr3-apk/smali_classes4/com/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

5524 lines
139 KiB
Smali

.class public Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;
.super Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x10
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;,
Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
}
.end annotation
# static fields
.field private static final KEY_CROP_BOTTOM:Ljava/lang/String; = "crop-bottom"
.field private static final KEY_CROP_LEFT:Ljava/lang/String; = "crop-left"
.field private static final KEY_CROP_RIGHT:Ljava/lang/String; = "crop-right"
.field private static final KEY_CROP_TOP:Ljava/lang/String; = "crop-top"
.field private static final MAX_PENDING_OUTPUT_STREAM_OFFSET_COUNT:I = 0xa
.field private static final STANDARD_LONG_EDGE_VIDEO_PX:[I
.field private static final TAG:Ljava/lang/String; = "MediaCodecVideoRenderer"
.field private static deviceNeedsSetOutputSurfaceWorkaround:Z
.field private static evaluatedDeviceNeedsSetOutputSurfaceWorkaround:Z
# instance fields
.field private final allowedJoiningTimeMs:J
.field private buffersInCodecCount:I
.field private codecMaxValues:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
.field private codecNeedsSetOutputSurfaceWorkaround:Z
.field private consecutiveDroppedFrameCount:I
.field private final context:Landroid/content/Context;
.field private currentHeight:I
.field private currentPixelWidthHeightRatio:F
.field private currentUnappliedRotationDegrees:I
.field private currentWidth:I
.field private final deviceNeedsAutoFrcWorkaround:Z
.field private droppedFrameAccumulationStartTimeMs:J
.field private droppedFrames:I
.field private dummySurface:Landroid/view/Surface;
.field private final eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
.field private final frameReleaseTimeHelper:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
.field private initialPositionUs:J
.field private joiningDeadlineMs:J
.field private lastInputTimeUs:J
.field private lastRenderTimeUs:J
.field private final maxDroppedFramesToNotify:I
.field private outputStreamOffsetUs:J
.field private pendingOutputStreamOffsetCount:I
.field private final pendingOutputStreamOffsetsUs:[J
.field private final pendingOutputStreamSwitchTimesUs:[J
.field private pendingPixelWidthHeightRatio:F
.field private pendingRotationDegrees:I
.field private renderedFirstFrame:Z
.field private reportedHeight:I
.field private reportedPixelWidthHeightRatio:F
.field private reportedUnappliedRotationDegrees:I
.field private reportedWidth:I
.field private scalingMode:I
.field private surface:Landroid/view/Surface;
.field private tunneling:Z
.field private tunnelingAudioSessionId:I
.field tunnelingOnFrameRenderedListener:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
# direct methods
.method static constructor <clinit>()V
.locals 1
const/16 v0, 0x9
new-array v0, v0, [I
fill-array-data v0, :array_0
sput-object v0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->STANDARD_LONG_EDGE_VIDEO_PX:[I
return-void
:array_0
.array-data 4
0x780
0x640
0x5a0
0x500
0x3c0
0x356
0x280
0x21c
0x1e0
.end array-data
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;)V
.locals 2
const-wide/16 v0, 0x0
.line 108
invoke-direct {p0, p1, p2, v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;-><init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;J)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;J)V
.locals 8
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, -0x1
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-wide v3, p3
.line 114
invoke-direct/range {v0 .. v7}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;-><init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;JLandroid/os/Handler;Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;JLandroid/os/Handler;Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;I)V
.locals 10
.param p5 # Landroid/os/Handler;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p6 # Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const/4 v5, 0x0
const/4 v6, 0x0
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-wide v3, p3
move-object v7, p5
move-object/from16 v8, p6
move/from16 v9, p7
.line 127
invoke-direct/range {v0 .. v9}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;-><init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;JLcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;ZLandroid/os/Handler;Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;JLcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;ZLandroid/os/Handler;Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;I)V
.locals 1
.param p5 # Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p7 # Landroid/os/Handler;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p8 # Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;",
"J",
"Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager<",
"Lcom/mbridge/msdk/playercommon/exoplayer2/drm/FrameworkMediaCrypto;",
">;Z",
"Landroid/os/Handler;",
"Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;",
"I)V"
}
.end annotation
const/4 v0, 0x2
.line 144
invoke-direct {p0, v0, p2, p5, p6}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;-><init>(ILcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;Z)V
iput-wide p3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->allowedJoiningTimeMs:J
iput p9, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maxDroppedFramesToNotify:I
.line 147
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->context:Landroid/content/Context;
.line 148
new-instance p2, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
invoke-direct {p2, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;-><init>(Landroid/content/Context;)V
iput-object p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->frameReleaseTimeHelper:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
.line 149
new-instance p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
invoke-direct {p1, p7, p8}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;-><init>(Landroid/os/Handler;Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener;)V
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
.line 150
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsAutoFrcWorkaround()Z
move-result p1
iput-boolean p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsAutoFrcWorkaround:Z
const/16 p1, 0xa
new-array p2, p1, [J
iput-object p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
new-array p1, p1, [J
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamSwitchTimesUs:[J
const-wide p1, -0x7fffffffffffffffL # -4.9E-324
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
const/4 p1, -0x1
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
const/high16 p1, -0x40800000 # -1.0f
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingPixelWidthHeightRatio:F
const/4 p1, 0x1
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->scalingMode:I
.line 161
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearReportedVideoSize()V
return-void
.end method
.method private static areAdaptationCompatible(ZLcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Z
.locals 2
.line 964
iget-object v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
iget-object v1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
iget v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->rotationDegrees:I
iget v1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->rotationDegrees:I
if-ne v0, v1, :cond_1
if-nez p0, :cond_0
iget p0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
iget v0, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
if-ne p0, v0, :cond_1
iget p0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
iget v0, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
if-ne p0, v0, :cond_1
:cond_0
iget-object p0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->colorInfo:Lcom/mbridge/msdk/playercommon/exoplayer2/video/ColorInfo;
iget-object p1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->colorInfo:Lcom/mbridge/msdk/playercommon/exoplayer2/video/ColorInfo;
.line 967
invoke-static {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1
const/4 p0, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x0
:goto_0
return p0
.end method
.method private clearRenderedFirstFrame()V
.locals 3
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
.line 709
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x17
if-lt v0, v1, :cond_0
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
if-eqz v0, :cond_0
.line 710
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->getCodec()Landroid/media/MediaCodec;
move-result-object v0
if-eqz v0, :cond_0
.line 713
new-instance v1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
const/4 v2, 0x0
invoke-direct {v1, p0, v0, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;-><init>(Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;Landroid/media/MediaCodec;Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$1;)V
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunnelingOnFrameRenderedListener:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
:cond_0
return-void
.end method
.method private clearReportedVideoSize()V
.locals 2
const/4 v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedWidth:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedHeight:I
const/high16 v1, -0x40800000 # -1.0f
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedPixelWidthHeightRatio:F
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedUnappliedRotationDegrees:I
return-void
.end method
.method private static configureTunnelingV21(Landroid/media/MediaFormat;I)V
.locals 2
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
const-string v0, "tunneled-playback"
const/4 v1, 0x1
.line 786
invoke-virtual {p0, v0, v1}, Landroid/media/MediaFormat;->setFeatureEnabled(Ljava/lang/String;Z)V
const-string v0, "audio-session-id"
.line 787
invoke-virtual {p0, v0, p1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
return-void
.end method
.method private static deviceNeedsAutoFrcWorkaround()Z
.locals 2
.line 977
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x16
if-gt v0, v1, :cond_0
const-string v0, "foster"
sget-object v1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->DEVICE:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "NVIDIA"
sget-object v1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->MANUFACTURER:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method private static getCodecMaxSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Landroid/graphics/Point;
.locals 13
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil$DecoderQueryException;
}
.end annotation
.line 866
iget v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
iget v1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
const/4 v2, 0x0
if-le v0, v1, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
move v3, v2
:goto_0
if-eqz v3, :cond_1
move v4, v0
goto :goto_1
:cond_1
move v4, v1
:goto_1
if-eqz v3, :cond_2
move v0, v1
:cond_2
int-to-float v1, v0
int-to-float v5, v4
div-float/2addr v1, v5
sget-object v5, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->STANDARD_LONG_EDGE_VIDEO_PX:[I
.line 870
array-length v6, v5
:goto_2
const/4 v7, 0x0
if-ge v2, v6, :cond_a
aget v8, v5, v2
int-to-float v9, v8
mul-float/2addr v9, v1
float-to-int v9, v9
if-le v8, v4, :cond_a
if-gt v9, v0, :cond_3
goto :goto_7
.line 875
:cond_3
sget v7, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v10, 0x15
if-lt v7, v10, :cond_6
if-eqz v3, :cond_4
move v7, v9
goto :goto_3
:cond_4
move v7, v8
:goto_3
if-eqz v3, :cond_5
goto :goto_4
:cond_5
move v8, v9
.line 876
:goto_4
invoke-virtual {p0, v7, v8}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->alignVideoSizeV21(II)Landroid/graphics/Point;
move-result-object v7
.line 878
iget v8, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->frameRate:F
.line 879
iget v9, v7, Landroid/graphics/Point;->x:I
iget v10, v7, Landroid/graphics/Point;->y:I
float-to-double v11, v8
invoke-virtual {p0, v9, v10, v11, v12}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->isVideoSizeAndRateSupportedV21(IID)Z
move-result v8
if-eqz v8, :cond_9
return-object v7
:cond_6
const/16 v7, 0x10
.line 884
invoke-static {v8, v7}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->ceilDivide(II)I
move-result v8
mul-int/2addr v8, v7
.line 885
invoke-static {v9, v7}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->ceilDivide(II)I
move-result v9
mul-int/2addr v9, v7
mul-int v7, v8, v9
.line 886
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil;->maxH264DecodableFrameSize()I
move-result v10
if-gt v7, v10, :cond_9
.line 887
new-instance p0, Landroid/graphics/Point;
if-eqz v3, :cond_7
move p1, v9
goto :goto_5
:cond_7
move p1, v8
:goto_5
if-eqz v3, :cond_8
goto :goto_6
:cond_8
move v8, v9
.line 888
:goto_6
invoke-direct {p0, p1, v8}, Landroid/graphics/Point;-><init>(II)V
return-object p0
:cond_9
add-int/lit8 v2, v2, 0x1
goto :goto_2
:cond_a
:goto_7
return-object v7
.end method
.method private static getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
.locals 3
.line 897
iget v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->maxInputSize:I
const/4 v1, -0x1
if-eq v0, v1, :cond_1
.line 901
iget-object p0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->initializationData:Ljava/util/List;
invoke-interface {p0}, Ljava/util/List;->size()I
move-result p0
const/4 v0, 0x0
move v1, v0
:goto_0
if-ge v0, p0, :cond_0
.line 903
iget-object v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->initializationData:Ljava/util/List;
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
array-length v2, v2
add-int/2addr v1, v2
add-int/lit8 v0, v0, 0x1
goto :goto_0
.line 905
:cond_0
iget p0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->maxInputSize:I
add-int/2addr p0, v1
return p0
.line 909
:cond_1
iget-object v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
iget v1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
iget p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
invoke-static {p0, v0, v1, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Ljava/lang/String;II)I
move-result p0
return p0
.end method
.method private static getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Ljava/lang/String;II)I
.locals 5
const/4 v0, -0x1
if-eq p2, v0, :cond_9
if-ne p3, v0, :cond_0
goto/16 :goto_5
.line 924
:cond_0
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
move-result v1
const/4 v2, 0x4
const/4 v3, 0x3
const/4 v4, 0x2
sparse-switch v1, :sswitch_data_0
:goto_0
move p1, v0
goto :goto_1
:sswitch_0
const-string v1, "video/x-vnd.on2.vp9"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
const/4 p1, 0x5
goto :goto_1
:sswitch_1
const-string v1, "video/x-vnd.on2.vp8"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_2
goto :goto_0
:cond_2
move p1, v2
goto :goto_1
:sswitch_2
const-string v1, "video/avc"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_3
goto :goto_0
:cond_3
move p1, v3
goto :goto_1
:sswitch_3
const-string v1, "video/mp4v-es"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_4
goto :goto_0
:cond_4
move p1, v4
goto :goto_1
:sswitch_4
const-string v1, "video/hevc"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_5
goto :goto_0
:cond_5
const/4 p1, 0x1
goto :goto_1
:sswitch_5
const-string v1, "video/3gpp"
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_6
goto :goto_0
:cond_6
const/4 p1, 0x0
:goto_1
packed-switch p1, :pswitch_data_0
return v0
:pswitch_0
mul-int/2addr p2, p3
:goto_2
move v2, v4
goto :goto_4
.line 931
:pswitch_1
sget-object p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->MODEL:Ljava/lang/String;
const-string v1, "BRAVIA 4K 2015"
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_8
const-string v1, "Amazon"
sget-object v2, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->MANUFACTURER:Ljava/lang/String;
.line 932
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_7
const-string v1, "KFSOWI"
.line 933
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_8
const-string v1, "AFTS"
.line 934
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_7
iget-boolean p0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->secure:Z
if-eqz p0, :cond_7
goto :goto_3
:cond_7
const/16 p0, 0x10
.line 940
invoke-static {p2, p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->ceilDivide(II)I
move-result p1
invoke-static {p3, p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->ceilDivide(II)I
move-result p0
mul-int/2addr p1, p0
mul-int/lit16 p2, p1, 0x100
goto :goto_2
:cond_8
:goto_3
return v0
:pswitch_2
mul-int/2addr p2, p3
:goto_4
mul-int/2addr p2, v3
mul-int/2addr v2, v4
.line 958
div-int/2addr p2, v2
return p2
:cond_9
:goto_5
return v0
:sswitch_data_0
.sparse-switch
-0x63306f58 -> :sswitch_5
-0x63185e82 -> :sswitch_4
0x46cdc642 -> :sswitch_3
0x4f62373a -> :sswitch_2
0x5f50bed8 -> :sswitch_1
0x5f50bed9 -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_2
:pswitch_0
:pswitch_1
:pswitch_0
:pswitch_2
.end packed-switch
.end method
.method private static isBufferLate(J)Z
.locals 2
const-wide/16 v0, -0x7530
cmp-long p0, p0, v0
if-gez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method private static isBufferVeryLate(J)Z
.locals 2
const-wide/32 v0, -0x7a120
cmp-long p0, p0, v0
if-gez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method private maybeNotifyDroppedFrames()V
.locals 6
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
if-lez v0, :cond_0
.line 761
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iget-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrameAccumulationStartTimeMs:J
sub-long v2, v0, v2
iget-object v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget v5, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
.line 763
invoke-virtual {v4, v5, v2, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->droppedFrames(IJ)V
const/4 v2, 0x0
iput v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrameAccumulationStartTimeMs:J
:cond_0
return-void
.end method
.method private maybeNotifyVideoSizeChanged()V
.locals 5
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
if-eq v2, v1, :cond_2
:cond_0
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedWidth:I
if-ne v1, v0, :cond_1
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedHeight:I
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
if-ne v1, v2, :cond_1
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedUnappliedRotationDegrees:I
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentUnappliedRotationDegrees:I
if-ne v1, v2, :cond_1
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedPixelWidthHeightRatio:F
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
cmpl-float v1, v1, v2
if-eqz v1, :cond_2
:cond_1
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
iget v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentUnappliedRotationDegrees:I
iget v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
.line 743
invoke-virtual {v1, v0, v2, v3, v4}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->videoSizeChanged(IIIF)V
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedWidth:I
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedHeight:I
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentUnappliedRotationDegrees:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedUnappliedRotationDegrees:I
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedPixelWidthHeightRatio:F
:cond_2
return-void
.end method
.method private maybeRenotifyRenderedFirstFrame()V
.locals 2
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
.line 727
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->renderedFirstFrame(Landroid/view/Surface;)V
:cond_0
return-void
.end method
.method private maybeRenotifyVideoSizeChanged()V
.locals 5
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedWidth:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedHeight:I
if-eq v2, v1, :cond_1
:cond_0
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedHeight:I
iget v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedUnappliedRotationDegrees:I
iget v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->reportedPixelWidthHeightRatio:F
.line 754
invoke-virtual {v1, v0, v2, v3, v4}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->videoSizeChanged(IIIF)V
:cond_1
return-void
.end method
.method private setJoiningDeadlineMs()V
.locals 4
iget-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->allowedJoiningTimeMs:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_0
.line 700
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iget-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->allowedJoiningTimeMs:J
add-long/2addr v0, v2
goto :goto_0
:cond_0
const-wide v0, -0x7fffffffffffffffL # -4.9E-324
:goto_0
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
return-void
.end method
.method private static setOutputSurfaceV23(Landroid/media/MediaCodec;Landroid/view/Surface;)V
.locals 0
.annotation build Landroid/annotation/TargetApi;
value = 0x17
.end annotation
.line 781
invoke-virtual {p0, p1}, Landroid/media/MediaCodec;->setOutputSurface(Landroid/view/Surface;)V
return-void
.end method
.method private setSurface(Landroid/view/Surface;)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
if-nez p1, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eqz v0, :cond_0
move-object p1, v0
goto :goto_0
.line 330
:cond_0
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->getCodecInfo()Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;
move-result-object v0
if-eqz v0, :cond_1
.line 331
invoke-direct {p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldUseDummySurface(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;)Z
move-result v1
if-eqz v1, :cond_1
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->context:Landroid/content/Context;
.line 332
iget-boolean v0, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->secure:Z
invoke-static {p1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/DummySurface;->newInstanceV17(Landroid/content/Context;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/video/DummySurface;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
:cond_1
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
if-eq v0, p1, :cond_6
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
.line 340
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->getState()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x2
if-eq v0, v1, :cond_2
if-ne v0, v2, :cond_4
.line 342
:cond_2
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->getCodec()Landroid/media/MediaCodec;
move-result-object v1
.line 343
sget v3, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v4, 0x17
if-lt v3, v4, :cond_3
if-eqz v1, :cond_3
if-eqz p1, :cond_3
iget-boolean v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecNeedsSetOutputSurfaceWorkaround:Z
if-nez v3, :cond_3
.line 345
invoke-static {v1, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->setOutputSurfaceV23(Landroid/media/MediaCodec;Landroid/view/Surface;)V
goto :goto_1
.line 347
:cond_3
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->releaseCodec()V
.line 348
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->maybeInitCodec()V
:cond_4
:goto_1
if-eqz p1, :cond_5
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eq p1, v1, :cond_5
.line 353
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeRenotifyVideoSizeChanged()V
.line 355
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearRenderedFirstFrame()V
if-ne v0, v2, :cond_7
.line 357
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->setJoiningDeadlineMs()V
goto :goto_2
.line 361
:cond_5
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearReportedVideoSize()V
.line 362
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearRenderedFirstFrame()V
goto :goto_2
:cond_6
if-eqz p1, :cond_7
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eq p1, v0, :cond_7
.line 367
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeRenotifyVideoSizeChanged()V
.line 368
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeRenotifyRenderedFirstFrame()V
:cond_7
:goto_2
return-void
.end method
.method private shouldUseDummySurface(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;)Z
.locals 2
.line 692
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x17
if-lt v0, v1, :cond_1
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
if-nez v0, :cond_1
iget-object v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->name:Ljava/lang/String;
.line 694
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecNeedsSetOutputSurfaceWorkaround(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
iget-boolean p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->secure:Z
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->context:Landroid/content/Context;
.line 695
invoke-static {p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/DummySurface;->isSecureSupported(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_1
:cond_0
const/4 p1, 0x1
goto :goto_0
:cond_1
const/4 p1, 0x0
:goto_0
return p1
.end method
# virtual methods
.method public canKeepCodec(Landroid/media/MediaCodec;Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
.locals 2
.line 399
iget-boolean p1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->adaptive:Z
invoke-static {p1, p3, p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->areAdaptationCompatible(ZLcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Z
move-result p1
if-eqz p1, :cond_1
iget p1, p4, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecMaxValues:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
iget v1, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->width:I
if-gt p1, v1, :cond_1
iget p1, p4, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
iget v0, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->height:I
if-gt p1, v0, :cond_1
.line 402
invoke-static {p2, p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
move-result p1
iget-object p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecMaxValues:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
iget p2, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->inputSize:I
if-gt p1, p2, :cond_1
.line 403
invoke-virtual {p3, p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->initializationDataEquals(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x3
:goto_0
return p1
:cond_1
const/4 p1, 0x0
return p1
.end method
.method public codecNeedsSetOutputSurfaceWorkaround(Ljava/lang/String;)Z
.locals 6
.line 983
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/4 v1, 0x0
const/16 v2, 0x1b
if-ge v0, v2, :cond_7
const-string v0, "OMX.google"
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_0
goto/16 :goto_7
:cond_0
const-class p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;
.line 1002
monitor-enter p1
:try_start_0
sget-boolean v0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->evaluatedDeviceNeedsSetOutputSurfaceWorkaround:Z
if-nez v0, :cond_6
.line 1004
sget-object v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->DEVICE:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v3
const/4 v4, -0x1
const/4 v5, 0x1
sparse-switch v3, :sswitch_data_0
goto/16 :goto_0
:sswitch_0
const-string v2, "HWVNS-H"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x32
goto/16 :goto_1
:catchall_0
move-exception v0
goto/16 :goto_6
:sswitch_1
const-string v2, "ELUGA_Prim"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x19
goto/16 :goto_1
:sswitch_2
const-string v2, "ELUGA_Note"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x18
goto/16 :goto_1
:sswitch_3
const-string v2, "HWCAM-H"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x31
goto/16 :goto_1
:sswitch_4
const-string v2, "HWBLN-H"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x30
goto/16 :goto_1
:sswitch_5
const-string v2, "Infinix-X572"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x34
goto/16 :goto_1
:sswitch_6
const-string v2, "PB2-670M"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4f
goto/16 :goto_1
:sswitch_7
const-string v2, "santoni"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5f
goto/16 :goto_1
:sswitch_8
const-string v2, "iball8735_9806"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x33
goto/16 :goto_1
:sswitch_9
const-string v2, "CPH1609"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x11
goto/16 :goto_1
:sswitch_a
const-string v2, "woods_f"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6f
goto/16 :goto_1
:sswitch_b
const-string v2, "htc_e56ml_dtul"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2e
goto/16 :goto_1
:sswitch_c
const-string v3, "EverStar_S"
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
goto/16 :goto_1
:sswitch_d
const-string v2, "hwALE-H"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2f
goto/16 :goto_1
:sswitch_e
const-string v2, "itel_S41"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x36
goto/16 :goto_1
:sswitch_f
const-string v2, "LS-5017"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3b
goto/16 :goto_1
:sswitch_10
const-string v2, "panell_d"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4b
goto/16 :goto_1
:sswitch_11
const-string v2, "j2xlteins"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x37
goto/16 :goto_1
:sswitch_12
const-string v2, "A7000plus"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x7
goto/16 :goto_1
:sswitch_13
const-string v2, "manning"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3d
goto/16 :goto_1
:sswitch_14
const-string v2, "GIONEE_WBL7519"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2c
goto/16 :goto_1
:sswitch_15
const-string v2, "GIONEE_WBL7365"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2b
goto/16 :goto_1
:sswitch_16
const-string v2, "GIONEE_WBL5708"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2a
goto/16 :goto_1
:sswitch_17
const-string v2, "QM16XE_U"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5d
goto/16 :goto_1
:sswitch_18
const-string v2, "Pixi5-10_4G"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x55
goto/16 :goto_1
:sswitch_19
const-string v2, "TB3-850M"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x67
goto/16 :goto_1
:sswitch_1a
const-string v2, "TB3-850F"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x66
goto/16 :goto_1
:sswitch_1b
const-string v2, "TB3-730X"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x65
goto/16 :goto_1
:sswitch_1c
const-string v2, "TB3-730F"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x64
goto/16 :goto_1
:sswitch_1d
const-string v2, "A7020a48"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x9
goto/16 :goto_1
:sswitch_1e
const-string v2, "A7010a48"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x8
goto/16 :goto_1
:sswitch_1f
const-string v2, "griffin"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x2d
goto/16 :goto_1
:sswitch_20
const-string v2, "marino_f"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3e
goto/16 :goto_1
:sswitch_21
const-string v2, "CPY83_I00"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x12
goto/16 :goto_1
:sswitch_22
const-string v2, "A2016a40"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x5
goto/16 :goto_1
:sswitch_23
const-string v2, "le_x6"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3a
goto/16 :goto_1
:sswitch_24
const-string v2, "X3_HK"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x71
goto/16 :goto_1
:sswitch_25
const-string v2, "V23GB"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6a
goto/16 :goto_1
:sswitch_26
const-string v2, "Q4310"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5b
goto/16 :goto_1
:sswitch_27
const-string v2, "Q4260"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x59
goto/16 :goto_1
:sswitch_28
const-string v2, "PRO7S"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x57
goto/16 :goto_1
:sswitch_29
const-string v2, "F3311"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x22
goto/16 :goto_1
:sswitch_2a
const-string v2, "F3215"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x21
goto/16 :goto_1
:sswitch_2b
const-string v2, "F3213"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x20
goto/16 :goto_1
:sswitch_2c
const-string v2, "F3211"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x1f
goto/16 :goto_1
:sswitch_2d
const-string v2, "F3116"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x1e
goto/16 :goto_1
:sswitch_2e
const-string v2, "F3113"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x1d
goto/16 :goto_1
:sswitch_2f
const-string v2, "F3111"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x1c
goto/16 :goto_1
:sswitch_30
const-string v2, "E5643"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x16
goto/16 :goto_1
:sswitch_31
const-string v2, "A1601"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x4
goto/16 :goto_1
:sswitch_32
const-string v2, "Aura_Note_2"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xb
goto/16 :goto_1
:sswitch_33
const-string v2, "MEIZU_M5"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3f
goto/16 :goto_1
:sswitch_34
const-string v2, "p212"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x48
goto/16 :goto_1
:sswitch_35
const-string v2, "mido"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x41
goto/16 :goto_1
:sswitch_36
const-string v2, "XE2X"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x72
goto/16 :goto_1
:sswitch_37
const-string v2, "Q427"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5a
goto/16 :goto_1
:sswitch_38
const-string v2, "Q350"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x58
goto/16 :goto_1
:sswitch_39
const-string v2, "P681"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x49
goto/16 :goto_1
:sswitch_3a
const-string v2, "1714"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x2
goto/16 :goto_1
:sswitch_3b
const-string v2, "1713"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
move v2, v5
goto/16 :goto_1
:sswitch_3c
const-string v2, "1601"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
move v2, v1
goto/16 :goto_1
:sswitch_3d
const-string v2, "flo"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x23
goto/16 :goto_1
:sswitch_3e
const-string v2, "deb"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x15
goto/16 :goto_1
:sswitch_3f
const-string v2, "cv3"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x14
goto/16 :goto_1
:sswitch_40
const-string v2, "cv1"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x13
goto/16 :goto_1
:sswitch_41
const-string v2, "Z80"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x75
goto/16 :goto_1
:sswitch_42
const-string v2, "QX1"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5e
goto/16 :goto_1
:sswitch_43
const-string v2, "PLE"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x56
goto/16 :goto_1
:sswitch_44
const-string v2, "P85"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4a
goto/16 :goto_1
:sswitch_45
const-string v2, "MX6"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x42
goto/16 :goto_1
:sswitch_46
const-string v2, "M5c"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x3c
goto/16 :goto_1
:sswitch_47
const-string v2, "JGZ"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x38
goto/16 :goto_1
:sswitch_48
const-string v2, "mh"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x40
goto/16 :goto_1
:sswitch_49
const-string v2, "V5"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6b
goto/16 :goto_1
:sswitch_4a
const-string v2, "V1"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x69
goto/16 :goto_1
:sswitch_4b
const-string v2, "Q5"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x5c
goto/16 :goto_1
:sswitch_4c
const-string v2, "C1"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xe
goto/16 :goto_1
:sswitch_4d
const-string v2, "woods_fn"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x70
goto/16 :goto_1
:sswitch_4e
const-string v2, "ELUGA_A3_Pro"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x17
goto/16 :goto_1
:sswitch_4f
const-string v2, "Z12_PRO"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x74
goto/16 :goto_1
:sswitch_50
const-string v2, "BLACK-1X"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xc
goto/16 :goto_1
:sswitch_51
const-string v2, "taido_row"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x63
goto/16 :goto_1
:sswitch_52
const-string v2, "Pixi4-7_3G"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x54
goto/16 :goto_1
:sswitch_53
const-string v2, "GIONEE_GBL7360"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x26
goto/16 :goto_1
:sswitch_54
const-string v2, "GiONEE_CBL7513"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x24
goto/16 :goto_1
:sswitch_55
const-string v2, "OnePlus5T"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x47
goto/16 :goto_1
:sswitch_56
const-string v2, "whyred"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6e
goto/16 :goto_1
:sswitch_57
const-string v2, "watson"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6d
goto/16 :goto_1
:sswitch_58
const-string v2, "SVP-DTV15"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x61
goto/16 :goto_1
:sswitch_59
const-string v2, "A7000-a"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x6
goto/16 :goto_1
:sswitch_5a
const-string v2, "nicklaus_f"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x44
goto/16 :goto_1
:sswitch_5b
const-string v2, "tcl_eu"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x68
goto/16 :goto_1
:sswitch_5c
const-string v2, "ELUGA_Ray_X"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x1a
goto/16 :goto_1
:sswitch_5d
const-string v2, "s905x018"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x62
goto/16 :goto_1
:sswitch_5e
const-string v2, "A10-70F"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v2, 0x3
goto/16 :goto_1
:sswitch_5f
const-string v2, "namath"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x43
goto/16 :goto_1
:sswitch_60
const-string v2, "Slate_Pro"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x60
goto/16 :goto_1
:sswitch_61
const-string v2, "iris60"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x35
goto/16 :goto_1
:sswitch_62
const-string v2, "BRAVIA_ATV2"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xd
goto/16 :goto_1
:sswitch_63
const-string v2, "GiONEE_GBL7319"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x25
goto/16 :goto_1
:sswitch_64
const-string v2, "panell_dt"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4e
goto/16 :goto_1
:sswitch_65
const-string v2, "panell_ds"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4d
goto/16 :goto_1
:sswitch_66
const-string v2, "panell_dl"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x4c
goto/16 :goto_1
:sswitch_67
const-string v2, "vernee_M5"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x6c
goto/16 :goto_1
:sswitch_68
const-string v2, "Phantom6"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x53
goto/16 :goto_1
:sswitch_69
const-string v2, "ComioS1"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xf
goto/16 :goto_1
:sswitch_6a
const-string v2, "XT1663"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x73
goto/16 :goto_1
:sswitch_6b
const-string v2, "AquaPowerM"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0xa
goto/16 :goto_1
:sswitch_6c
const-string v2, "PGN611"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x52
goto/16 :goto_1
:sswitch_6d
const-string v2, "PGN610"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x51
goto :goto_1
:sswitch_6e
const-string v2, "PGN528"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x50
goto :goto_1
:sswitch_6f
const-string v2, "NX573J"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x46
goto :goto_1
:sswitch_70
const-string v2, "NX541J"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x45
goto :goto_1
:sswitch_71
const-string v2, "CP8676_I02"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x10
goto :goto_1
:sswitch_72
const-string v2, "K50a40"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x39
goto :goto_1
:sswitch_73
const-string v2, "GIONEE_SWW1631"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x29
goto :goto_1
:sswitch_74
const-string v2, "GIONEE_SWW1627"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x28
goto :goto_1
:sswitch_75
const-string v2, "GIONEE_SWW1609"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/16 v2, 0x27
goto :goto_1
:cond_1
:goto_0
move v2, v4
:goto_1
packed-switch v2, :pswitch_data_0
goto :goto_2
:pswitch_0
sput-boolean v5, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsSetOutputSurfaceWorkaround:Z
.line 1129
:goto_2
sget-object v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->MODEL:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v2
const v3, 0x1e9d52
if-eq v2, v3, :cond_3
const v1, 0x1e9d5f
if-eq v2, v1, :cond_2
goto :goto_3
:cond_2
const-string v1, "AFTN"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
move v1, v5
goto :goto_4
:cond_3
const-string v2, "AFTA"
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
goto :goto_4
:cond_4
:goto_3
move v1, v4
:goto_4
if-eqz v1, :cond_5
if-eq v1, v5, :cond_5
goto :goto_5
:cond_5
sput-boolean v5, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsSetOutputSurfaceWorkaround:Z
:goto_5
sput-boolean v5, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->evaluatedDeviceNeedsSetOutputSurfaceWorkaround:Z
.line 1140
:cond_6
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
sget-boolean p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsSetOutputSurfaceWorkaround:Z
return p1
:goto_6
:try_start_1
monitor-exit p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
:cond_7
:goto_7
return v1
nop
:sswitch_data_0
.sparse-switch
-0x7fd6c3bd -> :sswitch_75
-0x7fd6c381 -> :sswitch_74
-0x7fd6c368 -> :sswitch_73
-0x7d026749 -> :sswitch_72
-0x78929d6a -> :sswitch_71
-0x75f50a1e -> :sswitch_70
-0x75f4fe9d -> :sswitch_6f
-0x736f875c -> :sswitch_6e
-0x736f83c2 -> :sswitch_6d
-0x736f83c1 -> :sswitch_6c
-0x7327ce1c -> :sswitch_6b
-0x651ebb62 -> :sswitch_6a
-0x6423293b -> :sswitch_69
-0x604f5117 -> :sswitch_68
-0x5ca40cc4 -> :sswitch_67
-0x58520ec1 -> :sswitch_66
-0x58520eba -> :sswitch_65
-0x58520eb9 -> :sswitch_64
-0x4eaed329 -> :sswitch_63
-0x4892fb4f -> :sswitch_62
-0x465b3df3 -> :sswitch_61
-0x43e6c939 -> :sswitch_60
-0x3ec0fcc5 -> :sswitch_5f
-0x3b33cca0 -> :sswitch_5e
-0x398ae3f6 -> :sswitch_5d
-0x391f0fb4 -> :sswitch_5c
-0x346837ae -> :sswitch_5b
-0x323788e3 -> :sswitch_5a
-0x30f57652 -> :sswitch_59
-0x2f88a116 -> :sswitch_58
-0x2f61ed98 -> :sswitch_57
-0x2efd0837 -> :sswitch_56
-0x2e9e9441 -> :sswitch_55
-0x2247b8b1 -> :sswitch_54
-0x1f0fa2b7 -> :sswitch_53
-0x19af3b41 -> :sswitch_52
-0x114fad3e -> :sswitch_51
-0x10dae90b -> :sswitch_50
-0x1084b7b7 -> :sswitch_4f
-0xa5988e9 -> :sswitch_4e
-0x35f9fbf -> :sswitch_4d
0x84e -> :sswitch_4c
0xa04 -> :sswitch_4b
0xa9b -> :sswitch_4a
0xa9f -> :sswitch_49
0xd9b -> :sswitch_48
0x11ebd -> :sswitch_47
0x127db -> :sswitch_46
0x12beb -> :sswitch_45
0x1334d -> :sswitch_44
0x135c9 -> :sswitch_43
0x13aea -> :sswitch_42
0x158d2 -> :sswitch_41
0x1821e -> :sswitch_40
0x18220 -> :sswitch_3f
0x18401 -> :sswitch_3e
0x18c69 -> :sswitch_3d
0x1716e6 -> :sswitch_3c
0x171ac8 -> :sswitch_3b
0x171ac9 -> :sswitch_3a
0x252f5f -> :sswitch_39
0x25981d -> :sswitch_38
0x259b88 -> :sswitch_37
0x290a13 -> :sswitch_36
0x332327 -> :sswitch_35
0x33ab63 -> :sswitch_34
0x27691fb -> :sswitch_33
0x349f581 -> :sswitch_32
0x3ab0ea7 -> :sswitch_31
0x3e53ea5 -> :sswitch_30
0x3f25a44 -> :sswitch_2f
0x3f25a46 -> :sswitch_2e
0x3f25a49 -> :sswitch_2d
0x3f25e05 -> :sswitch_2c
0x3f25e07 -> :sswitch_2b
0x3f25e09 -> :sswitch_2a
0x3f261c6 -> :sswitch_29
0x48dce49 -> :sswitch_28
0x48dd589 -> :sswitch_27
0x48dd8af -> :sswitch_26
0x4d36832 -> :sswitch_25
0x4f0b0e7 -> :sswitch_24
0x6214744 -> :sswitch_23
0x9d91379 -> :sswitch_22
0xadc0551 -> :sswitch_21
0xea056b3 -> :sswitch_20
0x1121dbc3 -> :sswitch_1f
0x1255818c -> :sswitch_1e
0x1263990d -> :sswitch_1d
0x12d90f3a -> :sswitch_1c
0x12d90f4c -> :sswitch_1b
0x12d98b1b -> :sswitch_1a
0x12d98b22 -> :sswitch_19
0x1844c711 -> :sswitch_18
0x1e3e8044 -> :sswitch_17
0x2f5336ed -> :sswitch_16
0x2f54115e -> :sswitch_15
0x2f541849 -> :sswitch_14
0x31cf010e -> :sswitch_13
0x36ad82f4 -> :sswitch_12
0x391a0b61 -> :sswitch_11
0x3f3728cd -> :sswitch_10
0x448ec687 -> :sswitch_f
0x46260f63 -> :sswitch_e
0x4c505106 -> :sswitch_d
0x4de67084 -> :sswitch_c
0x506ac5a9 -> :sswitch_b
0x5abad9cd -> :sswitch_a
0x64d2e6e9 -> :sswitch_9
0x65e4085b -> :sswitch_8
0x6f373556 -> :sswitch_7
0x719f1dcb -> :sswitch_6
0x75d9a0f0 -> :sswitch_5
0x78fc0e50 -> :sswitch_4
0x790521fb -> :sswitch_3
0x7a05a409 -> :sswitch_2
0x7a0696bd -> :sswitch_1
0x7a16dfe7 -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
.end packed-switch
.end method
.method public configureCodec(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Landroid/media/MediaCodec;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;Landroid/media/MediaCrypto;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil$DecoderQueryException;
}
.end annotation
.line 380
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->getStreamFormats()[Lcom/mbridge/msdk/playercommon/exoplayer2/Format;
move-result-object v0
invoke-virtual {p0, p1, p3, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getCodecMaxValues(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;[Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
move-result-object v0
iput-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecMaxValues:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
iget-boolean v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->deviceNeedsAutoFrcWorkaround:Z
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunnelingAudioSessionId:I
.line 381
invoke-virtual {p0, p3, v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMediaFormat(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;ZI)Landroid/media/MediaFormat;
move-result-object p3
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
if-nez v0, :cond_1
.line 384
invoke-direct {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldUseDummySurface(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;)Z
move-result v0
invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkState(Z)V
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->context:Landroid/content/Context;
.line 386
iget-boolean p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->secure:Z
invoke-static {v0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/DummySurface;->newInstanceV17(Landroid/content/Context;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/video/DummySurface;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
:cond_0
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
:cond_1
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
const/4 v0, 0x0
.line 390
invoke-virtual {p2, p3, p1, p4, v0}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V
.line 391
sget p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 p3, 0x17
if-lt p1, p3, :cond_2
iget-boolean p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
if-eqz p1, :cond_2
.line 392
new-instance p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
const/4 p3, 0x0
invoke-direct {p1, p0, p2, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;-><init>(Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;Landroid/media/MediaCodec;Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$1;)V
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunnelingOnFrameRenderedListener:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
:cond_2
return-void
.end method
.method public dropOutputBuffer(Landroid/media/MediaCodec;IJ)V
.locals 0
const-string p3, "dropVideoBuffer"
.line 632
invoke-static {p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->beginSection(Ljava/lang/String;)V
const/4 p3, 0x0
.line 633
invoke-virtual {p1, p2, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
.line 634
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->endSection()V
const/4 p1, 0x1
.line 635
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->updateDroppedBufferCounters(I)V
return-void
.end method
.method public flushCodec()V
.locals 1
.annotation build Landroidx/annotation/CallSuper;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
.line 430
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->flushCodec()V
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
return-void
.end method
.method public getCodecMaxValues(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;[Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
.locals 12
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil$DecoderQueryException;
}
.end annotation
.line 829
iget v0, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
.line 830
iget v1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
.line 831
invoke-static {p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
move-result v2
.line 832
array-length v3, p3
const/4 v4, 0x1
if-ne v3, v4, :cond_0
.line 835
new-instance p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
invoke-direct {p1, v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;-><init>(III)V
return-object p1
.line 838
:cond_0
array-length v3, p3
const/4 v5, 0x0
move v6, v5
move v7, v6
:goto_0
if-ge v6, v3, :cond_4
aget-object v8, p3, v6
.line 839
iget-boolean v9, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->adaptive:Z
invoke-static {v9, p2, v8}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->areAdaptationCompatible(ZLcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Z
move-result v9
if-eqz v9, :cond_3
.line 840
iget v9, v8, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
const/4 v10, -0x1
if-eq v9, v10, :cond_2
iget v11, v8, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
if-ne v11, v10, :cond_1
goto :goto_1
:cond_1
move v10, v5
goto :goto_2
:cond_2
:goto_1
move v10, v4
:goto_2
or-int/2addr v7, v10
.line 842
invoke-static {v0, v9}, Ljava/lang/Math;->max(II)I
move-result v0
.line 843
iget v9, v8, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
invoke-static {v1, v9}, Ljava/lang/Math;->max(II)I
move-result v1
.line 844
invoke-static {p1, v8}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
move-result v8
invoke-static {v2, v8}, Ljava/lang/Math;->max(II)I
move-result v2
:cond_3
add-int/lit8 v6, v6, 0x1
goto :goto_0
:cond_4
if-eqz v7, :cond_5
.line 848
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Resolutions unknown. Codec max resolution: "
invoke-virtual {p3, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v3, "x"
invoke-virtual {p3, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
const-string v4, "MediaCodecVideoRenderer"
invoke-static {v4, p3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 849
invoke-static {p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getCodecMaxSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)Landroid/graphics/Point;
move-result-object p3
if-eqz p3, :cond_5
.line 851
iget v5, p3, Landroid/graphics/Point;->x:I
invoke-static {v0, v5}, Ljava/lang/Math;->max(II)I
move-result v0
.line 852
iget p3, p3, Landroid/graphics/Point;->y:I
invoke-static {v1, p3}, Ljava/lang/Math;->max(II)I
move-result v1
.line 853
iget-object p2, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
.line 856
invoke-static {p1, p2, v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->getMaxInputSize(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;Ljava/lang/String;II)I
move-result p1
.line 854
invoke-static {v2, p1}, Ljava/lang/Math;->max(II)I
move-result v2
.line 857
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "Codec max resolution adjusted to: "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 860
:cond_5
new-instance p1, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;
invoke-direct {p1, v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;-><init>(III)V
return-object p1
.end method
.method public getMediaFormat(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;ZI)Landroid/media/MediaFormat;
.locals 3
.annotation build Landroid/annotation/SuppressLint;
value = {
"InlinedApi"
}
.end annotation
.line 797
new-instance v0, Landroid/media/MediaFormat;
invoke-direct {v0}, Landroid/media/MediaFormat;-><init>()V
.line 799
iget-object v1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
const-string v2, "mime"
invoke-virtual {v0, v2, v1}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V
const-string v1, "width"
.line 800
iget v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
invoke-virtual {v0, v1, v2}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
const-string v1, "height"
.line 801
iget v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
invoke-virtual {v0, v1, v2}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
.line 802
iget-object v1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->initializationData:Ljava/util/List;
invoke-static {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaFormatUtil;->setCsdBuffers(Landroid/media/MediaFormat;Ljava/util/List;)V
const-string v1, "frame-rate"
.line 804
iget v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->frameRate:F
invoke-static {v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaFormatUtil;->maybeSetFloat(Landroid/media/MediaFormat;Ljava/lang/String;F)V
const-string v1, "rotation-degrees"
.line 805
iget v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->rotationDegrees:I
invoke-static {v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaFormatUtil;->maybeSetInteger(Landroid/media/MediaFormat;Ljava/lang/String;I)V
.line 806
iget-object p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->colorInfo:Lcom/mbridge/msdk/playercommon/exoplayer2/video/ColorInfo;
invoke-static {v0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaFormatUtil;->maybeSetColorInfo(Landroid/media/MediaFormat;Lcom/mbridge/msdk/playercommon/exoplayer2/video/ColorInfo;)V
.line 808
iget p1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->width:I
const-string v1, "max-width"
invoke-virtual {v0, v1, p1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
const-string p1, "max-height"
.line 809
iget v1, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->height:I
invoke-virtual {v0, p1, v1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
const-string p1, "max-input-size"
.line 810
iget p2, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$CodecMaxValues;->inputSize:I
invoke-static {v0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaFormatUtil;->maybeSetInteger(Landroid/media/MediaFormat;Ljava/lang/String;I)V
.line 813
sget p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 p2, 0x17
const/4 v1, 0x0
if-lt p1, p2, :cond_0
const-string p1, "priority"
.line 814
invoke-virtual {v0, p1, v1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
:cond_0
if-eqz p3, :cond_1
const-string p1, "auto-frc"
.line 817
invoke-virtual {v0, p1, v1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
:cond_1
if-eqz p4, :cond_2
.line 820
invoke-static {v0, p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->configureTunnelingV21(Landroid/media/MediaFormat;I)V
:cond_2
return-object v0
.end method
.method public handleMessage(ILjava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
const/4 v0, 0x1
if-ne p1, v0, :cond_0
.line 312
check-cast p2, Landroid/view/Surface;
invoke-direct {p0, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->setSurface(Landroid/view/Surface;)V
goto :goto_0
:cond_0
const/4 v0, 0x4
if-ne p1, v0, :cond_1
.line 314
check-cast p2, Ljava/lang/Integer;
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p1
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->scalingMode:I
.line 315
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->getCodec()Landroid/media/MediaCodec;
move-result-object p1
if-eqz p1, :cond_2
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->scalingMode:I
.line 317
invoke-virtual {p1, p2}, Landroid/media/MediaCodec;->setVideoScalingMode(I)V
goto :goto_0
.line 320
:cond_1
invoke-super {p0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->handleMessage(ILjava/lang/Object;)V
:cond_2
:goto_0
return-void
.end method
.method public isReady()Z
.locals 9
.line 254
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->isReady()Z
move-result v0
const/4 v1, 0x1
const-wide v2, -0x7fffffffffffffffL # -4.9E-324
if-eqz v0, :cond_2
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eqz v0, :cond_0
iget-object v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
if-eq v4, v0, :cond_1
.line 255
:cond_0
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->getCodec()Landroid/media/MediaCodec;
move-result-object v0
if-eqz v0, :cond_1
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
if-eqz v0, :cond_2
:cond_1
iput-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
return v1
:cond_2
iget-wide v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
cmp-long v0, v4, v2
const/4 v4, 0x0
if-nez v0, :cond_3
return v4
.line 262
:cond_3
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v5
iget-wide v7, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
cmp-long v0, v5, v7
if-gez v0, :cond_4
return v1
:cond_4
iput-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
return v4
.end method
.method public maybeDropBuffersToKeyframe(Landroid/media/MediaCodec;IJJ)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
.line 641
invoke-virtual {p0, p5, p6}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->skipSource(J)I
move-result p1
if-nez p1, :cond_0
const/4 p1, 0x0
return p1
:cond_0
iget-object p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 645
iget p3, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->droppedToKeyframeCount:I
const/4 p4, 0x1
add-int/2addr p3, p4
iput p3, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->droppedToKeyframeCount:I
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
add-int/2addr p2, p1
.line 648
invoke-virtual {p0, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->updateDroppedBufferCounters(I)V
.line 649
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->flushCodec()V
return p4
.end method
.method public maybeNotifyRenderedFirstFrame()V
.locals 2
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
.line 721
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->renderedFirstFrame(Landroid/view/Surface;)V
:cond_0
return-void
.end method
.method public onCodecInitialized(Ljava/lang/String;JJ)V
.locals 6
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
move-object v1, p1
move-wide v2, p2
move-wide v4, p4
.line 437
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->decoderInitialized(Ljava/lang/String;JJ)V
.line 438
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecNeedsSetOutputSurfaceWorkaround(Ljava/lang/String;)Z
move-result p1
iput-boolean p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->codecNeedsSetOutputSurfaceWorkaround:Z
return-void
.end method
.method public onDisabled()V
.locals 3
const/4 v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
const/high16 v0, -0x40800000 # -1.0f
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingPixelWidthHeightRatio:F
const-wide v0, -0x7fffffffffffffffL # -4.9E-324
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
.line 296
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearReportedVideoSize()V
.line 297
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearRenderedFirstFrame()V
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->frameReleaseTimeHelper:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
.line 298
invoke-virtual {v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;->disable()V
const/4 v1, 0x0
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunnelingOnFrameRenderedListener:Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer$OnFrameRenderedListenerV23;
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
.line 302
:try_start_0
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onDisabled()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 304
invoke-virtual {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->ensureUpdated()V
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 305
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->disabled(Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;)V
return-void
:catchall_0
move-exception v0
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 304
invoke-virtual {v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->ensureUpdated()V
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 305
invoke-virtual {v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->disabled(Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;)V
.line 306
throw v0
.end method
.method public onEnabled(Z)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
.line 210
invoke-super {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onEnabled(Z)V
.line 211
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->getConfiguration()Lcom/mbridge/msdk/playercommon/exoplayer2/RendererConfiguration;
move-result-object p1
iget p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/RendererConfiguration;->tunnelingAudioSessionId:I
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunnelingAudioSessionId:I
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
iput-boolean p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 213
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->enabled(Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;)V
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->frameReleaseTimeHelper:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
.line 214
invoke-virtual {p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;->enable()V
return-void
.end method
.method public onInputFormatChanged(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
.line 443
invoke-super {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onInputFormatChanged(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)V
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->eventDispatcher:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;
.line 444
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoRendererEventListener$EventDispatcher;->inputFormatChanged(Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)V
.line 445
iget v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->pixelWidthHeightRatio:F
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingPixelWidthHeightRatio:F
.line 446
iget p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->rotationDegrees:I
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingRotationDegrees:I
return-void
.end method
.method public onOutputFormatChanged(Landroid/media/MediaCodec;Landroid/media/MediaFormat;)V
.locals 6
const-string v0, "crop-right"
.line 462
invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z
move-result v1
const-string v2, "crop-top"
const-string v3, "crop-bottom"
const-string v4, "crop-left"
const/4 v5, 0x1
if-eqz v1, :cond_0
.line 463
invoke-virtual {p2, v4}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p2, v3}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
.line 464
invoke-virtual {p2, v2}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
move v1, v5
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_1
.line 466
invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result v0
invoke-virtual {p2, v4}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result v4
sub-int/2addr v0, v4
add-int/2addr v0, v5
goto :goto_1
:cond_1
const-string v0, "width"
.line 467
invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result v0
:goto_1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
if-eqz v1, :cond_2
.line 469
invoke-virtual {p2, v3}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result v0
invoke-virtual {p2, v2}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result p2
sub-int/2addr v0, p2
add-int/2addr v0, v5
goto :goto_2
:cond_2
const-string v0, "height"
.line 470
invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
move-result v0
:goto_2
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingPixelWidthHeightRatio:F
iput p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
.line 472
sget v1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_4
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingRotationDegrees:I
const/16 v2, 0x5a
if-eq v1, v2, :cond_3
const/16 v2, 0x10e
if-ne v1, v2, :cond_5
:cond_3
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentWidth:I
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentHeight:I
const/high16 v0, 0x3f800000 # 1.0f
div-float/2addr v0, p2
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentPixelWidthHeightRatio:F
goto :goto_3
:cond_4
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingRotationDegrees:I
iput p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->currentUnappliedRotationDegrees:I
:cond_5
:goto_3
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->scalingMode:I
.line 487
invoke-virtual {p1, p2}, Landroid/media/MediaCodec;->setVideoScalingMode(I)V
return-void
.end method
.method public onPositionReset(JZ)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
.line 236
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onPositionReset(JZ)V
.line 237
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->clearRenderedFirstFrame()V
const-wide p1, -0x7fffffffffffffffL # -4.9E-324
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->initialPositionUs:J
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->consecutiveDroppedFrameCount:I
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
if-eqz v1, :cond_0
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
add-int/lit8 v1, v1, -0x1
.line 242
aget-wide v1, v2, v1
iput-wide v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
:cond_0
if-eqz p3, :cond_1
.line 246
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->setJoiningDeadlineMs()V
goto :goto_0
:cond_1
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
:goto_0
return-void
.end method
.method public onProcessedOutputBuffer(J)V
.locals 6
.annotation build Landroidx/annotation/CallSuper;
.end annotation
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
const/4 v1, 0x1
sub-int/2addr v0, v1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
:goto_0
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
if-eqz v0, :cond_0
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamSwitchTimesUs:[J
const/4 v3, 0x0
.line 588
aget-wide v4, v2, v3
cmp-long v2, p1, v4
if-ltz v2, :cond_0
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
.line 590
aget-wide v4, v2, v3
iput-wide v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
.line 592
invoke-static {v2, v1, v2, v3, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamSwitchTimesUs:[J
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
.line 598
invoke-static {v0, v1, v0, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
goto :goto_0
:cond_0
return-void
.end method
.method public onQueueInputBuffer(Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderInputBuffer;)V
.locals 4
.annotation build Landroidx/annotation/CallSuper;
.end annotation
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
.line 454
iget-wide v0, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderInputBuffer;->timeUs:J
iget-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J
move-result-wide v0
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
.line 455
sget p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v0, 0x17
if-ge p1, v0, :cond_0
iget-boolean p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->tunneling:Z
if-eqz p1, :cond_0
.line 456
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyRenderedFirstFrame()V
:cond_0
return-void
.end method
.method public onStarted()V
.locals 4
.line 274
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onStarted()V
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
.line 276
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrameAccumulationStartTimeMs:J
.line 277
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
const-wide/16 v2, 0x3e8
mul-long/2addr v0, v2
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastRenderTimeUs:J
return-void
.end method
.method public onStopped()V
.locals 2
const-wide v0, -0x7fffffffffffffffL # -4.9E-324
iput-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->joiningDeadlineMs:J
.line 283
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyDroppedFrames()V
.line 284
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->onStopped()V
return-void
.end method
.method public onStreamChanged([Lcom/mbridge/msdk/playercommon/exoplayer2/Format;J)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
iget-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
const-wide v2, -0x7fffffffffffffffL # -4.9E-324
cmp-long v0, v0, v2
if-nez v0, :cond_0
iput-wide p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
goto :goto_1
:cond_0
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
.line 222
array-length v1, v1
if-ne v0, v1, :cond_1
.line 223
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Too many stream changes, so dropping offset: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
iget v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
add-int/lit8 v2, v2, -0x1
aget-wide v2, v1, v2
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "MediaCodecVideoRenderer"
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
:cond_1
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetsUs:[J
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamOffsetCount:I
add-int/lit8 v2, v1, -0x1
.line 228
aput-wide p2, v0, v2
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->pendingOutputStreamSwitchTimesUs:[J
add-int/lit8 v1, v1, -0x1
iget-wide v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastInputTimeUs:J
.line 229
aput-wide v2, v0, v1
.line 231
:goto_1
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->onStreamChanged([Lcom/mbridge/msdk/playercommon/exoplayer2/Format;J)V
return-void
.end method
.method public processOutputBuffer(JJLandroid/media/MediaCodec;Ljava/nio/ByteBuffer;IIJZ)Z
.locals 21
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException;
}
.end annotation
move-object/from16 v7, p0
move-wide/from16 v5, p1
move-wide/from16 v8, p3
move-object/from16 v10, p5
move/from16 v11, p7
move-wide/from16 v0, p9
iget-wide v2, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->initialPositionUs:J
const-wide v12, -0x7fffffffffffffffL # -4.9E-324
cmp-long v2, v2, v12
if-nez v2, :cond_0
iput-wide v5, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->initialPositionUs:J
:cond_0
iget-wide v2, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->outputStreamOffsetUs:J
sub-long v12, v0, v2
const/4 v14, 0x1
if-eqz p11, :cond_1
.line 501
invoke-virtual {v7, v10, v11, v12, v13}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->skipOutputBuffer(Landroid/media/MediaCodec;IJ)V
return v14
:cond_1
sub-long v2, v0, v5
iget-object v4, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
iget-object v15, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
const/16 v16, 0x0
if-ne v4, v15, :cond_3
.line 508
invoke-static {v2, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->isBufferLate(J)Z
move-result v0
if-eqz v0, :cond_2
.line 509
invoke-virtual {v7, v10, v11, v12, v13}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->skipOutputBuffer(Landroid/media/MediaCodec;IJ)V
return v14
:cond_2
return v16
.line 515
:cond_3
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v17
const-wide/16 v19, 0x3e8
mul-long v17, v17, v19
.line 516
invoke-virtual/range {p0 .. p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->getState()I
move-result v4
const/4 v15, 0x2
if-ne v4, v15, :cond_4
move v4, v14
goto :goto_0
:cond_4
move/from16 v4, v16
:goto_0
iget-boolean v15, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderedFirstFrame:Z
if-eqz v15, :cond_c
if-eqz v4, :cond_5
iget-wide v14, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastRenderTimeUs:J
sub-long v14, v17, v14
.line 519
invoke-virtual {v7, v2, v3, v14, v15}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldForceRenderOutputBuffer(JJ)Z
move-result v14
if-eqz v14, :cond_5
goto/16 :goto_4
:cond_5
if-eqz v4, :cond_b
iget-wide v14, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->initialPositionUs:J
cmp-long v4, v5, v14
if-nez v4, :cond_6
goto/16 :goto_3
:cond_6
sub-long v17, v17, v8
sub-long v2, v2, v17
.line 538
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v14
mul-long v2, v2, v19
add-long/2addr v2, v14
iget-object v4, v7, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->frameReleaseTimeHelper:Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;
.line 542
invoke-virtual {v4, v0, v1, v2, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/VideoFrameReleaseTimeHelper;->adjustReleaseTime(JJ)J
move-result-wide v17
sub-long v0, v17, v14
.line 544
div-long v14, v0, v19
.line 546
invoke-virtual {v7, v14, v15, v8, v9}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldDropBuffersToKeyframe(JJ)Z
move-result v0
if-eqz v0, :cond_7
move-object/from16 v0, p0
move-object/from16 v1, p5
move/from16 v2, p7
move-wide v3, v12
move-wide/from16 v5, p1
.line 547
invoke-virtual/range {v0 .. v6}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeDropBuffersToKeyframe(Landroid/media/MediaCodec;IJJ)Z
move-result v0
if-eqz v0, :cond_7
return v16
.line 549
:cond_7
invoke-virtual {v7, v14, v15, v8, v9}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldDropOutputBuffer(JJ)Z
move-result v0
if-eqz v0, :cond_8
.line 550
invoke-virtual {v7, v10, v11, v12, v13}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dropOutputBuffer(Landroid/media/MediaCodec;IJ)V
:goto_1
const/4 v0, 0x1
return v0
.line 554
:cond_8
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_9
const-wide/32 v0, 0xc350
cmp-long v0, v14, v0
if-gez v0, :cond_b
move-object/from16 v0, p0
move-object/from16 v1, p5
move/from16 v2, p7
move-wide v3, v12
move-wide/from16 v5, v17
.line 557
invoke-virtual/range {v0 .. v6}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderOutputBufferV21(Landroid/media/MediaCodec;IJJ)V
goto :goto_1
:cond_9
const-wide/16 v0, 0x7530
cmp-long v0, v14, v0
if-gez v0, :cond_b
const-wide/16 v0, 0x2af8
cmp-long v0, v14, v0
if-lez v0, :cond_a
const-wide/16 v0, 0x2710
sub-long/2addr v14, v0
.line 568
:try_start_0
div-long v14, v14, v19
invoke-static {v14, v15}, Ljava/lang/Thread;->sleep(J)V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_2
.line 570
:catch_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
return v16
.line 574
:cond_a
:goto_2
invoke-virtual {v7, v10, v11, v12, v13}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderOutputBuffer(Landroid/media/MediaCodec;IJ)V
goto :goto_1
:cond_b
:goto_3
return v16
.line 520
:cond_c
:goto_4
sget v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_d
.line 521
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v5
move-object/from16 v0, p0
move-object/from16 v1, p5
move/from16 v2, p7
move-wide v3, v12
invoke-virtual/range {v0 .. v6}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderOutputBufferV21(Landroid/media/MediaCodec;IJJ)V
:goto_5
const/4 v0, 0x1
goto :goto_6
.line 523
:cond_d
invoke-virtual {v7, v10, v11, v12, v13}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->renderOutputBuffer(Landroid/media/MediaCodec;IJ)V
goto :goto_5
:goto_6
return v0
.end method
.method public releaseCodec()V
.locals 4
.annotation build Landroidx/annotation/CallSuper;
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
.line 414
:try_start_0
invoke-super {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->releaseCodec()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eqz v0, :cond_1
iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
if-ne v2, v0, :cond_0
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
.line 421
:cond_0
invoke-virtual {v0}, Landroid/view/Surface;->release()V
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
:cond_1
return-void
:catchall_0
move-exception v2
iput v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->buffersInCodecCount:I
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-eqz v0, :cond_3
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
if-ne v0, v3, :cond_2
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
:cond_2
invoke-virtual {v3}, Landroid/view/Surface;->release()V
iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->dummySurface:Landroid/view/Surface;
.line 424
:cond_3
throw v2
.end method
.method public renderOutputBuffer(Landroid/media/MediaCodec;IJ)V
.locals 2
.line 667
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyVideoSizeChanged()V
const-string p3, "releaseOutputBuffer"
.line 668
invoke-static {p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->beginSection(Ljava/lang/String;)V
const/4 p3, 0x1
.line 669
invoke-virtual {p1, p2, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
.line 670
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->endSection()V
.line 671
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide p1
const-wide/16 v0, 0x3e8
mul-long/2addr p1, v0
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastRenderTimeUs:J
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 672
iget p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->renderedOutputBufferCount:I
add-int/2addr p2, p3
iput p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->renderedOutputBufferCount:I
const/4 p1, 0x0
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->consecutiveDroppedFrameCount:I
.line 674
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyRenderedFirstFrame()V
return-void
.end method
.method public renderOutputBufferV21(Landroid/media/MediaCodec;IJJ)V
.locals 0
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
.line 681
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyVideoSizeChanged()V
const-string p3, "releaseOutputBuffer"
.line 682
invoke-static {p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->beginSection(Ljava/lang/String;)V
.line 683
invoke-virtual {p1, p2, p5, p6}, Landroid/media/MediaCodec;->releaseOutputBuffer(IJ)V
.line 684
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->endSection()V
.line 685
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide p1
const-wide/16 p3, 0x3e8
mul-long/2addr p1, p3
iput-wide p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->lastRenderTimeUs:J
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 686
iget p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->renderedOutputBufferCount:I
add-int/lit8 p2, p2, 0x1
iput p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->renderedOutputBufferCount:I
const/4 p1, 0x0
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->consecutiveDroppedFrameCount:I
.line 688
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyRenderedFirstFrame()V
return-void
.end method
.method public shouldDropBuffersToKeyframe(JJ)Z
.locals 0
.line 614
invoke-static {p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->isBufferVeryLate(J)Z
move-result p1
return p1
.end method
.method public shouldDropOutputBuffer(JJ)Z
.locals 0
.line 609
invoke-static {p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->isBufferLate(J)Z
move-result p1
return p1
.end method
.method public shouldForceRenderOutputBuffer(JJ)Z
.locals 0
.line 619
invoke-static {p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->isBufferLate(J)Z
move-result p1
if-eqz p1, :cond_0
const-wide/32 p1, 0x186a0
cmp-long p1, p3, p1
if-lez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public shouldInitCodec(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;)Z
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->surface:Landroid/view/Surface;
if-nez v0, :cond_1
.line 374
invoke-direct {p0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->shouldUseDummySurface(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
return p1
.end method
.method public skipOutputBuffer(Landroid/media/MediaCodec;IJ)V
.locals 0
const-string p3, "skipVideoBuffer"
.line 624
invoke-static {p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->beginSection(Ljava/lang/String;)V
const/4 p3, 0x0
.line 625
invoke-virtual {p1, p2, p3}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
.line 626
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/TraceUtil;->endSection()V
iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 627
iget p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->skippedOutputBufferCount:I
add-int/lit8 p2, p2, 0x1
iput p2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->skippedOutputBufferCount:I
return-void
.end method
.method public supportsFormat(Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;Lcom/mbridge/msdk/playercommon/exoplayer2/Format;)I
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;",
"Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager<",
"Lcom/mbridge/msdk/playercommon/exoplayer2/drm/FrameworkMediaCrypto;",
">;",
"Lcom/mbridge/msdk/playercommon/exoplayer2/Format;",
")I"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil$DecoderQueryException;
}
.end annotation
.line 168
iget-object v0, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->sampleMimeType:Ljava/lang/String;
.line 169
invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/MimeTypes;->isVideo(Ljava/lang/String;)Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
return v2
.line 173
:cond_0
iget-object v1, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->drmInitData:Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData;
if-eqz v1, :cond_1
move v3, v2
move v4, v3
.line 175
:goto_0
iget v5, v1, Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData;->schemeDataCount:I
if-ge v3, v5, :cond_2
.line 176
invoke-virtual {v1, v3}, Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData;->get(I)Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData$SchemeData;
move-result-object v5
iget-boolean v5, v5, Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData$SchemeData;->requiresSecureDecryption:Z
or-int/2addr v4, v5
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
move v4, v2
.line 179
:cond_2
invoke-interface {p1, v0, v4}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;->getDecoderInfo(Ljava/lang/String;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;
move-result-object v3
const/4 v5, 0x2
const/4 v6, 0x1
if-nez v3, :cond_4
if-eqz v4, :cond_3
.line 182
invoke-interface {p1, v0, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecSelector;->getDecoderInfo(Ljava/lang/String;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;
move-result-object p1
if-eqz p1, :cond_3
goto :goto_1
:cond_3
move v5, v6
:goto_1
return v5
.line 185
:cond_4
invoke-static {p2, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/BaseRenderer;->supportsFormatDrm(Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmSessionManager;Lcom/mbridge/msdk/playercommon/exoplayer2/drm/DrmInitData;)Z
move-result p1
if-nez p1, :cond_5
return v5
.line 188
:cond_5
iget-object p1, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->codecs:Ljava/lang/String;
invoke-virtual {v3, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->isCodecSupported(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_9
.line 189
iget p2, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
if-lez p2, :cond_9
iget v0, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
if-lez v0, :cond_9
.line 190
sget p1, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I
const/16 v1, 0x15
if-lt p1, v1, :cond_6
.line 191
iget p1, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->frameRate:F
float-to-double v4, p1
invoke-virtual {v3, p2, v0, v4, v5}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->isVideoSizeAndRateSupportedV21(IID)Z
move-result p1
goto :goto_3
:cond_6
mul-int/2addr p2, v0
.line 194
invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecUtil;->maxH264DecodableFrameSize()I
move-result p1
if-gt p2, p1, :cond_7
goto :goto_2
:cond_7
move v6, v2
:goto_2
if-nez v6, :cond_8
.line 196
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "FalseCheck [legacyFrameSize, "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p2, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->width:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p2, "x"
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget p2, p3, Lcom/mbridge/msdk/playercommon/exoplayer2/Format;->height:I
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p2, "] ["
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
sget-object p2, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->DEVICE_DEBUG_INFO:Ljava/lang/String;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, "]"
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_8
move p1, v6
.line 202
:cond_9
:goto_3
iget-boolean p2, v3, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->adaptive:Z
if-eqz p2, :cond_a
const/16 p2, 0x10
goto :goto_4
:cond_a
const/16 p2, 0x8
.line 203
:goto_4
iget-boolean p3, v3, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecInfo;->tunneling:Z
if-eqz p3, :cond_b
const/16 v2, 0x20
:cond_b
if-eqz p1, :cond_c
const/4 p1, 0x4
goto :goto_5
:cond_c
const/4 p1, 0x3
:goto_5
or-int/2addr p2, v2
or-int/2addr p1, p2
return p1
.end method
.method public updateDroppedBufferCounters(I)V
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/mediacodec/MediaCodecRenderer;->decoderCounters:Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;
.line 655
iget v1, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->droppedBufferCount:I
add-int/2addr v1, p1
iput v1, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->droppedBufferCount:I
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
add-int/2addr v1, p1
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->consecutiveDroppedFrameCount:I
add-int/2addr v1, p1
iput v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->consecutiveDroppedFrameCount:I
.line 658
iget p1, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->maxConsecutiveDroppedBufferCount:I
invoke-static {v1, p1}, Ljava/lang/Math;->max(II)I
move-result p1
iput p1, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/decoder/DecoderCounters;->maxConsecutiveDroppedBufferCount:I
iget p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->droppedFrames:I
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maxDroppedFramesToNotify:I
if-lt p1, v0, :cond_0
.line 661
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/video/MediaCodecVideoRenderer;->maybeNotifyDroppedFrames()V
:cond_0
return-void
.end method