3122 lines
60 KiB
Smali
3122 lines
60 KiB
Smali
.class public Lf/k/a/b/z0/x;
|
|
.super Lf/k/a/b/e1/f;
|
|
.source "MediaCodecAudioRenderer.java"
|
|
|
|
# interfaces
|
|
.implements Lf/k/a/b/l1/q;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/k/a/b/z0/x$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public A0:I
|
|
|
|
.field public B0:Z
|
|
|
|
.field public C0:Z
|
|
|
|
.field public D0:Z
|
|
|
|
.field public E0:Landroid/media/MediaFormat;
|
|
|
|
.field public F0:Lcom/google/android/exoplayer2/Format;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public G0:J
|
|
|
|
.field public H0:Z
|
|
|
|
.field public I0:Z
|
|
|
|
.field public J0:J
|
|
|
|
.field public K0:I
|
|
|
|
.field public final w0:Landroid/content/Context;
|
|
|
|
.field public final x0:Lf/k/a/b/z0/m$a;
|
|
|
|
.field public final y0:Lf/k/a/b/z0/n;
|
|
|
|
.field public final z0:[J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lf/k/a/b/e1/g;Lf/k/a/b/c1/n;ZZLandroid/os/Handler;Lf/k/a/b/z0/m;Lf/k/a/b/z0/n;)V
|
|
.locals 7
|
|
.param p3 # Lf/k/a/b/c1/n;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p6 # Landroid/os/Handler;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p7 # Lf/k/a/b/z0/m;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Lf/k/a/b/e1/g;",
|
|
"Lf/k/a/b/c1/n<",
|
|
"Lf/k/a/b/c1/r;",
|
|
">;ZZ",
|
|
"Landroid/os/Handler;",
|
|
"Lf/k/a/b/z0/m;",
|
|
"Lf/k/a/b/z0/n;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const v6, 0x472c4400 # 44100.0f
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
invoke-direct/range {v0 .. v6}, Lf/k/a/b/e1/f;-><init>(ILf/k/a/b/e1/g;Lf/k/a/b/c1/n;ZZF)V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lf/k/a/b/z0/x;->w0:Landroid/content/Context;
|
|
|
|
iput-object p8, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
const-wide p1, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
iput-wide p1, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
const/16 p1, 0xa
|
|
|
|
new-array p1, p1, [J
|
|
|
|
iput-object p1, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
new-instance p1, Lf/k/a/b/z0/m$a;
|
|
|
|
invoke-direct {p1, p6, p7}, Lf/k/a/b/z0/m$a;-><init>(Landroid/os/Handler;Lf/k/a/b/z0/m;)V
|
|
|
|
iput-object p1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
new-instance p1, Lf/k/a/b/z0/x$b;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-direct {p1, p0, p2}, Lf/k/a/b/z0/x$b;-><init>(Lf/k/a/b/z0/x;Lf/k/a/b/z0/x$a;)V
|
|
|
|
check-cast p8, Lf/k/a/b/z0/t;
|
|
|
|
iput-object p1, p8, Lf/k/a/b/z0/t;->k:Lf/k/a/b/z0/n$c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public E()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public F()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public G()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final H()V
|
|
.locals 29
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
iget-object v1, v0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lf/k/a/b/z0/x;->c()Z
|
|
|
|
move-result v2
|
|
|
|
check-cast v1, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v1}, Lf/k/a/b/z0/t;->g()Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v3, :cond_24
|
|
|
|
iget v3, v1, Lf/k/a/b/z0/t;->B:I
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
goto/16 :goto_f
|
|
|
|
:cond_0
|
|
iget-object v3, v1, Lf/k/a/b/z0/t;->i:Lf/k/a/b/z0/p;
|
|
|
|
iget-object v7, v3, Lf/k/a/b/z0/p;->c:Landroid/media/AudioTrack;
|
|
|
|
invoke-static {v7}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v7}, Landroid/media/AudioTrack;->getPlayState()I
|
|
|
|
move-result v7
|
|
|
|
const/4 v8, 0x3
|
|
|
|
const/4 v10, 0x2
|
|
|
|
const-wide/16 v11, 0x3e8
|
|
|
|
const/4 v13, 0x1
|
|
|
|
if-ne v7, v8, :cond_16
|
|
|
|
invoke-virtual {v3}, Lf/k/a/b/z0/p;->b()J
|
|
|
|
move-result-wide v21
|
|
|
|
const-wide/16 v14, 0x0
|
|
|
|
cmp-long v7, v21, v14
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_1
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v16
|
|
|
|
div-long v4, v16, v11
|
|
|
|
iget-wide v11, v3, Lf/k/a/b/z0/p;->k:J
|
|
|
|
sub-long v11, v4, v11
|
|
|
|
const-wide/16 v16, 0x7530
|
|
|
|
cmp-long v7, v11, v16
|
|
|
|
if-ltz v7, :cond_3
|
|
|
|
iget-object v7, v3, Lf/k/a/b/z0/p;->b:[J
|
|
|
|
iget v11, v3, Lf/k/a/b/z0/p;->t:I
|
|
|
|
sub-long v16, v21, v4
|
|
|
|
aput-wide v16, v7, v11
|
|
|
|
add-int/2addr v11, v13
|
|
|
|
const/16 v7, 0xa
|
|
|
|
rem-int/2addr v11, v7
|
|
|
|
iput v11, v3, Lf/k/a/b/z0/p;->t:I
|
|
|
|
iget v11, v3, Lf/k/a/b/z0/p;->u:I
|
|
|
|
if-ge v11, v7, :cond_2
|
|
|
|
add-int/2addr v11, v13
|
|
|
|
iput v11, v3, Lf/k/a/b/z0/p;->u:I
|
|
|
|
:cond_2
|
|
iput-wide v4, v3, Lf/k/a/b/z0/p;->k:J
|
|
|
|
iput-wide v14, v3, Lf/k/a/b/z0/p;->j:J
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_0
|
|
iget v11, v3, Lf/k/a/b/z0/p;->u:I
|
|
|
|
if-ge v7, v11, :cond_3
|
|
|
|
iget-wide v14, v3, Lf/k/a/b/z0/p;->j:J
|
|
|
|
iget-object v12, v3, Lf/k/a/b/z0/p;->b:[J
|
|
|
|
aget-wide v18, v12, v7
|
|
|
|
int-to-long v11, v11
|
|
|
|
div-long v18, v18, v11
|
|
|
|
add-long v11, v18, v14
|
|
|
|
iput-wide v11, v3, Lf/k/a/b/z0/p;->j:J
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
const-wide/16 v14, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-boolean v7, v3, Lf/k/a/b/z0/p;->h:Z
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_4
|
|
iget-object v7, v3, Lf/k/a/b/z0/p;->f:Lf/k/a/b/z0/o;
|
|
|
|
invoke-static {v7}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v11, v7, Lf/k/a/b/z0/o;->a:Lf/k/a/b/z0/o$a;
|
|
|
|
const-wide/32 v23, 0x7a120
|
|
|
|
if-eqz v11, :cond_f
|
|
|
|
iget-wide v14, v7, Lf/k/a/b/z0/o;->e:J
|
|
|
|
sub-long v14, v4, v14
|
|
|
|
iget-wide v8, v7, Lf/k/a/b/z0/o;->d:J
|
|
|
|
cmp-long v19, v14, v8
|
|
|
|
if-gez v19, :cond_5
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_5
|
|
iput-wide v4, v7, Lf/k/a/b/z0/o;->e:J
|
|
|
|
iget-object v8, v11, Lf/k/a/b/z0/o$a;->a:Landroid/media/AudioTrack;
|
|
|
|
iget-object v9, v11, Lf/k/a/b/z0/o$a;->b:Landroid/media/AudioTimestamp;
|
|
|
|
invoke-virtual {v8, v9}, Landroid/media/AudioTrack;->getTimestamp(Landroid/media/AudioTimestamp;)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_7
|
|
|
|
iget-object v9, v11, Lf/k/a/b/z0/o$a;->b:Landroid/media/AudioTimestamp;
|
|
|
|
iget-wide v14, v9, Landroid/media/AudioTimestamp;->framePosition:J
|
|
|
|
iget-wide v12, v11, Lf/k/a/b/z0/o$a;->d:J
|
|
|
|
cmp-long v20, v12, v14
|
|
|
|
if-lez v20, :cond_6
|
|
|
|
iget-wide v12, v11, Lf/k/a/b/z0/o$a;->c:J
|
|
|
|
const-wide/16 v25, 0x1
|
|
|
|
add-long v12, v12, v25
|
|
|
|
iput-wide v12, v11, Lf/k/a/b/z0/o$a;->c:J
|
|
|
|
:cond_6
|
|
iput-wide v14, v11, Lf/k/a/b/z0/o$a;->d:J
|
|
|
|
iget-wide v12, v11, Lf/k/a/b/z0/o$a;->c:J
|
|
|
|
const/16 v20, 0x20
|
|
|
|
shl-long v12, v12, v20
|
|
|
|
add-long/2addr v14, v12
|
|
|
|
iput-wide v14, v11, Lf/k/a/b/z0/o$a;->e:J
|
|
|
|
:cond_7
|
|
iget v11, v7, Lf/k/a/b/z0/o;->b:I
|
|
|
|
if-eqz v11, :cond_d
|
|
|
|
const/4 v9, 0x1
|
|
|
|
if-eq v11, v9, :cond_b
|
|
|
|
if-eq v11, v10, :cond_a
|
|
|
|
const/4 v12, 0x3
|
|
|
|
if-eq v11, v12, :cond_9
|
|
|
|
const/4 v12, 0x4
|
|
|
|
if-ne v11, v12, :cond_8
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {v1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_9
|
|
if-eqz v8, :cond_10
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->d()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
if-nez v8, :cond_10
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->d()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_b
|
|
if-eqz v8, :cond_c
|
|
|
|
iget-object v11, v7, Lf/k/a/b/z0/o;->a:Lf/k/a/b/z0/o$a;
|
|
|
|
iget-wide v11, v11, Lf/k/a/b/z0/o$a;->e:J
|
|
|
|
iget-wide v13, v7, Lf/k/a/b/z0/o;->f:J
|
|
|
|
cmp-long v15, v11, v13
|
|
|
|
if-lez v15, :cond_10
|
|
|
|
invoke-virtual {v7, v10}, Lf/k/a/b/z0/o;->a(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_c
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->d()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_d
|
|
if-eqz v8, :cond_e
|
|
|
|
iget-object v11, v7, Lf/k/a/b/z0/o;->a:Lf/k/a/b/z0/o$a;
|
|
|
|
invoke-virtual {v11}, Lf/k/a/b/z0/o$a;->a()J
|
|
|
|
move-result-wide v11
|
|
|
|
iget-wide v13, v7, Lf/k/a/b/z0/o;->c:J
|
|
|
|
cmp-long v15, v11, v13
|
|
|
|
if-ltz v15, :cond_f
|
|
|
|
iget-object v11, v7, Lf/k/a/b/z0/o;->a:Lf/k/a/b/z0/o$a;
|
|
|
|
iget-wide v11, v11, Lf/k/a/b/z0/o$a;->e:J
|
|
|
|
iput-wide v11, v7, Lf/k/a/b/z0/o;->f:J
|
|
|
|
const/4 v9, 0x1
|
|
|
|
invoke-virtual {v7, v9}, Lf/k/a/b/z0/o;->a(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_e
|
|
iget-wide v11, v7, Lf/k/a/b/z0/o;->c:J
|
|
|
|
sub-long v11, v4, v11
|
|
|
|
cmp-long v13, v11, v23
|
|
|
|
if-lez v13, :cond_10
|
|
|
|
const/4 v11, 0x3
|
|
|
|
invoke-virtual {v7, v11}, Lf/k/a/b/z0/o;->a(I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_f
|
|
:goto_1
|
|
const/4 v8, 0x0
|
|
|
|
:cond_10
|
|
:goto_2
|
|
const-wide/32 v11, 0x4c4b40
|
|
|
|
if-nez v8, :cond_11
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_11
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->b()J
|
|
|
|
move-result-wide v25
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->a()J
|
|
|
|
move-result-wide v13
|
|
|
|
sub-long v27, v25, v4
|
|
|
|
invoke-static/range {v27 .. v28}, Ljava/lang/Math;->abs(J)J
|
|
|
|
move-result-wide v27
|
|
|
|
cmp-long v8, v27, v11
|
|
|
|
if-lez v8, :cond_12
|
|
|
|
iget-object v8, v3, Lf/k/a/b/z0/p;->a:Lf/k/a/b/z0/p$a;
|
|
|
|
check-cast v8, Lf/k/a/b/z0/t$f;
|
|
|
|
move-wide/from16 v27, v13
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
move-object v14, v8
|
|
|
|
move-wide/from16 v15, v27
|
|
|
|
move-wide/from16 v17, v25
|
|
|
|
move-wide/from16 v19, v4
|
|
|
|
invoke-virtual/range {v14 .. v22}, Lf/k/a/b/z0/t$f;->b(JJJJ)V
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->c()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_12
|
|
move-wide v14, v13
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
invoke-virtual {v3, v14, v15}, Lf/k/a/b/z0/p;->a(J)J
|
|
|
|
move-result-wide v16
|
|
|
|
sub-long v16, v16, v21
|
|
|
|
invoke-static/range {v16 .. v17}, Ljava/lang/Math;->abs(J)J
|
|
|
|
move-result-wide v16
|
|
|
|
cmp-long v8, v16, v11
|
|
|
|
if-lez v8, :cond_13
|
|
|
|
iget-object v8, v3, Lf/k/a/b/z0/p;->a:Lf/k/a/b/z0/p$a;
|
|
|
|
check-cast v8, Lf/k/a/b/z0/t$f;
|
|
|
|
move-wide v15, v14
|
|
|
|
move-object v14, v8
|
|
|
|
move-wide/from16 v17, v25
|
|
|
|
move-wide/from16 v19, v4
|
|
|
|
invoke-virtual/range {v14 .. v22}, Lf/k/a/b/z0/t$f;->a(JJJJ)V
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->c()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_13
|
|
iget v8, v7, Lf/k/a/b/z0/o;->b:I
|
|
|
|
const/4 v14, 0x4
|
|
|
|
if-ne v8, v14, :cond_14
|
|
|
|
invoke-virtual {v7}, Lf/k/a/b/z0/o;->d()V
|
|
|
|
:cond_14
|
|
:goto_3
|
|
iget-boolean v7, v3, Lf/k/a/b/z0/p;->o:Z
|
|
|
|
if-eqz v7, :cond_16
|
|
|
|
iget-object v7, v3, Lf/k/a/b/z0/p;->l:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v7, :cond_16
|
|
|
|
iget-wide v14, v3, Lf/k/a/b/z0/p;->p:J
|
|
|
|
sub-long v14, v4, v14
|
|
|
|
cmp-long v8, v14, v23
|
|
|
|
if-ltz v8, :cond_16
|
|
|
|
:try_start_0
|
|
iget-object v8, v3, Lf/k/a/b/z0/p;->c:Landroid/media/AudioTrack;
|
|
|
|
invoke-static {v8}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-array v14, v6, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v7, v8, v14}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Ljava/lang/Integer;
|
|
|
|
invoke-static {v7}, Lf/k/a/b/l1/f0;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v7
|
|
|
|
int-to-long v7, v7
|
|
|
|
const-wide/16 v14, 0x3e8
|
|
|
|
mul-long v7, v7, v14
|
|
|
|
iget-wide v14, v3, Lf/k/a/b/z0/p;->i:J
|
|
|
|
sub-long/2addr v7, v14
|
|
|
|
iput-wide v7, v3, Lf/k/a/b/z0/p;->m:J
|
|
|
|
iget-wide v7, v3, Lf/k/a/b/z0/p;->m:J
|
|
|
|
invoke-static {v7, v8, v9, v10}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v7
|
|
|
|
iput-wide v7, v3, Lf/k/a/b/z0/p;->m:J
|
|
|
|
iget-wide v7, v3, Lf/k/a/b/z0/p;->m:J
|
|
|
|
cmp-long v14, v7, v11
|
|
|
|
if-lez v14, :cond_15
|
|
|
|
iget-object v11, v3, Lf/k/a/b/z0/p;->a:Lf/k/a/b/z0/p$a;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
check-cast v11, Lf/k/a/b/z0/t$f;
|
|
|
|
:try_start_1
|
|
invoke-virtual {v11, v7, v8}, Lf/k/a/b/z0/t$f;->a(J)V
|
|
|
|
iput-wide v9, v3, Lf/k/a/b/z0/p;->m:J
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
:cond_15
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
:catch_0
|
|
const/4 v7, 0x0
|
|
|
|
iput-object v7, v3, Lf/k/a/b/z0/p;->l:Ljava/lang/reflect/Method;
|
|
|
|
:goto_4
|
|
iput-wide v4, v3, Lf/k/a/b/z0/p;->p:J
|
|
|
|
goto :goto_6
|
|
|
|
:cond_16
|
|
:goto_5
|
|
const/4 v7, 0x0
|
|
|
|
:goto_6
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v4
|
|
|
|
const-wide/16 v8, 0x3e8
|
|
|
|
div-long/2addr v4, v8
|
|
|
|
iget-object v8, v3, Lf/k/a/b/z0/p;->f:Lf/k/a/b/z0/o;
|
|
|
|
invoke-static {v8}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget v9, v8, Lf/k/a/b/z0/o;->b:I
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const/4 v11, 0x2
|
|
|
|
if-eq v9, v10, :cond_18
|
|
|
|
if-ne v9, v11, :cond_17
|
|
|
|
goto :goto_7
|
|
|
|
:cond_17
|
|
const/4 v9, 0x0
|
|
|
|
goto :goto_8
|
|
|
|
:cond_18
|
|
:goto_7
|
|
const/4 v9, 0x1
|
|
|
|
:goto_8
|
|
if-eqz v9, :cond_1b
|
|
|
|
invoke-virtual {v8}, Lf/k/a/b/z0/o;->a()J
|
|
|
|
move-result-wide v12
|
|
|
|
invoke-virtual {v3, v12, v13}, Lf/k/a/b/z0/p;->a(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
iget v9, v8, Lf/k/a/b/z0/o;->b:I
|
|
|
|
if-ne v9, v11, :cond_19
|
|
|
|
goto :goto_9
|
|
|
|
:cond_19
|
|
const/4 v10, 0x0
|
|
|
|
:goto_9
|
|
if-nez v10, :cond_1a
|
|
|
|
goto :goto_b
|
|
|
|
:cond_1a
|
|
invoke-virtual {v8}, Lf/k/a/b/z0/o;->b()J
|
|
|
|
move-result-wide v8
|
|
|
|
sub-long/2addr v4, v8
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
goto :goto_b
|
|
|
|
:cond_1b
|
|
iget v8, v3, Lf/k/a/b/z0/p;->u:I
|
|
|
|
if-nez v8, :cond_1c
|
|
|
|
invoke-virtual {v3}, Lf/k/a/b/z0/p;->b()J
|
|
|
|
move-result-wide v4
|
|
|
|
goto :goto_a
|
|
|
|
:cond_1c
|
|
iget-wide v8, v3, Lf/k/a/b/z0/p;->j:J
|
|
|
|
add-long/2addr v4, v8
|
|
|
|
:goto_a
|
|
if-nez v2, :cond_1d
|
|
|
|
iget-wide v2, v3, Lf/k/a/b/z0/p;->m:J
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
:cond_1d
|
|
move-wide v2, v4
|
|
|
|
:goto_b
|
|
iget-object v4, v1, Lf/k/a/b/z0/t;->n:Lf/k/a/b/z0/t$c;
|
|
|
|
invoke-virtual {v1}, Lf/k/a/b/z0/t;->e()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-virtual {v4, v8, v9}, Lf/k/a/b/z0/t$c;->b(J)J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
iget-wide v4, v1, Lf/k/a/b/z0/t;->C:J
|
|
|
|
:goto_c
|
|
iget-object v8, v1, Lf/k/a/b/z0/t;->j:Ljava/util/ArrayDeque;
|
|
|
|
invoke-virtual {v8}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_1e
|
|
|
|
iget-object v8, v1, Lf/k/a/b/z0/t;->j:Ljava/util/ArrayDeque;
|
|
|
|
invoke-virtual {v8}, Ljava/util/ArrayDeque;->getFirst()Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lf/k/a/b/z0/t$e;
|
|
|
|
invoke-static {v8}, Lf/k/a/b/z0/t$e;->a(Lf/k/a/b/z0/t$e;)J
|
|
|
|
move-result-wide v8
|
|
|
|
cmp-long v10, v2, v8
|
|
|
|
if-ltz v10, :cond_1e
|
|
|
|
iget-object v7, v1, Lf/k/a/b/z0/t;->j:Ljava/util/ArrayDeque;
|
|
|
|
invoke-virtual {v7}, Ljava/util/ArrayDeque;->remove()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Lf/k/a/b/z0/t$e;
|
|
|
|
goto :goto_c
|
|
|
|
:cond_1e
|
|
if-eqz v7, :cond_1f
|
|
|
|
iget-object v8, v7, Lf/k/a/b/z0/t$e;->a:Lf/k/a/b/m0;
|
|
|
|
iput-object v8, v1, Lf/k/a/b/z0/t;->r:Lf/k/a/b/m0;
|
|
|
|
invoke-static {v7}, Lf/k/a/b/z0/t$e;->a(Lf/k/a/b/z0/t$e;)J
|
|
|
|
move-result-wide v8
|
|
|
|
iput-wide v8, v1, Lf/k/a/b/z0/t;->t:J
|
|
|
|
iget-wide v7, v7, Lf/k/a/b/z0/t$e;->b:J
|
|
|
|
iget-wide v9, v1, Lf/k/a/b/z0/t;->C:J
|
|
|
|
sub-long/2addr v7, v9
|
|
|
|
iput-wide v7, v1, Lf/k/a/b/z0/t;->s:J
|
|
|
|
:cond_1f
|
|
iget-object v7, v1, Lf/k/a/b/z0/t;->r:Lf/k/a/b/m0;
|
|
|
|
iget v7, v7, Lf/k/a/b/m0;->a:F
|
|
|
|
const/high16 v8, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v7, v7, v8
|
|
|
|
if-nez v7, :cond_20
|
|
|
|
iget-wide v7, v1, Lf/k/a/b/z0/t;->s:J
|
|
|
|
add-long/2addr v2, v7
|
|
|
|
iget-wide v7, v1, Lf/k/a/b/z0/t;->t:J
|
|
|
|
sub-long/2addr v2, v7
|
|
|
|
goto :goto_e
|
|
|
|
:cond_20
|
|
iget-object v7, v1, Lf/k/a/b/z0/t;->j:Ljava/util/ArrayDeque;
|
|
|
|
invoke-virtual {v7}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_23
|
|
|
|
iget-wide v7, v1, Lf/k/a/b/z0/t;->s:J
|
|
|
|
iget-object v9, v1, Lf/k/a/b/z0/t;->b:Lf/k/a/b/z0/t$b;
|
|
|
|
iget-wide v10, v1, Lf/k/a/b/z0/t;->t:J
|
|
|
|
sub-long v12, v2, v10
|
|
|
|
check-cast v9, Lf/k/a/b/z0/t$d;
|
|
|
|
iget-object v2, v9, Lf/k/a/b/z0/t$d;->c:Lf/k/a/b/z0/b0;
|
|
|
|
iget-wide v9, v2, Lf/k/a/b/z0/b0;->o:J
|
|
|
|
const-wide/16 v14, 0x400
|
|
|
|
cmp-long v3, v9, v14
|
|
|
|
if-ltz v3, :cond_22
|
|
|
|
iget-object v3, v2, Lf/k/a/b/z0/b0;->h:Lf/k/a/b/z0/l$a;
|
|
|
|
iget v3, v3, Lf/k/a/b/z0/l$a;->a:I
|
|
|
|
iget-object v11, v2, Lf/k/a/b/z0/b0;->g:Lf/k/a/b/z0/l$a;
|
|
|
|
iget v11, v11, Lf/k/a/b/z0/l$a;->a:I
|
|
|
|
if-ne v3, v11, :cond_21
|
|
|
|
iget-wide v14, v2, Lf/k/a/b/z0/b0;->n:J
|
|
|
|
move-wide/from16 v16, v9
|
|
|
|
invoke-static/range {v12 .. v17}, Lf/k/a/b/l1/f0;->b(JJJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
goto :goto_d
|
|
|
|
:cond_21
|
|
iget-wide v14, v2, Lf/k/a/b/z0/b0;->n:J
|
|
|
|
int-to-long v2, v3
|
|
|
|
mul-long v14, v14, v2
|
|
|
|
int-to-long v2, v11
|
|
|
|
mul-long v16, v9, v2
|
|
|
|
invoke-static/range {v12 .. v17}, Lf/k/a/b/l1/f0;->b(JJJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
goto :goto_d
|
|
|
|
:cond_22
|
|
iget v2, v2, Lf/k/a/b/z0/b0;->c:F
|
|
|
|
float-to-double v2, v2
|
|
|
|
long-to-double v9, v12
|
|
|
|
mul-double v2, v2, v9
|
|
|
|
double-to-long v2, v2
|
|
|
|
goto :goto_d
|
|
|
|
:cond_23
|
|
iget-wide v7, v1, Lf/k/a/b/z0/t;->s:J
|
|
|
|
iget-wide v9, v1, Lf/k/a/b/z0/t;->t:J
|
|
|
|
sub-long/2addr v2, v9
|
|
|
|
iget-object v9, v1, Lf/k/a/b/z0/t;->r:Lf/k/a/b/m0;
|
|
|
|
iget v9, v9, Lf/k/a/b/m0;->a:F
|
|
|
|
invoke-static {v2, v3, v9}, Lf/k/a/b/l1/f0;->a(JF)J
|
|
|
|
move-result-wide v2
|
|
|
|
:goto_d
|
|
add-long/2addr v2, v7
|
|
|
|
:goto_e
|
|
iget-object v7, v1, Lf/k/a/b/z0/t;->n:Lf/k/a/b/z0/t$c;
|
|
|
|
iget-object v1, v1, Lf/k/a/b/z0/t;->b:Lf/k/a/b/z0/t$b;
|
|
|
|
check-cast v1, Lf/k/a/b/z0/t$d;
|
|
|
|
iget-object v1, v1, Lf/k/a/b/z0/t$d;->b:Lf/k/a/b/z0/z;
|
|
|
|
iget-wide v8, v1, Lf/k/a/b/z0/z;->q:J
|
|
|
|
invoke-virtual {v7, v8, v9}, Lf/k/a/b/z0/t$c;->b(J)J
|
|
|
|
move-result-wide v7
|
|
|
|
add-long/2addr v7, v2
|
|
|
|
add-long/2addr v4, v7
|
|
|
|
goto :goto_10
|
|
|
|
:cond_24
|
|
:goto_f
|
|
const-wide/high16 v4, -0x8000000000000000L
|
|
|
|
:goto_10
|
|
const-wide/high16 v1, -0x8000000000000000L
|
|
|
|
cmp-long v3, v4, v1
|
|
|
|
if-eqz v3, :cond_26
|
|
|
|
iget-boolean v1, v0, Lf/k/a/b/z0/x;->I0:Z
|
|
|
|
if-eqz v1, :cond_25
|
|
|
|
goto :goto_11
|
|
|
|
:cond_25
|
|
iget-wide v1, v0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
invoke-static {v1, v2, v4, v5}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v4
|
|
|
|
:goto_11
|
|
iput-wide v4, v0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
iput-boolean v6, v0, Lf/k/a/b/z0/x;->I0:Z
|
|
|
|
:cond_26
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(FLcom/google/android/exoplayer2/Format;[Lcom/google/android/exoplayer2/Format;)F
|
|
.locals 4
|
|
|
|
array-length p2, p3
|
|
|
|
const/4 v0, -0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, -0x1
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_1
|
|
|
|
aget-object v3, p3, v1
|
|
|
|
iget v3, v3, Lcom/google/android/exoplayer2/Format;->z:I
|
|
|
|
if-eq v3, v0, :cond_0
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-ne v2, v0, :cond_2
|
|
|
|
const/high16 p1, -0x40800000 # -1.0f
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
int-to-float p2, v2
|
|
|
|
mul-float p1, p1, p2
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(ILjava/lang/String;)I
|
|
.locals 3
|
|
|
|
const-string v0, "audio/eac3-joc"
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
const/16 v2, 0x12
|
|
|
|
check-cast p2, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {p2, v1, v2}, Lf/k/a/b/z0/t;->a(II)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-static {v0}, Lf/k/a/b/l1/r;->b(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const-string p2, "audio/eac3"
|
|
|
|
:cond_1
|
|
invoke-static {p2}, Lf/k/a/b/l1/r;->b(Ljava/lang/String;)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lf/k/a/b/z0/t;->a(II)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
return p2
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Landroid/media/MediaCodec;Lf/k/a/b/e1/e;Lcom/google/android/exoplayer2/Format;Lcom/google/android/exoplayer2/Format;)I
|
|
.locals 2
|
|
|
|
invoke-virtual {p0, p2, p4}, Lf/k/a/b/z0/x;->a(Lf/k/a/b/e1/e;Lcom/google/android/exoplayer2/Format;)I
|
|
|
|
move-result p1
|
|
|
|
iget v0, p0, Lf/k/a/b/z0/x;->A0:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-gt p1, v0, :cond_3
|
|
|
|
iget p1, p3, Lcom/google/android/exoplayer2/Format;->B:I
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
iget p1, p3, Lcom/google/android/exoplayer2/Format;->C:I
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
iget p1, p4, Lcom/google/android/exoplayer2/Format;->B:I
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
iget p1, p4, Lcom/google/android/exoplayer2/Format;->C:I
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p2, p3, p4, p1}, Lf/k/a/b/e1/e;->a(Lcom/google/android/exoplayer2/Format;Lcom/google/android/exoplayer2/Format;Z)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
const/4 p1, 0x3
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
iget-object p2, p3, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
iget-object v0, p4, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
invoke-static {p2, v0}, Lf/k/a/b/l1/f0;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget p2, p3, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
iget v0, p4, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
iget p2, p3, Lcom/google/android/exoplayer2/Format;->z:I
|
|
|
|
iget v0, p4, Lcom/google/android/exoplayer2/Format;->z:I
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
iget p2, p3, Lcom/google/android/exoplayer2/Format;->A:I
|
|
|
|
iget v0, p4, Lcom/google/android/exoplayer2/Format;->A:I
|
|
|
|
if-ne p2, v0, :cond_2
|
|
|
|
invoke-virtual {p3, p4}, Lcom/google/android/exoplayer2/Format;->a(Lcom/google/android/exoplayer2/Format;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object p2, p3, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
const-string p3, "audio/opus"
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
const/4 p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_3
|
|
|
|
return p1
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public final a(Lf/k/a/b/e1/e;Lcom/google/android/exoplayer2/Format;)I
|
|
.locals 1
|
|
|
|
iget-object p1, p1, Lf/k/a/b/e1/e;->a:Ljava/lang/String;
|
|
|
|
const-string v0, "OMX.google.raw.decoder"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
sget p1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 v0, 0x18
|
|
|
|
if-ge p1, v0, :cond_1
|
|
|
|
const/16 v0, 0x17
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->w0:Landroid/content/Context;
|
|
|
|
invoke-static {p1}, Lf/k/a/b/l1/f0;->d(Landroid/content/Context;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
:cond_0
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
iget p1, p2, Lcom/google/android/exoplayer2/Format;->m:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/e1/g;Lf/k/a/b/c1/n;Lcom/google/android/exoplayer2/Format;)I
|
|
.locals 6
|
|
.param p2 # Lf/k/a/b/c1/n;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf/k/a/b/e1/g;",
|
|
"Lf/k/a/b/c1/n<",
|
|
"Lf/k/a/b/c1/r;",
|
|
">;",
|
|
"Lcom/google/android/exoplayer2/Format;",
|
|
")I"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/e1/h$c;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p3, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lf/k/a/b/l1/r;->f(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
sget v1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 v3, 0x15
|
|
|
|
if-lt v1, v3, :cond_1
|
|
|
|
const/16 v1, 0x20
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
iget-object v3, p3, Lcom/google/android/exoplayer2/Format;->o:Lcom/google/android/exoplayer2/drm/DrmInitData;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
const-class v3, Lf/k/a/b/c1/r;
|
|
|
|
iget-object v5, p3, Lcom/google/android/exoplayer2/Format;->F:Ljava/lang/Class;
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
iget-object v3, p3, Lcom/google/android/exoplayer2/Format;->F:Ljava/lang/Class;
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
iget-object v3, p3, Lcom/google/android/exoplayer2/Format;->o:Lcom/google/android/exoplayer2/drm/DrmInitData;
|
|
|
|
invoke-static {p2, v3}, Lf/k/a/b/s;->a(Lf/k/a/b/c1/n;Lcom/google/android/exoplayer2/drm/DrmInitData;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 p2, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/4 p2, 0x1
|
|
|
|
:goto_2
|
|
if-eqz p2, :cond_5
|
|
|
|
iget v3, p3, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
invoke-virtual {p0, v3, v0}, Lf/k/a/b/z0/x;->a(ILjava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v3, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v3, :cond_5
|
|
|
|
move-object v3, p1
|
|
|
|
check-cast v3, Lf/k/a/b/e1/g$a;
|
|
|
|
invoke-virtual {v3}, Lf/k/a/b/e1/g$a;->a()Lf/k/a/b/e1/e;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
or-int/lit8 p1, v1, 0xc
|
|
|
|
return p1
|
|
|
|
:cond_5
|
|
const-string v3, "audio/raw"
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
iget v3, p3, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
iget v5, p3, Lcom/google/android/exoplayer2/Format;->A:I
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0, v3, v5}, Lf/k/a/b/z0/t;->a(II)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
:cond_6
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
iget v3, p3, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
const/4 v5, 0x2
|
|
|
|
invoke-virtual {v0, v3, v5}, Lf/k/a/b/z0/t;->a(II)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
:cond_7
|
|
return v4
|
|
|
|
:cond_8
|
|
invoke-virtual {p0, p1, p3, v2}, Lf/k/a/b/z0/x;->a(Lf/k/a/b/e1/g;Lcom/google/android/exoplayer2/Format;Z)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
return v4
|
|
|
|
:cond_9
|
|
if-nez p2, :cond_a
|
|
|
|
return v5
|
|
|
|
:cond_a
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lf/k/a/b/e1/e;
|
|
|
|
invoke-virtual {p1, p3}, Lf/k/a/b/e1/e;->a(Lcom/google/android/exoplayer2/Format;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_b
|
|
|
|
invoke-virtual {p1, p3}, Lf/k/a/b/e1/e;->b(Lcom/google/android/exoplayer2/Format;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
const/16 p1, 0x10
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
const/16 p1, 0x8
|
|
|
|
:goto_4
|
|
if-eqz p2, :cond_c
|
|
|
|
const/4 p2, 0x4
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
const/4 p2, 0x3
|
|
|
|
:goto_5
|
|
or-int/2addr p1, p2
|
|
|
|
or-int/2addr p1, v1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/e1/g;Lcom/google/android/exoplayer2/Format;Z)Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf/k/a/b/e1/g;",
|
|
"Lcom/google/android/exoplayer2/Format;",
|
|
"Z)",
|
|
"Ljava/util/List<",
|
|
"Lf/k/a/b/e1/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/e1/h$c;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p2, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
iget v1, p2, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
invoke-virtual {p0, v1, v0}, Lf/k/a/b/z0/x;->a(ILjava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lf/k/a/b/e1/g$a;
|
|
|
|
invoke-virtual {v1}, Lf/k/a/b/e1/g$a;->a()Lf/k/a/b/e1/e;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {v1}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
check-cast p1, Lf/k/a/b/e1/g$a;
|
|
|
|
invoke-virtual {p1, v0, p3, v2}, Lf/k/a/b/e1/g$a;->a(Ljava/lang/String;ZZ)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
new-instance p1, Lf/k/a/b/e1/b;
|
|
|
|
invoke-direct {p1, p2}, Lf/k/a/b/e1/b;-><init>(Lcom/google/android/exoplayer2/Format;)V
|
|
|
|
invoke-static {v1, p1}, Lf/k/a/b/e1/h;->a(Ljava/util/List;Lf/k/a/b/e1/h$g;)V
|
|
|
|
const-string p1, "audio/eac3-joc"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
const-string p2, "audio/eac3"
|
|
|
|
invoke-static {p2, p3, v2}, Lf/k/a/b/e1/h;->b(Ljava/lang/String;ZZ)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object p1, v1
|
|
|
|
:goto_1
|
|
invoke-static {p1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(ILjava/lang/Object;)V
|
|
.locals 4
|
|
.param p2 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_7
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
const/4 v0, 0x5
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
check-cast p2, Lf/k/a/b/z0/q;
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p1, Lf/k/a/b/z0/t;
|
|
|
|
iget-object v0, p1, Lf/k/a/b/z0/t;->P:Lf/k/a/b/z0/q;
|
|
|
|
invoke-virtual {v0, p2}, Lf/k/a/b/z0/q;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget v0, p2, Lf/k/a/b/z0/q;->a:I
|
|
|
|
iget v1, p2, Lf/k/a/b/z0/q;->b:F
|
|
|
|
iget-object v2, p1, Lf/k/a/b/z0/t;->o:Landroid/media/AudioTrack;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
iget-object v3, p1, Lf/k/a/b/z0/t;->P:Lf/k/a/b/z0/q;
|
|
|
|
iget v3, v3, Lf/k/a/b/z0/q;->a:I
|
|
|
|
if-eq v3, v0, :cond_2
|
|
|
|
invoke-virtual {v2, v0}, Landroid/media/AudioTrack;->attachAuxEffect(I)I
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p1, Lf/k/a/b/z0/t;->o:Landroid/media/AudioTrack;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/media/AudioTrack;->setAuxEffectSendLevel(F)I
|
|
|
|
:cond_3
|
|
iput-object p2, p1, Lf/k/a/b/z0/t;->P:Lf/k/a/b/z0/q;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
check-cast p2, Lf/k/a/b/z0/i;
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p1, Lf/k/a/b/z0/t;
|
|
|
|
iget-object v0, p1, Lf/k/a/b/z0/t;->p:Lf/k/a/b/z0/i;
|
|
|
|
invoke-virtual {v0, p2}, Lf/k/a/b/z0/i;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
iput-object p2, p1, Lf/k/a/b/z0/t;->p:Lf/k/a/b/z0/i;
|
|
|
|
iget-boolean p2, p1, Lf/k/a/b/z0/t;->Q:Z
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
invoke-virtual {p1}, Lf/k/a/b/z0/t;->b()V
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput p2, p1, Lf/k/a/b/z0/t;->O:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p2, Ljava/lang/Float;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result p2
|
|
|
|
check-cast p1, Lf/k/a/b/z0/t;
|
|
|
|
iget v0, p1, Lf/k/a/b/z0/t;->D:F
|
|
|
|
cmpl-float v0, v0, p2
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
iput p2, p1, Lf/k/a/b/z0/t;->D:F
|
|
|
|
invoke-virtual {p1}, Lf/k/a/b/z0/t;->k()V
|
|
|
|
:cond_8
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(JZ)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1, p2, p3}, Lf/k/a/b/e1/f;->a(JZ)V
|
|
|
|
iget-object p3, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p3, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {p3}, Lf/k/a/b/z0/t;->b()V
|
|
|
|
iput-wide p1, p0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lf/k/a/b/z0/x;->H0:Z
|
|
|
|
iput-boolean p1, p0, Lf/k/a/b/z0/x;->I0:Z
|
|
|
|
const-wide p1, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
iput-wide p1, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/media/MediaCodec;Landroid/media/MediaFormat;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->E0:Landroid/media/MediaFormat;
|
|
|
|
const-string v0, "channel-count"
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
|
|
|
|
move-result p2
|
|
|
|
const-string v1, "mime"
|
|
|
|
invoke-virtual {p1, v1}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, p2, v1}, Lf/k/a/b/z0/x;->a(ILjava/lang/String;)I
|
|
|
|
move-result p2
|
|
|
|
move v2, p2
|
|
|
|
move-object p2, p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-string p1, "v-bits-per-sample"
|
|
|
|
invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Lf/k/a/b/l1/f0;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget-object v1, p1, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
const-string v2, "audio/raw"
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget p1, p1, Lcom/google/android/exoplayer2/Format;->A:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x2
|
|
|
|
:goto_0
|
|
move v2, p1
|
|
|
|
:goto_1
|
|
invoke-virtual {p2, v0}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
const-string p1, "sample-rate"
|
|
|
|
invoke-virtual {p2, p1}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I
|
|
|
|
move-result v4
|
|
|
|
iget-boolean p1, p0, Lf/k/a/b/z0/x;->C0:Z
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
const/4 p1, 0x6
|
|
|
|
if-ne v3, p1, :cond_3
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget p2, p2, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
if-ge p2, p1, :cond_3
|
|
|
|
new-array p1, p2, [I
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:goto_2
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget v0, v0, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
if-ge p2, v0, :cond_4
|
|
|
|
aput p2, p1, p2
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
:cond_4
|
|
move-object v6, p1
|
|
|
|
:try_start_0
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget v7, p2, Lcom/google/android/exoplayer2/Format;->B:I
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget v8, p2, Lcom/google/android/exoplayer2/Format;->C:I
|
|
:try_end_0
|
|
.catch Lf/k/a/b/z0/n$a; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lf/k/a/b/z0/t;
|
|
|
|
:try_start_1
|
|
invoke-virtual/range {v1 .. v8}, Lf/k/a/b/z0/t;->a(IIII[III)V
|
|
:try_end_1
|
|
.catch Lf/k/a/b/z0/n$a; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lf/k/a/b/s;->a(Ljava/lang/Exception;Lcom/google/android/exoplayer2/Format;)Lf/k/a/b/z;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/e0;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1}, Lf/k/a/b/e1/f;->a(Lf/k/a/b/e0;)V
|
|
|
|
iget-object p1, p1, Lf/k/a/b/e0;->c:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iput-object p1, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
iget-object v1, p1, Lf/k/a/b/z0/m$a;->a:Landroid/os/Handler;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
new-instance v2, Lf/k/a/b/z0/a;
|
|
|
|
invoke-direct {v2, p1, v0}, Lf/k/a/b/z0/a;-><init>(Lf/k/a/b/z0/m$a;Lcom/google/android/exoplayer2/Format;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/e1/e;Landroid/media/MediaCodec;Lcom/google/android/exoplayer2/Format;Landroid/media/MediaCrypto;F)V
|
|
.locals 8
|
|
.param p4 # Landroid/media/MediaCrypto;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lf/k/a/b/s;->j:[Lcom/google/android/exoplayer2/Format;
|
|
|
|
invoke-virtual {p0, p1, p3}, Lf/k/a/b/z0/x;->a(Lf/k/a/b/e1/e;Lcom/google/android/exoplayer2/Format;)I
|
|
|
|
move-result v1
|
|
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v2, v4, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
array-length v2, v0
|
|
|
|
move v5, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v2, :cond_2
|
|
|
|
aget-object v6, v0, v1
|
|
|
|
invoke-virtual {p1, p3, v6, v3}, Lf/k/a/b/e1/e;->a(Lcom/google/android/exoplayer2/Format;Lcom/google/android/exoplayer2/Format;Z)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
invoke-virtual {p0, p1, v6}, Lf/k/a/b/z0/x;->a(Lf/k/a/b/e1/e;Lcom/google/android/exoplayer2/Format;)I
|
|
|
|
move-result v6
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v5
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v1, v5
|
|
|
|
:goto_1
|
|
iput v1, p0, Lf/k/a/b/z0/x;->A0:I
|
|
|
|
iget-object v0, p1, Lf/k/a/b/e1/e;->a:Ljava/lang/String;
|
|
|
|
sget v1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 v2, 0x18
|
|
|
|
const-string v5, "samsung"
|
|
|
|
if-ge v1, v2, :cond_4
|
|
|
|
const-string v1, "OMX.SEC.aac.dec"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "zeroflte"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "herolte"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "heroqlte"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:cond_3
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
iput-boolean v0, p0, Lf/k/a/b/z0/x;->C0:Z
|
|
|
|
iget-object v0, p1, Lf/k/a/b/e1/e;->a:Ljava/lang/String;
|
|
|
|
sget v1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 v2, 0x15
|
|
|
|
if-ge v1, v2, :cond_6
|
|
|
|
const-string v1, "OMX.SEC.mp3.dec"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "baffin"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "grand"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "fortuna"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "gprimelte"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "j2y18lte"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
sget-object v0, Lf/k/a/b/l1/f0;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "ms01"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
:cond_5
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
const/4 v0, 0x0
|
|
|
|
:goto_3
|
|
iput-boolean v0, p0, Lf/k/a/b/z0/x;->D0:Z
|
|
|
|
iget-boolean v0, p1, Lf/k/a/b/e1/e;->g:Z
|
|
|
|
iput-boolean v0, p0, Lf/k/a/b/z0/x;->B0:Z
|
|
|
|
iget-boolean v0, p0, Lf/k/a/b/z0/x;->B0:Z
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
const-string p1, "audio/raw"
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget-object p1, p1, Lf/k/a/b/e1/e;->c:Ljava/lang/String;
|
|
|
|
:goto_4
|
|
iget v0, p0, Lf/k/a/b/z0/x;->A0:I
|
|
|
|
new-instance v1, Landroid/media/MediaFormat;
|
|
|
|
invoke-direct {v1}, Landroid/media/MediaFormat;-><init>()V
|
|
|
|
const-string v2, "mime"
|
|
|
|
invoke-virtual {v1, v2, p1}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget p1, p3, Lcom/google/android/exoplayer2/Format;->y:I
|
|
|
|
const-string v5, "channel-count"
|
|
|
|
invoke-virtual {v1, v5, p1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
|
|
|
|
iget p1, p3, Lcom/google/android/exoplayer2/Format;->z:I
|
|
|
|
const-string v5, "sample-rate"
|
|
|
|
invoke-virtual {v1, v5, p1}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
|
|
|
|
iget-object p1, p3, Lcom/google/android/exoplayer2/Format;->n:Ljava/util/List;
|
|
|
|
invoke-static {v1, p1}, Ls/a/b/b/a;->a(Landroid/media/MediaFormat;Ljava/util/List;)V
|
|
|
|
const-string p1, "max-input-size"
|
|
|
|
invoke-static {v1, p1, v0}, Ls/a/b/b/a;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)V
|
|
|
|
sget p1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 v0, 0x17
|
|
|
|
if-lt p1, v0, :cond_a
|
|
|
|
const-string p1, "priority"
|
|
|
|
invoke-virtual {v1, p1, v3}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
|
|
|
|
const/high16 p1, -0x40800000 # -1.0f
|
|
|
|
cmpl-float p1, p5, p1
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
sget p1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
if-ne p1, v0, :cond_9
|
|
|
|
sget-object p1, Lf/k/a/b/l1/f0;->d:Ljava/lang/String;
|
|
|
|
const-string v0, "ZTE B2017G"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
sget-object p1, Lf/k/a/b/l1/f0;->d:Ljava/lang/String;
|
|
|
|
const-string v0, "AXON 7 mini"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
:cond_8
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
const/4 p1, 0x0
|
|
|
|
:goto_5
|
|
if-nez p1, :cond_a
|
|
|
|
const-string p1, "operating-rate"
|
|
|
|
invoke-virtual {v1, p1, p5}, Landroid/media/MediaFormat;->setFloat(Ljava/lang/String;F)V
|
|
|
|
:cond_a
|
|
sget p1, Lf/k/a/b/l1/f0;->a:I
|
|
|
|
const/16 p5, 0x1c
|
|
|
|
if-gt p1, p5, :cond_b
|
|
|
|
iget-object p1, p3, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
const-string p5, "audio/ac4"
|
|
|
|
invoke-virtual {p5, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_b
|
|
|
|
const-string p1, "ac4-is-sync"
|
|
|
|
invoke-virtual {v1, p1, v4}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V
|
|
|
|
:cond_b
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p2, v1, p1, p4, v3}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V
|
|
|
|
iget-boolean p2, p0, Lf/k/a/b/z0/x;->B0:Z
|
|
|
|
if-eqz p2, :cond_c
|
|
|
|
iput-object v1, p0, Lf/k/a/b/z0/x;->E0:Landroid/media/MediaFormat;
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->E0:Landroid/media/MediaFormat;
|
|
|
|
iget-object p2, p3, Lcom/google/android/exoplayer2/Format;->l:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v2, p2}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
iput-object p1, p0, Lf/k/a/b/z0/x;->E0:Landroid/media/MediaFormat;
|
|
|
|
:goto_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/m0;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
iget-object v1, v0, Lf/k/a/b/z0/t;->n:Lf/k/a/b/z0/t$c;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-boolean v1, v1, Lf/k/a/b/z0/t$c;->j:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
sget-object p1, Lf/k/a/b/m0;->e:Lf/k/a/b/m0;
|
|
|
|
iput-object p1, v0, Lf/k/a/b/z0/t;->r:Lf/k/a/b/m0;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->d()Lf/k/a/b/m0;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v1}, Lf/k/a/b/m0;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->g()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iput-object p1, v0, Lf/k/a/b/z0/t;->q:Lf/k/a/b/m0;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-object p1, v0, Lf/k/a/b/z0/t;->r:Lf/k/a/b/m0;
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;JJ)V
|
|
.locals 9
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v7, v1, Lf/k/a/b/z0/m$a;->a:Landroid/os/Handler;
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
new-instance v8, Lf/k/a/b/z0/b;
|
|
|
|
move-object v0, v8
|
|
|
|
move-object v2, p1
|
|
|
|
move-wide v3, p2
|
|
|
|
move-wide v5, p4
|
|
|
|
invoke-direct/range {v0 .. v6}, Lf/k/a/b/z0/b;-><init>(Lf/k/a/b/z0/m$a;Ljava/lang/String;JJ)V
|
|
|
|
invoke-virtual {v7, v8}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1}, Lf/k/a/b/e1/f;->a(Z)V
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v0, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
iget-object v1, p1, Lf/k/a/b/z0/m$a;->a:Landroid/os/Handler;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
new-instance v2, Lf/k/a/b/z0/c;
|
|
|
|
invoke-direct {v2, p1, v0}, Lf/k/a/b/z0/c;-><init>(Lf/k/a/b/z0/m$a;Lf/k/a/b/b1/d;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lf/k/a/b/s;->f:Lf/k/a/b/t0;
|
|
|
|
iget p1, p1, Lf/k/a/b/t0;->a:I
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0, p1}, Lf/k/a/b/z0/t;->a(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p1, Lf/k/a/b/z0/t;
|
|
|
|
iget-boolean v0, p1, Lf/k/a/b/z0/t;->Q:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p1, Lf/k/a/b/z0/t;->Q:Z
|
|
|
|
iput v0, p1, Lf/k/a/b/z0/t;->O:I
|
|
|
|
invoke-virtual {p1}, Lf/k/a/b/z0/t;->b()V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a([Lcom/google/android/exoplayer2/Format;J)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
iget-wide p1, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
const-wide v0, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
cmp-long p3, p1, v0
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
iget p1, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
array-length p2, p2
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
const-string p1, "Too many stream changes, so dropping change at "
|
|
|
|
invoke-static {p1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
iget p3, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
add-int/lit8 p3, p3, -0x1
|
|
|
|
aget-wide v0, p2, p3
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "MediaCodecAudioRenderer"
|
|
|
|
invoke-static {p2, p1}, Lf/k/a/b/l1/o;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
iput p1, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
:goto_0
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
iget p2, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
iget-wide v0, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
aput-wide v0, p1, p2
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public a()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->f()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-super {p0}, Lf/k/a/b/e1/f;->a()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public a(JJLandroid/media/MediaCodec;Ljava/nio/ByteBuffer;IIJZZLcom/google/android/exoplayer2/Format;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean p1, p0, Lf/k/a/b/z0/x;->D0:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-wide/16 p1, 0x0
|
|
|
|
cmp-long p3, p9, p1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
and-int/lit8 p1, p8, 0x4
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-wide p1, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
const-wide p3, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
cmp-long p12, p1, p3
|
|
|
|
if-eqz p12, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide p1, p9
|
|
|
|
:goto_0
|
|
iget-boolean p3, p0, Lf/k/a/b/z0/x;->B0:Z
|
|
|
|
const/4 p4, 0x0
|
|
|
|
const/4 p9, 0x2
|
|
|
|
const/4 p10, 0x1
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
and-int/lit8 p3, p8, 0x2
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
invoke-virtual {p5, p7, p4}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
|
|
|
|
return p10
|
|
|
|
:cond_1
|
|
if-eqz p11, :cond_3
|
|
|
|
invoke-virtual {p5, p7, p4}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
|
|
|
|
iget-object p1, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
iget p2, p1, Lf/k/a/b/b1/d;->f:I
|
|
|
|
add-int/2addr p2, p10
|
|
|
|
iput p2, p1, Lf/k/a/b/b1/d;->f:I
|
|
|
|
iget-object p1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast p1, Lf/k/a/b/z0/t;
|
|
|
|
iget p2, p1, Lf/k/a/b/z0/t;->B:I
|
|
|
|
if-ne p2, p10, :cond_2
|
|
|
|
iput p9, p1, Lf/k/a/b/z0/t;->B:I
|
|
|
|
:cond_2
|
|
return p10
|
|
|
|
:cond_3
|
|
:try_start_0
|
|
iget-object p3, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
:try_end_0
|
|
.catch Lf/k/a/b/z0/n$b; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Lf/k/a/b/z0/n$d; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
check-cast p3, Lf/k/a/b/z0/t;
|
|
|
|
:try_start_1
|
|
invoke-virtual {p3, p6, p1, p2}, Lf/k/a/b/z0/t;->a(Ljava/nio/ByteBuffer;J)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
invoke-virtual {p5, p7, p4}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
|
|
|
|
iget-object p1, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
iget p2, p1, Lf/k/a/b/b1/d;->e:I
|
|
|
|
add-int/2addr p2, p10
|
|
|
|
iput p2, p1, Lf/k/a/b/b1/d;->e:I
|
|
:try_end_1
|
|
.catch Lf/k/a/b/z0/n$b; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Lf/k/a/b/z0/n$d; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
return p10
|
|
|
|
:cond_4
|
|
return p4
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
:goto_1
|
|
iget-object p2, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lf/k/a/b/s;->a(Ljava/lang/Exception;Lcom/google/android/exoplayer2/Format;)Lf/k/a/b/z;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public b()Lf/k/a/b/m0;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->d()Lf/k/a/b/m0;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(J)V
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/CallSuper;
|
|
.end annotation
|
|
|
|
:goto_0
|
|
iget v0, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-wide v2, v0, v1
|
|
|
|
cmp-long v0, p1, v2
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
iget v2, v0, Lf/k/a/b/z0/t;->B:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
iput v2, v0, Lf/k/a/b/z0/t;->B:I
|
|
|
|
:cond_0
|
|
iget v0, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
iput v0, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->z0:[J
|
|
|
|
iget v2, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
invoke-static {v0, v3, v0, v1, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Lf/k/a/b/b1/e;)V
|
|
.locals 5
|
|
|
|
iget-boolean v0, p0, Lf/k/a/b/z0/x;->H0:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Lf/k/a/b/b1/a;->isDecodeOnly()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-wide v0, p1, Lf/k/a/b/b1/e;->f:J
|
|
|
|
iget-wide v2, p0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->abs(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/32 v2, 0x7a120
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
iget-wide v0, p1, Lf/k/a/b/b1/e;->f:J
|
|
|
|
iput-wide v0, p0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lf/k/a/b/z0/x;->H0:Z
|
|
|
|
:cond_1
|
|
iget-wide v0, p1, Lf/k/a/b/b1/e;->f:J
|
|
|
|
iget-wide v2, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
iput-wide v0, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Z
|
|
.locals 4
|
|
|
|
iget-boolean v0, p0, Lf/k/a/b/e1/f;->o0:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->g()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget-boolean v3, v0, Lf/k/a/b/z0/t;->L:Z
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->f()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
return v1
|
|
.end method
|
|
|
|
.method public d()J
|
|
.locals 2
|
|
|
|
iget v0, p0, Lf/k/a/b/s;->h:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lf/k/a/b/z0/x;->H()V
|
|
|
|
:cond_0
|
|
iget-wide v0, p0, Lf/k/a/b/z0/x;->G0:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public e()Lf/k/a/b/l1/q;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public i()V
|
|
.locals 3
|
|
|
|
const-wide v0, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
:try_start_0
|
|
iput-wide v0, p0, Lf/k/a/b/z0/x;->J0:J
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lf/k/a/b/z0/x;->K0:I
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
:try_start_1
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->b()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:try_start_2
|
|
invoke-super {p0}, Lf/k/a/b/e1/f;->i()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v1, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
invoke-virtual {v0, v1}, Lf/k/a/b/z0/m$a;->a(Lf/k/a/b/b1/d;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v2, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
invoke-virtual {v1, v2}, Lf/k/a/b/z0/m$a;->a(Lf/k/a/b/b1/d;)V
|
|
|
|
throw v0
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
:try_start_3
|
|
invoke-super {p0}, Lf/k/a/b/e1/f;->i()V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v2, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
invoke-virtual {v1, v2}, Lf/k/a/b/z0/m$a;->a(Lf/k/a/b/b1/d;)V
|
|
|
|
throw v0
|
|
|
|
:catchall_2
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->x0:Lf/k/a/b/z0/m$a;
|
|
|
|
iget-object v2, p0, Lf/k/a/b/e1/f;->u0:Lf/k/a/b/b1/d;
|
|
|
|
invoke-virtual {v1, v2}, Lf/k/a/b/z0/m$a;->a(Lf/k/a/b/b1/d;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public j()V
|
|
.locals 2
|
|
|
|
:try_start_0
|
|
invoke-super {p0}, Lf/k/a/b/e1/f;->j()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->j()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v1, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v1}, Lf/k/a/b/z0/t;->j()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public k()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->h()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public l()V
|
|
.locals 8
|
|
|
|
invoke-virtual {p0}, Lf/k/a/b/z0/x;->H()V
|
|
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-boolean v1, v0, Lf/k/a/b/z0/t;->N:Z
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->g()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v2, v0, Lf/k/a/b/z0/t;->i:Lf/k/a/b/z0/p;
|
|
|
|
invoke-virtual {v2}, Lf/k/a/b/z0/p;->c()V
|
|
|
|
iget-wide v3, v2, Lf/k/a/b/z0/p;->v:J
|
|
|
|
const-wide v5, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
if-nez v7, :cond_0
|
|
|
|
iget-object v1, v2, Lf/k/a/b/z0/p;->f:Lf/k/a/b/z0/o;
|
|
|
|
invoke-static {v1}, Lf/k/a/b/l1/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1}, Lf/k/a/b/z0/o;->d()V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v0, v0, Lf/k/a/b/z0/t;->o:Landroid/media/AudioTrack;
|
|
|
|
invoke-virtual {v0}, Landroid/media/AudioTrack;->pause()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public z()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lf/k/a/b/z;
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/k/a/b/z0/x;->y0:Lf/k/a/b/z0/n;
|
|
|
|
check-cast v0, Lf/k/a/b/z0/t;
|
|
|
|
iget-boolean v1, v0, Lf/k/a/b/z0/t;->L:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->g()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->a()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v0}, Lf/k/a/b/z0/t;->i()V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, v0, Lf/k/a/b/z0/t;->L:Z
|
|
:try_end_0
|
|
.catch Lf/k/a/b/z0/n$d; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lf/k/a/b/z0/x;->F0:Lcom/google/android/exoplayer2/Format;
|
|
|
|
invoke-virtual {p0, v0, v1}, Lf/k/a/b/s;->a(Ljava/lang/Exception;Lcom/google/android/exoplayer2/Format;)Lf/k/a/b/z;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|