diff --git a/app/build.gradle b/app/build.gradle index ab92d177cb..7021ef9b1d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId 'com.discord' minSdkVersion 21 targetSdkVersion 29 - versionCode 85111 - versionName "85.11 - Beta" + versionCode 85112 + versionName "85.12 - Beta" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/c/i/a/c/a2/j0/b0.java b/app/src/main/java/c/i/a/c/a2/j0/b0.java deleted file mode 100644 index 54d8c1ceea..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/b0.java +++ /dev/null @@ -1,305 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.SparseArray; -import androidx.annotation.Nullable; -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.s; -import c.i.a.c.a2.t; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.io.IOException; -/* compiled from: PsExtractor */ -public final class b0 implements h { - public final e0 a = new e0(0); - public final SparseArray b = new SparseArray<>(); - - /* renamed from: c reason: collision with root package name */ - public final w f714c = new w(4096); - public final a0 d = new a0(); - public boolean e; - public boolean f; - public boolean g; - public long h; - @Nullable - public z i; - public j j; - public boolean k; - - /* compiled from: PsExtractor */ - public static final class a { - public final o a; - public final e0 b; - - /* renamed from: c reason: collision with root package name */ - public final v f715c = new v(new byte[64]); - public boolean d; - public boolean e; - public boolean f; - public int g; - public long h; - - public a(o oVar, e0 e0Var) { - this.a = oVar; - this.b = e0Var; - } - } - - static { - d dVar = d.a; - } - - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - byte[] bArr = new byte[14]; - iVar.n(bArr, 0, 14); - if (442 != (((bArr[0] & 255) << 24) | ((bArr[1] & 255) << 16) | ((bArr[2] & 255) << 8) | (bArr[3] & 255)) || (bArr[4] & 196) != 68 || (bArr[6] & 4) != 4 || (bArr[8] & 4) != 4 || (bArr[9] & 1) != 1 || (bArr[12] & 3) != 3) { - return false; - } - iVar.g(bArr[13] & 7); - iVar.n(bArr, 0, 3); - return 1 == ((((bArr[0] & 255) << 16) | ((bArr[1] & 255) << 8)) | (bArr[2] & 255)); - } - - /* JADX WARNING: Removed duplicated region for block: B:98:0x020a */ - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - o pVar; - AnimatableValueParser.H(this.j); - long b = iVar.b(); - int i = (b > -1 ? 1 : (b == -1 ? 0 : -1)); - long j = -9223372036854775807L; - if (i != 0) { - a0 a0Var = this.d; - if (!a0Var.f713c) { - if (!a0Var.e) { - long b2 = iVar.b(); - int min = (int) Math.min(20000L, b2); - long j2 = b2 - ((long) min); - if (iVar.getPosition() != j2) { - sVar.a = j2; - } else { - a0Var.b.z(min); - iVar.k(); - iVar.n(a0Var.b.a, 0, min); - w wVar = a0Var.b; - int i2 = wVar.b; - int i3 = wVar.f913c - 4; - while (true) { - if (i3 < i2) { - break; - } - if (a0Var.b(wVar.a, i3) == 442) { - wVar.D(i3 + 4); - long c2 = a0.c(wVar); - if (c2 != -9223372036854775807L) { - j = c2; - break; - } - } - i3--; - } - a0Var.g = j; - a0Var.e = true; - return 0; - } - } else if (a0Var.g == -9223372036854775807L) { - a0Var.a(iVar); - return 0; - } else if (!a0Var.d) { - int min2 = (int) Math.min(20000L, iVar.b()); - long j3 = (long) 0; - if (iVar.getPosition() != j3) { - sVar.a = j3; - } else { - a0Var.b.z(min2); - iVar.k(); - iVar.n(a0Var.b.a, 0, min2); - w wVar2 = a0Var.b; - int i4 = wVar2.b; - int i5 = wVar2.f913c; - while (true) { - if (i4 >= i5 - 3) { - break; - } - if (a0Var.b(wVar2.a, i4) == 442) { - wVar2.D(i4 + 4); - long c3 = a0.c(wVar2); - if (c3 != -9223372036854775807L) { - j = c3; - break; - } - } - i4++; - } - a0Var.f = j; - a0Var.d = true; - return 0; - } - } else { - long j4 = a0Var.f; - if (j4 == -9223372036854775807L) { - a0Var.a(iVar); - return 0; - } - a0Var.h = a0Var.a.b(a0Var.g) - a0Var.a.b(j4); - a0Var.a(iVar); - return 0; - } - return 1; - } - } - if (!this.k) { - this.k = true; - a0 a0Var2 = this.d; - long j5 = a0Var2.h; - if (j5 != -9223372036854775807L) { - z zVar = new z(a0Var2.a, j5, b); - this.i = zVar; - this.j.a(zVar.a); - } else { - this.j.a(new t.b(j5, 0)); - } - } - z zVar2 = this.i; - if (zVar2 != null && zVar2.b()) { - return this.i.a(iVar, sVar); - } - iVar.k(); - long f = i != 0 ? b - iVar.f() : -1; - if ((f != -1 && f < 4) || !iVar.e(this.f714c.a, 0, 4, true)) { - return -1; - } - this.f714c.D(0); - int f2 = this.f714c.f(); - if (f2 == 441) { - return -1; - } - if (f2 == 442) { - iVar.n(this.f714c.a, 0, 10); - this.f714c.D(9); - iVar.l((this.f714c.s() & 7) + 14); - return 0; - } else if (f2 == 443) { - iVar.n(this.f714c.a, 0, 2); - this.f714c.D(0); - iVar.l(this.f714c.x() + 6); - return 0; - } else if (((f2 & -256) >> 8) != 1) { - iVar.l(1); - return 0; - } else { - int i6 = f2 & 255; - a aVar = this.b.get(i6); - if (!this.e) { - if (aVar == null) { - o oVar = null; - if (i6 == 189) { - pVar = new g(null); - this.f = true; - this.h = iVar.getPosition(); - } else if ((i6 & 224) == 192) { - pVar = new v(null); - this.f = true; - this.h = iVar.getPosition(); - } else { - if ((i6 & 240) == 224) { - pVar = new p(null); - this.g = true; - this.h = iVar.getPosition(); - } - if (oVar != null) { - oVar.e(this.j, new i0.d(Integer.MIN_VALUE, i6, 256)); - aVar = new a(oVar, this.a); - this.b.put(i6, aVar); - } - } - oVar = pVar; - if (oVar != null) { - } - } - if (iVar.getPosition() > ((!this.f || !this.g) ? 1048576 : this.h + 8192)) { - this.e = true; - this.j.j(); - } - } - iVar.n(this.f714c.a, 0, 2); - this.f714c.D(0); - int x2 = this.f714c.x() + 6; - if (aVar == null) { - iVar.l(x2); - return 0; - } - this.f714c.z(x2); - iVar.readFully(this.f714c.a, 0, x2); - this.f714c.D(6); - w wVar3 = this.f714c; - wVar3.e(aVar.f715c.a, 0, 3); - aVar.f715c.k(0); - aVar.f715c.m(8); - aVar.d = aVar.f715c.f(); - aVar.e = aVar.f715c.f(); - aVar.f715c.m(6); - int g = aVar.f715c.g(8); - aVar.g = g; - wVar3.e(aVar.f715c.a, 0, g); - aVar.f715c.k(0); - aVar.h = 0; - if (aVar.d) { - aVar.f715c.m(4); - aVar.f715c.m(1); - aVar.f715c.m(1); - long g2 = (((long) aVar.f715c.g(3)) << 30) | ((long) (aVar.f715c.g(15) << 15)) | ((long) aVar.f715c.g(15)); - aVar.f715c.m(1); - if (!aVar.f && aVar.e) { - aVar.f715c.m(4); - aVar.f715c.m(1); - aVar.f715c.m(1); - aVar.f715c.m(1); - aVar.b.b((((long) aVar.f715c.g(3)) << 30) | ((long) (aVar.f715c.g(15) << 15)) | ((long) aVar.f715c.g(15))); - aVar.f = true; - } - aVar.h = aVar.b.b(g2); - } - aVar.a.f(aVar.h, 4); - aVar.a.b(wVar3); - aVar.a.d(); - w wVar4 = this.f714c; - wVar4.C(wVar4.a.length); - return 0; - } - } - - @Override // c.i.a.c.a2.h - public void f(j jVar) { - this.j = jVar; - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - if ((this.a.d() == -9223372036854775807L) || !(this.a.c() == 0 || this.a.c() == j2)) { - e0 e0Var = this.a; - synchronized (e0Var) { - e0Var.a = j2; - e0Var.f903c = -9223372036854775807L; - } - } - z zVar = this.i; - if (zVar != null) { - zVar.e(j2); - } - for (int i = 0; i < this.b.size(); i++) { - a valueAt = this.b.valueAt(i); - valueAt.f = false; - valueAt.a.c(); - } - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/c.java b/app/src/main/java/c/i/a/c/a2/j0/c.java deleted file mode 100644 index a942df08fa..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/c.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.net.Uri; -import c.i.a.c.a2.h; -import c.i.a.c.a2.k; -import c.i.a.c.a2.l; -import java.util.Map; -/* compiled from: lambda */ -public final /* synthetic */ class c implements l { - public static final /* synthetic */ c a = new c(); - - @Override // c.i.a.c.a2.l - public final h[] a() { - return new h[]{new j(0)}; - } - - @Override // c.i.a.c.a2.l - public /* synthetic */ h[] b(Uri uri, Map map) { - return k.a(this, uri, map); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/c0.java b/app/src/main/java/c/i/a/c/a2/j0/c0.java deleted file mode 100644 index b201d132ca..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/c0.java +++ /dev/null @@ -1,12 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.w; -/* compiled from: SectionPayloadReader */ -public interface c0 { - void a(e0 e0Var, j jVar, i0.d dVar); - - void b(w wVar); -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/d.java b/app/src/main/java/c/i/a/c/a2/j0/d.java deleted file mode 100644 index 57fea95400..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/d.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.net.Uri; -import c.i.a.c.a2.h; -import c.i.a.c.a2.k; -import c.i.a.c.a2.l; -import java.util.Map; -/* compiled from: lambda */ -public final /* synthetic */ class d implements l { - public static final /* synthetic */ d a = new d(); - - @Override // c.i.a.c.a2.l - public final h[] a() { - return new h[]{new b0()}; - } - - @Override // c.i.a.c.a2.l - public /* synthetic */ h[] b(Uri uri, Map map) { - return k.a(this, uri, map); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/d0.java b/app/src/main/java/c/i/a/c/a2/j0/d0.java deleted file mode 100644 index 5fb49e2a6d..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/d0.java +++ /dev/null @@ -1,107 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -/* compiled from: SectionReader */ -public final class d0 implements i0 { - public final c0 a; - public final w b = new w(32); - - /* renamed from: c reason: collision with root package name */ - public int f716c; - public int d; - public boolean e; - public boolean f; - - public d0(c0 c0Var) { - this.a = c0Var; - } - - @Override // c.i.a.c.a2.j0.i0 - public void a(e0 e0Var, j jVar, i0.d dVar) { - this.a.a(e0Var, jVar, dVar); - this.f = true; - } - - @Override // c.i.a.c.a2.j0.i0 - public void b(w wVar, int i) { - boolean z2 = (i & 1) != 0; - int s2 = z2 ? wVar.b + wVar.s() : -1; - if (this.f) { - if (z2) { - this.f = false; - wVar.D(s2); - this.d = 0; - } else { - return; - } - } - while (wVar.a() > 0) { - int i2 = this.d; - if (i2 < 3) { - if (i2 == 0) { - int s3 = wVar.s(); - wVar.D(wVar.b - 1); - if (s3 == 255) { - this.f = true; - return; - } - } - int min = Math.min(wVar.a(), 3 - this.d); - wVar.e(this.b.a, this.d, min); - int i3 = this.d + min; - this.d = i3; - if (i3 == 3) { - this.b.D(0); - this.b.C(3); - this.b.E(1); - int s4 = this.b.s(); - int s5 = this.b.s(); - this.e = (s4 & 128) != 0; - int i4 = (((s4 & 15) << 8) | s5) + 3; - this.f716c = i4; - byte[] bArr = this.b.a; - if (bArr.length < i4) { - this.b.b(Math.min(4098, Math.max(i4, bArr.length * 2))); - } - } - } else { - int min2 = Math.min(wVar.a(), this.f716c - this.d); - wVar.e(this.b.a, this.d, min2); - int i5 = this.d + min2; - this.d = i5; - int i6 = this.f716c; - if (i5 != i6) { - continue; - } else { - if (this.e) { - byte[] bArr2 = this.b.a; - int i7 = f0.a; - int i8 = -1; - for (int i9 = 0; i9 < i6; i9++) { - i8 = f0.k[((i8 >>> 24) ^ (bArr2[i9] & 255)) & 255] ^ (i8 << 8); - } - if (i8 != 0) { - this.f = true; - return; - } - this.b.C(this.f716c - 4); - } else { - this.b.C(i6); - } - this.b.D(0); - this.a.b(this.b); - this.d = 0; - } - } - } - } - - @Override // c.i.a.c.a2.j0.i0 - public void c() { - this.f = true; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/e.java b/app/src/main/java/c/i/a/c/a2/j0/e.java deleted file mode 100644 index 3262b42fa9..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/e.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.net.Uri; -import c.i.a.c.a2.h; -import c.i.a.c.a2.k; -import c.i.a.c.a2.l; -import java.util.Map; -/* compiled from: lambda */ -public final /* synthetic */ class e implements l { - public static final /* synthetic */ e a = new e(); - - @Override // c.i.a.c.a2.l - public final h[] a() { - return new h[]{new h0(1, 0, 112800)}; - } - - @Override // c.i.a.c.a2.l - public /* synthetic */ h[] b(Uri uri, Map map) { - return k.a(this, uri, map); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/e0.java b/app/src/main/java/c/i/a/c/a2/j0/e0.java deleted file mode 100644 index fc5b117181..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/e0.java +++ /dev/null @@ -1,42 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.List; -/* compiled from: SeiReader */ -public final class e0 { - public final List a; - public final w[] b; - - public e0(List list) { - this.a = list; - this.b = new w[list.size()]; - } - - public void a(j jVar, i0.d dVar) { - for (int i = 0; i < this.b.length; i++) { - dVar.a(); - w p = jVar.p(dVar.c(), 3); - Format format = this.a.get(i); - String str = format.t; - boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str); - AnimatableValueParser.n(z2, "Invalid closed caption mime type provided: " + str); - String str2 = format.i; - if (str2 == null) { - str2 = dVar.b(); - } - Format.b bVar = new Format.b(); - bVar.a = str2; - bVar.k = str; - bVar.d = format.l; - bVar.f2216c = format.k; - bVar.C = format.L; - bVar.m = format.v; - p.e(bVar.a()); - this.b[i] = p; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/f.java b/app/src/main/java/c/i/a/c/a2/j0/f.java deleted file mode 100644 index b3d43f1225..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/f.java +++ /dev/null @@ -1,112 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.s; -import c.i.a.c.a2.t; -import c.i.a.c.i2.w; -import c.i.a.c.v1.l; -import java.io.IOException; -/* compiled from: Ac3Extractor */ -public final class f implements h { - public final g a = new g(null); - public final w b = new w(2786); - - /* renamed from: c reason: collision with root package name */ - public boolean f717c; - - static { - a aVar = a.a; - } - - /* JADX WARNING: Code restructure failed: missing block: B:7:0x0034, code lost: - r14.k(); - r5 = r5 + 1; - */ - /* JADX WARNING: Code restructure failed: missing block: B:8:0x003d, code lost: - if ((r5 - r3) < 8192) goto L_0x0040; - */ - /* JADX WARNING: Code restructure failed: missing block: B:9:0x003f, code lost: - return false; - */ - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - int i; - w wVar = new w(10); - int i2 = 0; - while (true) { - iVar.n(wVar.a, 0, 10); - wVar.D(0); - if (wVar.u() != 4801587) { - break; - } - wVar.E(3); - int r = wVar.r(); - i2 += r + 10; - iVar.g(r); - } - iVar.k(); - iVar.g(i2); - int i3 = i2; - while (true) { - int i4 = 0; - while (true) { - iVar.n(wVar.a, 0, 6); - wVar.D(0); - if (wVar.x() != 2935) { - break; - } - i4++; - if (i4 >= 4) { - return true; - } - byte[] bArr = wVar.a; - if (bArr.length < 6) { - i = -1; - } else { - i = ((bArr[5] & 248) >> 3) > 10 ? ((((bArr[2] & 7) << 8) | (bArr[3] & 255)) + 1) * 2 : l.a((bArr[4] & 192) >> 6, bArr[4] & 63); - } - if (i == -1) { - return false; - } - iVar.g(i - 6); - } - iVar.g(i3); - } - } - - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - int read = iVar.read(this.b.a, 0, 2786); - if (read == -1) { - return -1; - } - this.b.D(0); - this.b.C(read); - if (!this.f717c) { - this.a.l = 0; - this.f717c = true; - } - this.a.b(this.b); - return 0; - } - - @Override // c.i.a.c.a2.h - public void f(j jVar) { - this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); - jVar.j(); - jVar.a(new t.b(-9223372036854775807L, 0)); - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - this.f717c = false; - this.a.c(); - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/f0.java b/app/src/main/java/c/i/a/c/a2/j0/f0.java deleted file mode 100644 index 784a15d558..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/f0.java +++ /dev/null @@ -1,75 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.a; -import c.i.a.c.a2.i; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.io.IOException; -/* compiled from: TsBinarySearchSeeker */ -public final class f0 extends c.i.a.c.a2.a { - - /* compiled from: TsBinarySearchSeeker */ - public static final class a implements a.f { - public final e0 a; - public final w b = new w(); - - /* renamed from: c reason: collision with root package name */ - public final int f718c; - public final int d; - - public a(int i, e0 e0Var, int i2) { - this.f718c = i; - this.a = e0Var; - this.d = i2; - } - - @Override // c.i.a.c.a2.a.f - public void a() { - this.b.A(c.i.a.c.i2.f0.f); - } - - @Override // c.i.a.c.a2.a.f - public a.e b(i iVar, long j) throws IOException { - long position = iVar.getPosition(); - int min = (int) Math.min((long) this.d, iVar.b() - position); - this.b.z(min); - iVar.n(this.b.a, 0, min); - w wVar = this.b; - int i = wVar.f913c; - long j2 = -1; - long j3 = -1; - long j4 = -9223372036854775807L; - while (wVar.a() >= 188) { - byte[] bArr = wVar.a; - int i2 = wVar.b; - while (i2 < i && bArr[i2] != 71) { - i2++; - } - int i3 = i2 + 188; - if (i3 > i) { - break; - } - long l2 = AnimatableValueParser.l2(wVar, i2, this.f718c); - if (l2 != -9223372036854775807L) { - long b = this.a.b(l2); - if (b > j) { - return j4 == -9223372036854775807L ? a.e.a(b, position) : a.e.b(position + j3); - } - if (100000 + b > j) { - return a.e.b(position + ((long) i2)); - } - j4 = b; - j3 = (long) i2; - } - wVar.D(i3); - j2 = (long) i3; - } - return j4 != -9223372036854775807L ? a.e.c(j4, position + j2) : a.e.a; - } - } - - public f0(e0 e0Var, long j, long j2, int i, int i2) { - super(new a.b(), new a(i, e0Var, i2), j, 0, j + 1, 0, j2, 188, 940); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/g.java b/app/src/main/java/c/i/a/c/a2/j0/g.java deleted file mode 100644 index 6132bf2525..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/g.java +++ /dev/null @@ -1,366 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import c.i.a.c.v1.l; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -/* compiled from: Ac3Reader */ -public final class g implements o { - public final v a; - public final w b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final String f719c; - public String d; - public c.i.a.c.a2.w e; - public int f = 0; - public int g; - public boolean h; - public long i; - public Format j; - public int k; - public long l; - - public g(@Nullable String str) { - v vVar = new v(new byte[128]); - this.a = vVar; - this.b = new w(vVar.a); - this.f719c = str; - } - - /* JADX WARNING: Removed duplicated region for block: B:120:0x0209 */ - /* JADX WARNING: Removed duplicated region for block: B:129:0x0225 */ - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - int i; - int i2; - int i3; - String str; - int i4; - int i5; - int i6; - int i7; - int i8; - int i9; - int i10; - int i11; - int i12; - boolean z2; - AnimatableValueParser.H(this.e); - while (wVar.a() > 0) { - int i13 = this.f; - if (i13 == 0) { - while (true) { - if (wVar.a() <= 0) { - z2 = false; - break; - } else if (!this.h) { - this.h = wVar.s() == 11; - } else { - int s2 = wVar.s(); - if (s2 == 119) { - this.h = false; - z2 = true; - break; - } - this.h = s2 == 11; - } - } - if (z2) { - this.f = 1; - byte[] bArr = this.b.a; - bArr[0] = 11; - bArr[1] = 119; - this.g = 2; - } - } else if (i13 == 1) { - byte[] bArr2 = this.b.a; - int min = Math.min(wVar.a(), 128 - this.g); - System.arraycopy(wVar.a, wVar.b, bArr2, this.g, min); - wVar.b += min; - int i14 = this.g + min; - this.g = i14; - if (i14 == 128) { - this.a.k(0); - v vVar = this.a; - int e = vVar.e(); - vVar.m(40); - boolean z3 = vVar.g(5) > 10; - vVar.k(e); - int i15 = -1; - if (z3) { - vVar.m(16); - int g = vVar.g(2); - if (g == 0) { - i15 = 0; - } else if (g == 1) { - i15 = 1; - } else if (g == 2) { - i15 = 2; - } - vVar.m(3); - i3 = (vVar.g(11) + 1) * 2; - int g2 = vVar.g(2); - if (g2 == 3) { - i5 = l.f992c[vVar.g(2)]; - i7 = 6; - i6 = 3; - } else { - int g3 = vVar.g(2); - i6 = g3; - i7 = l.a[g3]; - i5 = l.b[g2]; - } - i2 = i7 * 256; - int g4 = vVar.g(3); - boolean f = vVar.f(); - i = l.d[g4] + (f ? 1 : 0); - vVar.m(10); - if (vVar.f()) { - vVar.m(8); - } - if (g4 == 0) { - vVar.m(5); - if (vVar.f()) { - vVar.m(8); - } - } - if (i15 == 1 && vVar.f()) { - vVar.m(16); - } - if (vVar.f()) { - if (g4 > 2) { - vVar.m(2); - } - if ((g4 & 1) == 0 || g4 <= 2) { - i10 = 6; - } else { - i10 = 6; - vVar.m(6); - } - if ((g4 & 4) != 0) { - vVar.m(i10); - } - if (f && vVar.f()) { - vVar.m(5); - } - if (i15 == 0) { - if (vVar.f()) { - i11 = 6; - vVar.m(6); - } else { - i11 = 6; - } - if (g4 == 0 && vVar.f()) { - vVar.m(i11); - } - if (vVar.f()) { - vVar.m(i11); - } - int g5 = vVar.g(2); - if (g5 == 1) { - vVar.m(5); - } else if (g5 == 2) { - vVar.m(12); - } else if (g5 == 3) { - int g6 = vVar.g(5); - if (vVar.f()) { - vVar.m(5); - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - if (vVar.f()) { - vVar.m(4); - } - if (vVar.f()) { - vVar.m(4); - } - } - } - if (vVar.f()) { - vVar.m(5); - if (vVar.f()) { - vVar.m(7); - if (vVar.f()) { - vVar.m(8); - i12 = 2; - vVar.m((g6 + 2) * 8); - vVar.c(); - if (g4 < i12) { - if (vVar.f()) { - vVar.m(14); - } - if (g4 == 0 && vVar.f()) { - vVar.m(14); - } - } - if (vVar.f()) { - if (i6 == 0) { - vVar.m(5); - } else { - for (int i16 = 0; i16 < i7; i16++) { - if (vVar.f()) { - vVar.m(5); - } - } - } - } - } - } - } - i12 = 2; - vVar.m((g6 + 2) * 8); - vVar.c(); - if (g4 < i12) { - } - if (vVar.f()) { - } - } - i12 = 2; - if (g4 < i12) { - } - if (vVar.f()) { - } - } - } - if (vVar.f()) { - vVar.m(5); - if (g4 == 2) { - vVar.m(4); - } - if (g4 >= 6) { - vVar.m(2); - } - if (vVar.f()) { - i9 = 8; - vVar.m(8); - } else { - i9 = 8; - } - if (g4 == 0 && vVar.f()) { - vVar.m(i9); - } - if (g2 < 3) { - vVar.l(); - } - } - if (i15 == 0 && i6 != 3) { - vVar.l(); - } - if (i15 != 2 || (i6 != 3 && !vVar.f())) { - i8 = 6; - } else { - i8 = 6; - vVar.m(6); - } - str = (vVar.f() && vVar.g(i8) == 1 && vVar.g(8) == 1) ? "audio/eac3-joc" : "audio/eac3"; - i15 = i5; - } else { - vVar.m(32); - int g7 = vVar.g(2); - String str2 = g7 == 3 ? null : "audio/ac3"; - int a = l.a(g7, vVar.g(6)); - vVar.m(8); - int g8 = vVar.g(3); - if ((g8 & 1) == 0 || g8 == 1) { - i4 = 2; - } else { - i4 = 2; - vVar.m(2); - } - if ((g8 & 4) != 0) { - vVar.m(i4); - } - if (g8 == i4) { - vVar.m(i4); - } - int[] iArr = l.b; - if (g7 < iArr.length) { - i15 = iArr[g7]; - } - i = l.d[g8] + (vVar.f() ? 1 : 0); - i2 = 1536; - str = str2; - i3 = a; - } - Format format = this.j; - if (format == null || i != format.G || i15 != format.H || !f0.a(str, format.t)) { - Format.b bVar = new Format.b(); - bVar.a = this.d; - bVar.k = str; - bVar.f2218x = i; - bVar.f2219y = i15; - bVar.f2216c = this.f719c; - Format a2 = bVar.a(); - this.j = a2; - this.e.e(a2); - } - this.k = i3; - this.i = (((long) i2) * 1000000) / ((long) this.j.H); - this.b.D(0); - this.e.c(this.b, 128); - this.f = 2; - } - } else if (i13 == 2) { - int min2 = Math.min(wVar.a(), this.k - this.g); - this.e.c(wVar, min2); - int i17 = this.g + min2; - this.g = i17; - int i18 = this.k; - if (i17 == i18) { - this.e.d(this.l, 1, i18, 0, null); - this.l += this.i; - this.f = 0; - } - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.f = 0; - this.g = 0; - this.h = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.d = dVar.b(); - this.e = jVar.p(dVar.c(), 1); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.l = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/g0.java b/app/src/main/java/c/i/a/c/a2/j0/g0.java deleted file mode 100644 index 594d998425..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/g0.java +++ /dev/null @@ -1,31 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.i; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -/* compiled from: TsDurationReader */ -public final class g0 { - public final int a; - public final e0 b = new e0(0); - - /* renamed from: c reason: collision with root package name */ - public final w f720c = new w(); - public boolean d; - public boolean e; - public boolean f; - public long g = -9223372036854775807L; - public long h = -9223372036854775807L; - public long i = -9223372036854775807L; - - public g0(int i) { - this.a = i; - } - - public final int a(i iVar) { - this.f720c.A(f0.f); - this.d = true; - iVar.k(); - return 0; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/h.java b/app/src/main/java/c/i/a/c/a2/j0/h.java deleted file mode 100644 index cde0d73d6e..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/h.java +++ /dev/null @@ -1,121 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.s; -import c.i.a.c.a2.t; -import c.i.a.c.i2.w; -import java.io.IOException; -/* compiled from: Ac4Extractor */ -public final class h implements c.i.a.c.a2.h { - public final i a = new i(null); - public final w b = new w(16384); - - /* renamed from: c reason: collision with root package name */ - public boolean f721c; - - static { - b bVar = b.a; - } - - /* JADX WARNING: Code restructure failed: missing block: B:10:0x0045, code lost: - return false; - */ - /* JADX WARNING: Code restructure failed: missing block: B:8:0x003a, code lost: - r15.k(); - r4 = r4 + 1; - */ - /* JADX WARNING: Code restructure failed: missing block: B:9:0x0043, code lost: - if ((r4 - r3) < 8192) goto L_0x0046; - */ - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - int i; - w wVar = new w(10); - int i2 = 0; - while (true) { - iVar.n(wVar.a, 0, 10); - wVar.D(0); - if (wVar.u() != 4801587) { - break; - } - wVar.E(3); - int r = wVar.r(); - i2 += r + 10; - iVar.g(r); - } - iVar.k(); - iVar.g(i2); - int i3 = i2; - while (true) { - int i4 = 0; - while (true) { - int i5 = 7; - iVar.n(wVar.a, 0, 7); - wVar.D(0); - int x2 = wVar.x(); - if (x2 != 44096 && x2 != 44097) { - break; - } - i4++; - if (i4 >= 4) { - return true; - } - byte[] bArr = wVar.a; - if (bArr.length < 7) { - i = -1; - } else { - int i6 = ((bArr[2] & 255) << 8) | (bArr[3] & 255); - if (i6 == 65535) { - i6 = ((bArr[4] & 255) << 16) | ((bArr[5] & 255) << 8) | (bArr[6] & 255); - } else { - i5 = 4; - } - if (x2 == 44097) { - i5 += 2; - } - i = i6 + i5; - } - if (i == -1) { - return false; - } - iVar.g(i - 7); - } - iVar.g(i3); - } - } - - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - int read = iVar.read(this.b.a, 0, 16384); - if (read == -1) { - return -1; - } - this.b.D(0); - this.b.C(read); - if (!this.f721c) { - this.a.m = 0; - this.f721c = true; - } - this.a.b(this.b); - return 0; - } - - @Override // c.i.a.c.a2.h - public void f(j jVar) { - this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); - jVar.j(); - jVar.a(new t.b(-9223372036854775807L, 0)); - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - this.f721c = false; - this.a.c(); - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/h0.java b/app/src/main/java/c/i/a/c/a2/j0/h0.java deleted file mode 100644 index a1408d6da3..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/h0.java +++ /dev/null @@ -1,729 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.SparseArray; -import android.util.SparseBooleanArray; -import android.util.SparseIntArray; -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.s; -import c.i.a.c.a2.t; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ParserException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -/* compiled from: TsExtractor */ -public final class h0 implements h { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final List f722c; - public final w d; - public final SparseIntArray e; - public final i0.c f; - public final SparseArray g; - public final SparseBooleanArray h; - public final SparseBooleanArray i; - public final g0 j; - public f0 k; - public j l; - public int m; - public boolean n; - public boolean o; - public boolean p; - public i0 q; - public int r; - - /* renamed from: s reason: collision with root package name */ - public int f723s; - - /* compiled from: TsExtractor */ - public class a implements c0 { - public final v a = new v(new byte[4]); - - public a() { - } - - @Override // c.i.a.c.a2.j0.c0 - public void a(e0 e0Var, j jVar, i0.d dVar) { - } - - @Override // c.i.a.c.a2.j0.c0 - public void b(w wVar) { - if (wVar.s() == 0 && (wVar.s() & 128) != 0) { - wVar.E(6); - int a = wVar.a() / 4; - for (int i = 0; i < a; i++) { - wVar.d(this.a, 4); - int g = this.a.g(16); - this.a.m(3); - if (g == 0) { - this.a.m(13); - } else { - int g2 = this.a.g(13); - if (h0.this.g.get(g2) == null) { - h0 h0Var = h0.this; - h0Var.g.put(g2, new d0(new b(g2))); - h0.this.m++; - } - } - } - h0 h0Var2 = h0.this; - if (h0Var2.a != 2) { - h0Var2.g.remove(0); - } - } - } - } - - /* compiled from: TsExtractor */ - public class b implements c0 { - public final v a = new v(new byte[5]); - public final SparseArray b = new SparseArray<>(); - - /* renamed from: c reason: collision with root package name */ - public final SparseIntArray f724c = new SparseIntArray(); - public final int d; - - public b(int i) { - this.d = i; - } - - @Override // c.i.a.c.a2.j0.c0 - public void a(e0 e0Var, j jVar, i0.d dVar) { - } - - /* JADX WARNING: Code restructure failed: missing block: B:46:0x013d, code lost: - if (r24.s() == r13) goto L_0x013f; - */ - /* JADX WARNING: Removed duplicated region for block: B:87:0x0222 */ - /* JADX WARNING: Removed duplicated region for block: B:89:0x022f */ - @Override // c.i.a.c.a2.j0.c0 - public void b(w wVar) { - e0 e0Var; - int i; - e0 e0Var2; - i0 i0Var; - int i2; - int i3; - int i4; - e0 e0Var3; - if (wVar.s() == 2) { - h0 h0Var = h0.this; - int i5 = h0Var.a; - if (i5 == 1 || i5 == 2 || h0Var.m == 1) { - e0Var = h0Var.f722c.get(0); - } else { - e0Var = new e0(h0Var.f722c.get(0).c()); - h0.this.f722c.add(e0Var); - } - if ((wVar.s() & 128) != 0) { - wVar.E(1); - int x2 = wVar.x(); - int i6 = 3; - wVar.E(3); - wVar.d(this.a, 2); - this.a.m(3); - int i7 = 13; - h0.this.f723s = this.a.g(13); - wVar.d(this.a, 2); - int i8 = 4; - this.a.m(4); - int i9 = 12; - wVar.E(this.a.g(12)); - h0 h0Var2 = h0.this; - int i10 = 21; - if (h0Var2.a == 2 && h0Var2.q == null) { - i0.b bVar = new i0.b(21, null, null, f0.f); - h0 h0Var3 = h0.this; - h0Var3.q = h0Var3.f.a(21, bVar); - h0 h0Var4 = h0.this; - h0Var4.q.a(e0Var, h0Var4.l, new i0.d(x2, 21, 8192)); - } - this.b.clear(); - this.f724c.clear(); - int a = wVar.a(); - while (a > 0) { - int i11 = 5; - wVar.d(this.a, 5); - int g = this.a.g(8); - this.a.m(i6); - int g2 = this.a.g(i7); - this.a.m(i8); - int g3 = this.a.g(i9); - int i12 = wVar.b; - int i13 = g3 + i12; - int i14 = -1; - String str = null; - ArrayList arrayList = null; - while (wVar.b < i13) { - int s2 = wVar.s(); - int s3 = wVar.b + wVar.s(); - if (s3 > i13) { - break; - } - if (s2 == i11) { - long t = wVar.t(); - if (t != 1094921523) { - if (t != 1161904947) { - if (t != 1094921524) { - if (t == 1212503619) { - i14 = 36; - } - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - i14 = 172; - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - i14 = 135; - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - } else if (s2 != 106) { - if (s2 != 122) { - if (s2 != 127) { - if (s2 == 123) { - i14 = 138; - } else if (s2 == 10) { - str = wVar.p(3).trim(); - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } else { - int i15 = 3; - if (s2 == 89) { - ArrayList arrayList2 = new ArrayList(); - while (wVar.b < s3) { - String trim = wVar.p(i15).trim(); - int s4 = wVar.s(); - byte[] bArr = new byte[4]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, 4); - wVar.b += 4; - arrayList2.add(new i0.a(trim, s4, bArr)); - e0Var = e0Var; - x2 = x2; - g2 = g2; - i15 = 3; - } - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - arrayList = arrayList2; - i14 = 89; - } else { - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - if (s2 == 111) { - i14 = 257; - } - } - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - } - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - i14 = 135; - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - i14 = 129; - i4 = x2; - e0Var3 = e0Var; - i3 = g2; - wVar.E(s3 - wVar.b); - e0Var = e0Var3; - x2 = i4; - g2 = i3; - i11 = 5; - i10 = 21; - } - wVar.D(i13); - i0.b bVar2 = new i0.b(i14, str, arrayList, Arrays.copyOfRange(wVar.a, i12, i13)); - if (g == 6 || g == 5) { - g = i14; - } - a -= g3 + 5; - h0 h0Var5 = h0.this; - int i16 = h0Var5.a == 2 ? g : g2; - if (!h0Var5.h.get(i16)) { - h0 h0Var6 = h0.this; - if (h0Var6.a == 2) { - if (g == 21) { - i0Var = h0Var6.q; - if (h0.this.a != 2) { - i2 = g2; - if (i2 >= this.f724c.get(i16, 8192)) { - } - } else { - i2 = g2; - } - this.f724c.put(i16, i2); - this.b.put(i16, i0Var); - } - } - i0Var = h0Var6.f.a(g, bVar2); - if (h0.this.a != 2) { - } - this.f724c.put(i16, i2); - this.b.put(i16, i0Var); - } - e0Var = e0Var; - x2 = x2; - i6 = 3; - i8 = 4; - i7 = 13; - i9 = 12; - i10 = 21; - } - int i17 = x2; - e0 e0Var4 = e0Var; - int size = this.f724c.size(); - int i18 = 0; - while (i18 < size) { - int keyAt = this.f724c.keyAt(i18); - int valueAt = this.f724c.valueAt(i18); - h0.this.h.put(keyAt, true); - h0.this.i.put(valueAt, true); - i0 valueAt2 = this.b.valueAt(i18); - if (valueAt2 != null) { - h0 h0Var7 = h0.this; - if (valueAt2 != h0Var7.q) { - j jVar = h0Var7.l; - i = i17; - i0.d dVar = new i0.d(i, keyAt, 8192); - e0Var2 = e0Var4; - valueAt2.a(e0Var2, jVar, dVar); - } else { - e0Var2 = e0Var4; - i = i17; - } - h0.this.g.put(valueAt, valueAt2); - } else { - e0Var2 = e0Var4; - i = i17; - } - i18++; - e0Var4 = e0Var2; - i17 = i; - } - h0 h0Var8 = h0.this; - if (h0Var8.a != 2) { - h0Var8.g.remove(this.d); - h0 h0Var9 = h0.this; - int i19 = h0Var9.a == 1 ? 0 : h0Var9.m - 1; - h0Var9.m = i19; - if (i19 == 0) { - h0Var9.l.j(); - h0.this.n = true; - } - } else if (!h0Var8.n) { - h0Var8.l.j(); - h0 h0Var10 = h0.this; - h0Var10.m = 0; - h0Var10.n = true; - } - } - } - } - } - - static { - e eVar = e.a; - } - - public h0(int i, int i2, int i3) { - e0 e0Var = new e0(0); - l lVar = new l(i2); - this.f = lVar; - this.b = i3; - this.a = i; - if (i == 1 || i == 2) { - this.f722c = Collections.singletonList(e0Var); - } else { - ArrayList arrayList = new ArrayList(); - this.f722c = arrayList; - arrayList.add(e0Var); - } - this.d = new w(new byte[9400], 0); - SparseBooleanArray sparseBooleanArray = new SparseBooleanArray(); - this.h = sparseBooleanArray; - this.i = new SparseBooleanArray(); - SparseArray sparseArray = new SparseArray<>(); - this.g = sparseArray; - this.e = new SparseIntArray(); - this.j = new g0(i3); - this.f723s = -1; - sparseBooleanArray.clear(); - sparseArray.clear(); - SparseArray b2 = lVar.b(); - int size = b2.size(); - for (int i4 = 0; i4 < size; i4++) { - this.g.put(b2.keyAt(i4), b2.valueAt(i4)); - } - this.g.put(0, new d0(new a())); - this.q = null; - } - - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - boolean z2; - byte[] bArr = this.d.a; - iVar.n(bArr, 0, 940); - for (int i = 0; i < 188; i++) { - int i2 = 0; - while (true) { - if (i2 >= 5) { - z2 = true; - break; - } else if (bArr[(i2 * 188) + i] != 71) { - z2 = false; - break; - } else { - i2++; - } - } - if (z2) { - iVar.l(i); - return true; - } - } - return false; - } - - /* JADX DEBUG: Multi-variable search result rejected for r9v4, resolved type: android.util.SparseBooleanArray */ - /* JADX WARN: Multi-variable type inference failed */ - /* JADX WARNING: Unknown variable types count: 2 */ - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - ?? r4; - ?? r3; - int i; - boolean z2; - int i2; - boolean z3; - long b2 = iVar.b(); - if (this.n) { - long j = -9223372036854775807L; - if ((b2 == -1 || this.a == 2) ? false : true) { - g0 g0Var = this.j; - if (!g0Var.d) { - int i3 = this.f723s; - if (i3 <= 0) { - g0Var.a(iVar); - return 0; - } - if (!g0Var.f) { - long b3 = iVar.b(); - int min = (int) Math.min((long) g0Var.a, b3); - long j2 = b3 - ((long) min); - if (iVar.getPosition() != j2) { - sVar.a = j2; - } else { - g0Var.f720c.z(min); - iVar.k(); - iVar.n(g0Var.f720c.a, 0, min); - w wVar = g0Var.f720c; - int i4 = wVar.b; - int i5 = wVar.f913c; - while (true) { - i5--; - if (i5 < i4) { - break; - } else if (wVar.a[i5] == 71) { - long l2 = AnimatableValueParser.l2(wVar, i5, i3); - if (l2 != -9223372036854775807L) { - j = l2; - break; - } - } - } - g0Var.h = j; - g0Var.f = true; - return 0; - } - } else if (g0Var.h == -9223372036854775807L) { - g0Var.a(iVar); - return 0; - } else if (!g0Var.e) { - int min2 = (int) Math.min((long) g0Var.a, iVar.b()); - long j3 = (long) 0; - if (iVar.getPosition() != j3) { - sVar.a = j3; - } else { - g0Var.f720c.z(min2); - iVar.k(); - iVar.n(g0Var.f720c.a, 0, min2); - w wVar2 = g0Var.f720c; - int i6 = wVar2.b; - int i7 = wVar2.f913c; - while (true) { - if (i6 >= i7) { - break; - } - if (wVar2.a[i6] == 71) { - long l22 = AnimatableValueParser.l2(wVar2, i6, i3); - if (l22 != -9223372036854775807L) { - j = l22; - break; - } - } - i6++; - } - g0Var.g = j; - g0Var.e = true; - return 0; - } - } else { - long j4 = g0Var.g; - if (j4 == -9223372036854775807L) { - g0Var.a(iVar); - return 0; - } - g0Var.i = g0Var.b.b(g0Var.h) - g0Var.b.b(j4); - g0Var.a(iVar); - return 0; - } - return 1; - } - } - if (!this.o) { - this.o = true; - g0 g0Var2 = this.j; - long j5 = g0Var2.i; - if (j5 != -9223372036854775807L) { - f0 f0Var = new f0(g0Var2.b, j5, b2, this.f723s, this.b); - this.k = f0Var; - this.l.a(f0Var.a); - } else { - this.l.a(new t.b(j5, 0)); - } - } - if (this.p) { - z3 = false; - this.p = false; - g(0, 0); - if (iVar.getPosition() != 0) { - sVar.a = 0; - return 1; - } - } else { - z3 = false; - } - r4 = 1; - r4 = 1; - f0 f0Var2 = this.k; - r3 = z3; - if (f0Var2 != null) { - r3 = z3; - if (f0Var2.b()) { - return this.k.a(iVar, sVar); - } - } - } else { - r3 = 0; - r4 = 1; - } - w wVar3 = this.d; - byte[] bArr = wVar3.a; - if (9400 - wVar3.b < 188) { - int a2 = wVar3.a(); - if (a2 > 0) { - System.arraycopy(bArr, this.d.b, bArr, r3, a2); - } - this.d.B(bArr, a2); - } - while (true) { - if (this.d.a() >= 188) { - i = -1; - z2 = true; - break; - } - int i8 = this.d.f913c; - int read = iVar.read(bArr, i8, 9400 - i8); - i = -1; - if (read == -1) { - z2 = false; - break; - } - this.d.C(i8 + read); - } - if (!z2) { - return i; - } - w wVar4 = this.d; - int i9 = wVar4.b; - int i10 = wVar4.f913c; - byte[] bArr2 = wVar4.a; - int i11 = i9; - while (i11 < i10 && bArr2[i11] != 71) { - i11++; - } - this.d.D(i11); - int i12 = i11 + 188; - if (i12 > i10) { - int i13 = (i11 - i9) + this.r; - this.r = i13; - i2 = 2; - if (this.a == 2 && i13 > 376) { - throw new ParserException("Cannot find sync byte. Most likely not a Transport Stream."); - } - } else { - i2 = 2; - this.r = r3; - } - w wVar5 = this.d; - int i14 = wVar5.f913c; - if (i12 > i14) { - return r3; - } - int f = wVar5.f(); - if ((8388608 & f) != 0) { - this.d.D(i12); - return r3; - } - int i15 = (4194304 & f) != 0 ? 1 : 0; - int i16 = r3 == true ? 1 : 0; - boolean z4 = r3 == true ? 1 : 0; - boolean z5 = r3 == true ? 1 : 0; - boolean z6 = r3 == true ? 1 : 0; - boolean z7 = r3 == true ? 1 : 0; - int i17 = i15 | i16; - int i18 = (2096896 & f) >> 8; - boolean z8 = (f & 32) != 0; - i0 i0Var = (f & 16) != 0 ? this.g.get(i18) : null; - if (i0Var == null) { - this.d.D(i12); - return r3; - } - if (this.a != i2) { - int i19 = f & 15; - int i20 = this.e.get(i18, i19 - 1); - this.e.put(i18, i19); - if (i20 == i19) { - this.d.D(i12); - return r3; - } else if (i19 != ((i20 + r4) & 15)) { - i0Var.c(); - } - } - if (z8) { - int s2 = this.d.s(); - i17 |= (this.d.s() & 64) != 0 ? 2 : 0; - w wVar6 = this.d; - int i21 = r4 == true ? 1 : 0; - int i22 = r4 == true ? 1 : 0; - int i23 = r4 == true ? 1 : 0; - int i24 = r4 == true ? 1 : 0; - wVar6.E(s2 - i21); - } - boolean z9 = this.n; - if (this.a == i2 || z9 || !this.i.get(i18, r3)) { - this.d.C(i12); - i0Var.b(this.d, i17); - this.d.C(i14); - } - if (this.a != i2 && !z9 && this.n && b2 != -1) { - this.p = r4; - } - this.d.D(i12); - int i25 = r3 == true ? 1 : 0; - int i26 = r3 == true ? 1 : 0; - int i27 = r3 == true ? 1 : 0; - int i28 = r3 == true ? 1 : 0; - int i29 = r3 == true ? 1 : 0; - return i25; - } - - @Override // c.i.a.c.a2.h - public void f(j jVar) { - this.l = jVar; - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - f0 f0Var; - AnimatableValueParser.D(this.a != 2); - int size = this.f722c.size(); - for (int i = 0; i < size; i++) { - e0 e0Var = this.f722c.get(i); - if ((e0Var.d() == -9223372036854775807L) || !(e0Var.d() == 0 || e0Var.c() == j2)) { - synchronized (e0Var) { - e0Var.a = j2; - e0Var.f903c = -9223372036854775807L; - } - } - } - if (!(j2 == 0 || (f0Var = this.k) == null)) { - f0Var.e(j2); - } - this.d.z(0); - this.e.clear(); - for (int i2 = 0; i2 < this.g.size(); i2++) { - this.g.valueAt(i2).c(); - } - this.r = 0; - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/i.java b/app/src/main/java/c/i/a/c/a2/j0/i.java deleted file mode 100644 index c49248aeeb..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/i.java +++ /dev/null @@ -1,143 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import c.i.a.c.v1.m; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -/* compiled from: Ac4Reader */ -public final class i implements o { - public final v a; - public final w b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final String f725c; - public String d; - public c.i.a.c.a2.w e; - public int f = 0; - public int g = 0; - public boolean h = false; - public boolean i = false; - public long j; - public Format k; - public int l; - public long m; - - public i(@Nullable String str) { - v vVar = new v(new byte[16]); - this.a = vVar; - this.b = new w(vVar.a); - this.f725c = str; - } - - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - int i; - boolean z2; - int s2; - AnimatableValueParser.H(this.e); - while (wVar.a() > 0) { - int i2 = this.f; - boolean z3 = true; - if (i2 == 0) { - while (true) { - i = 65; - if (wVar.a() <= 0) { - z2 = false; - break; - } else if (!this.h) { - this.h = wVar.s() == 172; - } else { - s2 = wVar.s(); - this.h = s2 == 172; - if (s2 == 64 || s2 == 65) { - break; - } - } - } - this.i = s2 == 65; - z2 = true; - if (z2) { - this.f = 1; - byte[] bArr = this.b.a; - bArr[0] = -84; - if (!this.i) { - i = 64; - } - bArr[1] = (byte) i; - this.g = 2; - } - } else if (i2 == 1) { - byte[] bArr2 = this.b.a; - int min = Math.min(wVar.a(), 16 - this.g); - System.arraycopy(wVar.a, wVar.b, bArr2, this.g, min); - wVar.b += min; - int i3 = this.g + min; - this.g = i3; - if (i3 != 16) { - z3 = false; - } - if (z3) { - this.a.k(0); - m.b b = m.b(this.a); - Format format = this.k; - if (format == null || 2 != format.G || b.a != format.H || !"audio/ac4".equals(format.t)) { - Format.b bVar = new Format.b(); - bVar.a = this.d; - bVar.k = "audio/ac4"; - bVar.f2218x = 2; - bVar.f2219y = b.a; - bVar.f2216c = this.f725c; - Format a = bVar.a(); - this.k = a; - this.e.e(a); - } - this.l = b.b; - this.j = (((long) b.f993c) * 1000000) / ((long) this.k.H); - this.b.D(0); - this.e.c(this.b, 16); - this.f = 2; - } - } else if (i2 == 2) { - int min2 = Math.min(wVar.a(), this.l - this.g); - this.e.c(wVar, min2); - int i4 = this.g + min2; - this.g = i4; - int i5 = this.l; - if (i4 == i5) { - this.e.d(this.m, 1, i5, 0, null); - this.m += this.j; - this.f = 0; - } - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.f = 0; - this.g = 0; - this.h = false; - this.i = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.d = dVar.b(); - this.e = jVar.p(dVar.c(), 1); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.m = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/i0.java b/app/src/main/java/c/i/a/c/a2/j0/i0.java deleted file mode 100644 index f1b94d023e..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/i0.java +++ /dev/null @@ -1,99 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.ParserException; -import java.util.Collections; -import java.util.List; -/* compiled from: TsPayloadReader */ -public interface i0 { - - /* compiled from: TsPayloadReader */ - public static final class a { - public final String a; - public final byte[] b; - - public a(String str, int i, byte[] bArr) { - this.a = str; - this.b = bArr; - } - } - - /* compiled from: TsPayloadReader */ - public static final class b { - public final int a; - @Nullable - public final String b; - - /* renamed from: c reason: collision with root package name */ - public final List f726c; - public final byte[] d; - - public b(int i, @Nullable String str, @Nullable List list, byte[] bArr) { - this.a = i; - this.b = str; - this.f726c = list == null ? Collections.emptyList() : Collections.unmodifiableList(list); - this.d = bArr; - } - } - - /* compiled from: TsPayloadReader */ - public interface c { - @Nullable - i0 a(int i, b bVar); - } - - /* compiled from: TsPayloadReader */ - public static final class d { - public final String a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f727c; - public int d; - public String e; - - public d(int i, int i2, int i3) { - String str; - if (i != Integer.MIN_VALUE) { - str = i + "/"; - } else { - str = ""; - } - this.a = str; - this.b = i2; - this.f727c = i3; - this.d = Integer.MIN_VALUE; - this.e = ""; - } - - public void a() { - int i = this.d; - this.d = i == Integer.MIN_VALUE ? this.b : i + this.f727c; - this.e = this.a + this.d; - } - - public String b() { - if (this.d != Integer.MIN_VALUE) { - return this.e; - } - throw new IllegalStateException("generateNewId() must be called before retrieving ids."); - } - - public int c() { - int i = this.d; - if (i != Integer.MIN_VALUE) { - return i; - } - throw new IllegalStateException("generateNewId() must be called before retrieving ids."); - } - } - - void a(e0 e0Var, j jVar, d dVar); - - void b(w wVar, int i) throws ParserException; - - void c(); -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/j.java b/app/src/main/java/c/i/a/c/a2/j0/j.java deleted file mode 100644 index 5088f3bb82..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/j.java +++ /dev/null @@ -1,138 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.s; -import c.i.a.c.a2.t; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.io.IOException; -/* compiled from: AdtsExtractor */ -public final class j implements h { - public final k a = new k(true, null); - public final w b = new w(2048); - - /* renamed from: c reason: collision with root package name */ - public final w f728c; - public final v d; - public c.i.a.c.a2.j e; - public long f; - public long g = -1; - public int h = -1; - public boolean i; - public boolean j; - - static { - c cVar = c.a; - } - - public j(int i) { - w wVar = new w(10); - this.f728c = wVar; - this.d = new v(wVar.a); - } - - public final int a(i iVar) throws IOException { - int i = 0; - while (true) { - iVar.n(this.f728c.a, 0, 10); - this.f728c.D(0); - if (this.f728c.u() != 4801587) { - break; - } - this.f728c.E(3); - int r = this.f728c.r(); - i += r + 10; - iVar.g(r); - } - iVar.k(); - iVar.g(i); - if (this.g == -1) { - this.g = (long) i; - } - return i; - } - - /* JADX WARNING: Code restructure failed: missing block: B:4:0x0021, code lost: - r9.k(); - r3 = r3 + 1; - */ - /* JADX WARNING: Code restructure failed: missing block: B:5:0x002a, code lost: - if ((r3 - r0) < 8192) goto L_0x002d; - */ - /* JADX WARNING: Code restructure failed: missing block: B:6:0x002c, code lost: - return false; - */ - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - int a = a(iVar); - int i = a; - while (true) { - int i2 = 0; - int i3 = 0; - while (true) { - iVar.n(this.f728c.a, 0, 2); - this.f728c.D(0); - if (!k.g(this.f728c.x())) { - break; - } - i2++; - if (i2 >= 4 && i3 > 188) { - return true; - } - iVar.n(this.f728c.a, 0, 4); - this.d.k(14); - int g = this.d.g(13); - if (g <= 6) { - return false; - } - iVar.g(g - 6); - i3 += g; - } - iVar.g(i); - } - } - - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - AnimatableValueParser.H(this.e); - iVar.b(); - int read = iVar.read(this.b.a, 0, 2048); - boolean z2 = read == -1; - if (!this.j) { - this.e.a(new t.b(-9223372036854775807L, 0)); - this.j = true; - } - if (z2) { - return -1; - } - this.b.D(0); - this.b.C(read); - if (!this.i) { - this.a.t = this.f; - this.i = true; - } - this.a.b(this.b); - return 0; - } - - @Override // c.i.a.c.a2.h - public void f(c.i.a.c.a2.j jVar) { - this.e = jVar; - this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); - jVar.j(); - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - this.i = false; - this.a.c(); - this.f = j2; - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/j0.java b/app/src/main/java/c/i/a/c/a2/j0/j0.java deleted file mode 100644 index deaa99f2a2..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/j0.java +++ /dev/null @@ -1,49 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.List; -/* compiled from: UserDataReader */ -public final class j0 { - public final List a; - public final w[] b; - - public j0(List list) { - this.a = list; - this.b = new w[list.size()]; - } - - public void a(long j, c.i.a.c.i2.w wVar) { - if (wVar.a() >= 9) { - int f = wVar.f(); - int f2 = wVar.f(); - int s2 = wVar.s(); - if (f == 434 && f2 == 1195456820 && s2 == 3) { - AnimatableValueParser.M(j, wVar, this.b); - } - } - } - - public void b(j jVar, i0.d dVar) { - for (int i = 0; i < this.b.length; i++) { - dVar.a(); - w p = jVar.p(dVar.c(), 3); - Format format = this.a.get(i); - String str = format.t; - boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str); - AnimatableValueParser.n(z2, "Invalid closed caption mime type provided: " + str); - Format.b bVar = new Format.b(); - bVar.a = dVar.b(); - bVar.k = str; - bVar.d = format.l; - bVar.f2216c = format.k; - bVar.C = format.L; - bVar.m = format.v; - p.e(bVar.a()); - this.b[i] = p; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/k.java b/app/src/main/java/c/i/a/c/a2/j0/k.java deleted file mode 100644 index 8e27e40bbb..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/k.java +++ /dev/null @@ -1,313 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.a2.g; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import c.i.a.c.v1.k; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.ParserException; -import java.util.Arrays; -import java.util.Collections; -import java.util.Objects; -/* compiled from: AdtsReader */ -public final class k implements o { - public static final byte[] a = {73, 68, 51}; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final v f729c = new v(new byte[7]); - public final w d = new w(Arrays.copyOf(a, 10)); - @Nullable - public final String e; - public String f; - public c.i.a.c.a2.w g; - public c.i.a.c.a2.w h; - public int i; - public int j; - public int k; - public boolean l; - public boolean m; - public int n; - public int o; - public int p; - public boolean q; - public long r; - - /* renamed from: s reason: collision with root package name */ - public int f730s; - public long t; - public c.i.a.c.a2.w u; - public long v; - - public k(boolean z2, @Nullable String str) { - h(); - this.n = -1; - this.o = -1; - this.r = -9223372036854775807L; - this.b = z2; - this.e = str; - } - - public static boolean g(int i) { - return (i & 65526) == 65520; - } - - public final boolean a(w wVar, byte[] bArr, int i) { - int min = Math.min(wVar.a(), i - this.j); - System.arraycopy(wVar.a, wVar.b, bArr, this.j, min); - wVar.b += min; - int i2 = this.j + min; - this.j = i2; - return i2 == i; - } - - /* JADX WARNING: Removed duplicated region for block: B:141:0x026a A[EDGE_INSN: B:141:0x026a->B:92:0x026a ?: BREAK , SYNTHETIC] */ - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) throws ParserException { - int i; - int i2; - boolean z2; - Objects.requireNonNull(this.g); - int i3 = f0.a; - while (wVar.a() > 0) { - int i4 = this.i; - int i5 = 13; - int i6 = 2; - if (i4 == 0) { - byte[] bArr = wVar.a; - int i7 = wVar.b; - int i8 = wVar.f913c; - while (true) { - if (i7 >= i8) { - wVar.D(i7); - break; - } - i = i7 + 1; - i2 = bArr[i7] & 255; - if (this.k == 512 && g((((byte) i2) & 255) | 65280)) { - if (this.m) { - break; - } - int i9 = i - 2; - wVar.D(i9 + 1); - if (i(wVar, this.f729c.a, 1)) { - this.f729c.k(4); - int g = this.f729c.g(1); - int i10 = this.n; - if (i10 == -1 || g == i10) { - if (this.o != -1) { - if (i(wVar, this.f729c.a, 1)) { - this.f729c.k(i6); - if (this.f729c.g(4) == this.o) { - wVar.D(i9 + 2); - } - } - z2 = true; - if (z2) { - break; - } - } - if (i(wVar, this.f729c.a, 4)) { - this.f729c.k(14); - int g2 = this.f729c.g(i5); - if (g2 >= 7) { - byte[] bArr2 = wVar.a; - int i11 = wVar.f913c; - int i12 = i9 + g2; - if (i12 < i11) { - if (bArr2[i12] == -1) { - } - } - } - } - z2 = true; - if (z2) { - } - } - } - z2 = false; - if (z2) { - } - } - int i13 = this.k; - int i14 = i2 | i13; - if (i14 == 329) { - this.k = 768; - } else if (i14 == 511) { - this.k = 512; - } else if (i14 != 836) { - if (i14 == 1075) { - this.i = 2; - this.j = a.length; - this.f730s = 0; - this.d.D(0); - wVar.D(i); - break; - } else if (i13 != 256) { - this.k = 256; - i7 = i - 1; - i5 = 13; - i6 = 2; - } - } else { - this.k = 1024; - } - i7 = i; - i5 = 13; - i6 = 2; - } - this.p = (i2 & 8) >> 3; - this.l = (i2 & 1) == 0; - if (!this.m) { - this.i = 1; - this.j = 0; - } else { - this.i = 3; - this.j = 0; - } - wVar.D(i); - } else if (i4 != 1) { - if (i4 != 2) { - if (i4 == 3) { - if (a(wVar, this.f729c.a, this.l ? 7 : 5)) { - this.f729c.k(0); - if (!this.q) { - int g3 = this.f729c.g(2) + 1; - if (g3 != 2) { - Log.w("AdtsReader", "Detected audio object type: " + g3 + ", but assuming AAC LC."); - g3 = 2; - } - this.f729c.m(5); - int g4 = this.f729c.g(3); - int i15 = this.o; - byte[] bArr3 = {(byte) (((g3 << 3) & 248) | ((i15 >> 1) & 7)), (byte) (((i15 << 7) & 128) | ((g4 << 3) & 120))}; - k.b c2 = c.i.a.c.v1.k.c(new v(bArr3), false); - Format.b bVar = new Format.b(); - bVar.a = this.f; - bVar.k = "audio/mp4a-latm"; - bVar.h = c2.f991c; - bVar.f2218x = c2.b; - bVar.f2219y = c2.a; - bVar.m = Collections.singletonList(bArr3); - bVar.f2216c = this.e; - Format a2 = bVar.a(); - this.r = 1024000000 / ((long) a2.H); - this.g.e(a2); - this.q = true; - } else { - this.f729c.m(10); - } - this.f729c.m(4); - int g5 = (this.f729c.g(13) - 2) - 5; - if (this.l) { - g5 -= 2; - } - c.i.a.c.a2.w wVar2 = this.g; - long j = this.r; - this.i = 4; - this.j = 0; - this.u = wVar2; - this.v = j; - this.f730s = g5; - } - } else if (i4 == 4) { - int min = Math.min(wVar.a(), this.f730s - this.j); - this.u.c(wVar, min); - int i16 = this.j + min; - this.j = i16; - int i17 = this.f730s; - if (i16 == i17) { - this.u.d(this.t, 1, i17, 0, null); - this.t += this.v; - h(); - } - } else { - throw new IllegalStateException(); - } - } else if (a(wVar, this.d.a, 10)) { - this.h.c(this.d, 10); - this.d.D(6); - c.i.a.c.a2.w wVar3 = this.h; - this.i = 4; - this.j = 10; - this.u = wVar3; - this.v = 0; - this.f730s = this.d.r() + 10; - } - } else if (wVar.a() != 0) { - v vVar = this.f729c; - vVar.a[0] = wVar.a[wVar.b]; - vVar.k(2); - int g6 = this.f729c.g(4); - int i18 = this.o; - if (i18 == -1 || g6 == i18) { - if (!this.m) { - this.m = true; - this.n = this.p; - this.o = g6; - } - this.i = 3; - this.j = 0; - } else { - this.m = false; - h(); - } - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.m = false; - h(); - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.f = dVar.b(); - c.i.a.c.a2.w p = jVar.p(dVar.c(), 1); - this.g = p; - this.u = p; - if (this.b) { - dVar.a(); - c.i.a.c.a2.w p2 = jVar.p(dVar.c(), 5); - this.h = p2; - Format.b bVar = new Format.b(); - bVar.a = dVar.b(); - bVar.k = "application/id3"; - p2.e(bVar.a()); - return; - } - this.h = new g(); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.t = j; - } - - public final void h() { - this.i = 0; - this.j = 0; - this.k = 256; - } - - public final boolean i(w wVar, byte[] bArr, int i) { - if (wVar.a() < i) { - return false; - } - System.arraycopy(wVar.a, wVar.b, bArr, 0, i); - wVar.b += i; - return true; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/l.java b/app/src/main/java/c/i/a/c/a2/j0/l.java deleted file mode 100644 index 74aee00835..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/l.java +++ /dev/null @@ -1,168 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.SparseArray; -import androidx.annotation.Nullable; -import c.i.a.c.a2.j0.i0; -import c.i.b.a.c; -import c.i.b.b.a; -import c.i.b.b.q0; -import c.i.b.b.u; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -/* compiled from: DefaultTsPayloadReaderFactory */ -public final class l implements i0.c { - public final int a; - public final List b; - - public l(int i) { - a aVar = u.j; - u uVar = q0.k; - this.a = i; - this.b = uVar; - } - - @Override // c.i.a.c.a2.j0.i0.c - @Nullable - public i0 a(int i, i0.b bVar) { - if (i == 2) { - return new y(new p(new j0(c(bVar)))); - } - if (i == 3 || i == 4) { - return new y(new v(bVar.b)); - } - if (i == 21) { - return new y(new t()); - } - if (i != 27) { - if (i == 36) { - return new y(new s(new e0(c(bVar)))); - } - if (i == 89) { - return new y(new n(bVar.f726c)); - } - if (i != 138) { - if (i == 172) { - return new y(new i(bVar.b)); - } - if (i == 257) { - return new d0(new x("application/vnd.dvb.ait")); - } - if (i != 129) { - if (i != 130) { - if (i != 134) { - if (i != 135) { - switch (i) { - case 15: - if (d(2)) { - return null; - } - return new y(new k(false, bVar.b)); - case 16: - return new y(new q(new j0(c(bVar)))); - case 17: - if (d(2)) { - return null; - } - return new y(new u(bVar.b)); - default: - return null; - } - } - } else if (d(16)) { - return null; - } else { - return new d0(new x("application/x-scte35")); - } - } else if (!d(64)) { - return null; - } - } - return new y(new g(bVar.b)); - } - return new y(new m(bVar.b)); - } else if (d(4)) { - return null; - } else { - return new y(new r(new e0(c(bVar)), d(1), d(8))); - } - } - - public SparseArray b() { - return new SparseArray<>(); - } - - /* JADX DEBUG: Failed to insert an additional move for type inference into block B:42:0x009b */ - /* JADX DEBUG: Multi-variable search result rejected for r1v1, resolved type: java.util.ArrayList */ - /* JADX DEBUG: Multi-variable search result rejected for r1v3, resolved type: java.util.ArrayList */ - /* JADX DEBUG: Multi-variable search result rejected for r1v4, resolved type: java.util.ArrayList */ - /* JADX DEBUG: Multi-variable search result rejected for r1v5, resolved type: java.util.ArrayList */ - /* JADX WARN: Multi-variable type inference failed */ - public final List c(i0.b bVar) { - String str; - int i; - if (d(32)) { - return this.b; - } - byte[] bArr = bVar.d; - int length = bArr.length; - int i2 = 0; - ArrayList arrayList = this.b; - while (length - i2 > 0) { - int i3 = i2 + 1; - int i4 = bArr[i2] & 255; - int i5 = i3 + 1; - int i6 = (bArr[i3] & 255) + i5; - boolean z2 = true; - if (i4 == 134) { - arrayList = new ArrayList(); - int i7 = i5 + 1; - int i8 = bArr[i5] & 255 & 31; - int i9 = 0; - while (i9 < i8) { - String str2 = new String(bArr, i7, 3, c.f1266c); - int i10 = i7 + 3; - int i11 = i10 + 1; - int i12 = bArr[i10] & 255; - boolean z3 = (i12 & 128) != 0; - if (z3) { - i = i12 & 63; - str = "application/cea-708"; - } else { - str = "application/cea-608"; - i = 1; - } - int i13 = i11 + 1; - byte b = (byte) (bArr[i11] & 255); - int i14 = i13 + 1; - AnimatableValueParser.k(i14 >= 0 && i14 <= length); - List list = null; - if (z3) { - list = Collections.singletonList((b & 64) != 0 ? new byte[]{1} : new byte[]{0}); - } - Format.b bVar2 = new Format.b(); - bVar2.k = str; - bVar2.f2216c = str2; - bVar2.C = i; - bVar2.m = list; - arrayList.add(bVar2.a()); - i9++; - i7 = i14; - } - } - if (i6 < 0 || i6 > length) { - z2 = false; - } - AnimatableValueParser.k(z2); - i2 = i6; - arrayList = arrayList; - } - return arrayList; - } - - public final boolean d(int i) { - return (i & this.a) != 0; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/m.java b/app/src/main/java/c/i/a/c/a2/j0/m.java deleted file mode 100644 index e69f5bc85d..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/m.java +++ /dev/null @@ -1,282 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.Arrays; -/* compiled from: DtsReader */ -public final class m implements o { - public final w a = new w(new byte[18]); - @Nullable - public final String b; - - /* renamed from: c reason: collision with root package name */ - public String f731c; - public c.i.a.c.a2.w d; - public int e = 0; - public int f; - public int g; - public long h; - public Format i; - public int j; - public long k; - - public m(@Nullable String str) { - this.b = str; - } - - /* JADX WARNING: Removed duplicated region for block: B:65:0x0217 */ - /* JADX WARNING: Removed duplicated region for block: B:68:0x0225 */ - /* JADX WARNING: Removed duplicated region for block: B:76:0x024d */ - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - boolean z2; - int i; - byte b; - int i2; - int i3; - byte b2; - byte b3; - int i4; - byte b4; - int i5; - byte b5; - int i6; - v vVar; - int i7; - int i8; - boolean z3; - boolean z4; - AnimatableValueParser.H(this.d); - while (wVar.a() > 0) { - int i9 = this.e; - int i10 = 8; - int i11 = 2; - if (i9 == 0) { - while (true) { - if (wVar.a() <= 0) { - z3 = false; - break; - } - int i12 = this.g << 8; - this.g = i12; - int s2 = i12 | wVar.s(); - this.g = s2; - if (s2 == 2147385345 || s2 == -25230976 || s2 == 536864768 || s2 == -14745368) { - z4 = true; - continue; - } else { - z4 = false; - continue; - } - if (z4) { - byte[] bArr = this.a.a; - bArr[0] = (byte) ((s2 >> 24) & 255); - bArr[1] = (byte) ((s2 >> 16) & 255); - bArr[2] = (byte) ((s2 >> 8) & 255); - bArr[3] = (byte) (s2 & 255); - this.f = 4; - this.g = 0; - z3 = true; - break; - } - } - if (z3) { - this.e = 1; - } - } else if (i9 == 1) { - byte[] bArr2 = this.a.a; - int min = Math.min(wVar.a(), 18 - this.f); - System.arraycopy(wVar.a, wVar.b, bArr2, this.f, min); - wVar.b += min; - int i13 = this.f + min; - this.f = i13; - if (i13 == 18) { - byte[] bArr3 = this.a.a; - if (this.i == null) { - String str = this.f731c; - String str2 = this.b; - if (bArr3[0] == Byte.MAX_VALUE) { - vVar = new v(bArr3); - } else { - byte[] copyOf = Arrays.copyOf(bArr3, bArr3.length); - if (copyOf[0] == -2 || copyOf[0] == -1) { - for (int i14 = 0; i14 < copyOf.length - 1; i14 += 2) { - byte b6 = copyOf[i14]; - int i15 = i14 + 1; - copyOf[i14] = copyOf[i15]; - copyOf[i15] = b6; - } - } - v vVar2 = new v(copyOf); - if (copyOf[0] == 31) { - v vVar3 = new v(copyOf); - while (vVar3.b() >= 16) { - vVar3.m(i11); - int g = vVar3.g(14) & 16383; - int min2 = Math.min(8 - vVar2.f912c, 14); - int i16 = vVar2.f912c; - int i17 = (8 - i16) - min2; - byte[] bArr4 = vVar2.a; - int i18 = vVar2.b; - bArr4[i18] = (byte) (((65280 >> i16) | ((1 << i17) - 1)) & bArr4[i18]); - int i19 = 14 - min2; - bArr4[i18] = (byte) (((g >>> i19) << i17) | bArr4[i18]); - int i20 = i18 + 1; - while (i19 > i10) { - i19 -= 8; - vVar2.a[i20] = (byte) (g >>> i19); - i20++; - i10 = 8; - } - int i21 = 8 - i19; - byte[] bArr5 = vVar2.a; - bArr5[i20] = (byte) (bArr5[i20] & ((1 << i21) - 1)); - bArr5[i20] = (byte) (((((1 << i19) - 1) & g) << i21) | bArr5[i20]); - vVar2.m(14); - vVar2.a(); - i10 = 8; - i11 = 2; - } - } - int length = copyOf.length; - vVar2.a = copyOf; - vVar2.b = 0; - vVar2.f912c = 0; - vVar2.d = length; - vVar = vVar2; - } - vVar.m(60); - int i22 = c.i.a.c.v1.w.a[vVar.g(6)]; - int i23 = c.i.a.c.v1.w.b[vVar.g(4)]; - int g2 = vVar.g(5); - int[] iArr = c.i.a.c.v1.w.f1004c; - if (g2 >= iArr.length) { - i8 = -1; - i7 = 2; - } else { - i7 = 2; - i8 = (iArr[g2] * 1000) / 2; - } - vVar.m(10); - int i24 = i22 + (vVar.g(i7) > 0 ? 1 : 0); - Format.b bVar = new Format.b(); - bVar.a = str; - bVar.k = "audio/vnd.dts"; - bVar.f = i8; - bVar.f2218x = i24; - bVar.f2219y = i23; - bVar.n = null; - bVar.f2216c = str2; - Format a = bVar.a(); - this.i = a; - this.d.e(a); - } - byte b7 = bArr3[0]; - if (b7 != -2) { - if (b7 == -1) { - i6 = ((3 & bArr3[7]) << 12) | ((bArr3[6] & 255) << 4); - b5 = bArr3[9]; - } else if (b7 != 31) { - i4 = 4; - i5 = ((3 & bArr3[5]) << 12) | ((bArr3[6] & 255) << 4); - b4 = bArr3[7]; - } else { - i6 = ((3 & bArr3[6]) << 12) | ((bArr3[7] & 255) << 4); - b5 = bArr3[8]; - } - i = (i6 | ((b5 & 60) >> 2)) + 1; - z2 = true; - if (z2) { - i = (i * 16) / 14; - } - this.j = i; - b = bArr3[0]; - if (b == -2) { - if (b == -1) { - b3 = bArr3[7]; - i2 = (bArr3[4] & 7) << 4; - } else if (b != 31) { - i2 = (bArr3[4] & 1) << 6; - b2 = bArr3[5]; - } else { - i2 = (7 & bArr3[5]) << 4; - b3 = bArr3[6]; - } - i3 = b3 & 60; - this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H))); - this.a.D(0); - this.d.c(this.a, 18); - this.e = 2; - } else { - i2 = (bArr3[5] & 1) << 6; - b2 = bArr3[4]; - } - i3 = b2 & 252; - this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H))); - this.a.D(0); - this.d.c(this.a, 18); - this.e = 2; - } else { - i4 = 4; - i5 = ((bArr3[4] & 3) << 12) | ((bArr3[7] & 255) << 4); - b4 = bArr3[6]; - } - i = (i5 | ((b4 & 240) >> i4)) + 1; - z2 = false; - if (z2) { - } - this.j = i; - b = bArr3[0]; - if (b == -2) { - } - i3 = b2 & 252; - this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.H))); - this.a.D(0); - this.d.c(this.a, 18); - this.e = 2; - } - } else if (i9 == 2) { - int min3 = Math.min(wVar.a(), this.j - this.f); - this.d.c(wVar, min3); - int i25 = this.f + min3; - this.f = i25; - int i26 = this.j; - if (i25 == i26) { - this.d.d(this.k, 1, i26, 0, null); - this.k += this.h; - this.e = 0; - } - } else { - throw new IllegalStateException(); - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.e = 0; - this.f = 0; - this.g = 0; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.f731c = dVar.b(); - this.d = jVar.p(dVar.c(), 1); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.k = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/n.java b/app/src/main/java/c/i/a/c/a2/j0/n.java deleted file mode 100644 index 05c9cba8b1..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/n.java +++ /dev/null @@ -1,95 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import com.google.android.exoplayer2.Format; -import java.util.Collections; -import java.util.List; -/* compiled from: DvbSubtitleReader */ -public final class n implements o { - public final List a; - public final w[] b; - - /* renamed from: c reason: collision with root package name */ - public boolean f732c; - public int d; - public int e; - public long f; - - public n(List list) { - this.a = list; - this.b = new w[list.size()]; - } - - public final boolean a(c.i.a.c.i2.w wVar, int i) { - if (wVar.a() == 0) { - return false; - } - if (wVar.s() != i) { - this.f732c = false; - } - this.d--; - return this.f732c; - } - - @Override // c.i.a.c.a2.j0.o - public void b(c.i.a.c.i2.w wVar) { - if (!this.f732c) { - return; - } - if (this.d != 2 || a(wVar, 32)) { - if (this.d != 1 || a(wVar, 0)) { - int i = wVar.b; - int a = wVar.a(); - w[] wVarArr = this.b; - for (w wVar2 : wVarArr) { - wVar.D(i); - wVar2.c(wVar, a); - } - this.e += a; - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.f732c = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - if (this.f732c) { - for (w wVar : this.b) { - wVar.d(this.f, 1, this.e, 0, null); - } - this.f732c = false; - } - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - for (int i = 0; i < this.b.length; i++) { - i0.a aVar = this.a.get(i); - dVar.a(); - w p = jVar.p(dVar.c(), 3); - Format.b bVar = new Format.b(); - bVar.a = dVar.b(); - bVar.k = "application/dvbsubs"; - bVar.m = Collections.singletonList(aVar.b); - bVar.f2216c = aVar.a; - p.e(bVar.a()); - this.b[i] = p; - } - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - if ((i & 4) != 0) { - this.f732c = true; - this.f = j; - this.e = 0; - this.d = 2; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/o.java b/app/src/main/java/c/i/a/c/a2/j0/o.java deleted file mode 100644 index c9c68fbe7f..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/o.java +++ /dev/null @@ -1,18 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.ParserException; -/* compiled from: ElementaryStreamReader */ -public interface o { - void b(w wVar) throws ParserException; - - void c(); - - void d(); - - void e(j jVar, i0.d dVar); - - void f(long j, int i); -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/p.java b/app/src/main/java/c/i/a/c/a2/j0/p.java deleted file mode 100644 index 02006d95be..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/p.java +++ /dev/null @@ -1,372 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.Pair; -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.u; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.Arrays; -import java.util.Collections; -import java.util.Objects; -/* compiled from: H262Reader */ -public final class p implements o { - public static final double[] a = {23.976023976023978d, 24.0d, 25.0d, 29.97002997002997d, 30.0d, 50.0d, 59.94005994005994d, 60.0d}; - public String b; - - /* renamed from: c reason: collision with root package name */ - public w f733c; - @Nullable - public final j0 d; - @Nullable - public final c.i.a.c.i2.w e; - @Nullable - public final w f; - public final boolean[] g = new boolean[4]; - public final a h = new a(128); - public long i; - public boolean j; - public boolean k; - public long l; - public long m; - public long n; - public long o; - public boolean p; - public boolean q; - - /* compiled from: H262Reader */ - public static final class a { - public static final byte[] a = {0, 0, 1}; - public boolean b; - - /* renamed from: c reason: collision with root package name */ - public int f734c; - public int d; - public byte[] e; - - public a(int i) { - this.e = new byte[i]; - } - - public void a(byte[] bArr, int i, int i2) { - if (this.b) { - int i3 = i2 - i; - byte[] bArr2 = this.e; - int length = bArr2.length; - int i4 = this.f734c; - if (length < i4 + i3) { - this.e = Arrays.copyOf(bArr2, (i4 + i3) * 2); - } - System.arraycopy(bArr, i, this.e, this.f734c, i3); - this.f734c += i3; - } - } - } - - public p(@Nullable j0 j0Var) { - this.d = j0Var; - if (j0Var != null) { - this.f = new w(178, 128); - this.e = new c.i.a.c.i2.w(); - return; - } - this.f = null; - this.e = null; - } - - /* JADX WARNING: Removed duplicated region for block: B:28:0x0080 */ - /* JADX WARNING: Removed duplicated region for block: B:41:0x00f4 */ - /* JADX WARNING: Removed duplicated region for block: B:53:0x0150 */ - /* JADX WARNING: Removed duplicated region for block: B:64:0x0193 */ - /* JADX WARNING: Removed duplicated region for block: B:66:0x0197 */ - /* JADX WARNING: Removed duplicated region for block: B:80:0x01d1 */ - /* JADX WARNING: Removed duplicated region for block: B:85:0x01eb */ - /* JADX WARNING: Removed duplicated region for block: B:90:0x0201 */ - /* JADX WARNING: Removed duplicated region for block: B:91:0x0203 */ - @Override // c.i.a.c.a2.j0.o - public void b(c.i.a.c.i2.w wVar) { - int i; - int i2; - w wVar2; - int i3; - boolean z2; - long j; - int i4; - boolean z3; - float f; - int i5; - long j2; - int i6; - float f2; - AnimatableValueParser.H(this.f733c); - int i7 = wVar.b; - int i8 = wVar.f913c; - byte[] bArr = wVar.a; - this.i += (long) wVar.a(); - this.f733c.c(wVar, wVar.a()); - while (true) { - int b = u.b(bArr, i7, i8, this.g); - if (b == i8) { - break; - } - int i9 = b + 3; - int i10 = wVar.a[i9] & 255; - int i11 = b - i7; - if (!this.k) { - if (i11 > 0) { - this.h.a(bArr, i7, b); - } - int i12 = i11 < 0 ? -i11 : 0; - a aVar = this.h; - if (aVar.b) { - int i13 = aVar.f734c - i12; - aVar.f734c = i13; - if (aVar.d == 0 && i10 == 181) { - aVar.d = i13; - } else { - aVar.b = false; - z3 = true; - if (z3) { - a aVar2 = this.h; - String str = this.b; - Objects.requireNonNull(str); - byte[] copyOf = Arrays.copyOf(aVar2.e, aVar2.f734c); - int i14 = copyOf[5] & 255; - int i15 = ((copyOf[4] & 255) << 4) | (i14 >> 4); - int i16 = ((i14 & 15) << 8) | (copyOf[6] & 255); - int i17 = (copyOf[7] & 240) >> 4; - if (i17 == 2) { - f2 = (float) (i16 * 4); - i6 = i15 * 3; - } else if (i17 == 3) { - f2 = (float) (i16 * 16); - i6 = i15 * 9; - } else if (i17 != 4) { - f = 1.0f; - Format.b bVar = new Format.b(); - bVar.a = str; - bVar.k = "video/mpeg2"; - bVar.p = i15; - bVar.q = i16; - bVar.t = f; - bVar.m = Collections.singletonList(copyOf); - Format a2 = bVar.a(); - i5 = (copyOf[7] & 15) - 1; - if (i5 >= 0) { - double[] dArr = a; - if (i5 < dArr.length) { - double d = dArr[i5]; - int i18 = aVar2.d + 9; - int i19 = (copyOf[i18] & 96) >> 5; - int i20 = copyOf[i18] & 31; - if (i19 != i20) { - i = i10; - i2 = i9; - d *= (((double) i19) + 1.0d) / ((double) (i20 + 1)); - } else { - i = i10; - i2 = i9; - } - j2 = (long) (1000000.0d / d); - Pair create = Pair.create(a2, Long.valueOf(j2)); - this.f733c.e((Format) create.first); - this.l = ((Long) create.second).longValue(); - this.k = true; - wVar2 = this.f; - if (wVar2 == null) { - if (i11 > 0) { - wVar2.a(bArr, i7, b); - i4 = 0; - } else { - i4 = -i11; - } - if (this.f.b(i4)) { - w wVar3 = this.f; - int e = u.e(wVar3.d, wVar3.e); - c.i.a.c.i2.w wVar4 = this.e; - int i21 = f0.a; - wVar4.B(this.f.d, e); - this.d.a(this.o, this.e); - } - i3 = i; - if (i3 == 178 && wVar.a[b + 2] == 1) { - this.f.d(i3); - } - } else { - i3 = i; - } - if (i3 != 0 || i3 == 179) { - int i22 = i8 - b; - if (this.j && this.q && this.k) { - this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null); - } - z2 = this.j; - if (z2 || this.q) { - this.n = this.i - ((long) i22); - j = this.m; - if (j == -9223372036854775807L) { - j = z2 ? this.o + this.l : 0; - } - this.o = j; - this.p = false; - this.m = -9223372036854775807L; - this.j = true; - } - this.q = i3 != 0; - } else if (i3 == 184) { - this.p = true; - } - i7 = i2; - } - } - i = i10; - i2 = i9; - j2 = 0; - Pair create = Pair.create(a2, Long.valueOf(j2)); - this.f733c.e((Format) create.first); - this.l = ((Long) create.second).longValue(); - this.k = true; - wVar2 = this.f; - if (wVar2 == null) { - } - if (i3 != 0) { - } - int i22 = i8 - b; - this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null); - z2 = this.j; - if (z2) { - } - this.n = this.i - ((long) i22); - j = this.m; - if (j == -9223372036854775807L) { - } - this.o = j; - this.p = false; - this.m = -9223372036854775807L; - this.j = true; - this.q = i3 != 0; - i7 = i2; - } else { - f2 = (float) (i16 * 121); - i6 = i15 * 100; - } - f = f2 / ((float) i6); - Format.b bVar = new Format.b(); - bVar.a = str; - bVar.k = "video/mpeg2"; - bVar.p = i15; - bVar.q = i16; - bVar.t = f; - bVar.m = Collections.singletonList(copyOf); - Format a2 = bVar.a(); - i5 = (copyOf[7] & 15) - 1; - if (i5 >= 0) { - } - i = i10; - i2 = i9; - j2 = 0; - Pair create = Pair.create(a2, Long.valueOf(j2)); - this.f733c.e((Format) create.first); - this.l = ((Long) create.second).longValue(); - this.k = true; - wVar2 = this.f; - if (wVar2 == null) { - } - if (i3 != 0) { - } - int i22 = i8 - b; - this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null); - z2 = this.j; - if (z2) { - } - this.n = this.i - ((long) i22); - j = this.m; - if (j == -9223372036854775807L) { - } - this.o = j; - this.p = false; - this.m = -9223372036854775807L; - this.j = true; - this.q = i3 != 0; - i7 = i2; - } - } - } else if (i10 == 179) { - aVar.b = true; - } - byte[] bArr2 = a.a; - aVar.a(bArr2, 0, bArr2.length); - z3 = false; - if (z3) { - } - } - i = i10; - i2 = i9; - wVar2 = this.f; - if (wVar2 == null) { - } - if (i3 != 0) { - } - int i22 = i8 - b; - this.f733c.d(this.o, this.p ? 1 : 0, ((int) (this.i - this.n)) - i22, i22, null); - z2 = this.j; - if (z2) { - } - this.n = this.i - ((long) i22); - j = this.m; - if (j == -9223372036854775807L) { - } - this.o = j; - this.p = false; - this.m = -9223372036854775807L; - this.j = true; - this.q = i3 != 0; - i7 = i2; - } - if (!this.k) { - this.h.a(bArr, i7, i8); - } - w wVar5 = this.f; - if (wVar5 != null) { - wVar5.a(bArr, i7, i8); - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - u.a(this.g); - a aVar = this.h; - aVar.b = false; - aVar.f734c = 0; - aVar.d = 0; - w wVar = this.f; - if (wVar != null) { - wVar.c(); - } - this.i = 0; - this.j = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.b = dVar.b(); - this.f733c = jVar.p(dVar.c(), 2); - j0 j0Var = this.d; - if (j0Var != null) { - j0Var.b(jVar, dVar); - } - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.m = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/q.java b/app/src/main/java/c/i/a/c/a2/j0/q.java deleted file mode 100644 index 111f9fbd53..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/q.java +++ /dev/null @@ -1,500 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.u; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.Arrays; -import java.util.Collections; -import java.util.Objects; -/* compiled from: H263Reader */ -public final class q implements o { - public static final float[] a = {1.0f, 1.0f, 1.0909091f, 0.90909094f, 1.4545455f, 1.2121212f, 1.0f}; - @Nullable - public final j0 b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final w f735c = new w(); - public final boolean[] d = new boolean[4]; - public final a e = new a(128); - @Nullable - public final w f = new w(178, 128); - public b g; - public long h; - public String i; - public c.i.a.c.a2.w j; - public boolean k; - public long l; - - /* compiled from: H263Reader */ - public static final class a { - public static final byte[] a = {0, 0, 1}; - public boolean b; - - /* renamed from: c reason: collision with root package name */ - public int f736c; - public int d; - public int e; - public byte[] f; - - public a(int i) { - this.f = new byte[i]; - } - - public void a(byte[] bArr, int i, int i2) { - if (this.b) { - int i3 = i2 - i; - byte[] bArr2 = this.f; - int length = bArr2.length; - int i4 = this.d; - if (length < i4 + i3) { - this.f = Arrays.copyOf(bArr2, (i4 + i3) * 2); - } - System.arraycopy(bArr, i, this.f, this.d, i3); - this.d += i3; - } - } - - public void b() { - this.b = false; - this.d = 0; - this.f736c = 0; - } - } - - /* compiled from: H263Reader */ - public static final class b { - public final c.i.a.c.a2.w a; - public boolean b; - - /* renamed from: c reason: collision with root package name */ - public boolean f737c; - public boolean d; - public int e; - public int f; - public long g; - public long h; - - public b(c.i.a.c.a2.w wVar) { - this.a = wVar; - } - - public void a(byte[] bArr, int i, int i2) { - if (this.f737c) { - int i3 = this.f; - int i4 = (i + 1) - i3; - if (i4 < i2) { - this.d = ((bArr[i4] & 192) >> 6) == 0; - this.f737c = false; - return; - } - this.f = (i2 - i) + i3; - } - } - } - - public q(@Nullable j0 j0Var) { - this.b = j0Var; - } - - /* JADX WARNING: Removed duplicated region for block: B:103:0x0264 */ - /* JADX WARNING: Removed duplicated region for block: B:106:0x0271 */ - /* JADX WARNING: Removed duplicated region for block: B:112:0x027d */ - /* JADX WARNING: Removed duplicated region for block: B:113:0x027f */ - /* JADX WARNING: Removed duplicated region for block: B:49:0x00d2 */ - /* JADX WARNING: Removed duplicated region for block: B:65:0x0140 */ - /* JADX WARNING: Removed duplicated region for block: B:70:0x017b */ - /* JADX WARNING: Removed duplicated region for block: B:73:0x0192 */ - /* JADX WARNING: Removed duplicated region for block: B:83:0x01ec */ - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - int i; - int i2; - w wVar2; - long j; - b bVar; - int i3; - boolean z2; - float f; - AnimatableValueParser.H(this.g); - AnimatableValueParser.H(this.j); - int i4 = wVar.b; - int i5 = wVar.f913c; - byte[] bArr = wVar.a; - this.h += (long) wVar.a(); - this.j.c(wVar, wVar.a()); - while (true) { - int b2 = u.b(bArr, i4, i5, this.d); - if (b2 == i5) { - if (!this.k) { - this.e.a(bArr, i4, i5); - } - this.g.a(bArr, i4, i5); - w wVar3 = this.f; - if (wVar3 != null) { - wVar3.a(bArr, i4, i5); - return; - } - return; - } - int i6 = b2 + 3; - int i7 = wVar.a[i6] & 255; - int i8 = b2 - i4; - if (!this.k) { - if (i8 > 0) { - this.e.a(bArr, i4, b2); - } - int i9 = i8 < 0 ? -i8 : 0; - a aVar = this.e; - int i10 = aVar.f736c; - if (i10 != 0) { - if (i10 != 1) { - if (i10 != 2) { - if (i10 != 3) { - if (i10 != 4) { - throw new IllegalStateException(); - } else if (i7 == 179 || i7 == 181) { - aVar.d -= i9; - aVar.b = false; - z2 = true; - if (z2) { - c.i.a.c.a2.w wVar4 = this.j; - a aVar2 = this.e; - int i11 = aVar2.e; - String str = this.i; - Objects.requireNonNull(str); - byte[] copyOf = Arrays.copyOf(aVar2.f, aVar2.d); - v vVar = new v(copyOf); - vVar.n(i11); - vVar.n(4); - vVar.l(); - vVar.m(8); - if (vVar.f()) { - vVar.m(4); - vVar.m(3); - } - int g = vVar.g(4); - i = i6; - if (g == 15) { - int g2 = vVar.g(8); - int g3 = vVar.g(8); - if (g3 == 0) { - Log.w("H263Reader", "Invalid aspect ratio"); - i2 = i5; - } else { - f = ((float) g2) / ((float) g3); - i2 = i5; - if (vVar.f()) { - vVar.m(2); - vVar.m(1); - if (vVar.f()) { - vVar.m(15); - vVar.l(); - vVar.m(15); - vVar.l(); - vVar.m(15); - vVar.l(); - vVar.m(3); - vVar.m(11); - vVar.l(); - vVar.m(15); - vVar.l(); - } - } - if (vVar.g(2) != 0) { - Log.w("H263Reader", "Unhandled video object layer shape"); - } - vVar.l(); - int g4 = vVar.g(16); - vVar.l(); - if (vVar.f()) { - if (g4 == 0) { - Log.w("H263Reader", "Invalid vop_increment_time_resolution"); - } else { - int i12 = 0; - for (int i13 = g4 - 1; i13 > 0; i13 >>= 1) { - i12++; - } - vVar.m(i12); - } - } - vVar.l(); - int g5 = vVar.g(13); - vVar.l(); - int g6 = vVar.g(13); - vVar.l(); - vVar.l(); - Format.b bVar2 = new Format.b(); - bVar2.a = str; - bVar2.k = "video/mp4v-es"; - bVar2.p = g5; - bVar2.q = g6; - bVar2.t = f; - bVar2.m = Collections.singletonList(copyOf); - wVar4.e(bVar2.a()); - this.k = true; - this.g.a(bArr, i4, b2); - wVar2 = this.f; - if (wVar2 != null) { - if (i8 > 0) { - wVar2.a(bArr, i4, b2); - i3 = 0; - } else { - i3 = -i8; - } - if (this.f.b(i3)) { - w wVar5 = this.f; - int e = u.e(wVar5.d, wVar5.e); - w wVar6 = this.f735c; - int i14 = f0.a; - wVar6.B(this.f.d, e); - this.b.a(this.l, this.f735c); - } - if (i7 == 178) { - if (wVar.a[b2 + 2] == 1) { - this.f.d(i7); - } - int i15 = i2 - b2; - j = this.h - ((long) i15); - bVar = this.g; - boolean z3 = this.k; - if (bVar.e == 182 && z3 && bVar.b) { - bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null); - } - if (bVar.e != 179) { - bVar.g = j; - } - b bVar3 = this.g; - long j2 = this.l; - bVar3.e = i7; - bVar3.d = false; - bVar3.b = i7 != 182 || i7 == 179; - bVar3.f737c = i7 == 182; - bVar3.f = 0; - bVar3.h = j2; - i5 = i2; - i4 = i; - } - } - int i15 = i2 - b2; - j = this.h - ((long) i15); - bVar = this.g; - boolean z3 = this.k; - bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null); - if (bVar.e != 179) { - } - b bVar3 = this.g; - long j2 = this.l; - bVar3.e = i7; - bVar3.d = false; - bVar3.b = i7 != 182 || i7 == 179; - bVar3.f737c = i7 == 182; - bVar3.f = 0; - bVar3.h = j2; - i5 = i2; - i4 = i; - } - } else { - float[] fArr = a; - i2 = i5; - if (g < fArr.length) { - f = fArr[g]; - if (vVar.f()) { - } - if (vVar.g(2) != 0) { - } - vVar.l(); - int g4 = vVar.g(16); - vVar.l(); - if (vVar.f()) { - } - vVar.l(); - int g5 = vVar.g(13); - vVar.l(); - int g6 = vVar.g(13); - vVar.l(); - vVar.l(); - Format.b bVar2 = new Format.b(); - bVar2.a = str; - bVar2.k = "video/mp4v-es"; - bVar2.p = g5; - bVar2.q = g6; - bVar2.t = f; - bVar2.m = Collections.singletonList(copyOf); - wVar4.e(bVar2.a()); - this.k = true; - this.g.a(bArr, i4, b2); - wVar2 = this.f; - if (wVar2 != null) { - } - int i15 = i2 - b2; - j = this.h - ((long) i15); - bVar = this.g; - boolean z3 = this.k; - bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null); - if (bVar.e != 179) { - } - b bVar3 = this.g; - long j2 = this.l; - bVar3.e = i7; - bVar3.d = false; - bVar3.b = i7 != 182 || i7 == 179; - bVar3.f737c = i7 == 182; - bVar3.f = 0; - bVar3.h = j2; - i5 = i2; - i4 = i; - } else { - Log.w("H263Reader", "Invalid aspect ratio"); - } - } - f = 1.0f; - if (vVar.f()) { - } - if (vVar.g(2) != 0) { - } - vVar.l(); - int g4 = vVar.g(16); - vVar.l(); - if (vVar.f()) { - } - vVar.l(); - int g5 = vVar.g(13); - vVar.l(); - int g6 = vVar.g(13); - vVar.l(); - vVar.l(); - Format.b bVar2 = new Format.b(); - bVar2.a = str; - bVar2.k = "video/mp4v-es"; - bVar2.p = g5; - bVar2.q = g6; - bVar2.t = f; - bVar2.m = Collections.singletonList(copyOf); - wVar4.e(bVar2.a()); - this.k = true; - this.g.a(bArr, i4, b2); - wVar2 = this.f; - if (wVar2 != null) { - } - int i15 = i2 - b2; - j = this.h - ((long) i15); - bVar = this.g; - boolean z3 = this.k; - bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null); - if (bVar.e != 179) { - } - b bVar3 = this.g; - long j2 = this.l; - bVar3.e = i7; - bVar3.d = false; - bVar3.b = i7 != 182 || i7 == 179; - bVar3.f737c = i7 == 182; - bVar3.f = 0; - bVar3.h = j2; - i5 = i2; - i4 = i; - } - } - } else if ((i7 & 240) != 32) { - Log.w("H263Reader", "Unexpected start code value"); - aVar.b(); - } else { - aVar.e = aVar.d; - aVar.f736c = 4; - } - } else if (i7 > 31) { - Log.w("H263Reader", "Unexpected start code value"); - aVar.b(); - } else { - aVar.f736c = 3; - } - } else if (i7 != 181) { - Log.w("H263Reader", "Unexpected start code value"); - aVar.b(); - } else { - aVar.f736c = 2; - } - } else if (i7 == 176) { - aVar.f736c = 1; - aVar.b = true; - } - byte[] bArr2 = a.a; - aVar.a(bArr2, 0, bArr2.length); - z2 = false; - if (z2) { - } - } - i2 = i5; - i = i6; - this.g.a(bArr, i4, b2); - wVar2 = this.f; - if (wVar2 != null) { - } - int i15 = i2 - b2; - j = this.h - ((long) i15); - bVar = this.g; - boolean z3 = this.k; - bVar.a.d(bVar.h, bVar.d ? 1 : 0, (int) (j - bVar.g), i15, null); - if (bVar.e != 179) { - } - b bVar3 = this.g; - long j2 = this.l; - bVar3.e = i7; - bVar3.d = false; - bVar3.b = i7 != 182 || i7 == 179; - bVar3.f737c = i7 == 182; - bVar3.f = 0; - bVar3.h = j2; - i5 = i2; - i4 = i; - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - u.a(this.d); - this.e.b(); - b bVar = this.g; - if (bVar != null) { - bVar.b = false; - bVar.f737c = false; - bVar.d = false; - bVar.e = -1; - } - w wVar = this.f; - if (wVar != null) { - wVar.c(); - } - this.h = 0; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.i = dVar.b(); - c.i.a.c.a2.w p = jVar.p(dVar.c(), 2); - this.j = p; - this.g = new b(p); - j0 j0Var = this.b; - if (j0Var != null) { - j0Var.b(jVar, dVar); - } - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.l = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/r.java b/app/src/main/java/c/i/a/c/a2/j0/r.java deleted file mode 100644 index 7a03a35131..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/r.java +++ /dev/null @@ -1,603 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.SparseArray; -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.h; -import c.i.a.c.i2.u; -import c.i.a.c.i2.x; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.ArrayList; -import java.util.Arrays; -import org.checkerframework.checker.nullness.qual.RequiresNonNull; -/* compiled from: H264Reader */ -public final class r implements o { - public final e0 a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final boolean f738c; - public final w d = new w(7, 128); - public final w e = new w(8, 128); - public final w f = new w(6, 128); - public long g; - public final boolean[] h = new boolean[3]; - public String i; - public w j; - public b k; - public boolean l; - public long m; - public boolean n; - public final c.i.a.c.i2.w o = new c.i.a.c.i2.w(); - - /* compiled from: H264Reader */ - public static final class b { - public final w a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final boolean f739c; - public final SparseArray d = new SparseArray<>(); - public final SparseArray e = new SparseArray<>(); - public final x f; - public byte[] g; - public int h; - public int i; - public long j; - public boolean k; - public long l; - public a m = new a(null); - public a n = new a(null); - public boolean o; - public long p; - public long q; - public boolean r; - - /* compiled from: H264Reader */ - public static final class a { - public boolean a; - public boolean b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public u.b f740c; - public int d; - public int e; - public int f; - public int g; - public boolean h; - public boolean i; - public boolean j; - public boolean k; - public int l; - public int m; - public int n; - public int o; - public int p; - - public a(a aVar) { - } - } - - public b(w wVar, boolean z2, boolean z3) { - this.a = wVar; - this.b = z2; - this.f739c = z3; - byte[] bArr = new byte[128]; - this.g = bArr; - this.f = new x(bArr, 0, 0); - this.k = false; - this.o = false; - a aVar = this.n; - aVar.b = false; - aVar.a = false; - } - } - - public r(e0 e0Var, boolean z2, boolean z3) { - this.a = e0Var; - this.b = z2; - this.f738c = z3; - } - - /* JADX WARNING: Removed duplicated region for block: B:44:0x011e */ - /* JADX WARNING: Removed duplicated region for block: B:45:0x0120 */ - /* JADX WARNING: Removed duplicated region for block: B:47:0x0123 */ - /* JADX WARNING: Removed duplicated region for block: B:50:0x0134 */ - /* JADX WARNING: Removed duplicated region for block: B:53:0x0139 */ - /* JADX WARNING: Removed duplicated region for block: B:63:0x0169 */ - @RequiresNonNull({"sampleReader"}) - public final void a(byte[] bArr, int i, int i2) { - boolean z2; - boolean z3; - boolean z4; - boolean z5; - int i3; - int i4; - int i5; - int i6; - int i7; - int i8; - int i9; - int i10; - if (!this.l || this.k.f739c) { - this.d.a(bArr, i, i2); - this.e.a(bArr, i, i2); - } - this.f.a(bArr, i, i2); - b bVar = this.k; - if (bVar.k) { - int i11 = i2 - i; - byte[] bArr2 = bVar.g; - int length = bArr2.length; - int i12 = bVar.h + i11; - if (length < i12) { - bVar.g = Arrays.copyOf(bArr2, i12 * 2); - } - System.arraycopy(bArr, i, bVar.g, bVar.h, i11); - int i13 = bVar.h + i11; - bVar.h = i13; - bVar.f.h(bVar.g, 0, i13); - if (bVar.f.b(8)) { - bVar.f.j(); - int e = bVar.f.e(2); - bVar.f.k(5); - if (bVar.f.c()) { - bVar.f.f(); - if (bVar.f.c()) { - int f = bVar.f.f(); - if (!bVar.f739c) { - bVar.k = false; - b.a aVar = bVar.n; - aVar.e = f; - aVar.b = true; - } else if (bVar.f.c()) { - int f2 = bVar.f.f(); - if (bVar.e.indexOfKey(f2) < 0) { - bVar.k = false; - return; - } - u.a aVar2 = bVar.e.get(f2); - u.b bVar2 = bVar.d.get(aVar2.b); - if (bVar2.h) { - if (bVar.f.b(2)) { - bVar.f.k(2); - } else { - return; - } - } - if (bVar.f.b(bVar2.j)) { - int e2 = bVar.f.e(bVar2.j); - if (bVar2.i) { - z4 = false; - } else if (bVar.f.b(1)) { - z4 = bVar.f.d(); - if (z4) { - if (bVar.f.b(1)) { - z3 = bVar.f.d(); - z2 = true; - z5 = bVar.i != 5; - if (z5) { - i3 = 0; - } else if (bVar.f.c()) { - i3 = bVar.f.f(); - } else { - return; - } - i4 = bVar2.k; - if (i4 == 0) { - if (i4 != 1 || bVar2.m) { - i9 = 0; - } else if (bVar.f.c()) { - i9 = bVar.f.g(); - if (aVar2.f910c && !z4) { - if (bVar.f.c()) { - i7 = bVar.f.g(); - i5 = 0; - i6 = i9; - i8 = 0; - } else { - return; - } - } - } else { - return; - } - i6 = i9; - i8 = 0; - i7 = 0; - i5 = 0; - } else if (bVar.f.b(bVar2.l)) { - i8 = bVar.f.e(bVar2.l); - if (!aVar2.f910c || z4) { - i10 = 0; - } else if (bVar.f.c()) { - i10 = bVar.f.g(); - } else { - return; - } - i5 = i10; - i7 = 0; - i6 = 0; - } else { - return; - } - b.a aVar3 = bVar.n; - aVar3.f740c = bVar2; - aVar3.d = e; - aVar3.e = f; - aVar3.f = e2; - aVar3.g = f2; - aVar3.h = z4; - aVar3.i = z2; - aVar3.j = z3; - aVar3.k = z5; - aVar3.l = i3; - aVar3.m = i8; - aVar3.n = i5; - aVar3.o = i6; - aVar3.p = i7; - aVar3.a = true; - aVar3.b = true; - bVar.k = false; - } - return; - } - } else { - return; - } - z3 = false; - z2 = false; - if (bVar.i != 5) { - } - if (z5) { - } - i4 = bVar2.k; - if (i4 == 0) { - } - b.a aVar3 = bVar.n; - aVar3.f740c = bVar2; - aVar3.d = e; - aVar3.e = f; - aVar3.f = e2; - aVar3.g = f2; - aVar3.h = z4; - aVar3.i = z2; - aVar3.j = z3; - aVar3.k = z5; - aVar3.l = i3; - aVar3.m = i8; - aVar3.n = i5; - aVar3.o = i6; - aVar3.p = i7; - aVar3.a = true; - aVar3.b = true; - bVar.k = false; - } - } - } - } - } - } - } - - /* JADX WARNING: Code restructure failed: missing block: B:113:0x027a, code lost: - if (r6 != 1) goto L_0x027e; - */ - /* JADX WARNING: Code restructure failed: missing block: B:52:0x01ac, code lost: - if (r7.j == r10.j) goto L_0x01ae; - */ - /* JADX WARNING: Code restructure failed: missing block: B:56:0x01b6, code lost: - if (r14 != 0) goto L_0x01b8; - */ - /* JADX WARNING: Code restructure failed: missing block: B:64:0x01ca, code lost: - if (r7.n == r10.n) goto L_0x01cc; - */ - /* JADX WARNING: Code restructure failed: missing block: B:72:0x01dd, code lost: - if (r7.p == r10.p) goto L_0x01df; - */ - /* JADX WARNING: Code restructure failed: missing block: B:77:0x01eb, code lost: - if (r7.l == r10.l) goto L_0x01ee; - */ - /* JADX WARNING: Code restructure failed: missing block: B:80:0x01f1, code lost: - if (r7 == false) goto L_0x0225; - */ - /* JADX WARNING: Removed duplicated region for block: B:104:0x024f */ - /* JADX WARNING: Removed duplicated region for block: B:112:0x0279 */ - /* JADX WARNING: Removed duplicated region for block: B:114:0x027d */ - /* JADX WARNING: Removed duplicated region for block: B:117:0x0282 A[ADDED_TO_REGION] */ - /* JADX WARNING: Removed duplicated region for block: B:124:0x029a A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:32:0x0142 */ - /* JADX WARNING: Removed duplicated region for block: B:35:0x0170 */ - /* JADX WARNING: Removed duplicated region for block: B:88:0x022a */ - /* JADX WARNING: Removed duplicated region for block: B:97:0x0241 A[ADDED_TO_REGION] */ - @Override // c.i.a.c.a2.j0.o - public void b(c.i.a.c.i2.w wVar) { - byte[] bArr; - int i; - b bVar; - boolean z2; - b bVar2; - int i2; - boolean z3; - AnimatableValueParser.H(this.j); - int i3 = f0.a; - int i4 = wVar.b; - int i5 = wVar.f913c; - byte[] bArr2 = wVar.a; - this.g += (long) wVar.a(); - this.j.c(wVar, wVar.a()); - while (true) { - int b2 = u.b(bArr2, i4, i5, this.h); - if (b2 == i5) { - a(bArr2, i4, i5); - return; - } - int i6 = b2 + 3; - int i7 = bArr2[i6] & 31; - int i8 = b2 - i4; - if (i8 > 0) { - a(bArr2, i4, b2); - } - int i9 = i5 - b2; - long j = this.g - ((long) i9); - int i10 = i8 < 0 ? -i8 : 0; - long j2 = this.m; - if (!this.l || this.k.f739c) { - this.d.b(i10); - this.e.b(i10); - if (this.l) { - i = i5; - bArr = bArr2; - w wVar2 = this.d; - if (wVar2.f747c) { - u.b d = u.d(wVar2.d, 3, wVar2.e); - this.k.d.append(d.d, d); - this.d.c(); - } else { - w wVar3 = this.e; - if (wVar3.f747c) { - u.a c2 = u.c(wVar3.d, 3, wVar3.e); - this.k.e.append(c2.a, c2); - this.e.c(); - } - } - } else if (this.d.f747c && this.e.f747c) { - ArrayList arrayList = new ArrayList(); - w wVar4 = this.d; - arrayList.add(Arrays.copyOf(wVar4.d, wVar4.e)); - w wVar5 = this.e; - arrayList.add(Arrays.copyOf(wVar5.d, wVar5.e)); - w wVar6 = this.d; - u.b d2 = u.d(wVar6.d, 3, wVar6.e); - w wVar7 = this.e; - u.a c3 = u.c(wVar7.d, 3, wVar7.e); - i = i5; - String a2 = h.a(d2.a, d2.b, d2.f911c); - w wVar8 = this.j; - Format.b bVar3 = new Format.b(); - bArr = bArr2; - bVar3.a = this.i; - bVar3.k = "video/avc"; - bVar3.h = a2; - bVar3.p = d2.e; - bVar3.q = d2.f; - bVar3.t = d2.g; - bVar3.m = arrayList; - wVar8.e(bVar3.a()); - this.l = true; - this.k.d.append(d2.d, d2); - this.k.e.append(c3.a, c3); - this.d.c(); - this.e.c(); - } - if (this.f.b(i10)) { - w wVar9 = this.f; - this.o.B(this.f.d, u.e(wVar9.d, wVar9.e)); - this.o.D(4); - AnimatableValueParser.L(j2, this.o, this.a.b); - } - bVar = this.k; - boolean z4 = this.l; - boolean z5 = this.n; - if (bVar.i != 9) { - if (bVar.f739c) { - b.a aVar = bVar.n; - b.a aVar2 = bVar.m; - if (aVar.a) { - if (aVar2.a) { - u.b bVar4 = aVar.f740c; - AnimatableValueParser.H(bVar4); - u.b bVar5 = aVar2.f740c; - AnimatableValueParser.H(bVar5); - if (aVar.f == aVar2.f) { - if (aVar.g == aVar2.g) { - if (aVar.h == aVar2.h) { - if (aVar.i) { - if (aVar2.i) { - } - } - int i11 = aVar.d; - int i12 = aVar2.d; - if (i11 != i12) { - if (i11 != 0) { - } - } - int i13 = bVar4.k; - if (i13 == 0) { - if (bVar5.k == 0) { - if (aVar.m == aVar2.m) { - } - } - } - if (i13 == 1) { - if (bVar5.k == 1) { - if (aVar.o == aVar2.o) { - } - } - } - boolean z6 = aVar.k; - if (z6 == aVar2.k) { - if (z6) { - } - } - } - } - } - } - z3 = true; - } - z3 = false; - } - if (bVar.b) { - b.a aVar3 = bVar.n; - z5 = aVar3.b && ((i2 = aVar3.e) == 7 || i2 == 2); - } - boolean z7 = bVar.r; - int i14 = bVar.i; - z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); - bVar.r = z2; - if (z2) { - this.n = false; - } - long j3 = this.m; - if (!this.l || this.k.f739c) { - this.d.d(i7); - this.e.d(i7); - } - this.f.d(i7); - bVar2 = this.k; - bVar2.i = i7; - bVar2.l = j3; - bVar2.j = j; - int i15 = bVar2.b ? 1 : 1; - if (bVar2.f739c) { - if (!(i7 == 5 || i7 == i15 || i7 == 2)) { - } - b.a aVar4 = bVar2.m; - bVar2.m = bVar2.n; - bVar2.n = aVar4; - aVar4.b = false; - aVar4.a = false; - bVar2.h = 0; - bVar2.k = true; - } - i4 = i6; - i5 = i; - bArr2 = bArr; - } - if (z4 && bVar.o) { - long j4 = bVar.j; - bVar.a.d(bVar.q, bVar.r ? 1 : 0, (int) (j4 - bVar.p), i9 + ((int) (j - j4)), null); - } - bVar.p = bVar.j; - bVar.q = bVar.l; - bVar.r = false; - bVar.o = true; - if (bVar.b) { - } - boolean z7 = bVar.r; - int i14 = bVar.i; - z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); - bVar.r = z2; - if (z2) { - } - long j3 = this.m; - this.d.d(i7); - this.e.d(i7); - this.f.d(i7); - bVar2 = this.k; - bVar2.i = i7; - bVar2.l = j3; - bVar2.j = j; - if (bVar2.b) { - } - if (bVar2.f739c) { - } - i4 = i6; - i5 = i; - bArr2 = bArr; - } - i = i5; - bArr = bArr2; - if (this.f.b(i10)) { - } - bVar = this.k; - boolean z4 = this.l; - boolean z5 = this.n; - if (bVar.i != 9) { - } - long j4 = bVar.j; - bVar.a.d(bVar.q, bVar.r ? 1 : 0, (int) (j4 - bVar.p), i9 + ((int) (j - j4)), null); - bVar.p = bVar.j; - bVar.q = bVar.l; - bVar.r = false; - bVar.o = true; - if (bVar.b) { - } - boolean z7 = bVar.r; - int i14 = bVar.i; - z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); - bVar.r = z2; - if (z2) { - } - long j3 = this.m; - this.d.d(i7); - this.e.d(i7); - this.f.d(i7); - bVar2 = this.k; - bVar2.i = i7; - bVar2.l = j3; - bVar2.j = j; - if (bVar2.b) { - } - if (bVar2.f739c) { - } - i4 = i6; - i5 = i; - bArr2 = bArr; - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.g = 0; - this.n = false; - u.a(this.h); - this.d.c(); - this.e.c(); - this.f.c(); - b bVar = this.k; - if (bVar != null) { - bVar.k = false; - bVar.o = false; - b.a aVar = bVar.n; - aVar.b = false; - aVar.a = false; - } - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.i = dVar.b(); - w p = jVar.p(dVar.c(), 2); - this.j = p; - this.k = new b(p, this.b, this.f738c); - this.a.a(jVar, dVar); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.m = j; - this.n |= (i & 2) != 0; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/s.java b/app/src/main/java/c/i/a/c/a2/j0/s.java deleted file mode 100644 index 8242f44e42..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/s.java +++ /dev/null @@ -1,463 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.h; -import c.i.a.c.i2.u; -import c.i.a.c.i2.x; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.util.Collections; -import org.checkerframework.checker.nullness.qual.RequiresNonNull; -/* compiled from: H265Reader */ -public final class s implements o { - public final e0 a; - public String b; - - /* renamed from: c reason: collision with root package name */ - public w f741c; - public a d; - public boolean e; - public final boolean[] f = new boolean[3]; - public final w g = new w(32, 128); - public final w h = new w(33, 128); - public final w i = new w(34, 128); - public final w j = new w(39, 128); - public final w k = new w(40, 128); - public long l; - public long m; - public final c.i.a.c.i2.w n = new c.i.a.c.i2.w(); - - /* compiled from: H265Reader */ - public static final class a { - public final w a; - public long b; - - /* renamed from: c reason: collision with root package name */ - public boolean f742c; - public int d; - public long e; - public boolean f; - public boolean g; - public boolean h; - public boolean i; - public boolean j; - public long k; - public long l; - public boolean m; - - public a(w wVar) { - this.a = wVar; - } - - public final void a(int i) { - boolean z2 = this.m; - this.a.d(this.l, z2 ? 1 : 0, (int) (this.b - this.k), i, null); - } - } - - public s(e0 e0Var) { - this.a = e0Var; - } - - @RequiresNonNull({"sampleReader"}) - public final void a(byte[] bArr, int i, int i2) { - a aVar = this.d; - if (aVar.f) { - int i3 = aVar.d; - int i4 = (i + 2) - i3; - if (i4 < i2) { - aVar.g = (bArr[i4] & 128) != 0; - aVar.f = false; - } else { - aVar.d = (i2 - i) + i3; - } - } - if (!this.e) { - this.g.a(bArr, i, i2); - this.h.a(bArr, i, i2); - this.i.a(bArr, i, i2); - } - this.j.a(bArr, i, i2); - this.k.a(bArr, i, i2); - } - - /* JADX WARNING: Removed duplicated region for block: B:156:0x0335 */ - /* JADX WARNING: Removed duplicated region for block: B:157:0x0359 */ - /* JADX WARNING: Removed duplicated region for block: B:160:0x0363 */ - /* JADX WARNING: Removed duplicated region for block: B:168:0x03a7 */ - /* JADX WARNING: Removed duplicated region for block: B:198:0x03ed */ - /* JADX WARNING: Removed duplicated region for block: B:206:0x03fc A[SYNTHETIC] */ - @Override // c.i.a.c.a2.j0.o - public void b(c.i.a.c.i2.w wVar) { - long j; - long j2; - int i; - int i2; - int i3; - byte[] bArr; - int i4; - long j3; - int i5; - long j4; - c.i.a.c.i2.w wVar2 = wVar; - AnimatableValueParser.H(this.f741c); - int i6 = f0.a; - while (wVar.a() > 0) { - int i7 = wVar2.f913c; - byte[] bArr2 = wVar2.a; - this.l += (long) wVar.a(); - this.f741c.c(wVar2, wVar.a()); - for (int i8 = wVar2.b; i8 < i7; i8 = i3) { - int b = u.b(bArr2, i8, i7, this.f); - if (b == i7) { - a(bArr2, i8, i7); - return; - } - int i9 = b + 3; - int i10 = (bArr2[i9] & 126) >> 1; - int i11 = b - i8; - if (i11 > 0) { - a(bArr2, i8, b); - } - int i12 = i7 - b; - long j5 = this.l - ((long) i12); - int i13 = i11 < 0 ? -i11 : 0; - long j6 = this.m; - a aVar = this.d; - boolean z2 = this.e; - if (aVar.j && aVar.g) { - aVar.m = aVar.f742c; - aVar.j = false; - } else if (aVar.h || aVar.g) { - if (z2 && aVar.i) { - aVar.a(((int) (j5 - aVar.b)) + i12); - } - aVar.k = aVar.b; - aVar.l = aVar.e; - aVar.m = aVar.f742c; - aVar.i = true; - } - if (!this.e) { - this.g.b(i13); - this.h.b(i13); - this.i.b(i13); - w wVar3 = this.g; - if (wVar3.f747c) { - w wVar4 = this.h; - if (wVar4.f747c) { - w wVar5 = this.i; - if (wVar5.f747c) { - w wVar6 = this.f741c; - String str = this.b; - i4 = i7; - int i14 = wVar3.e; - bArr = bArr2; - i3 = i9; - byte[] bArr3 = new byte[(wVar4.e + i14 + wVar5.e)]; - i2 = i12; - System.arraycopy(wVar3.d, 0, bArr3, 0, i14); - i = i10; - System.arraycopy(wVar4.d, 0, bArr3, wVar3.e, wVar4.e); - System.arraycopy(wVar5.d, 0, bArr3, wVar3.e + wVar4.e, wVar5.e); - x xVar = new x(wVar4.d, 0, wVar4.e); - xVar.k(44); - int e = xVar.e(3); - xVar.j(); - xVar.k(88); - xVar.k(8); - int i15 = 0; - for (int i16 = 0; i16 < e; i16++) { - if (xVar.d()) { - i15 += 89; - } - if (xVar.d()) { - i15 += 8; - } - } - xVar.k(i15); - if (e > 0) { - xVar.k((8 - e) * 2); - } - xVar.f(); - int f = xVar.f(); - if (f == 3) { - xVar.j(); - } - int f2 = xVar.f(); - int f3 = xVar.f(); - if (xVar.d()) { - int f4 = xVar.f(); - int f5 = xVar.f(); - int f6 = xVar.f(); - int f7 = xVar.f(); - j = j5; - f2 -= (f4 + f5) * ((f == 1 || f == 2) ? 2 : 1); - f3 -= (f6 + f7) * (f == 1 ? 2 : 1); - } else { - j = j5; - } - xVar.f(); - xVar.f(); - int f8 = xVar.f(); - for (int i17 = xVar.d() ? 0 : e; i17 <= e; i17++) { - xVar.f(); - xVar.f(); - xVar.f(); - } - xVar.f(); - xVar.f(); - xVar.f(); - xVar.f(); - xVar.f(); - xVar.f(); - if (xVar.d() && xVar.d()) { - int i18 = 0; - for (int i19 = 4; i18 < i19; i19 = 4) { - int i20 = 0; - while (i20 < 6) { - if (!xVar.d()) { - xVar.f(); - j4 = j6; - } else { - j4 = j6; - int min = Math.min(64, 1 << ((i18 << 1) + 4)); - if (i18 > 1) { - xVar.g(); - } - for (int i21 = 0; i21 < min; i21++) { - xVar.g(); - } - } - i20 += i18 == 3 ? 3 : 1; - j6 = j4; - } - i18++; - } - } - j2 = j6; - xVar.k(2); - if (xVar.d()) { - xVar.k(8); - xVar.f(); - xVar.f(); - xVar.j(); - } - int f9 = xVar.f(); - int i22 = 0; - boolean z3 = false; - int i23 = 0; - while (i22 < f9) { - if (i22 != 0) { - z3 = xVar.d(); - } - if (z3) { - xVar.j(); - xVar.f(); - for (int i24 = 0; i24 <= i23; i24++) { - if (xVar.d()) { - xVar.j(); - } - } - i5 = f9; - } else { - int f10 = xVar.f(); - int f11 = xVar.f(); - int i25 = f10 + f11; - i5 = f9; - for (int i26 = 0; i26 < f10; i26++) { - xVar.f(); - xVar.j(); - } - for (int i27 = 0; i27 < f11; i27++) { - xVar.f(); - xVar.j(); - } - i23 = i25; - } - i22++; - f9 = i5; - } - if (xVar.d()) { - for (int i28 = 0; i28 < xVar.f(); i28++) { - xVar.k(f8 + 4 + 1); - } - } - xVar.k(2); - float f12 = 1.0f; - if (xVar.d()) { - if (xVar.d()) { - int e2 = xVar.e(8); - if (e2 == 255) { - int e3 = xVar.e(16); - int e4 = xVar.e(16); - if (!(e3 == 0 || e4 == 0)) { - f12 = ((float) e3) / ((float) e4); - } - } else { - float[] fArr = u.b; - if (e2 < fArr.length) { - f12 = fArr[e2]; - } else { - c.d.b.a.a.d0("Unexpected aspect_ratio_idc value: ", e2, "H265Reader"); - } - } - } - if (xVar.d()) { - xVar.j(); - } - if (xVar.d()) { - xVar.k(4); - if (xVar.d()) { - xVar.k(24); - } - } - if (xVar.d()) { - xVar.f(); - xVar.f(); - } - xVar.j(); - if (xVar.d()) { - f3 *= 2; - } - } - xVar.h(wVar4.d, 0, wVar4.e); - xVar.k(24); - String b2 = h.b(xVar); - Format.b bVar = new Format.b(); - bVar.a = str; - bVar.k = "video/hevc"; - bVar.h = b2; - bVar.p = f2; - bVar.q = f3; - bVar.t = f12; - bVar.m = Collections.singletonList(bArr3); - wVar6.e(bVar.a()); - this.e = true; - if (!this.j.b(i13)) { - w wVar7 = this.j; - this.n.B(this.j.d, u.e(wVar7.d, wVar7.e)); - this.n.E(5); - j3 = j2; - AnimatableValueParser.L(j3, this.n, this.a.b); - } else { - j3 = j2; - } - if (this.k.b(i13)) { - w wVar8 = this.k; - this.n.B(this.k.d, u.e(wVar8.d, wVar8.e)); - this.n.E(5); - AnimatableValueParser.L(j3, this.n, this.a.b); - } - long j7 = this.m; - a aVar2 = this.d; - boolean z4 = this.e; - aVar2.g = false; - aVar2.h = false; - aVar2.e = j7; - aVar2.d = 0; - aVar2.b = j; - if (!(i >= 32 || i == 40)) { - if (aVar2.i && !aVar2.j) { - if (z4) { - aVar2.a(i2); - } - aVar2.i = false; - } - if ((32 <= i && i <= 35) || i == 39) { - aVar2.h = !aVar2.j; - aVar2.j = true; - } - } - boolean z5 = i < 16 && i <= 21; - aVar2.f742c = z5; - aVar2.f = !z5 || i <= 9; - if (this.e) { - this.g.d(i); - this.h.d(i); - this.i.d(i); - } - this.j.d(i); - this.k.d(i); - i7 = i4; - bArr2 = bArr; - } - } - } - } - i2 = i12; - i4 = i7; - bArr = bArr2; - i3 = i9; - i = i10; - j = j5; - j2 = j6; - if (!this.j.b(i13)) { - } - if (this.k.b(i13)) { - } - long j7 = this.m; - a aVar2 = this.d; - boolean z4 = this.e; - aVar2.g = false; - aVar2.h = false; - aVar2.e = j7; - aVar2.d = 0; - aVar2.b = j; - if (!(i >= 32 || i == 40)) { - } - if (i < 16) { - } - aVar2.f742c = z5; - aVar2.f = !z5 || i <= 9; - if (this.e) { - } - this.j.d(i); - this.k.d(i); - i7 = i4; - bArr2 = bArr; - } - wVar2 = wVar; - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.l = 0; - u.a(this.f); - this.g.c(); - this.h.c(); - this.i.c(); - this.j.c(); - this.k.c(); - a aVar = this.d; - if (aVar != null) { - aVar.f = false; - aVar.g = false; - aVar.h = false; - aVar.i = false; - aVar.j = false; - } - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.b = dVar.b(); - w p = jVar.p(dVar.c(), 2); - this.f741c = p; - this.d = new a(p); - this.a.a(jVar, dVar); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.m = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/t.java b/app/src/main/java/c/i/a/c/a2/j0/t.java deleted file mode 100644 index b94d9ad816..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/t.java +++ /dev/null @@ -1,82 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.Log; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -/* compiled from: Id3Reader */ -public final class t implements o { - public final w a = new w(10); - public c.i.a.c.a2.w b; - - /* renamed from: c reason: collision with root package name */ - public boolean f743c; - public long d; - public int e; - public int f; - - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - AnimatableValueParser.H(this.b); - if (this.f743c) { - int a = wVar.a(); - int i = this.f; - if (i < 10) { - int min = Math.min(a, 10 - i); - System.arraycopy(wVar.a, wVar.b, this.a.a, this.f, min); - if (this.f + min == 10) { - this.a.D(0); - if (73 == this.a.s() && 68 == this.a.s() && 51 == this.a.s()) { - this.a.E(3); - this.e = this.a.r() + 10; - } else { - Log.w("Id3Reader", "Discarding invalid ID3 tag"); - this.f743c = false; - return; - } - } - } - int min2 = Math.min(a, this.e - this.f); - this.b.c(wVar, min2); - this.f += min2; - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.f743c = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - int i; - AnimatableValueParser.H(this.b); - if (this.f743c && (i = this.e) != 0 && this.f == i) { - this.b.d(this.d, 1, i, 0, null); - this.f743c = false; - } - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - c.i.a.c.a2.w p = jVar.p(dVar.c(), 5); - this.b = p; - Format.b bVar = new Format.b(); - bVar.a = dVar.b(); - bVar.k = "application/id3"; - p.e(bVar.a()); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - if ((i & 4) != 0) { - this.f743c = true; - this.d = j; - this.e = 0; - this.f = 0; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/u.java b/app/src/main/java/c/i/a/c/a2/j0/u.java deleted file mode 100644 index 8c1953bc97..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/u.java +++ /dev/null @@ -1,252 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import c.i.a.c.v1.k; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.ParserException; -import java.util.Collections; -import java.util.Objects; -/* compiled from: LatmReader */ -public final class u implements o { - @Nullable - public final String a; - public final w b; - - /* renamed from: c reason: collision with root package name */ - public final v f744c; - public c.i.a.c.a2.w d; - public String e; - public Format f; - public int g; - public int h; - public int i; - public int j; - public long k; - public boolean l; - public int m; - public int n; - public int o; - public boolean p; - public long q; - public int r; - - /* renamed from: s reason: collision with root package name */ - public long f745s; - public int t; - @Nullable - public String u; - - public u(@Nullable String str) { - this.a = str; - w wVar = new w(1024); - this.b = wVar; - this.f744c = new v(wVar.a); - } - - public static long a(v vVar) { - return (long) vVar.g((vVar.g(2) + 1) * 8); - } - - /* JADX WARNING: Code restructure failed: missing block: B:64:0x014e, code lost: - if (r13.l == false) goto L_0x01a8; - */ - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) throws ParserException { - int i; - boolean f; - AnimatableValueParser.H(this.d); - while (wVar.a() > 0) { - int i2 = this.g; - if (i2 != 0) { - if (i2 == 1) { - int s2 = wVar.s(); - if ((s2 & 224) == 224) { - this.j = s2; - this.g = 2; - } else if (s2 != 86) { - this.g = 0; - } - } else if (i2 == 2) { - int s3 = ((this.j & -225) << 8) | wVar.s(); - this.i = s3; - w wVar2 = this.b; - byte[] bArr = wVar2.a; - if (s3 > bArr.length) { - if (bArr.length < s3) { - bArr = new byte[s3]; - } - wVar2.B(bArr, s3); - v vVar = this.f744c; - byte[] bArr2 = this.b.a; - Objects.requireNonNull(vVar); - int length = bArr2.length; - vVar.a = bArr2; - vVar.b = 0; - vVar.f912c = 0; - vVar.d = length; - } - this.h = 0; - this.g = 3; - } else if (i2 == 3) { - int min = Math.min(wVar.a(), this.i - this.h); - wVar.e(this.f744c.a, this.h, min); - int i3 = this.h + min; - this.h = i3; - if (i3 == this.i) { - this.f744c.k(0); - v vVar2 = this.f744c; - if (!vVar2.f()) { - this.l = true; - int g = vVar2.g(1); - int g2 = g == 1 ? vVar2.g(1) : 0; - this.m = g2; - if (g2 == 0) { - if (g == 1) { - a(vVar2); - } - if (vVar2.f()) { - this.n = vVar2.g(6); - int g3 = vVar2.g(4); - int g4 = vVar2.g(3); - if (g3 == 0 && g4 == 0) { - if (g == 0) { - int e = vVar2.e(); - int g5 = g(vVar2); - vVar2.k(e); - byte[] bArr3 = new byte[((g5 + 7) / 8)]; - vVar2.h(bArr3, 0, g5); - Format.b bVar = new Format.b(); - bVar.a = this.e; - bVar.k = "audio/mp4a-latm"; - bVar.h = this.u; - bVar.f2218x = this.t; - bVar.f2219y = this.r; - bVar.m = Collections.singletonList(bArr3); - bVar.f2216c = this.a; - Format a = bVar.a(); - if (!a.equals(this.f)) { - this.f = a; - this.f745s = 1024000000 / ((long) a.H); - this.d.e(a); - } - } else { - vVar2.m(((int) a(vVar2)) - g(vVar2)); - } - int g6 = vVar2.g(3); - this.o = g6; - if (g6 == 0) { - vVar2.m(8); - } else if (g6 == 1) { - vVar2.m(9); - } else if (g6 == 3 || g6 == 4 || g6 == 5) { - vVar2.m(6); - } else if (g6 == 6 || g6 == 7) { - vVar2.m(1); - } else { - throw new IllegalStateException(); - } - boolean f2 = vVar2.f(); - this.p = f2; - this.q = 0; - if (f2) { - if (g == 1) { - this.q = a(vVar2); - } else { - do { - f = vVar2.f(); - this.q = (this.q << 8) + ((long) vVar2.g(8)); - } while (f); - } - } - if (vVar2.f()) { - vVar2.m(8); - } - } else { - throw new ParserException(); - } - } else { - throw new ParserException(); - } - } else { - throw new ParserException(); - } - } - if (this.m != 0) { - throw new ParserException(); - } else if (this.n != 0) { - throw new ParserException(); - } else if (this.o == 0) { - int i4 = 0; - while (true) { - int g7 = vVar2.g(8); - i = i4 + g7; - if (g7 != 255) { - break; - } - i4 = i; - } - int e2 = vVar2.e(); - if ((e2 & 7) == 0) { - this.b.D(e2 >> 3); - } else { - vVar2.h(this.b.a, 0, i * 8); - this.b.D(0); - } - this.d.c(this.b, i); - this.d.d(this.k, 1, i, 0, null); - this.k += this.f745s; - if (this.p) { - vVar2.m((int) this.q); - } - this.g = 0; - } else { - throw new ParserException(); - } - } else { - continue; - } - } else { - throw new IllegalStateException(); - } - } else if (wVar.s() == 86) { - this.g = 1; - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.g = 0; - this.l = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.d = jVar.p(dVar.c(), 1); - this.e = dVar.b(); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.k = j; - } - - public final int g(v vVar) throws ParserException { - int b = vVar.b(); - k.b c2 = k.c(vVar, true); - this.u = c2.f991c; - this.r = c2.a; - this.t = c2.b; - return b - vVar.b(); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/v.java b/app/src/main/java/c/i/a/c/a2/j0/v.java deleted file mode 100644 index 85a8b0110d..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/v.java +++ /dev/null @@ -1,134 +0,0 @@ -package c.i.a.c.a2.j0; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.w; -import c.i.a.c.v1.z; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -/* compiled from: MpegAudioReader */ -public final class v implements o { - public final w a; - public final z.a b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final String f746c; - public c.i.a.c.a2.w d; - public String e; - public int f = 0; - public int g; - public boolean h; - public boolean i; - public long j; - public int k; - public long l; - - public v(@Nullable String str) { - w wVar = new w(4); - this.a = wVar; - wVar.a[0] = -1; - this.b = new z.a(); - this.f746c = str; - } - - @Override // c.i.a.c.a2.j0.o - public void b(w wVar) { - AnimatableValueParser.H(this.d); - while (wVar.a() > 0) { - int i = this.f; - if (i == 0) { - byte[] bArr = wVar.a; - int i2 = wVar.b; - int i3 = wVar.f913c; - while (true) { - if (i2 >= i3) { - wVar.D(i3); - break; - } - boolean z2 = (bArr[i2] & 255) == 255; - boolean z3 = this.i && (bArr[i2] & 224) == 224; - this.i = z2; - if (z3) { - wVar.D(i2 + 1); - this.i = false; - this.a.a[1] = bArr[i2]; - this.g = 2; - this.f = 1; - break; - } - i2++; - } - } else if (i == 1) { - int min = Math.min(wVar.a(), 4 - this.g); - wVar.e(this.a.a, this.g, min); - int i4 = this.g + min; - this.g = i4; - if (i4 >= 4) { - this.a.D(0); - if (!this.b.a(this.a.f())) { - this.g = 0; - this.f = 1; - } else { - z.a aVar = this.b; - this.k = aVar.f1006c; - if (!this.h) { - int i5 = aVar.d; - this.j = (((long) aVar.g) * 1000000) / ((long) i5); - Format.b bVar = new Format.b(); - bVar.a = this.e; - bVar.k = aVar.b; - bVar.l = 4096; - bVar.f2218x = aVar.e; - bVar.f2219y = i5; - bVar.f2216c = this.f746c; - this.d.e(bVar.a()); - this.h = true; - } - this.a.D(0); - this.d.c(this.a, 4); - this.f = 2; - } - } - } else if (i == 2) { - int min2 = Math.min(wVar.a(), this.k - this.g); - this.d.c(wVar, min2); - int i6 = this.g + min2; - this.g = i6; - int i7 = this.k; - if (i6 >= i7) { - this.d.d(this.l, 1, i7, 0, null); - this.l += this.j; - this.g = 0; - this.f = 0; - } - } else { - throw new IllegalStateException(); - } - } - } - - @Override // c.i.a.c.a2.j0.o - public void c() { - this.f = 0; - this.g = 0; - this.i = false; - } - - @Override // c.i.a.c.a2.j0.o - public void d() { - } - - @Override // c.i.a.c.a2.j0.o - public void e(j jVar, i0.d dVar) { - dVar.a(); - this.e = dVar.b(); - this.d = jVar.p(dVar.c(), 1); - } - - @Override // c.i.a.c.a2.j0.o - public void f(long j, int i) { - this.l = j; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/w.java b/app/src/main/java/c/i/a/c/a2/j0/w.java deleted file mode 100644 index 3eaa1e19a6..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/w.java +++ /dev/null @@ -1,63 +0,0 @@ -package c.i.a.c.a2.j0; - -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Arrays; -/* compiled from: NalUnitTargetBuffer */ -public final class w { - public final int a; - public boolean b; - - /* renamed from: c reason: collision with root package name */ - public boolean f747c; - public byte[] d; - public int e; - - public w(int i, int i2) { - this.a = i; - byte[] bArr = new byte[(i2 + 3)]; - this.d = bArr; - bArr[2] = 1; - } - - public void a(byte[] bArr, int i, int i2) { - if (this.b) { - int i3 = i2 - i; - byte[] bArr2 = this.d; - int length = bArr2.length; - int i4 = this.e; - if (length < i4 + i3) { - this.d = Arrays.copyOf(bArr2, (i4 + i3) * 2); - } - System.arraycopy(bArr, i, this.d, this.e, i3); - this.e += i3; - } - } - - public boolean b(int i) { - if (!this.b) { - return false; - } - this.e -= i; - this.b = false; - this.f747c = true; - return true; - } - - public void c() { - this.b = false; - this.f747c = false; - } - - public void d(int i) { - boolean z2 = true; - AnimatableValueParser.D(!this.b); - if (i != this.a) { - z2 = false; - } - this.b = z2; - if (z2) { - this.e = 3; - this.f747c = false; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/x.java b/app/src/main/java/c/i/a/c/a2/j0/x.java deleted file mode 100644 index 9918c25e65..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/x.java +++ /dev/null @@ -1,68 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.a2.w; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -/* compiled from: PassthroughSectionPayloadReader */ -public final class x implements c0 { - public Format a; - public e0 b; - - /* renamed from: c reason: collision with root package name */ - public w f748c; - - public x(String str) { - Format.b bVar = new Format.b(); - bVar.k = str; - this.a = bVar.a(); - } - - @Override // c.i.a.c.a2.j0.c0 - public void a(e0 e0Var, j jVar, i0.d dVar) { - this.b = e0Var; - dVar.a(); - w p = jVar.p(dVar.c(), 5); - this.f748c = p; - p.e(this.a); - } - - @Override // c.i.a.c.a2.j0.c0 - public void b(c.i.a.c.i2.w wVar) { - long j; - AnimatableValueParser.H(this.b); - int i = f0.a; - long d = this.b.d(); - long j2 = -9223372036854775807L; - if (d != -9223372036854775807L) { - Format format = this.a; - if (d != format.f2213x) { - Format.b a = format.a(); - a.o = d; - Format a2 = a.a(); - this.a = a2; - this.f748c.e(a2); - } - int a3 = wVar.a(); - this.f748c.c(wVar, a3); - w wVar2 = this.f748c; - e0 e0Var = this.b; - synchronized (e0Var) { - long j3 = e0Var.f903c; - if (j3 != -9223372036854775807L) { - j2 = e0Var.b + j3; - } else { - long j4 = e0Var.a; - if (j4 != Long.MAX_VALUE) { - j = j4; - } - } - j = j2; - } - wVar2.d(j, 1, a3, 0, null); - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/y.java b/app/src/main/java/c/i/a/c/a2/j0/y.java deleted file mode 100644 index 6cf384e27d..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/y.java +++ /dev/null @@ -1,187 +0,0 @@ -package c.i.a.c.a2.j0; - -import android.util.Log; -import androidx.annotation.Nullable; -import c.d.b.a.a; -import c.i.a.c.a2.j; -import c.i.a.c.a2.j0.i0; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ParserException; -/* compiled from: PesReader */ -public final class y implements i0 { - public final o a; - public final v b = new v(new byte[10]); - - /* renamed from: c reason: collision with root package name */ - public int f749c = 0; - public int d; - public e0 e; - public boolean f; - public boolean g; - public boolean h; - public int i; - public int j; - public boolean k; - public long l; - - public y(o oVar) { - this.a = oVar; - } - - @Override // c.i.a.c.a2.j0.i0 - public void a(e0 e0Var, j jVar, i0.d dVar) { - this.e = e0Var; - this.a.e(jVar, dVar); - } - - @Override // c.i.a.c.a2.j0.i0 - public final void b(w wVar, int i) throws ParserException { - boolean z2; - AnimatableValueParser.H(this.e); - int i2 = -1; - int i3 = 3; - if ((i & 1) != 0) { - int i4 = this.f749c; - if (!(i4 == 0 || i4 == 1)) { - if (i4 == 2) { - Log.w("PesReader", "Unexpected start indicator reading extended header"); - } else if (i4 == 3) { - if (this.j != -1) { - StringBuilder K = a.K("Unexpected start indicator: expected "); - K.append(this.j); - K.append(" more bytes"); - Log.w("PesReader", K.toString()); - } - this.a.d(); - } else { - throw new IllegalStateException(); - } - } - e(1); - } - while (wVar.a() > 0) { - int i5 = this.f749c; - if (i5 != 0) { - int i6 = 0; - if (i5 != 1) { - if (i5 == 2) { - if (d(wVar, this.b.a, Math.min(10, this.i)) && d(wVar, null, this.i)) { - this.b.k(0); - this.l = -9223372036854775807L; - if (this.f) { - this.b.m(4); - this.b.m(1); - this.b.m(1); - long g = (((long) this.b.g(i3)) << 30) | ((long) (this.b.g(15) << 15)) | ((long) this.b.g(15)); - this.b.m(1); - if (!this.h && this.g) { - this.b.m(4); - this.b.m(1); - this.b.m(1); - this.b.m(1); - this.e.b((((long) this.b.g(i3)) << 30) | ((long) (this.b.g(15) << 15)) | ((long) this.b.g(15))); - this.h = true; - } - this.l = this.e.b(g); - } - i |= this.k ? 4 : 0; - this.a.f(this.l, i); - e(3); - } - } else if (i5 == i3) { - int a = wVar.a(); - int i7 = this.j; - if (i7 != i2) { - i6 = a - i7; - } - if (i6 > 0) { - a -= i6; - wVar.C(wVar.b + a); - } - this.a.b(wVar); - int i8 = this.j; - if (i8 != i2) { - int i9 = i8 - a; - this.j = i9; - if (i9 == 0) { - this.a.d(); - e(1); - } - } - } else { - throw new IllegalStateException(); - } - } else if (d(wVar, this.b.a, 9)) { - this.b.k(0); - int g2 = this.b.g(24); - if (g2 != 1) { - a.d0("Unexpected start code prefix: ", g2, "PesReader"); - this.j = -1; - z2 = false; - } else { - this.b.m(8); - int g3 = this.b.g(16); - this.b.m(5); - this.k = this.b.f(); - this.b.m(2); - this.f = this.b.f(); - this.g = this.b.f(); - this.b.m(6); - int g4 = this.b.g(8); - this.i = g4; - if (g3 == 0) { - this.j = -1; - } else { - int i10 = ((g3 + 6) - 9) - g4; - this.j = i10; - if (i10 < 0) { - StringBuilder K2 = a.K("Found negative packet payload size: "); - K2.append(this.j); - Log.w("PesReader", K2.toString()); - this.j = -1; - } - } - z2 = true; - } - e(z2 ? 2 : 0); - } - } else { - wVar.E(wVar.a()); - } - i2 = -1; - i3 = 3; - } - } - - @Override // c.i.a.c.a2.j0.i0 - public final void c() { - this.f749c = 0; - this.d = 0; - this.h = false; - this.a.c(); - } - - public final boolean d(w wVar, @Nullable byte[] bArr, int i) { - int min = Math.min(wVar.a(), i - this.d); - if (min <= 0) { - return true; - } - if (bArr == null) { - wVar.E(min); - } else { - System.arraycopy(wVar.a, wVar.b, bArr, this.d, min); - wVar.b += min; - } - int i2 = this.d + min; - this.d = i2; - return i2 == i; - } - - public final void e(int i) { - this.f749c = i; - this.d = 0; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/j0/z.java b/app/src/main/java/c/i/a/c/a2/j0/z.java deleted file mode 100644 index 6d26859af6..0000000000 --- a/app/src/main/java/c/i/a/c/a2/j0/z.java +++ /dev/null @@ -1,104 +0,0 @@ -package c.i.a.c.a2.j0; - -import c.i.a.c.a2.a; -import c.i.a.c.a2.i; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import java.io.IOException; -/* compiled from: PsBinarySearchSeeker */ -public final class z extends c.i.a.c.a2.a { - - /* compiled from: PsBinarySearchSeeker */ - public static final class b implements a.f { - public final e0 a; - public final w b = new w(); - - public b(e0 e0Var, a aVar) { - this.a = e0Var; - } - - @Override // c.i.a.c.a2.a.f - public void a() { - this.b.A(f0.f); - } - - @Override // c.i.a.c.a2.a.f - public a.e b(i iVar, long j) throws IOException { - int g; - long position = iVar.getPosition(); - int min = (int) Math.min(20000L, iVar.b() - position); - this.b.z(min); - iVar.n(this.b.a, 0, min); - w wVar = this.b; - int i = -1; - long j2 = -9223372036854775807L; - int i2 = -1; - while (wVar.a() >= 4) { - if (z.g(wVar.a, wVar.b) != 442) { - wVar.E(1); - } else { - wVar.E(4); - long c2 = a0.c(wVar); - if (c2 != -9223372036854775807L) { - long b = this.a.b(c2); - if (b > j) { - return j2 == -9223372036854775807L ? a.e.a(b, position) : a.e.b(position + ((long) i2)); - } - if (100000 + b > j) { - return a.e.b(position + ((long) wVar.b)); - } - i2 = wVar.b; - j2 = b; - } - int i3 = wVar.f913c; - if (wVar.a() >= 10) { - wVar.E(9); - int s2 = wVar.s() & 7; - if (wVar.a() >= s2) { - wVar.E(s2); - if (wVar.a() >= 4) { - if (z.g(wVar.a, wVar.b) == 443) { - wVar.E(4); - int x2 = wVar.x(); - if (wVar.a() < x2) { - wVar.D(i3); - } else { - wVar.E(x2); - } - } - while (true) { - if (wVar.a() < 4 || (g = z.g(wVar.a, wVar.b)) == 442 || g == 441 || (g >>> 8) != 1) { - break; - } - wVar.E(4); - if (wVar.a() < 2) { - wVar.D(i3); - break; - } - wVar.D(Math.min(wVar.f913c, wVar.b + wVar.x())); - } - } else { - wVar.D(i3); - } - } else { - wVar.D(i3); - } - } else { - wVar.D(i3); - } - i = wVar.b; - } - } - return j2 != -9223372036854775807L ? a.e.c(j2, position + ((long) i)) : a.e.a; - } - } - - public z(e0 e0Var, long j, long j2) { - super(new a.b(), new b(e0Var, null), j, 0, j + 1, 0, j2, 188, 1000); - } - - public static int g(byte[] bArr, int i) { - return (bArr[i + 3] & 255) | ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k.java b/app/src/main/java/c/i/a/c/a2/k.java deleted file mode 100644 index 4fa518100a..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k.java +++ /dev/null @@ -1,11 +0,0 @@ -package c.i.a.c.a2; - -import android.net.Uri; -import java.util.Map; -/* compiled from: ExtractorsFactory */ -public final /* synthetic */ class k { - /* JADX WARN: Incorrect args count in method signature: (Landroid/net/Uri;Ljava/util/Map;>;)[Lc/i/a/c/a2/h; */ - public static h[] a(l lVar, Uri uri, Map map) { - return lVar.a(); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k0/a.java b/app/src/main/java/c/i/a/c/a2/k0/a.java deleted file mode 100644 index d3228a12f9..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k0/a.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.k0; - -import android.net.Uri; -import c.i.a.c.a2.h; -import c.i.a.c.a2.k; -import c.i.a.c.a2.l; -import java.util.Map; -/* compiled from: lambda */ -public final /* synthetic */ class a implements l { - public static final /* synthetic */ a a = new a(); - - @Override // c.i.a.c.a2.l - public final h[] a() { - return new h[]{new b()}; - } - - @Override // c.i.a.c.a2.l - public /* synthetic */ h[] b(Uri uri, Map map) { - return k.a(this, uri, map); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k0/b.java b/app/src/main/java/c/i/a/c/a2/k0/b.java deleted file mode 100644 index 08b03c4268..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k0/b.java +++ /dev/null @@ -1,344 +0,0 @@ -package c.i.a.c.a2.k0; - -import android.util.Log; -import android.util.Pair; -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.s; -import c.i.a.c.a2.w; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.ParserException; -import java.io.IOException; -import java.util.Objects; -/* compiled from: WavExtractor */ -public final class b implements h { - public j a; - public w b; - - /* renamed from: c reason: collision with root package name */ - public AbstractC0084b f750c; - public int d = -1; - public long e = -1; - - /* compiled from: WavExtractor */ - public static final class a implements AbstractC0084b { - public static final int[] a = {-1, -1, -1, -1, 2, 4, 6, 8, -1, -1, -1, -1, 2, 4, 6, 8}; - public static final int[] b = {7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767}; - - /* renamed from: c reason: collision with root package name */ - public final j f751c; - public final w d; - public final c e; - public final int f; - public final byte[] g; - public final c.i.a.c.i2.w h; - public final int i; - public final Format j; - public int k; - public long l; - public int m; - public long n; - - public a(j jVar, w wVar, c cVar) throws ParserException { - this.f751c = jVar; - this.d = wVar; - this.e = cVar; - int max = Math.max(1, cVar.f753c / 10); - this.i = max; - byte[] bArr = cVar.f; - int length = bArr.length; - byte b2 = bArr[0]; - byte b3 = bArr[1]; - int i = ((bArr[3] & 255) << 8) | (bArr[2] & 255); - this.f = i; - int i2 = cVar.b; - int i3 = (((cVar.d - (i2 * 4)) * 8) / (cVar.e * i2)) + 1; - if (i == i3) { - int f = f0.f(max, i); - this.g = new byte[(cVar.d * f)]; - this.h = new c.i.a.c.i2.w(i * 2 * i2 * f); - int i4 = cVar.f753c; - int i5 = ((cVar.d * i4) * 8) / i; - Format.b bVar = new Format.b(); - bVar.k = "audio/raw"; - bVar.f = i5; - bVar.g = i5; - bVar.l = max * 2 * i2; - bVar.f2218x = cVar.b; - bVar.f2219y = i4; - bVar.f2220z = 2; - this.j = bVar.a(); - return; - } - throw new ParserException(c.d.b.a.a.l("Expected frames per block: ", i3, "; got: ", i)); - } - - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public void a(long j) { - this.k = 0; - this.l = j; - this.m = 0; - this.n = 0; - } - - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public void b(int i, long j) { - this.f751c.a(new e(this.e, this.f, (long) i, j)); - this.d.e(this.j); - } - - /* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor - jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached - at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:57) - at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31) - at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:15) - */ - /* JADX WARNING: Removed duplicated region for block: B:41:0x0049 A[ADDED_TO_REGION, EDGE_INSN: B:41:0x0049->B:12:0x0049 ?: BREAK , SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:6:0x002b */ - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public boolean c(c.i.a.c.a2.i r19, long r20) throws java.io.IOException { - /* - // Method dump skipped, instructions count: 364 - */ - throw new UnsupportedOperationException("Method not decompiled: c.i.a.c.a2.k0.b.a.c(c.i.a.c.a2.i, long):boolean"); - } - - public final int d(int i) { - return i / (this.e.b * 2); - } - - public final void e(int i) { - long E = this.l + f0.E(this.n, 1000000, (long) this.e.f753c); - int i2 = i * 2 * this.e.b; - this.d.d(E, 1, i2, this.m - i2, null); - this.n += (long) i; - this.m -= i2; - } - } - - /* compiled from: WavExtractor */ - /* renamed from: c.i.a.c.a2.k0.b$b reason: collision with other inner class name */ - public interface AbstractC0084b { - void a(long j); - - void b(int i, long j) throws ParserException; - - boolean c(i iVar, long j) throws IOException; - } - - /* compiled from: WavExtractor */ - public static final class c implements AbstractC0084b { - public final j a; - public final w b; - - /* renamed from: c reason: collision with root package name */ - public final c f752c; - public final Format d; - public final int e; - public long f; - public int g; - public long h; - - public c(j jVar, w wVar, c cVar, String str, int i) throws ParserException { - this.a = jVar; - this.b = wVar; - this.f752c = cVar; - int i2 = (cVar.b * cVar.e) / 8; - if (cVar.d == i2) { - int i3 = cVar.f753c * i2; - int i4 = i3 * 8; - int max = Math.max(i2, i3 / 10); - this.e = max; - Format.b bVar = new Format.b(); - bVar.k = str; - bVar.f = i4; - bVar.g = i4; - bVar.l = max; - bVar.f2218x = cVar.b; - bVar.f2219y = cVar.f753c; - bVar.f2220z = i; - this.d = bVar.a(); - return; - } - StringBuilder L = c.d.b.a.a.L("Expected block size: ", i2, "; got: "); - L.append(cVar.d); - throw new ParserException(L.toString()); - } - - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public void a(long j) { - this.f = j; - this.g = 0; - this.h = 0; - } - - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public void b(int i, long j) { - this.a.a(new e(this.f752c, 1, (long) i, j)); - this.b.e(this.d); - } - - @Override // c.i.a.c.a2.k0.b.AbstractC0084b - public boolean c(i iVar, long j) throws IOException { - int i; - int i2; - int i3; - long j2 = j; - while (true) { - i = (j2 > 0 ? 1 : (j2 == 0 ? 0 : -1)); - if (i <= 0 || (i2 = this.g) >= (i3 = this.e)) { - break; - } - int b = this.b.b(iVar, (int) Math.min((long) (i3 - i2), j2), true); - if (b == -1) { - j2 = 0; - } else { - this.g += b; - j2 -= (long) b; - } - } - c cVar = this.f752c; - int i4 = cVar.d; - int i5 = this.g / i4; - if (i5 > 0) { - int i6 = i5 * i4; - int i7 = this.g - i6; - this.b.d(this.f + f0.E(this.h, 1000000, (long) cVar.f753c), 1, i6, i7, null); - this.h += (long) i5; - this.g = i7; - } - return i <= 0; - } - } - - static { - a aVar = a.a; - } - - @Override // c.i.a.c.a2.h - public boolean b(i iVar) throws IOException { - return AnimatableValueParser.Y1(iVar) != null; - } - - /* JADX WARNING: Removed duplicated region for block: B:27:0x006a */ - /* JADX WARNING: Removed duplicated region for block: B:28:0x0079 */ - @Override // c.i.a.c.a2.h - public int e(i iVar, s sVar) throws IOException { - int i; - int i2; - AnimatableValueParser.H(this.b); - int i3 = f0.a; - boolean z2 = true; - if (this.f750c == null) { - c Y1 = AnimatableValueParser.Y1(iVar); - if (Y1 != null) { - int i4 = Y1.a; - if (i4 == 17) { - this.f750c = new a(this.a, this.b, Y1); - } else if (i4 == 6) { - this.f750c = new c(this.a, this.b, Y1, "audio/g711-alaw", -1); - } else if (i4 == 7) { - this.f750c = new c(this.a, this.b, Y1, "audio/g711-mlaw", -1); - } else { - int i5 = Y1.e; - if (i4 != 1) { - if (i4 == 3) { - i2 = i5 == 32 ? 4 : 0; - i = i2; - if (i != 0) { - } - } else if (i4 != 65534) { - i = 0; - if (i != 0) { - this.f750c = new c(this.a, this.b, Y1, "audio/raw", i); - } else { - StringBuilder K = c.d.b.a.a.K("Unsupported WAV format type: "); - K.append(Y1.a); - throw new ParserException(K.toString()); - } - } - } - i2 = f0.r(i5); - i = i2; - if (i != 0) { - } - } - } else { - throw new ParserException("Unsupported or unrecognized wav header."); - } - } - if (this.d == -1) { - Objects.requireNonNull(iVar); - iVar.k(); - c.i.a.c.i2.w wVar = new c.i.a.c.i2.w(8); - d a2 = d.a(iVar, wVar); - while (true) { - int i6 = a2.a; - if (i6 != 1684108385) { - if (!(i6 == 1380533830 || i6 == 1718449184)) { - StringBuilder K2 = c.d.b.a.a.K("Ignoring unknown WAV chunk: "); - K2.append(a2.a); - Log.w("WavHeaderReader", K2.toString()); - } - long j = a2.b + 8; - if (a2.a == 1380533830) { - j = 12; - } - if (j <= 2147483647L) { - iVar.l((int) j); - a2 = d.a(iVar, wVar); - } else { - StringBuilder K3 = c.d.b.a.a.K("Chunk is too large (~2GB+) to skip; id: "); - K3.append(a2.a); - throw new ParserException(K3.toString()); - } - } else { - iVar.l(8); - long position = iVar.getPosition(); - long j2 = a2.b + position; - long b = iVar.b(); - if (b != -1 && j2 > b) { - StringBuilder N = c.d.b.a.a.N("Data exceeds input length: ", j2, ", "); - N.append(b); - Log.w("WavHeaderReader", N.toString()); - j2 = b; - } - Pair create = Pair.create(Long.valueOf(position), Long.valueOf(j2)); - this.d = ((Long) create.first).intValue(); - long longValue = ((Long) create.second).longValue(); - this.e = longValue; - this.f750c.b(this.d, longValue); - } - } - } else if (iVar.getPosition() == 0) { - iVar.l(this.d); - } - if (this.e == -1) { - z2 = false; - } - AnimatableValueParser.D(z2); - return this.f750c.c(iVar, this.e - iVar.getPosition()) ? -1 : 0; - } - - @Override // c.i.a.c.a2.h - public void f(j jVar) { - this.a = jVar; - this.b = jVar.p(0, 1); - jVar.j(); - } - - @Override // c.i.a.c.a2.h - public void g(long j, long j2) { - AbstractC0084b bVar = this.f750c; - if (bVar != null) { - bVar.a(j2); - } - } - - @Override // c.i.a.c.a2.h - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k0/c.java b/app/src/main/java/c/i/a/c/a2/k0/c.java deleted file mode 100644 index 3bf08a0b72..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k0/c.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.k0; -/* compiled from: WavHeader */ -public final class c { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f753c; - public final int d; - public final int e; - public final byte[] f; - - public c(int i, int i2, int i3, int i4, int i5, int i6, byte[] bArr) { - this.a = i; - this.b = i2; - this.f753c = i3; - this.d = i5; - this.e = i6; - this.f = bArr; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k0/d.java b/app/src/main/java/c/i/a/c/a2/k0/d.java deleted file mode 100644 index 8dfc499d83..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k0/d.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.a2.k0; - -import c.i.a.c.a2.i; -import c.i.a.c.i2.w; -import java.io.IOException; -/* compiled from: WavHeaderReader */ -public final class d { - public final int a; - public final long b; - - public d(int i, long j) { - this.a = i; - this.b = j; - } - - public static d a(i iVar, w wVar) throws IOException { - iVar.n(wVar.a, 0, 8); - wVar.D(0); - return new d(wVar.f(), wVar.j()); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/k0/e.java b/app/src/main/java/c/i/a/c/a2/k0/e.java deleted file mode 100644 index e64ff09ba4..0000000000 --- a/app/src/main/java/c/i/a/c/a2/k0/e.java +++ /dev/null @@ -1,51 +0,0 @@ -package c.i.a.c.a2.k0; - -import c.i.a.c.a2.t; -import c.i.a.c.a2.u; -import c.i.a.c.i2.f0; -/* compiled from: WavSeekMap */ -public final class e implements t { - public final c a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final long f754c; - public final long d; - public final long e; - - public e(c cVar, int i, long j, long j2) { - this.a = cVar; - this.b = i; - this.f754c = j; - long j3 = (j2 - j) / ((long) cVar.d); - this.d = j3; - this.e = b(j3); - } - - public final long b(long j) { - return f0.E(j * ((long) this.b), 1000000, (long) this.a.f753c); - } - - @Override // c.i.a.c.a2.t - public boolean c() { - return true; - } - - @Override // c.i.a.c.a2.t - public t.a h(long j) { - long i = f0.i((((long) this.a.f753c) * j) / (((long) this.b) * 1000000), 0, this.d - 1); - long j2 = (((long) this.a.d) * i) + this.f754c; - long b = b(i); - u uVar = new u(b, j2); - if (b >= j || i == this.d - 1) { - return new t.a(uVar); - } - long j3 = i + 1; - return new t.a(uVar, new u(b(j3), (((long) this.a.d) * j3) + this.f754c)); - } - - @Override // c.i.a.c.a2.t - public long i() { - return this.e; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/l.java b/app/src/main/java/c/i/a/c/a2/l.java deleted file mode 100644 index dc93a56532..0000000000 --- a/app/src/main/java/c/i/a/c/a2/l.java +++ /dev/null @@ -1,11 +0,0 @@ -package c.i.a.c.a2; - -import android.net.Uri; -import java.util.List; -import java.util.Map; -/* compiled from: ExtractorsFactory */ -public interface l { - h[] a(); - - h[] b(Uri uri, Map> map); -} diff --git a/app/src/main/java/c/i/a/c/a2/m.java b/app/src/main/java/c/i/a/c/a2/m.java deleted file mode 100644 index 3120779b4e..0000000000 --- a/app/src/main/java/c/i/a/c/a2/m.java +++ /dev/null @@ -1,118 +0,0 @@ -package c.i.a.c.a2; - -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -/* compiled from: FlacFrameReader */ -public final class m { - - /* compiled from: FlacFrameReader */ - public static final class a { - public long a; - } - - public static boolean a(w wVar, o oVar, boolean z2, a aVar) { - try { - long y2 = wVar.y(); - if (!z2) { - y2 *= (long) oVar.b; - } - aVar.a = y2; - return true; - } catch (NumberFormatException unused) { - return false; - } - } - - /* JADX WARNING: Code restructure failed: missing block: B:43:0x008e, code lost: - if (r7 == r18.f) goto L_0x00ac; - */ - /* JADX WARNING: Code restructure failed: missing block: B:47:0x009b, code lost: - if ((r17.s() * 1000) == r3) goto L_0x00ac; - */ - /* JADX WARNING: Code restructure failed: missing block: B:53:0x00aa, code lost: - if (r4 == r3) goto L_0x00ac; - */ - /* JADX WARNING: Removed duplicated region for block: B:57:0x00b1 */ - /* JADX WARNING: Removed duplicated region for block: B:71:? A[RETURN, SYNTHETIC] */ - public static boolean b(w wVar, o oVar, int i, a aVar) { - boolean z2; - long t = wVar.t(); - long j = t >>> 16; - if (j != ((long) i)) { - return false; - } - boolean z3 = (j & 1) == 1; - int i2 = (int) ((t >> 12) & 15); - int i3 = (int) ((t >> 8) & 15); - int i4 = (int) (15 & (t >> 4)); - int i5 = (int) ((t >> 1) & 7); - boolean z4 = (t & 1) == 1; - if (!(i4 > 7 ? !(i4 > 10 || oVar.g != 2) : i4 == oVar.g - 1)) { - return false; - } - if (!(i5 == 0 || i5 == oVar.i) || z4 || !a(wVar, oVar, z3, aVar)) { - return false; - } - int c2 = c(wVar, i2); - if (!(c2 != -1 && c2 <= oVar.b)) { - return false; - } - int i6 = oVar.e; - if (i3 != 0) { - if (i3 > 11) { - if (i3 != 12) { - if (i3 <= 14) { - int x2 = wVar.x(); - if (i3 == 14) { - x2 *= 10; - } - } - } - } - z2 = false; - if (z2) { - return false; - } - int s2 = wVar.s(); - int i7 = wVar.b; - byte[] bArr = wVar.a; - int i8 = i7 - 1; - int i9 = f0.a; - int i10 = 0; - for (int i11 = wVar.b; i11 < i8; i11++) { - i10 = f0.l[i10 ^ (bArr[i11] & 255)]; - } - return s2 == i10; - } - z2 = true; - if (z2) { - } - } - - public static int c(w wVar, int i) { - switch (i) { - case 1: - return 192; - case 2: - case 3: - case 4: - case 5: - return 576 << (i - 2); - case 6: - return wVar.s() + 1; - case 7: - return wVar.x() + 1; - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - return 256 << (i - 8); - default: - return -1; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/n.java b/app/src/main/java/c/i/a/c/a2/n.java deleted file mode 100644 index 114d136338..0000000000 --- a/app/src/main/java/c/i/a/c/a2/n.java +++ /dev/null @@ -1,51 +0,0 @@ -package c.i.a.c.a2; - -import c.i.a.c.a2.o; -import c.i.a.c.a2.t; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -/* compiled from: FlacSeekTableSeekMap */ -public final class n implements t { - public final o a; - public final long b; - - public n(o oVar, long j) { - this.a = oVar; - this.b = j; - } - - public final u b(long j, long j2) { - return new u((j * 1000000) / ((long) this.a.e), this.b + j2); - } - - @Override // c.i.a.c.a2.t - public boolean c() { - return true; - } - - @Override // c.i.a.c.a2.t - public t.a h(long j) { - AnimatableValueParser.H(this.a.k); - o oVar = this.a; - o.a aVar = oVar.k; - long[] jArr = aVar.a; - long[] jArr2 = aVar.b; - int e = f0.e(jArr, oVar.g(j), true, false); - long j2 = 0; - long j3 = e == -1 ? 0 : jArr[e]; - if (e != -1) { - j2 = jArr2[e]; - } - u b = b(j3, j2); - if (b.b == j || e == jArr.length - 1) { - return new t.a(b); - } - int i = e + 1; - return new t.a(b, b(jArr[i], jArr2[i])); - } - - @Override // c.i.a.c.a2.t - public long i() { - return this.a.d(); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/o.java b/app/src/main/java/c/i/a/c/a2/o.java deleted file mode 100644 index b61a178eaa..0000000000 --- a/app/src/main/java/c/i/a/c/a2/o.java +++ /dev/null @@ -1,182 +0,0 @@ -package c.i.a.c.a2; - -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.flac.PictureFrame; -import com.google.android.exoplayer2.metadata.flac.VorbisComment; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -/* compiled from: FlacStreamMetadata */ -public final class o { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f755c; - public final int d; - public final int e; - public final int f; - public final int g; - public final int h; - public final int i; - public final long j; - @Nullable - public final a k; - @Nullable - public final Metadata l; - - /* compiled from: FlacStreamMetadata */ - public static class a { - public final long[] a; - public final long[] b; - - public a(long[] jArr, long[] jArr2) { - this.a = jArr; - this.b = jArr2; - } - } - - public o(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, @Nullable a aVar, @Nullable Metadata metadata) { - this.a = i; - this.b = i2; - this.f755c = i3; - this.d = i4; - this.e = i5; - this.f = h(i5); - this.g = i6; - this.h = i7; - this.i = c(i7); - this.j = j; - this.k = aVar; - this.l = metadata; - } - - public o(byte[] bArr, int i) { - v vVar = new v(bArr); - vVar.k(i * 8); - this.a = vVar.g(16); - this.b = vVar.g(16); - this.f755c = vVar.g(24); - this.d = vVar.g(24); - int g = vVar.g(20); - this.e = g; - this.f = h(g); - this.g = vVar.g(3) + 1; - int g2 = vVar.g(5) + 1; - this.h = g2; - this.i = c(g2); - this.j = (f0.L(vVar.g(4)) << 32) | f0.L(vVar.g(32)); - this.k = null; - this.l = null; - } - - @Nullable - public static Metadata a(List list, List list2) { - if (list.isEmpty() && list2.isEmpty()) { - return null; - } - ArrayList arrayList = new ArrayList(); - for (int i = 0; i < list.size(); i++) { - String str = list.get(i); - String[] H = f0.H(str, "="); - if (H.length != 2) { - c.d.b.a.a.g0("Failed to parse Vorbis comment: ", str, "FlacStreamMetadata"); - } else { - arrayList.add(new VorbisComment(H[0], H[1])); - } - } - arrayList.addAll(list2); - if (arrayList.isEmpty()) { - return null; - } - return new Metadata(arrayList); - } - - public static int c(int i) { - if (i == 8) { - return 1; - } - if (i == 12) { - return 2; - } - if (i == 16) { - return 4; - } - if (i != 20) { - return i != 24 ? -1 : 6; - } - return 5; - } - - public static int h(int i) { - switch (i) { - case 8000: - return 4; - case 16000: - return 5; - case 22050: - return 6; - case 24000: - return 7; - case 32000: - return 8; - case 44100: - return 9; - case 48000: - return 10; - case 88200: - return 1; - case 96000: - return 11; - case 176400: - return 2; - case 192000: - return 3; - default: - return -1; - } - } - - public o b(@Nullable a aVar) { - return new o(this.a, this.b, this.f755c, this.d, this.e, this.g, this.h, this.j, aVar, this.l); - } - - public long d() { - long j = this.j; - if (j == 0) { - return -9223372036854775807L; - } - return (j * 1000000) / ((long) this.e); - } - - public Format e(byte[] bArr, @Nullable Metadata metadata) { - bArr[4] = Byte.MIN_VALUE; - int i = this.d; - if (i <= 0) { - i = -1; - } - Metadata f = f(metadata); - Format.b bVar = new Format.b(); - bVar.k = "audio/flac"; - bVar.l = i; - bVar.f2218x = this.g; - bVar.f2219y = this.e; - bVar.m = Collections.singletonList(bArr); - bVar.i = f; - return bVar.a(); - } - - @Nullable - public Metadata f(@Nullable Metadata metadata) { - Metadata metadata2 = this.l; - return metadata2 == null ? metadata : metadata == null ? metadata2 : metadata2.a(metadata.i); - } - - public long g(long j) { - return f0.i((j * ((long) this.e)) / 1000000, 0, this.j - 1); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/p.java b/app/src/main/java/c/i/a/c/a2/p.java deleted file mode 100644 index 71d3bc114a..0000000000 --- a/app/src/main/java/c/i/a/c/a2/p.java +++ /dev/null @@ -1,62 +0,0 @@ -package c.i.a.c.a2; - -import c.i.a.c.i2.f0; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.id3.CommentFrame; -import com.google.android.exoplayer2.metadata.id3.InternalFrame; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: GaplessInfoHolder */ -public final class p { - public static final Pattern a = Pattern.compile("^ [0-9a-fA-F]{8} ([0-9a-fA-F]{8}) ([0-9a-fA-F]{8})"); - public int b = -1; - - /* renamed from: c reason: collision with root package name */ - public int f756c = -1; - - public final boolean a(String str) { - Matcher matcher = a.matcher(str); - if (!matcher.find()) { - return false; - } - try { - String group = matcher.group(1); - int i = f0.a; - int parseInt = Integer.parseInt(group, 16); - int parseInt2 = Integer.parseInt(matcher.group(2), 16); - if (parseInt <= 0 && parseInt2 <= 0) { - return false; - } - this.b = parseInt; - this.f756c = parseInt2; - return true; - } catch (NumberFormatException unused) { - return false; - } - } - - public boolean b(Metadata metadata) { - int i = 0; - while (true) { - Metadata.Entry[] entryArr = metadata.i; - if (i >= entryArr.length) { - return false; - } - Metadata.Entry entry = entryArr[i]; - if (entry instanceof CommentFrame) { - CommentFrame commentFrame = (CommentFrame) entry; - if ("iTunSMPB".equals(commentFrame.k) && a(commentFrame.l)) { - return true; - } - } else if (entry instanceof InternalFrame) { - InternalFrame internalFrame = (InternalFrame) entry; - if ("com.apple.iTunes".equals(internalFrame.j) && "iTunSMPB".equals(internalFrame.k) && a(internalFrame.l)) { - return true; - } - } else { - continue; - } - i++; - } - } -} diff --git a/app/src/main/java/c/i/a/c/a2/q.java b/app/src/main/java/c/i/a/c/a2/q.java deleted file mode 100644 index ad655a1a7b..0000000000 --- a/app/src/main/java/c/i/a/c/a2/q.java +++ /dev/null @@ -1,43 +0,0 @@ -package c.i.a.c.a2; - -import androidx.annotation.Nullable; -import c.i.a.c.c2.k.b; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.metadata.Metadata; -import java.io.EOFException; -import java.io.IOException; -/* compiled from: Id3Peeker */ -public final class q { - public final w a = new w(10); - - @Nullable - public Metadata a(i iVar, @Nullable b.a aVar) throws IOException { - Metadata metadata = null; - int i = 0; - while (true) { - try { - iVar.n(this.a.a, 0, 10); - this.a.D(0); - if (this.a.u() != 4801587) { - break; - } - this.a.E(3); - int r = this.a.r(); - int i2 = r + 10; - if (metadata == null) { - byte[] bArr = new byte[i2]; - System.arraycopy(this.a.a, 0, bArr, 0, 10); - iVar.n(bArr, 10, r); - metadata = new b(aVar).d(bArr, i2); - } else { - iVar.g(r); - } - i += i2; - } catch (EOFException unused) { - } - } - iVar.k(); - iVar.g(i); - return metadata; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/r.java b/app/src/main/java/c/i/a/c/a2/r.java deleted file mode 100644 index 5d7f654cd6..0000000000 --- a/app/src/main/java/c/i/a/c/a2/r.java +++ /dev/null @@ -1,61 +0,0 @@ -package c.i.a.c.a2; - -import c.i.a.c.a2.t; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -/* compiled from: IndexSeekMap */ -public final class r implements t { - public final long[] a; - public final long[] b; - - /* renamed from: c reason: collision with root package name */ - public final long f757c; - public final boolean d; - - public r(long[] jArr, long[] jArr2, long j) { - AnimatableValueParser.k(jArr.length == jArr2.length); - int length = jArr2.length; - boolean z2 = length > 0; - this.d = z2; - if (!z2 || jArr2[0] <= 0) { - this.a = jArr; - this.b = jArr2; - } else { - int i = length + 1; - long[] jArr3 = new long[i]; - this.a = jArr3; - long[] jArr4 = new long[i]; - this.b = jArr4; - System.arraycopy(jArr, 0, jArr3, 1, length); - System.arraycopy(jArr2, 0, jArr4, 1, length); - } - this.f757c = j; - } - - @Override // c.i.a.c.a2.t - public boolean c() { - return this.d; - } - - @Override // c.i.a.c.a2.t - public t.a h(long j) { - if (!this.d) { - return new t.a(u.a); - } - int e = f0.e(this.b, j, true, true); - long[] jArr = this.b; - long j2 = jArr[e]; - long[] jArr2 = this.a; - u uVar = new u(j2, jArr2[e]); - if (j2 == j || e == jArr.length - 1) { - return new t.a(uVar); - } - int i = e + 1; - return new t.a(uVar, new u(jArr[i], jArr2[i])); - } - - @Override // c.i.a.c.a2.t - public long i() { - return this.f757c; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/s.java b/app/src/main/java/c/i/a/c/a2/s.java deleted file mode 100644 index c3c94d8dfc..0000000000 --- a/app/src/main/java/c/i/a/c/a2/s.java +++ /dev/null @@ -1,5 +0,0 @@ -package c.i.a.c.a2; -/* compiled from: PositionHolder */ -public final class s { - public long a; -} diff --git a/app/src/main/java/c/i/a/c/a2/t.java b/app/src/main/java/c/i/a/c/a2/t.java deleted file mode 100644 index 6f3fcac449..0000000000 --- a/app/src/main/java/c/i/a/c/a2/t.java +++ /dev/null @@ -1,83 +0,0 @@ -package c.i.a.c.a2; - -import androidx.annotation.Nullable; -/* compiled from: SeekMap */ -public interface t { - - /* compiled from: SeekMap */ - public static final class a { - public final u a; - public final u b; - - public a(u uVar) { - this.a = uVar; - this.b = uVar; - } - - public a(u uVar, u uVar2) { - this.a = uVar; - this.b = uVar2; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || a.class != obj.getClass()) { - return false; - } - a aVar = (a) obj; - return this.a.equals(aVar.a) && this.b.equals(aVar.b); - } - - public int hashCode() { - return this.b.hashCode() + (this.a.hashCode() * 31); - } - - public String toString() { - String str; - StringBuilder K = c.d.b.a.a.K("["); - K.append(this.a); - if (this.a.equals(this.b)) { - str = ""; - } else { - StringBuilder K2 = c.d.b.a.a.K(", "); - K2.append(this.b); - str = K2.toString(); - } - return c.d.b.a.a.C(K, str, "]"); - } - } - - /* compiled from: SeekMap */ - public static class b implements t { - public final long a; - public final a b; - - public b(long j, long j2) { - this.a = j; - this.b = new a(j2 == 0 ? u.a : new u(0, j2)); - } - - @Override // c.i.a.c.a2.t - public boolean c() { - return false; - } - - @Override // c.i.a.c.a2.t - public a h(long j) { - return this.b; - } - - @Override // c.i.a.c.a2.t - public long i() { - return this.a; - } - } - - boolean c(); - - a h(long j); - - long i(); -} diff --git a/app/src/main/java/c/i/a/c/a2/u.java b/app/src/main/java/c/i/a/c/a2/u.java deleted file mode 100644 index bf34e564fd..0000000000 --- a/app/src/main/java/c/i/a/c/a2/u.java +++ /dev/null @@ -1,39 +0,0 @@ -package c.i.a.c.a2; - -import androidx.annotation.Nullable; -import c.d.b.a.a; -/* compiled from: SeekPoint */ -public final class u { - public static final u a = new u(0, 0); - public final long b; - - /* renamed from: c reason: collision with root package name */ - public final long f758c; - - public u(long j, long j2) { - this.b = j; - this.f758c = j2; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || u.class != obj.getClass()) { - return false; - } - u uVar = (u) obj; - return this.b == uVar.b && this.f758c == uVar.f758c; - } - - public int hashCode() { - return (((int) this.b) * 31) + ((int) this.f758c); - } - - public String toString() { - StringBuilder K = a.K("[timeUs="); - K.append(this.b); - K.append(", position="); - return a.y(K, this.f758c, "]"); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/v.java b/app/src/main/java/c/i/a/c/a2/v.java deleted file mode 100644 index d6bd33d84f..0000000000 --- a/app/src/main/java/c/i/a/c/a2/v.java +++ /dev/null @@ -1,15 +0,0 @@ -package c.i.a.c.a2; - -import c.i.a.c.h2.f; -import c.i.a.c.i2.w; -import java.io.IOException; -/* compiled from: TrackOutput */ -public final /* synthetic */ class v { - public static int a(w wVar, f fVar, int i, boolean z2) throws IOException { - return wVar.a(fVar, i, z2, 0); - } - - public static void b(w wVar, w wVar2, int i) { - wVar.f(wVar2, i, 0); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/w.java b/app/src/main/java/c/i/a/c/a2/w.java deleted file mode 100644 index 8631c873fb..0000000000 --- a/app/src/main/java/c/i/a/c/a2/w.java +++ /dev/null @@ -1,54 +0,0 @@ -package c.i.a.c.a2; - -import androidx.annotation.Nullable; -import c.i.a.c.h2.f; -import com.google.android.exoplayer2.Format; -import java.io.IOException; -import java.util.Arrays; -/* compiled from: TrackOutput */ -public interface w { - - /* compiled from: TrackOutput */ - public static final class a { - public final int a; - public final byte[] b; - - /* renamed from: c reason: collision with root package name */ - public final int f759c; - public final int d; - - public a(int i, byte[] bArr, int i2, int i3) { - this.a = i; - this.b = bArr; - this.f759c = i2; - this.d = i3; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || a.class != obj.getClass()) { - return false; - } - a aVar = (a) obj; - return this.a == aVar.a && this.f759c == aVar.f759c && this.d == aVar.d && Arrays.equals(this.b, aVar.b); - } - - public int hashCode() { - return ((((Arrays.hashCode(this.b) + (this.a * 31)) * 31) + this.f759c) * 31) + this.d; - } - } - - int a(f fVar, int i, boolean z2, int i2) throws IOException; - - int b(f fVar, int i, boolean z2) throws IOException; - - void c(c.i.a.c.i2.w wVar, int i); - - void d(long j, int i, int i2, int i3, @Nullable a aVar); - - void e(Format format); - - void f(c.i.a.c.i2.w wVar, int i, int i2); -} diff --git a/app/src/main/java/c/i/a/c/a2/x.java b/app/src/main/java/c/i/a/c/a2/x.java deleted file mode 100644 index cb7c99ea5b..0000000000 --- a/app/src/main/java/c/i/a/c/a2/x.java +++ /dev/null @@ -1,57 +0,0 @@ -package c.i.a.c.a2; - -import com.airbnb.lottie.parser.AnimatableValueParser; -/* compiled from: VorbisBitArray */ -public final class x { - public final byte[] a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public int f760c; - public int d; - - public x(byte[] bArr) { - this.a = bArr; - this.b = bArr.length; - } - - public boolean a() { - boolean z2 = (((this.a[this.f760c] & 255) >> this.d) & 1) == 1; - c(1); - return z2; - } - - public int b(int i) { - int i2 = this.f760c; - int min = Math.min(i, 8 - this.d); - int i3 = i2 + 1; - int i4 = ((this.a[i2] & 255) >> this.d) & (255 >> (8 - min)); - while (min < i) { - i4 |= (this.a[i3] & 255) << min; - min += 8; - i3++; - } - int i5 = i4 & (-1 >>> (32 - i)); - c(i); - return i5; - } - - public void c(int i) { - int i2; - int i3 = i / 8; - int i4 = this.f760c + i3; - this.f760c = i4; - int i5 = (i - (i3 * 8)) + this.d; - this.d = i5; - boolean z2 = true; - if (i5 > 7) { - this.f760c = i4 + 1; - this.d = i5 - 8; - } - int i6 = this.f760c; - if (i6 < 0 || (i6 >= (i2 = this.b) && !(i6 == i2 && this.d == 0))) { - z2 = false; - } - AnimatableValueParser.D(z2); - } -} diff --git a/app/src/main/java/c/i/a/c/a2/y.java b/app/src/main/java/c/i/a/c/a2/y.java deleted file mode 100644 index 7f4eee4b72..0000000000 --- a/app/src/main/java/c/i/a/c/a2/y.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.a2; -/* compiled from: VorbisUtil */ -public final class y { - public final String[] a; - - public y(String str, String[] strArr, int i) { - this.a = strArr; - } -} diff --git a/app/src/main/java/c/i/a/c/a2/z.java b/app/src/main/java/c/i/a/c/a2/z.java deleted file mode 100644 index 2aa7bd21c9..0000000000 --- a/app/src/main/java/c/i/a/c/a2/z.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.a2; -/* compiled from: VorbisUtil */ -public final class z { - public final boolean a; - - public z(boolean z2, int i, int i2, int i3) { - this.a = z2; - } -} diff --git a/app/src/main/java/c/i/a/c/b.java b/app/src/main/java/c/i/a/c/b.java deleted file mode 100644 index 3ae391c08c..0000000000 --- a/app/src/main/java/c/i/a/c/b.java +++ /dev/null @@ -1,47 +0,0 @@ -package c.i.a.c; - -import c.d.b.a.a; -import c.i.a.c.e0; -import c.i.a.c.v1.n; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Runnable { - public final /* synthetic */ e0.a i; - public final /* synthetic */ int j; - - public /* synthetic */ b(e0.a aVar, int i) { - this.i = aVar; - this.j = i; - } - - @Override // java.lang.Runnable - public final void run() { - e0.a aVar = this.i; - int i = this.j; - e0 e0Var = e0.this; - Objects.requireNonNull(e0Var); - boolean z2 = true; - if (i == -3 || i == -2) { - if (i != -2) { - n nVar = e0Var.d; - if (nVar == null || nVar.b != 1) { - z2 = false; - } - if (!z2) { - e0Var.c(3); - return; - } - } - e0Var.b(0); - e0Var.c(2); - } else if (i == -1) { - e0Var.b(-1); - e0Var.a(); - } else if (i != 1) { - a.d0("Unknown focus change type: ", i, "AudioFocusManager"); - } else { - e0Var.c(1); - e0Var.b(1); - } - } -} diff --git a/app/src/main/java/c/i/a/c/b0.java b/app/src/main/java/c/i/a/c/b0.java deleted file mode 100644 index df027036f9..0000000000 --- a/app/src/main/java/c/i/a/c/b0.java +++ /dev/null @@ -1,14 +0,0 @@ -package c.i.a.c; -/* compiled from: lambda */ -public final /* synthetic */ class b0 implements Runnable { - public final /* synthetic */ q1 i; - - public /* synthetic */ b0(q1 q1Var) { - this.i = q1Var; - } - - @Override // java.lang.Runnable - public final void run() { - this.i.c(); - } -} diff --git a/app/src/main/java/c/i/a/c/b1.java b/app/src/main/java/c/i/a/c/b1.java deleted file mode 100644 index d11175d990..0000000000 --- a/app/src/main/java/c/i/a/c/b1.java +++ /dev/null @@ -1,348 +0,0 @@ -package c.i.a.c; - -import android.os.Handler; -import android.util.Pair; -import androidx.annotation.Nullable; -import c.i.a.c.d2.h0; -import c.i.a.c.d2.r; -import c.i.a.c.d2.s; -import c.i.a.c.d2.t; -import c.i.a.c.d2.u; -import c.i.a.c.d2.v; -import c.i.a.c.d2.y; -import c.i.a.c.d2.z; -import c.i.a.c.h2.x; -import c.i.a.c.i2.f0; -import c.i.a.c.u1.c1; -import c.i.a.c.z1.q; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.IdentityHashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Random; -import java.util.Set; -/* compiled from: MediaSourceList */ -public final class b1 { - public final List a = new ArrayList(); - public final IdentityHashMap b = new IdentityHashMap<>(); - - /* renamed from: c reason: collision with root package name */ - public final Map f761c = new HashMap(); - public final d d; - public final z.a e; - public final q.a f; - public final HashMap g; - public final Set h; - public h0 i = new h0.a(0, new Random()); - public boolean j; - @Nullable - public x k; - - /* compiled from: MediaSourceList */ - public final class a implements z, q { - public final c i; - public z.a j; - public q.a k; - - public a(c cVar) { - this.j = b1.this.e; - this.k = b1.this.f; - this.i = cVar; - } - - @Override // c.i.a.c.z1.q - public void B(int i, @Nullable y.a aVar) { - if (a(i, aVar)) { - this.k.b(); - } - } - - @Override // c.i.a.c.z1.q - public void F(int i, @Nullable y.a aVar) { - if (a(i, aVar)) { - this.k.d(); - } - } - - @Override // c.i.a.c.z1.q - public void L(int i, @Nullable y.a aVar) { - if (a(i, aVar)) { - this.k.a(); - } - } - - @Override // c.i.a.c.d2.z - public void N(int i, @Nullable y.a aVar, r rVar, u uVar) { - if (a(i, aVar)) { - this.j.d(rVar, uVar); - } - } - - @Override // c.i.a.c.z1.q - public void R(int i, @Nullable y.a aVar) { - if (a(i, aVar)) { - this.k.f(); - } - } - - @Override // c.i.a.c.d2.z - public void U(int i, @Nullable y.a aVar, r rVar, u uVar, IOException iOException, boolean z2) { - if (a(i, aVar)) { - this.j.e(rVar, uVar, iOException, z2); - } - } - - @Override // c.i.a.c.z1.q - public void W(int i, @Nullable y.a aVar) { - if (a(i, aVar)) { - this.k.c(); - } - } - - public final boolean a(int i, @Nullable y.a aVar) { - y.a aVar2 = null; - if (aVar != null) { - c cVar = this.i; - int i2 = 0; - while (true) { - if (i2 >= cVar.f763c.size()) { - break; - } else if (cVar.f763c.get(i2).d == aVar.d) { - aVar2 = aVar.b(Pair.create(cVar.b, aVar.a)); - break; - } else { - i2++; - } - } - if (aVar2 == null) { - return false; - } - } - int i3 = i + this.i.d; - z.a aVar3 = this.j; - if (aVar3.a != i3 || !f0.a(aVar3.b, aVar2)) { - this.j = b1.this.e.g(i3, aVar2, 0); - } - q.a aVar4 = this.k; - if (aVar4.a == i3 && f0.a(aVar4.b, aVar2)) { - return true; - } - this.k = b1.this.f.g(i3, aVar2); - return true; - } - - @Override // c.i.a.c.d2.z - public void l(int i, @Nullable y.a aVar, u uVar) { - if (a(i, aVar)) { - this.j.b(uVar); - } - } - - @Override // c.i.a.c.d2.z - public void m(int i, @Nullable y.a aVar, r rVar, u uVar) { - if (a(i, aVar)) { - this.j.c(rVar, uVar); - } - } - - @Override // c.i.a.c.z1.q - public void o(int i, @Nullable y.a aVar, Exception exc) { - if (a(i, aVar)) { - this.k.e(exc); - } - } - - @Override // c.i.a.c.d2.z - public void q(int i, @Nullable y.a aVar, r rVar, u uVar) { - if (a(i, aVar)) { - this.j.f(rVar, uVar); - } - } - } - - /* compiled from: MediaSourceList */ - public static final class b { - public final y a; - public final y.b b; - - /* renamed from: c reason: collision with root package name */ - public final z f762c; - - public b(y yVar, y.b bVar, z zVar) { - this.a = yVar; - this.b = bVar; - this.f762c = zVar; - } - } - - /* compiled from: MediaSourceList */ - public static final class c implements a1 { - public final t a; - public final Object b = new Object(); - - /* renamed from: c reason: collision with root package name */ - public final List f763c = new ArrayList(); - public int d; - public boolean e; - - public c(y yVar, boolean z2) { - this.a = new t(yVar, z2); - } - - @Override // c.i.a.c.a1 - public r1 a() { - return this.a.n; - } - - @Override // c.i.a.c.a1 - public Object getUid() { - return this.b; - } - } - - /* compiled from: MediaSourceList */ - public interface d { - } - - public b1(d dVar, @Nullable c1 c1Var, Handler handler) { - this.d = dVar; - z.a aVar = new z.a(); - this.e = aVar; - q.a aVar2 = new q.a(); - this.f = aVar2; - this.g = new HashMap<>(); - this.h = new HashSet(); - if (c1Var != null) { - aVar.f811c.add(new z.a.C0087a(handler, c1Var)); - aVar2.f1017c.add(new q.a.C0095a(handler, c1Var)); - } - } - - public r1 a(int i, List list, h0 h0Var) { - if (!list.isEmpty()) { - this.i = h0Var; - for (int i2 = i; i2 < list.size() + i; i2++) { - c cVar = list.get(i2 - i); - if (i2 > 0) { - c cVar2 = this.a.get(i2 - 1); - t.a aVar = cVar2.a.n; - cVar.d = aVar.p() + cVar2.d; - cVar.e = false; - cVar.f763c.clear(); - } else { - cVar.d = 0; - cVar.e = false; - cVar.f763c.clear(); - } - b(i2, cVar.a.n.p()); - this.a.add(i2, cVar); - this.f761c.put(cVar.b, cVar); - if (this.j) { - g(cVar); - if (this.b.isEmpty()) { - this.h.add(cVar); - } else { - b bVar = this.g.get(cVar); - if (bVar != null) { - bVar.a.d(bVar.b); - } - } - } - } - } - return c(); - } - - public final void b(int i, int i2) { - while (i < this.a.size()) { - this.a.get(i).d += i2; - i++; - } - } - - public r1 c() { - if (this.a.isEmpty()) { - return r1.a; - } - int i = 0; - for (int i2 = 0; i2 < this.a.size(); i2++) { - c cVar = this.a.get(i2); - cVar.d = i; - i += cVar.a.n.p(); - } - return new i1(this.a, this.i); - } - - public final void d() { - Iterator it = this.h.iterator(); - while (it.hasNext()) { - c next = it.next(); - if (next.f763c.isEmpty()) { - b bVar = this.g.get(next); - if (bVar != null) { - bVar.a.d(bVar.b); - } - it.remove(); - } - } - } - - public int e() { - return this.a.size(); - } - - public final void f(c cVar) { - if (cVar.e && cVar.f763c.isEmpty()) { - b remove = this.g.remove(cVar); - Objects.requireNonNull(remove); - remove.a.a(remove.b); - remove.a.c(remove.f762c); - this.h.remove(cVar); - } - } - - public final void g(c cVar) { - t tVar = cVar.a; - z zVar = new z(this); - a aVar = new a(cVar); - this.g.put(cVar, new b(tVar, zVar, aVar)); - Handler handler = new Handler(f0.o(), null); - Objects.requireNonNull(tVar); - z.a aVar2 = tVar.f800c; - Objects.requireNonNull(aVar2); - aVar2.f811c.add(new z.a.C0087a(handler, aVar)); - Handler handler2 = new Handler(f0.o(), null); - q.a aVar3 = tVar.d; - Objects.requireNonNull(aVar3); - aVar3.f1017c.add(new q.a.C0095a(handler2, aVar)); - tVar.k(zVar, this.k); - } - - public void h(v vVar) { - c remove = this.b.remove(vVar); - Objects.requireNonNull(remove); - remove.a.i(vVar); - remove.f763c.remove(((s) vVar).i); - if (!this.b.isEmpty()) { - d(); - } - f(remove); - } - - public final void i(int i, int i2) { - for (int i3 = i2 - 1; i3 >= i; i3--) { - c remove = this.a.remove(i3); - this.f761c.remove(remove.b); - b(i3, -remove.a.n.p()); - remove.e = true; - if (this.j) { - f(remove); - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/a.java b/app/src/main/java/c/i/a/c/b2/a.java deleted file mode 100644 index 69f6e188b5..0000000000 --- a/app/src/main/java/c/i/a/c/b2/a.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c.b2; - -import android.os.HandlerThread; -import c.i.b.a.l; -/* compiled from: lambda */ -public final /* synthetic */ class a implements l { - public final /* synthetic */ int i; - - public /* synthetic */ a(int i) { - this.i = i; - } - - @Override // c.i.b.a.l - public final Object get() { - return new HandlerThread(l.j(this.i, "ExoPlayer:MediaCodecAsyncAdapter:")); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/b.java b/app/src/main/java/c/i/a/c/b2/b.java deleted file mode 100644 index 8868fdd686..0000000000 --- a/app/src/main/java/c/i/a/c/b2/b.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c.b2; - -import android.os.HandlerThread; -import c.i.b.a.l; -/* compiled from: lambda */ -public final /* synthetic */ class b implements l { - public final /* synthetic */ int i; - - public /* synthetic */ b(int i) { - this.i = i; - } - - @Override // c.i.b.a.l - public final Object get() { - return new HandlerThread(l.j(this.i, "ExoPlayer:MediaCodecQueueingThread:")); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/c.java b/app/src/main/java/c/i/a/c/b2/c.java deleted file mode 100644 index 7b1c8906e1..0000000000 --- a/app/src/main/java/c/i/a/c/b2/c.java +++ /dev/null @@ -1,24 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import c.i.a.c.b2.r; -import c.i.a.c.j2.n; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class c implements MediaCodec.OnFrameRenderedListener { - public final /* synthetic */ l a; - public final /* synthetic */ r.b b; - - public /* synthetic */ c(l lVar, r.b bVar) { - this.a = lVar; - this.b = bVar; - } - - @Override // android.media.MediaCodec.OnFrameRenderedListener - public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) { - l lVar = this.a; - r.b bVar = this.b; - Objects.requireNonNull(lVar); - ((n.b) bVar).b(lVar, j, j2); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/d.java b/app/src/main/java/c/i/a/c/b2/d.java deleted file mode 100644 index f826cefb7f..0000000000 --- a/app/src/main/java/c/i/a/c/b2/d.java +++ /dev/null @@ -1,38 +0,0 @@ -package c.i.a.c.b2; -/* compiled from: lambda */ -public final /* synthetic */ class d implements Runnable { - public final /* synthetic */ o i; - public final /* synthetic */ Runnable j; - - public /* synthetic */ d(o oVar, Runnable runnable) { - this.i = oVar; - this.j = runnable; - } - - @Override // java.lang.Runnable - public final void run() { - o oVar = this.i; - Runnable runnable = this.j; - synchronized (oVar.a) { - if (!oVar.l) { - long j = oVar.k - 1; - oVar.k = j; - int i = (j > 0 ? 1 : (j == 0 ? 0 : -1)); - if (i <= 0) { - if (i < 0) { - oVar.c(new IllegalStateException()); - } else { - oVar.a(); - try { - runnable.run(); - } catch (IllegalStateException e) { - oVar.c(e); - } catch (Exception e2) { - oVar.c(new IllegalStateException(e2)); - } - } - } - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/e.java b/app/src/main/java/c/i/a/c/b2/e.java deleted file mode 100644 index 18709906bb..0000000000 --- a/app/src/main/java/c/i/a/c/b2/e.java +++ /dev/null @@ -1,19 +0,0 @@ -package c.i.a.c.b2; - -import c.i.a.c.i2.f0; -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.regex.Pattern; -/* compiled from: lambda */ -public final /* synthetic */ class e implements MediaCodecUtil.f { - public static final /* synthetic */ e a = new e(); - - @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f - public final int a(Object obj) { - Pattern pattern = MediaCodecUtil.a; - String str = ((s) obj).a; - if (str.startsWith("OMX.google") || str.startsWith("c2.android")) { - return 1; - } - return (f0.a >= 26 || !str.equals("OMX.MTK.AUDIO.DECODER.RAW")) ? 0 : -1; - } -} diff --git a/app/src/main/java/c/i/a/c/b2/f.java b/app/src/main/java/c/i/a/c/b2/f.java deleted file mode 100644 index 25bf862788..0000000000 --- a/app/src/main/java/c/i/a/c/b2/f.java +++ /dev/null @@ -1,14 +0,0 @@ -package c.i.a.c.b2; - -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.regex.Pattern; -/* compiled from: lambda */ -public final /* synthetic */ class f implements MediaCodecUtil.f { - public static final /* synthetic */ f a = new f(); - - @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f - public final int a(Object obj) { - Pattern pattern = MediaCodecUtil.a; - return ((s) obj).a.startsWith("OMX.google") ? 1 : 0; - } -} diff --git a/app/src/main/java/c/i/a/c/b2/g.java b/app/src/main/java/c/i/a/c/b2/g.java deleted file mode 100644 index cf219f2d08..0000000000 --- a/app/src/main/java/c/i/a/c/b2/g.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.b2; - -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -/* compiled from: lambda */ -public final /* synthetic */ class g implements MediaCodecUtil.f { - public final /* synthetic */ Format a; - - public /* synthetic */ g(Format format) { - this.a = format; - } - - @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f - public final int a(Object obj) { - try { - return ((s) obj).e(this.a) ? 1 : 0; - } catch (MediaCodecUtil.DecoderQueryException unused) { - return -1; - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/h.java b/app/src/main/java/c/i/a/c/b2/h.java deleted file mode 100644 index 71c715ea5d..0000000000 --- a/app/src/main/java/c/i/a/c/b2/h.java +++ /dev/null @@ -1,18 +0,0 @@ -package c.i.a.c.b2; - -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class h implements Comparator { - public final /* synthetic */ MediaCodecUtil.f i; - - public /* synthetic */ h(MediaCodecUtil.f fVar) { - this.i = fVar; - } - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - MediaCodecUtil.f fVar = this.i; - return fVar.a(obj2) - fVar.a(obj); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/i.java b/app/src/main/java/c/i/a/c/b2/i.java deleted file mode 100644 index 5537c61f5f..0000000000 --- a/app/src/main/java/c/i/a/c/b2/i.java +++ /dev/null @@ -1,24 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import c.i.a.c.b2.r; -import c.i.a.c.j2.n; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class i implements MediaCodec.OnFrameRenderedListener { - public final /* synthetic */ u a; - public final /* synthetic */ r.b b; - - public /* synthetic */ i(u uVar, r.b bVar) { - this.a = uVar; - this.b = bVar; - } - - @Override // android.media.MediaCodec.OnFrameRenderedListener - public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) { - u uVar = this.a; - r.b bVar = this.b; - Objects.requireNonNull(uVar); - ((n.b) bVar).b(uVar, j, j2); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/j.java b/app/src/main/java/c/i/a/c/b2/j.java deleted file mode 100644 index 47eda3a14d..0000000000 --- a/app/src/main/java/c/i/a/c/b2/j.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -/* compiled from: lambda */ -public final /* synthetic */ class j implements Runnable { - public final /* synthetic */ MediaCodec i; - - public /* synthetic */ j(MediaCodec mediaCodec) { - this.i = mediaCodec; - } - - @Override // java.lang.Runnable - public final void run() { - this.i.start(); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/k.java b/app/src/main/java/c/i/a/c/b2/k.java deleted file mode 100644 index c4687e1858..0000000000 --- a/app/src/main/java/c/i/a/c/b2/k.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.b2; - -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.List; -/* compiled from: lambda */ -public final /* synthetic */ class k implements t { - public static final /* synthetic */ k b = new k(); - - @Override // c.i.a.c.b2.t - public final List a(String str, boolean z2, boolean z3) { - return MediaCodecUtil.e(str, z2, z3); - } -} diff --git a/app/src/main/java/c/i/a/c/b2/l.java b/app/src/main/java/c/i/a/c/b2/l.java deleted file mode 100644 index 08a05834e9..0000000000 --- a/app/src/main/java/c/i/a/c/b2/l.java +++ /dev/null @@ -1,297 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.media.MediaCrypto; -import android.media.MediaFormat; -import android.os.Bundle; -import android.os.Handler; -import android.os.HandlerThread; -import android.view.Surface; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import c.i.a.c.b2.n; -import c.i.a.c.b2.r; -import c.i.a.c.i2.f0; -import c.i.a.c.x1.b; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.nio.ByteBuffer; -import java.util.Objects; -/* compiled from: AsynchronousMediaCodecAdapter */ -@RequiresApi(23) -public final class l implements r { - public final MediaCodec a; - public final o b; - - /* renamed from: c reason: collision with root package name */ - public final n f764c; - public final boolean d; - public boolean e; - public int f = 0; - - public l(MediaCodec mediaCodec, HandlerThread handlerThread, HandlerThread handlerThread2, boolean z2, boolean z3, a aVar) { - this.a = mediaCodec; - this.b = new o(handlerThread); - this.f764c = new n(mediaCodec, handlerThread2, z2); - this.d = z3; - } - - public static String j(int i, String str) { - StringBuilder sb = new StringBuilder(str); - if (i == 1) { - sb.append("Audio"); - } else if (i == 2) { - sb.append("Video"); - } else { - sb.append("Unknown("); - sb.append(i); - sb.append(")"); - } - return sb.toString(); - } - - @Override // c.i.a.c.b2.r - public void a(int i, int i2, b bVar, long j, int i3) { - n nVar = this.f764c; - nVar.f(); - n.a e = n.e(); - e.a = i; - e.b = i2; - e.f766c = 0; - e.e = j; - e.f = i3; - MediaCodec.CryptoInfo cryptoInfo = e.d; - cryptoInfo.numSubSamples = bVar.f; - cryptoInfo.numBytesOfClearData = n.c(bVar.d, cryptoInfo.numBytesOfClearData); - cryptoInfo.numBytesOfEncryptedData = n.c(bVar.e, cryptoInfo.numBytesOfEncryptedData); - byte[] b = n.b(bVar.b, cryptoInfo.key); - Objects.requireNonNull(b); - cryptoInfo.key = b; - byte[] b2 = n.b(bVar.a, cryptoInfo.iv); - Objects.requireNonNull(b2); - cryptoInfo.iv = b2; - cryptoInfo.mode = bVar.f1008c; - if (f0.a >= 24) { - cryptoInfo.setPattern(new MediaCodec.CryptoInfo.Pattern(bVar.g, bVar.h)); - } - nVar.e.obtainMessage(1, e).sendToTarget(); - } - - @Override // c.i.a.c.b2.r - public void b(int i, long j) { - this.a.releaseOutputBuffer(i, j); - } - - @Override // c.i.a.c.b2.r - public int c() { - int i; - o oVar = this.b; - synchronized (oVar.a) { - i = -1; - if (!oVar.b()) { - IllegalStateException illegalStateException = oVar.m; - if (illegalStateException == null) { - MediaCodec.CodecException codecException = oVar.j; - if (codecException == null) { - c.i.a.c.i2.n nVar = oVar.d; - if (!(nVar.f906c == 0)) { - i = nVar.b(); - } - } else { - oVar.j = null; - throw codecException; - } - } else { - oVar.m = null; - throw illegalStateException; - } - } - } - return i; - } - - @Override // c.i.a.c.b2.r - public void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i) { - o oVar = this.b; - MediaCodec mediaCodec = this.a; - AnimatableValueParser.D(oVar.f767c == null); - oVar.b.start(); - Handler handler = new Handler(oVar.b.getLooper()); - mediaCodec.setCallback(oVar, handler); - oVar.f767c = handler; - this.a.configure(mediaFormat, surface, mediaCrypto, i); - this.f = 1; - } - - @Override // c.i.a.c.b2.r - public int d(MediaCodec.BufferInfo bufferInfo) { - int i; - o oVar = this.b; - synchronized (oVar.a) { - i = -1; - if (!oVar.b()) { - IllegalStateException illegalStateException = oVar.m; - if (illegalStateException == null) { - MediaCodec.CodecException codecException = oVar.j; - if (codecException == null) { - c.i.a.c.i2.n nVar = oVar.e; - if (!(nVar.f906c == 0)) { - i = nVar.b(); - if (i >= 0) { - AnimatableValueParser.H(oVar.h); - MediaCodec.BufferInfo remove = oVar.f.remove(); - bufferInfo.set(remove.offset, remove.size, remove.presentationTimeUs, remove.flags); - } else if (i == -2) { - oVar.h = oVar.g.remove(); - } - } - } else { - oVar.j = null; - throw codecException; - } - } else { - oVar.m = null; - throw illegalStateException; - } - } - } - return i; - } - - @Override // c.i.a.c.b2.r - public void e(r.b bVar, Handler handler) { - k(); - this.a.setOnFrameRenderedListener(new c(this, bVar), handler); - } - - @Override // c.i.a.c.b2.r - public void f(int i) { - k(); - this.a.setVideoScalingMode(i); - } - - @Override // c.i.a.c.b2.r - public void flush() { - this.f764c.d(); - this.a.flush(); - o oVar = this.b; - MediaCodec mediaCodec = this.a; - Objects.requireNonNull(mediaCodec); - j jVar = new j(mediaCodec); - synchronized (oVar.a) { - oVar.k++; - Handler handler = oVar.f767c; - int i = f0.a; - handler.post(new d(oVar, jVar)); - } - } - - @Override // c.i.a.c.b2.r - @Nullable - public ByteBuffer g(int i) { - return this.a.getInputBuffer(i); - } - - @Override // c.i.a.c.b2.r - public MediaFormat getOutputFormat() { - MediaFormat mediaFormat; - o oVar = this.b; - synchronized (oVar.a) { - mediaFormat = oVar.h; - if (mediaFormat == null) { - throw new IllegalStateException(); - } - } - return mediaFormat; - } - - @Override // c.i.a.c.b2.r - public void h(Surface surface) { - k(); - this.a.setOutputSurface(surface); - } - - @Override // c.i.a.c.b2.r - @Nullable - public ByteBuffer i(int i) { - return this.a.getOutputBuffer(i); - } - - public final void k() { - if (this.d) { - try { - this.f764c.a(); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new IllegalStateException(e); - } - } - } - - @Override // c.i.a.c.b2.r - public void queueInputBuffer(int i, int i2, int i3, long j, int i4) { - n nVar = this.f764c; - nVar.f(); - n.a e = n.e(); - e.a = i; - e.b = i2; - e.f766c = i3; - e.e = j; - e.f = i4; - Handler handler = nVar.e; - int i5 = f0.a; - handler.obtainMessage(0, e).sendToTarget(); - } - - @Override // c.i.a.c.b2.r - public void release() { - boolean z2 = true; - try { - if (this.f == 2) { - n nVar = this.f764c; - if (nVar.i) { - nVar.d(); - nVar.d.quit(); - } - nVar.i = false; - } - int i = this.f; - if (i == 1 || i == 2) { - o oVar = this.b; - synchronized (oVar.a) { - oVar.l = true; - oVar.b.quit(); - oVar.a(); - } - } - this.f = 3; - } finally { - if (!this.e) { - this.a.release(); - this.e = z2; - } - } - } - - @Override // c.i.a.c.b2.r - public void releaseOutputBuffer(int i, boolean z2) { - this.a.releaseOutputBuffer(i, z2); - } - - @Override // c.i.a.c.b2.r - public void setParameters(Bundle bundle) { - k(); - this.a.setParameters(bundle); - } - - @Override // c.i.a.c.b2.r - public void start() { - n nVar = this.f764c; - if (!nVar.i) { - nVar.d.start(); - nVar.e = new m(nVar, nVar.d.getLooper()); - nVar.i = true; - } - this.a.start(); - this.f = 2; - } -} diff --git a/app/src/main/java/c/i/a/c/b2/m.java b/app/src/main/java/c/i/a/c/b2/m.java deleted file mode 100644 index acf745f337..0000000000 --- a/app/src/main/java/c/i/a/c/b2/m.java +++ /dev/null @@ -1,66 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.os.Handler; -import android.os.Looper; -import android.os.Message; -import c.i.a.c.b2.n; -import java.util.ArrayDeque; -import java.util.Objects; -/* compiled from: AsynchronousMediaCodecBufferEnqueuer */ -public class m extends Handler { - public final /* synthetic */ n a; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public m(n nVar, Looper looper) { - super(looper); - this.a = nVar; - } - - @Override // android.os.Handler - public void handleMessage(Message message) { - n.a aVar; - n nVar = this.a; - Objects.requireNonNull(nVar); - int i = message.what; - if (i == 0) { - aVar = (n.a) message.obj; - try { - nVar.f765c.queueInputBuffer(aVar.a, aVar.b, aVar.f766c, aVar.e, aVar.f); - } catch (RuntimeException e) { - nVar.f.set(e); - } - } else if (i != 1) { - if (i != 2) { - nVar.f.set(new IllegalStateException(String.valueOf(message.what))); - } else { - nVar.g.b(); - } - aVar = null; - } else { - aVar = (n.a) message.obj; - int i2 = aVar.a; - int i3 = aVar.b; - MediaCodec.CryptoInfo cryptoInfo = aVar.d; - long j = aVar.e; - int i4 = aVar.f; - try { - if (nVar.h) { - synchronized (n.b) { - nVar.f765c.queueSecureInputBuffer(i2, i3, cryptoInfo, j, i4); - } - } else { - nVar.f765c.queueSecureInputBuffer(i2, i3, cryptoInfo, j, i4); - } - } catch (RuntimeException e2) { - nVar.f.set(e2); - } - } - if (aVar != null) { - ArrayDeque arrayDeque = n.a; - synchronized (arrayDeque) { - arrayDeque.add(aVar); - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/n.java b/app/src/main/java/c/i/a/c/b2/n.java deleted file mode 100644 index dfa1029dfa..0000000000 --- a/app/src/main/java/c/i/a/c/b2/n.java +++ /dev/null @@ -1,126 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.os.Handler; -import android.os.HandlerThread; -import androidx.annotation.GuardedBy; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.j; -import java.util.ArrayDeque; -import java.util.Arrays; -import java.util.concurrent.atomic.AtomicReference; -/* compiled from: AsynchronousMediaCodecBufferEnqueuer */ -@RequiresApi(23) -public class n { - @GuardedBy("MESSAGE_PARAMS_INSTANCE_POOL") - public static final ArrayDeque a = new ArrayDeque<>(); - public static final Object b = new Object(); - - /* renamed from: c reason: collision with root package name */ - public final MediaCodec f765c; - public final HandlerThread d; - public Handler e; - public final AtomicReference f = new AtomicReference<>(); - public final j g; - public final boolean h; - public boolean i; - - /* compiled from: AsynchronousMediaCodecBufferEnqueuer */ - public static class a { - public int a; - public int b; - - /* renamed from: c reason: collision with root package name */ - public int f766c; - public final MediaCodec.CryptoInfo d = new MediaCodec.CryptoInfo(); - public long e; - public int f; - } - - /* JADX WARNING: Code restructure failed: missing block: B:8:0x0033, code lost: - if ((r4.contains("samsung") || r4.contains("motorola")) != false) goto L_0x0035; - */ - public n(MediaCodec mediaCodec, HandlerThread handlerThread, boolean z2) { - j jVar = new j(); - this.f765c = mediaCodec; - this.d = handlerThread; - this.g = jVar; - boolean z3 = false; - if (!z2) { - String K = f0.K(f0.f904c); - } - z3 = true; - this.h = z3; - } - - @Nullable - public static byte[] b(@Nullable byte[] bArr, @Nullable byte[] bArr2) { - if (bArr == null) { - return bArr2; - } - if (bArr2 == null || bArr2.length < bArr.length) { - return Arrays.copyOf(bArr, bArr.length); - } - System.arraycopy(bArr, 0, bArr2, 0, bArr.length); - return bArr2; - } - - @Nullable - public static int[] c(@Nullable int[] iArr, @Nullable int[] iArr2) { - if (iArr == null) { - return iArr2; - } - if (iArr2 == null || iArr2.length < iArr.length) { - return Arrays.copyOf(iArr, iArr.length); - } - System.arraycopy(iArr, 0, iArr2, 0, iArr.length); - return iArr2; - } - - public static a e() { - ArrayDeque arrayDeque = a; - synchronized (arrayDeque) { - if (arrayDeque.isEmpty()) { - return new a(); - } - return arrayDeque.removeFirst(); - } - } - - public final void a() throws InterruptedException { - this.g.a(); - Handler handler = this.e; - int i = f0.a; - handler.obtainMessage(2).sendToTarget(); - j jVar = this.g; - synchronized (jVar) { - while (!jVar.b) { - jVar.wait(); - } - } - } - - public void d() { - if (this.i) { - try { - Handler handler = this.e; - int i = f0.a; - handler.removeCallbacksAndMessages(null); - a(); - f(); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new IllegalStateException(e); - } - } - } - - public final void f() { - RuntimeException andSet = this.f.getAndSet(null); - if (andSet != null) { - throw andSet; - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/o.java b/app/src/main/java/c/i/a/c/b2/o.java deleted file mode 100644 index be6ef03859..0000000000 --- a/app/src/main/java/c/i/a/c/b2/o.java +++ /dev/null @@ -1,119 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.media.MediaFormat; -import android.os.Handler; -import android.os.HandlerThread; -import androidx.annotation.GuardedBy; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import c.i.a.c.i2.n; -import java.util.ArrayDeque; -/* compiled from: AsynchronousMediaCodecCallback */ -@RequiresApi(23) -public final class o extends MediaCodec.Callback { - public final Object a = new Object(); - public final HandlerThread b; - - /* renamed from: c reason: collision with root package name */ - public Handler f767c; - @GuardedBy("lock") - public final n d; - @GuardedBy("lock") - public final n e; - @GuardedBy("lock") - public final ArrayDeque f; - @GuardedBy("lock") - public final ArrayDeque g; - @Nullable - @GuardedBy("lock") - public MediaFormat h; - @Nullable - @GuardedBy("lock") - public MediaFormat i; - @Nullable - @GuardedBy("lock") - public MediaCodec.CodecException j; - @GuardedBy("lock") - public long k; - @GuardedBy("lock") - public boolean l; - @Nullable - @GuardedBy("lock") - public IllegalStateException m; - - public o(HandlerThread handlerThread) { - this.b = handlerThread; - this.d = new n(); - this.e = new n(); - this.f = new ArrayDeque<>(); - this.g = new ArrayDeque<>(); - } - - @GuardedBy("lock") - public final void a() { - if (!this.g.isEmpty()) { - this.i = this.g.getLast(); - } - n nVar = this.d; - nVar.a = 0; - nVar.b = -1; - nVar.f906c = 0; - n nVar2 = this.e; - nVar2.a = 0; - nVar2.b = -1; - nVar2.f906c = 0; - this.f.clear(); - this.g.clear(); - this.j = null; - } - - @GuardedBy("lock") - public final boolean b() { - return this.k > 0 || this.l; - } - - public final void c(IllegalStateException illegalStateException) { - synchronized (this.a) { - this.m = illegalStateException; - } - } - - @Override // android.media.MediaCodec.Callback - public void onError(@NonNull MediaCodec mediaCodec, @NonNull MediaCodec.CodecException codecException) { - synchronized (this.a) { - this.j = codecException; - } - } - - @Override // android.media.MediaCodec.Callback - public void onInputBufferAvailable(@NonNull MediaCodec mediaCodec, int i) { - synchronized (this.a) { - this.d.a(i); - } - } - - @Override // android.media.MediaCodec.Callback - public void onOutputBufferAvailable(@NonNull MediaCodec mediaCodec, int i, @NonNull MediaCodec.BufferInfo bufferInfo) { - synchronized (this.a) { - MediaFormat mediaFormat = this.i; - if (mediaFormat != null) { - this.e.a(-2); - this.g.add(mediaFormat); - this.i = null; - } - this.e.a(i); - this.f.add(bufferInfo); - } - } - - @Override // android.media.MediaCodec.Callback - public void onOutputFormatChanged(@NonNull MediaCodec mediaCodec, @NonNull MediaFormat mediaFormat) { - synchronized (this.a) { - this.e.a(-2); - this.g.add(mediaFormat); - this.i = null; - } - } -} diff --git a/app/src/main/java/c/i/a/c/b2/p.java b/app/src/main/java/c/i/a/c/b2/p.java deleted file mode 100644 index ea036cc7bd..0000000000 --- a/app/src/main/java/c/i/a/c/b2/p.java +++ /dev/null @@ -1,71 +0,0 @@ -package c.i.a.c.b2; - -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import java.nio.ByteBuffer; -/* compiled from: BatchBuffer */ -public final class p extends DecoderInputBuffer { - public long q; - public int r; - - /* renamed from: s reason: collision with root package name */ - public int f768s = 32; - - public p() { - super(2); - } - - @Override // com.google.android.exoplayer2.decoder.DecoderInputBuffer - public void p() { - super.p(); - this.r = 0; - } - - /* JADX WARNING: Code restructure failed: missing block: B:13:0x0049, code lost: - if ((r0.remaining() + r3.position()) > 3072000) goto L_0x0028; - */ - /* JADX WARNING: Removed duplicated region for block: B:15:0x004e A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:16:0x004f */ - public boolean u(DecoderInputBuffer decoderInputBuffer) { - boolean z2; - AnimatableValueParser.k(!decoderInputBuffer.t()); - AnimatableValueParser.k(!decoderInputBuffer.l()); - AnimatableValueParser.k(!decoderInputBuffer.n()); - if (v()) { - if (this.r < this.f768s && decoderInputBuffer.m() == m()) { - ByteBuffer byteBuffer = decoderInputBuffer.k; - if (!(byteBuffer == null || (r3 = this.k) == null)) { - } - } - z2 = false; - if (z2) { - return false; - } - int i = this.r; - this.r = i + 1; - if (i == 0) { - this.m = decoderInputBuffer.m; - if (decoderInputBuffer.o()) { - this.i = 1; - } - } - if (decoderInputBuffer.m()) { - this.i = Integer.MIN_VALUE; - } - ByteBuffer byteBuffer2 = decoderInputBuffer.k; - if (byteBuffer2 != null) { - r(byteBuffer2.remaining()); - this.k.put(byteBuffer2); - } - this.q = decoderInputBuffer.m; - return true; - } - z2 = true; - if (z2) { - } - } - - public boolean v() { - return this.r > 0; - } -} diff --git a/app/src/main/java/c/i/a/c/b2/q.java b/app/src/main/java/c/i/a/c/b2/q.java deleted file mode 100644 index f490841cd3..0000000000 --- a/app/src/main/java/c/i/a/c/b2/q.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.b2; -/* compiled from: C2Mp3TimestampTracker */ -public final class q { - public long a; - public long b; - - /* renamed from: c reason: collision with root package name */ - public boolean f769c; -} diff --git a/app/src/main/java/c/i/a/c/b2/r.java b/app/src/main/java/c/i/a/c/b2/r.java deleted file mode 100644 index 10156369ac..0000000000 --- a/app/src/main/java/c/i/a/c/b2/r.java +++ /dev/null @@ -1,66 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.media.MediaCrypto; -import android.media.MediaFormat; -import android.os.Bundle; -import android.os.Handler; -import android.view.Surface; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import c.i.a.c.b2.u; -import java.nio.ByteBuffer; -/* compiled from: MediaCodecAdapter */ -public interface r { - - /* compiled from: MediaCodecAdapter */ - public interface a { - public static final a a = new u.b(); - - r a(MediaCodec mediaCodec); - } - - /* compiled from: MediaCodecAdapter */ - public interface b { - } - - void a(int i, int i2, c.i.a.c.x1.b bVar, long j, int i3); - - @RequiresApi(21) - void b(int i, long j); - - int c(); - - void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i); - - int d(MediaCodec.BufferInfo bufferInfo); - - @RequiresApi(23) - void e(b bVar, Handler handler); - - void f(int i); - - void flush(); - - @Nullable - ByteBuffer g(int i); - - MediaFormat getOutputFormat(); - - @RequiresApi(23) - void h(Surface surface); - - @Nullable - ByteBuffer i(int i); - - void queueInputBuffer(int i, int i2, int i3, long j, int i4); - - void release(); - - void releaseOutputBuffer(int i, boolean z2); - - @RequiresApi(19) - void setParameters(Bundle bundle); - - void start(); -} diff --git a/app/src/main/java/c/i/a/c/b2/s.java b/app/src/main/java/c/i/a/c/b2/s.java deleted file mode 100644 index 455698c785..0000000000 --- a/app/src/main/java/c/i/a/c/b2/s.java +++ /dev/null @@ -1,373 +0,0 @@ -package c.i.a.c.b2; - -import android.graphics.Point; -import android.media.MediaCodecInfo; -import android.util.Log; -import android.util.Pair; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import androidx.annotation.VisibleForTesting; -import c.d.b.a.a; -import c.i.a.c.i2.f0; -import c.i.a.c.x1.e; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.Objects; -/* compiled from: MediaCodecInfo */ -public final class s { - public final String a; - public final String b; - - /* renamed from: c reason: collision with root package name */ - public final String f770c; - @Nullable - public final MediaCodecInfo.CodecCapabilities d; - public final boolean e; - public final boolean f; - public final boolean g; - - @VisibleForTesting - public s(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) { - Objects.requireNonNull(str); - this.a = str; - this.b = str2; - this.f770c = str3; - this.d = codecCapabilities; - this.e = z5; - this.f = z7; - this.g = c.i.a.c.i2.s.j(str2); - } - - @RequiresApi(21) - public static Point a(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2) { - int widthAlignment = videoCapabilities.getWidthAlignment(); - int heightAlignment = videoCapabilities.getHeightAlignment(); - return new Point(f0.f(i, widthAlignment) * widthAlignment, f0.f(i2, heightAlignment) * heightAlignment); - } - - @RequiresApi(21) - public static boolean b(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2, double d) { - Point a = a(videoCapabilities, i, i2); - int i3 = a.x; - int i4 = a.y; - return (d == -1.0d || d < 1.0d) ? videoCapabilities.isSizeSupported(i3, i4) : videoCapabilities.areSizeAndRateSupported(i3, i4, Math.floor(d)); - } - - /* JADX WARNING: Code restructure failed: missing block: B:44:0x0076, code lost: - if ((c.i.a.c.i2.f0.a >= 21 && r15.isFeatureSupported("secure-playback")) != false) goto L_0x007b; - */ - /* JADX WARNING: Removed duplicated region for block: B:23:0x0048 */ - /* JADX WARNING: Removed duplicated region for block: B:27:0x004f */ - /* JADX WARNING: Removed duplicated region for block: B:37:0x0065 */ - public static s i(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { - boolean z7; - boolean z8; - boolean z9; - boolean z10; - if (!z5 && codecCapabilities != null) { - int i = f0.a; - if (i >= 19 && codecCapabilities.isFeatureSupported("adaptive-playback")) { - if (i <= 22) { - String str4 = f0.d; - if (("ODROID-XU3".equals(str4) || "Nexus 10".equals(str4)) && ("OMX.Exynos.AVC.Decoder".equals(str) || "OMX.Exynos.AVC.Decoder.secure".equals(str))) { - z10 = true; - if (!z10) { - z7 = true; - if (codecCapabilities != null) { - if (f0.a >= 21 && codecCapabilities.isFeatureSupported("tunneled-playback")) { - z8 = true; - if (!z6) { - if (codecCapabilities != null) { - } - z9 = false; - return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); - } - z9 = true; - return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); - } - } - z8 = false; - if (!z6) { - } - z9 = true; - return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); - } - } - } - z10 = false; - if (!z10) { - } - } - } - z7 = false; - if (codecCapabilities != null) { - } - z8 = false; - if (!z6) { - } - z9 = true; - return new s(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); - } - - public e c(Format format, Format format2) { - boolean z2 = false; - int i = !f0.a(format.t, format2.t) ? 8 : 0; - if (this.g) { - if (format.B != format2.B) { - i |= 1024; - } - if (!this.e && !(format.f2214y == format2.f2214y && format.f2215z == format2.f2215z)) { - i |= 512; - } - if (!f0.a(format.F, format2.F)) { - i |= 2048; - } - String str = this.a; - if (f0.d.startsWith("SM-T230") && "OMX.MARVELL.VIDEO.HW.CODA7542DECODER".equals(str)) { - z2 = true; - } - if (z2 && !format.b(format2)) { - i |= 2; - } - if (i == 0) { - return new e(this.a, format, format2, format.b(format2) ? 3 : 2, 0); - } - } else { - if (format.G != format2.G) { - i |= 4096; - } - if (format.H != format2.H) { - i |= 8192; - } - if (format.I != format2.I) { - i |= 16384; - } - if (i == 0 && "audio/mp4a-latm".equals(this.b)) { - Pair c2 = MediaCodecUtil.c(format); - Pair c3 = MediaCodecUtil.c(format2); - if (!(c2 == null || c3 == null)) { - int intValue = ((Integer) c2.first).intValue(); - int intValue2 = ((Integer) c3.first).intValue(); - if (intValue == 42 && intValue2 == 42) { - return new e(this.a, format, format2, 3, 0); - } - } - } - if (!format.b(format2)) { - i |= 32; - } - if ("audio/opus".equals(this.b)) { - i |= 2; - } - if (i == 0) { - return new e(this.a, format, format2, 1, 0); - } - } - return new e(this.a, format, format2, 0, i); - } - - public MediaCodecInfo.CodecProfileLevel[] d() { - MediaCodecInfo.CodecProfileLevel[] codecProfileLevelArr; - MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; - return (codecCapabilities == null || (codecProfileLevelArr = codecCapabilities.profileLevels) == null) ? new MediaCodecInfo.CodecProfileLevel[0] : codecProfileLevelArr; - } - - /* JADX WARNING: Removed duplicated region for block: B:156:? A[RETURN, SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:157:? A[RETURN, SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:70:0x0118 A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:71:0x0119 */ - public boolean e(Format format) throws MediaCodecUtil.DecoderQueryException { - boolean z2; - boolean z3; - boolean z4; - int i; - String c2; - MediaCodecInfo.VideoCapabilities videoCapabilities; - String str = format.q; - int i2 = 16; - boolean z5 = false; - if (!(str == null || this.b == null || (c2 = c.i.a.c.i2.s.c(str)) == null)) { - if (!this.b.equals(c2)) { - StringBuilder K = a.K("codec.mime "); - K.append(format.q); - K.append(", "); - K.append(c2); - h(K.toString()); - } else { - Pair c3 = MediaCodecUtil.c(format); - if (c3 != null) { - int intValue = ((Integer) c3.first).intValue(); - int intValue2 = ((Integer) c3.second).intValue(); - if (this.g || intValue == 42) { - MediaCodecInfo.CodecProfileLevel[] d = d(); - if (f0.a <= 23 && "video/x-vnd.on2.vp9".equals(this.b) && d.length == 0) { - MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; - int intValue3 = (codecCapabilities == null || (videoCapabilities = codecCapabilities.getVideoCapabilities()) == null) ? 0 : videoCapabilities.getBitrateRange().getUpper().intValue(); - int i3 = intValue3 >= 180000000 ? 1024 : intValue3 >= 120000000 ? 512 : intValue3 >= 60000000 ? 256 : intValue3 >= 30000000 ? 128 : intValue3 >= 18000000 ? 64 : intValue3 >= 12000000 ? 32 : intValue3 >= 7200000 ? 16 : intValue3 >= 3600000 ? 8 : intValue3 >= 1800000 ? 4 : intValue3 >= 800000 ? 2 : 1; - MediaCodecInfo.CodecProfileLevel codecProfileLevel = new MediaCodecInfo.CodecProfileLevel(); - codecProfileLevel.profile = 1; - codecProfileLevel.level = i3; - d = new MediaCodecInfo.CodecProfileLevel[]{codecProfileLevel}; - } - for (MediaCodecInfo.CodecProfileLevel codecProfileLevel2 : d) { - if (codecProfileLevel2.profile != intValue || codecProfileLevel2.level < intValue2) { - } - } - StringBuilder K2 = a.K("codec.profileLevel, "); - K2.append(format.q); - K2.append(", "); - K2.append(c2); - h(K2.toString()); - } - } - } - z2 = false; - if (z2) { - return false; - } - if (this.g) { - int i4 = format.f2214y; - if (i4 <= 0 || (i = format.f2215z) <= 0) { - return true; - } - if (f0.a >= 21) { - return g(i4, i, (double) format.A); - } - if (i4 * i <= MediaCodecUtil.i()) { - z5 = true; - } - if (!z5) { - StringBuilder K3 = a.K("legacyFrameSize, "); - K3.append(format.f2214y); - K3.append("x"); - K3.append(format.f2215z); - h(K3.toString()); - } - return z5; - } - int i5 = f0.a; - if (i5 >= 21) { - int i6 = format.H; - if (i6 != -1) { - MediaCodecInfo.CodecCapabilities codecCapabilities2 = this.d; - if (codecCapabilities2 == null) { - h("sampleRate.caps"); - } else { - MediaCodecInfo.AudioCapabilities audioCapabilities = codecCapabilities2.getAudioCapabilities(); - if (audioCapabilities == null) { - h("sampleRate.aCaps"); - } else if (!audioCapabilities.isSampleRateSupported(i6)) { - h("sampleRate.support, " + i6); - } else { - z4 = true; - if (!z4) { - return false; - } - } - } - z4 = false; - if (!z4) { - } - } - int i7 = format.G; - if (i7 != -1) { - MediaCodecInfo.CodecCapabilities codecCapabilities3 = this.d; - if (codecCapabilities3 == null) { - h("channelCount.caps"); - } else { - MediaCodecInfo.AudioCapabilities audioCapabilities2 = codecCapabilities3.getAudioCapabilities(); - if (audioCapabilities2 == null) { - h("channelCount.aCaps"); - } else { - String str2 = this.a; - String str3 = this.b; - int maxInputChannelCount = audioCapabilities2.getMaxInputChannelCount(); - if (maxInputChannelCount <= 1 && ((i5 < 26 || maxInputChannelCount <= 0) && !"audio/mpeg".equals(str3) && !"audio/3gpp".equals(str3) && !"audio/amr-wb".equals(str3) && !"audio/mp4a-latm".equals(str3) && !"audio/vorbis".equals(str3) && !"audio/opus".equals(str3) && !"audio/raw".equals(str3) && !"audio/flac".equals(str3) && !"audio/g711-alaw".equals(str3) && !"audio/g711-mlaw".equals(str3) && !"audio/gsm".equals(str3))) { - if ("audio/ac3".equals(str3)) { - i2 = 6; - } else if (!"audio/eac3".equals(str3)) { - i2 = 30; - } - Log.w("MediaCodecInfo", "AssumedMaxChannelAdjustment: " + str2 + ", [" + maxInputChannelCount + " to " + i2 + "]"); - maxInputChannelCount = i2; - } - if (maxInputChannelCount < i7) { - h("channelCount.support, " + i7); - } else { - z3 = true; - if (z3) { - return false; - } - } - } - } - z3 = false; - if (z3) { - } - } - } - return true; - } - z2 = true; - if (z2) { - } - } - - public boolean f(Format format) { - if (this.g) { - return this.e; - } - Pair c2 = MediaCodecUtil.c(format); - return c2 != null && ((Integer) c2.first).intValue() == 42; - } - - @RequiresApi(21) - public boolean g(int i, int i2, double d) { - MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; - if (codecCapabilities == null) { - h("sizeAndRate.caps"); - return false; - } - MediaCodecInfo.VideoCapabilities videoCapabilities = codecCapabilities.getVideoCapabilities(); - if (videoCapabilities == null) { - h("sizeAndRate.vCaps"); - return false; - } - if (!b(videoCapabilities, i, i2, d)) { - if (i < i2) { - if ((!"OMX.MTK.VIDEO.DECODER.HEVC".equals(this.a) || !"mcv5a".equals(f0.b)) && b(videoCapabilities, i2, i, d)) { - StringBuilder M = a.M("sizeAndRate.rotated, ", i, "x", i2, "x"); - M.append(d); - StringBuilder P = a.P("AssumedSupport [", M.toString(), "] ["); - P.append(this.a); - P.append(", "); - P.append(this.b); - P.append("] ["); - P.append(f0.e); - P.append("]"); - Log.d("MediaCodecInfo", P.toString()); - } - } - StringBuilder M2 = a.M("sizeAndRate.support, ", i, "x", i2, "x"); - M2.append(d); - h(M2.toString()); - return false; - } - return true; - } - - public final void h(String str) { - StringBuilder P = a.P("NoSupport [", str, "] ["); - P.append(this.a); - P.append(", "); - P.append(this.b); - P.append("] ["); - P.append(f0.e); - P.append("]"); - Log.d("MediaCodecInfo", P.toString()); - } - - public String toString() { - return this.a; - } -} diff --git a/app/src/main/java/c/i/a/c/b2/t.java b/app/src/main/java/c/i/a/c/b2/t.java deleted file mode 100644 index ea74315de3..0000000000 --- a/app/src/main/java/c/i/a/c/b2/t.java +++ /dev/null @@ -1,10 +0,0 @@ -package c.i.a.c.b2; - -import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; -import java.util.List; -/* compiled from: MediaCodecSelector */ -public interface t { - public static final /* synthetic */ int a = 0; - - List a(String str, boolean z2, boolean z3) throws MediaCodecUtil.DecoderQueryException; -} diff --git a/app/src/main/java/c/i/a/c/b2/u.java b/app/src/main/java/c/i/a/c/b2/u.java deleted file mode 100644 index bc15f565d7..0000000000 --- a/app/src/main/java/c/i/a/c/b2/u.java +++ /dev/null @@ -1,140 +0,0 @@ -package c.i.a.c.b2; - -import android.media.MediaCodec; -import android.media.MediaCrypto; -import android.media.MediaFormat; -import android.os.Bundle; -import android.os.Handler; -import android.view.Surface; -import androidx.annotation.Nullable; -import androidx.annotation.RequiresApi; -import c.i.a.c.b2.r; -import c.i.a.c.i2.f0; -import java.nio.ByteBuffer; -/* compiled from: SynchronousMediaCodecAdapter */ -public final class u implements r { - public final MediaCodec a; - @Nullable - public ByteBuffer[] b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public ByteBuffer[] f771c; - - /* compiled from: SynchronousMediaCodecAdapter */ - public static final class b implements r.a { - @Override // c.i.a.c.b2.r.a - public r a(MediaCodec mediaCodec) { - return new u(mediaCodec, null); - } - } - - public u(MediaCodec mediaCodec, a aVar) { - this.a = mediaCodec; - } - - @Override // c.i.a.c.b2.r - public void a(int i, int i2, c.i.a.c.x1.b bVar, long j, int i3) { - this.a.queueSecureInputBuffer(i, i2, bVar.i, j, i3); - } - - @Override // c.i.a.c.b2.r - @RequiresApi(21) - public void b(int i, long j) { - this.a.releaseOutputBuffer(i, j); - } - - @Override // c.i.a.c.b2.r - public int c() { - return this.a.dequeueInputBuffer(0); - } - - @Override // c.i.a.c.b2.r - public void configure(@Nullable MediaFormat mediaFormat, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i) { - this.a.configure(mediaFormat, surface, mediaCrypto, i); - } - - @Override // c.i.a.c.b2.r - public int d(MediaCodec.BufferInfo bufferInfo) { - int dequeueOutputBuffer; - do { - dequeueOutputBuffer = this.a.dequeueOutputBuffer(bufferInfo, 0); - if (dequeueOutputBuffer == -3 && f0.a < 21) { - this.f771c = this.a.getOutputBuffers(); - continue; - } - } while (dequeueOutputBuffer == -3); - return dequeueOutputBuffer; - } - - @Override // c.i.a.c.b2.r - @RequiresApi(23) - public void e(r.b bVar, Handler handler) { - this.a.setOnFrameRenderedListener(new i(this, bVar), handler); - } - - @Override // c.i.a.c.b2.r - public void f(int i) { - this.a.setVideoScalingMode(i); - } - - @Override // c.i.a.c.b2.r - public void flush() { - this.a.flush(); - } - - @Override // c.i.a.c.b2.r - @Nullable - public ByteBuffer g(int i) { - return f0.a >= 21 ? this.a.getInputBuffer(i) : this.b[i]; - } - - @Override // c.i.a.c.b2.r - public MediaFormat getOutputFormat() { - return this.a.getOutputFormat(); - } - - @Override // c.i.a.c.b2.r - @RequiresApi(23) - public void h(Surface surface) { - this.a.setOutputSurface(surface); - } - - @Override // c.i.a.c.b2.r - @Nullable - public ByteBuffer i(int i) { - return f0.a >= 21 ? this.a.getOutputBuffer(i) : this.f771c[i]; - } - - @Override // c.i.a.c.b2.r - public void queueInputBuffer(int i, int i2, int i3, long j, int i4) { - this.a.queueInputBuffer(i, i2, i3, j, i4); - } - - @Override // c.i.a.c.b2.r - public void release() { - this.b = null; - this.f771c = null; - this.a.release(); - } - - @Override // c.i.a.c.b2.r - public void releaseOutputBuffer(int i, boolean z2) { - this.a.releaseOutputBuffer(i, z2); - } - - @Override // c.i.a.c.b2.r - @RequiresApi(19) - public void setParameters(Bundle bundle) { - this.a.setParameters(bundle); - } - - @Override // c.i.a.c.b2.r - public void start() { - this.a.start(); - if (f0.a < 21) { - this.b = this.a.getInputBuffers(); - this.f771c = this.a.getOutputBuffers(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/c.java b/app/src/main/java/c/i/a/c/c.java deleted file mode 100644 index 831d31972f..0000000000 --- a/app/src/main/java/c/i/a/c/c.java +++ /dev/null @@ -1,20 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class c implements o.a { - public final /* synthetic */ c1 a; - public final /* synthetic */ int b; - - public /* synthetic */ c(c1 c1Var, int i) { - this.a = c1Var; - this.b = i; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - c1 c1Var = this.a; - ((g1.a) obj).p(c1Var.b, this.b); - } -} diff --git a/app/src/main/java/c/i/a/c/c0.java b/app/src/main/java/c/i/a/c/c0.java deleted file mode 100644 index d5bff2c997..0000000000 --- a/app/src/main/java/c/i/a/c/c0.java +++ /dev/null @@ -1,226 +0,0 @@ -package c.i.a.c; - -import android.util.Pair; -import c.i.a.c.d2.h0; -import c.i.a.c.i2.f0; -import c.i.a.c.r1; -import java.util.Objects; -/* compiled from: AbstractConcatenatedTimeline */ -public abstract class c0 extends r1 { - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final h0 f772c; - public final boolean d; - - public c0(boolean z2, h0 h0Var) { - this.d = z2; - this.f772c = h0Var; - this.b = h0Var.b(); - } - - @Override // c.i.a.c.r1 - public int a(boolean z2) { - if (this.b == 0) { - return -1; - } - int i = 0; - if (this.d) { - z2 = false; - } - if (z2) { - i = this.f772c.c(); - } - do { - i1 i1Var = (i1) this; - if (i1Var.i[i].q()) { - i = r(i, z2); - } else { - return i1Var.i[i].a(z2) + i1Var.h[i]; - } - } while (i != -1); - return -1; - } - - @Override // c.i.a.c.r1 - public final int b(Object obj) { - int b; - if (!(obj instanceof Pair)) { - return -1; - } - Pair pair = (Pair) obj; - Object obj2 = pair.first; - Object obj3 = pair.second; - i1 i1Var = (i1) this; - Integer num = i1Var.k.get(obj2); - int intValue = num == null ? -1 : num.intValue(); - if (intValue == -1 || (b = i1Var.i[intValue].b(obj3)) == -1) { - return -1; - } - return i1Var.g[intValue] + b; - } - - @Override // c.i.a.c.r1 - public int c(boolean z2) { - int i = this.b; - if (i == 0) { - return -1; - } - if (this.d) { - z2 = false; - } - int g = z2 ? this.f772c.g() : i - 1; - do { - i1 i1Var = (i1) this; - if (i1Var.i[g].q()) { - g = s(g, z2); - } else { - return i1Var.i[g].c(z2) + i1Var.h[g]; - } - } while (g != -1); - return -1; - } - - @Override // c.i.a.c.r1 - public int e(int i, int i2, boolean z2) { - int i3 = 0; - if (this.d) { - if (i2 == 1) { - i2 = 2; - } - z2 = false; - } - i1 i1Var = (i1) this; - int d = f0.d(i1Var.h, i + 1, false, false); - int i4 = i1Var.h[d]; - r1 r1Var = i1Var.i[d]; - int i5 = i - i4; - if (i2 != 2) { - i3 = i2; - } - int e = r1Var.e(i5, i3, z2); - if (e != -1) { - return i4 + e; - } - int r = r(d, z2); - while (r != -1 && i1Var.i[r].q()) { - r = r(r, z2); - } - if (r != -1) { - return i1Var.i[r].a(z2) + i1Var.h[r]; - } else if (i2 == 2) { - return a(z2); - } else { - return -1; - } - } - - @Override // c.i.a.c.r1 - public final r1.b g(int i, r1.b bVar, boolean z2) { - i1 i1Var = (i1) this; - int d = f0.d(i1Var.g, i + 1, false, false); - int i2 = i1Var.h[d]; - i1Var.i[d].g(i - i1Var.g[d], bVar, z2); - bVar.f952c += i2; - if (z2) { - Object obj = i1Var.j[d]; - Object obj2 = bVar.b; - Objects.requireNonNull(obj2); - bVar.b = Pair.create(obj, obj2); - } - return bVar; - } - - @Override // c.i.a.c.r1 - public final r1.b h(Object obj, r1.b bVar) { - Pair pair = (Pair) obj; - Object obj2 = pair.first; - Object obj3 = pair.second; - i1 i1Var = (i1) this; - Integer num = i1Var.k.get(obj2); - int intValue = num == null ? -1 : num.intValue(); - int i = i1Var.h[intValue]; - i1Var.i[intValue].h(obj3, bVar); - bVar.f952c += i; - bVar.b = obj; - return bVar; - } - - @Override // c.i.a.c.r1 - public int l(int i, int i2, boolean z2) { - int i3 = 0; - if (this.d) { - if (i2 == 1) { - i2 = 2; - } - z2 = false; - } - i1 i1Var = (i1) this; - int d = f0.d(i1Var.h, i + 1, false, false); - int i4 = i1Var.h[d]; - r1 r1Var = i1Var.i[d]; - int i5 = i - i4; - if (i2 != 2) { - i3 = i2; - } - int l = r1Var.l(i5, i3, z2); - if (l != -1) { - return i4 + l; - } - int s2 = s(d, z2); - while (s2 != -1 && i1Var.i[s2].q()) { - s2 = s(s2, z2); - } - if (s2 != -1) { - return i1Var.i[s2].c(z2) + i1Var.h[s2]; - } else if (i2 == 2) { - return c(z2); - } else { - return -1; - } - } - - @Override // c.i.a.c.r1 - public final Object m(int i) { - i1 i1Var = (i1) this; - int d = f0.d(i1Var.g, i + 1, false, false); - return Pair.create(i1Var.j[d], i1Var.i[d].m(i - i1Var.g[d])); - } - - @Override // c.i.a.c.r1 - public final r1.c o(int i, r1.c cVar, long j) { - i1 i1Var = (i1) this; - int d = f0.d(i1Var.h, i + 1, false, false); - int i2 = i1Var.h[d]; - int i3 = i1Var.g[d]; - i1Var.i[d].o(i - i2, cVar, j); - Object obj = i1Var.j[d]; - if (!r1.c.a.equals(cVar.f953c)) { - obj = Pair.create(obj, cVar.f953c); - } - cVar.f953c = obj; - cVar.o += i3; - cVar.p += i3; - return cVar; - } - - public final int r(int i, boolean z2) { - if (z2) { - return this.f772c.e(i); - } - if (i < this.b - 1) { - return i + 1; - } - return -1; - } - - public final int s(int i, boolean z2) { - if (z2) { - return this.f772c.d(i); - } - if (i > 0) { - return i - 1; - } - return -1; - } -} diff --git a/app/src/main/java/c/i/a/c/c1.java b/app/src/main/java/c/i/a/c/c1.java deleted file mode 100644 index b04fc19c53..0000000000 --- a/app/src/main/java/c/i/a/c/c1.java +++ /dev/null @@ -1,109 +0,0 @@ -package c.i.a.c; - -import androidx.annotation.CheckResult; -import androidx.annotation.Nullable; -import c.i.a.c.d2.y; -import c.i.a.c.f2.m; -import c.i.b.b.a; -import c.i.b.b.q0; -import c.i.b.b.u; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.util.List; -/* compiled from: PlaybackInfo */ -public final class c1 { - public static final y.a a = new y.a(new Object()); - public final r1 b; - - /* renamed from: c reason: collision with root package name */ - public final y.a f773c; - public final long d; - public final int e; - @Nullable - public final ExoPlaybackException f; - public final boolean g; - public final TrackGroupArray h; - public final m i; - public final List j; - public final y.a k; - public final boolean l; - public final int m; - public final d1 n; - public final boolean o; - public final boolean p; - public volatile long q; - public volatile long r; - - /* renamed from: s reason: collision with root package name */ - public volatile long f774s; - - public c1(r1 r1Var, y.a aVar, long j, int i, @Nullable ExoPlaybackException exoPlaybackException, boolean z2, TrackGroupArray trackGroupArray, m mVar, List list, y.a aVar2, boolean z3, int i2, d1 d1Var, long j2, long j3, long j4, boolean z4, boolean z5) { - this.b = r1Var; - this.f773c = aVar; - this.d = j; - this.e = i; - this.f = exoPlaybackException; - this.g = z2; - this.h = trackGroupArray; - this.i = mVar; - this.j = list; - this.k = aVar2; - this.l = z3; - this.m = i2; - this.n = d1Var; - this.q = j2; - this.r = j3; - this.f774s = j4; - this.o = z4; - this.p = z5; - } - - public static c1 i(m mVar) { - r1 r1Var = r1.a; - y.a aVar = a; - TrackGroupArray trackGroupArray = TrackGroupArray.i; - a aVar2 = u.j; - return new c1(r1Var, aVar, -9223372036854775807L, 1, null, false, trackGroupArray, mVar, q0.k, aVar, false, 0, d1.a, 0, 0, 0, false, false); - } - - @CheckResult - public c1 a(y.a aVar) { - return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, aVar, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p); - } - - @CheckResult - public c1 b(y.a aVar, long j, long j2, long j3, TrackGroupArray trackGroupArray, m mVar, List list) { - return new c1(this.b, aVar, j2, this.e, this.f, this.g, trackGroupArray, mVar, list, this.k, this.l, this.m, this.n, this.q, j3, j, this.o, this.p); - } - - @CheckResult - public c1 c(boolean z2) { - return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, z2, this.p); - } - - @CheckResult - public c1 d(boolean z2, int i) { - return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, z2, i, this.n, this.q, this.r, this.f774s, this.o, this.p); - } - - @CheckResult - public c1 e(@Nullable ExoPlaybackException exoPlaybackException) { - return new c1(this.b, this.f773c, this.d, this.e, exoPlaybackException, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p); - } - - @CheckResult - public c1 f(d1 d1Var) { - return new c1(this.b, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, d1Var, this.q, this.r, this.f774s, this.o, this.p); - } - - @CheckResult - public c1 g(int i) { - return new c1(this.b, this.f773c, this.d, i, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p); - } - - @CheckResult - public c1 h(r1 r1Var) { - return new c1(r1Var, this.f773c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.q, this.r, this.f774s, this.o, this.p); - } -} diff --git a/app/src/main/java/c/i/a/c/c2/a.java b/app/src/main/java/c/i/a/c/c2/a.java deleted file mode 100644 index 1ac2670537..0000000000 --- a/app/src/main/java/c/i/a/c/c2/a.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c.c2; - -import androidx.annotation.Nullable; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.metadata.Metadata; -/* compiled from: Metadata */ -public final /* synthetic */ class a { - @Nullable - public static byte[] a(Metadata.Entry entry) { - return null; - } - - @Nullable - public static Format b(Metadata.Entry entry) { - return null; - } -} diff --git a/app/src/main/java/c/i/a/c/c2/b.java b/app/src/main/java/c/i/a/c/c2/b.java deleted file mode 100644 index d3c28296d6..0000000000 --- a/app/src/main/java/c/i/a/c/c2/b.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.c2; - -import androidx.annotation.Nullable; -import com.google.android.exoplayer2.metadata.Metadata; -/* compiled from: MetadataDecoder */ -public interface b { - @Nullable - Metadata a(d dVar); -} diff --git a/app/src/main/java/c/i/a/c/c2/c.java b/app/src/main/java/c/i/a/c/c2/c.java deleted file mode 100644 index 5e0a81f817..0000000000 --- a/app/src/main/java/c/i/a/c/c2/c.java +++ /dev/null @@ -1,75 +0,0 @@ -package c.i.a.c.c2; - -import c.i.a.c.c2.k.b; -import com.google.android.exoplayer2.Format; -/* compiled from: MetadataDecoderFactory */ -public interface c { - public static final c a = new a(); - - /* compiled from: MetadataDecoderFactory */ - public class a implements c { - @Override // c.i.a.c.c2.c - public boolean a(Format format) { - String str = format.t; - return "application/id3".equals(str) || "application/x-emsg".equals(str) || "application/x-scte35".equals(str) || "application/x-icy".equals(str) || "application/vnd.dvb.ait".equals(str); - } - - @Override // c.i.a.c.c2.c - public b b(Format format) { - String str = format.t; - if (str != null) { - str.hashCode(); - char c2 = 65535; - switch (str.hashCode()) { - case -1354451219: - if (str.equals("application/vnd.dvb.ait")) { - c2 = 0; - break; - } - break; - case -1348231605: - if (str.equals("application/x-icy")) { - c2 = 1; - break; - } - break; - case -1248341703: - if (str.equals("application/id3")) { - c2 = 2; - break; - } - break; - case 1154383568: - if (str.equals("application/x-emsg")) { - c2 = 3; - break; - } - break; - case 1652648887: - if (str.equals("application/x-scte35")) { - c2 = 4; - break; - } - break; - } - switch (c2) { - case 0: - return new c.i.a.c.c2.h.a(); - case 1: - return new c.i.a.c.c2.j.a(); - case 2: - return new b(); - case 3: - return new c.i.a.c.c2.i.a(); - case 4: - return new c.i.a.c.c2.l.a(); - } - } - throw new IllegalArgumentException(c.d.b.a.a.s("Attempted to create decoder for unsupported MIME type: ", str)); - } - } - - boolean a(Format format); - - b b(Format format); -} diff --git a/app/src/main/java/c/i/a/c/c2/d.java b/app/src/main/java/c/i/a/c/c2/d.java deleted file mode 100644 index 37b20006d3..0000000000 --- a/app/src/main/java/c/i/a/c/c2/d.java +++ /dev/null @@ -1,11 +0,0 @@ -package c.i.a.c.c2; - -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -/* compiled from: MetadataInputBuffer */ -public final class d extends DecoderInputBuffer { - public long q; - - public d() { - super(1); - } -} diff --git a/app/src/main/java/c/i/a/c/c2/e.java b/app/src/main/java/c/i/a/c/c2/e.java deleted file mode 100644 index bec4d232c4..0000000000 --- a/app/src/main/java/c/i/a/c/c2/e.java +++ /dev/null @@ -1,7 +0,0 @@ -package c.i.a.c.c2; - -import com.google.android.exoplayer2.metadata.Metadata; -/* compiled from: MetadataOutput */ -public interface e { - void l(Metadata metadata); -} diff --git a/app/src/main/java/c/i/a/c/c2/f.java b/app/src/main/java/c/i/a/c/c2/f.java deleted file mode 100644 index f64db8c473..0000000000 --- a/app/src/main/java/c/i/a/c/c2/f.java +++ /dev/null @@ -1,203 +0,0 @@ -package c.i.a.c.c2; - -import android.os.Handler; -import android.os.Looper; -import android.os.Message; -import androidx.annotation.Nullable; -import c.i.a.c.g0; -import c.i.a.c.i2.f0; -import c.i.a.c.s0; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.metadata.Metadata; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; -/* compiled from: MetadataRenderer */ -public final class f extends g0 implements Handler.Callback { - public int A; - @Nullable - public b B; - public boolean C; - public boolean D; - public long E; - public final c t; - public final e u; - @Nullable - public final Handler v; - public final d w; - - /* renamed from: x reason: collision with root package name */ - public final Metadata[] f775x; - - /* renamed from: y reason: collision with root package name */ - public final long[] f776y; - - /* renamed from: z reason: collision with root package name */ - public int f777z; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public f(e eVar, @Nullable Looper looper) { - super(5); - Handler handler; - c cVar = c.a; - Objects.requireNonNull(eVar); - this.u = eVar; - if (looper == null) { - handler = null; - } else { - int i = f0.a; - handler = new Handler(looper, this); - } - this.v = handler; - this.t = cVar; - this.w = new d(); - this.f775x = new Metadata[5]; - this.f776y = new long[5]; - } - - @Override // c.i.a.c.g0 - public void B() { - Arrays.fill(this.f775x, (Object) null); - this.f777z = 0; - this.A = 0; - this.B = null; - } - - @Override // c.i.a.c.g0 - public void D(long j, boolean z2) { - Arrays.fill(this.f775x, (Object) null); - this.f777z = 0; - this.A = 0; - this.C = false; - this.D = false; - } - - @Override // c.i.a.c.g0 - public void H(Format[] formatArr, long j, long j2) { - this.B = this.t.b(formatArr[0]); - } - - public final void J(Metadata metadata, List list) { - int i = 0; - while (true) { - Metadata.Entry[] entryArr = metadata.i; - if (i < entryArr.length) { - Format x2 = entryArr[i].x(); - if (x2 == null || !this.t.a(x2)) { - list.add(metadata.i[i]); - } else { - b b = this.t.b(x2); - byte[] n0 = metadata.i[i].n0(); - Objects.requireNonNull(n0); - this.w.p(); - this.w.r(n0.length); - ByteBuffer byteBuffer = this.w.k; - int i2 = f0.a; - byteBuffer.put(n0); - this.w.s(); - Metadata a = b.a(this.w); - if (a != null) { - J(a, list); - } - } - i++; - } else { - return; - } - } - } - - @Override // c.i.a.c.l1 - public int a(Format format) { - if (!this.t.a(format)) { - return 0; - } - return (format.M == null ? 4 : 2) | 0 | 0; - } - - @Override // c.i.a.c.k1 - public boolean b() { - return this.D; - } - - @Override // c.i.a.c.k1 - public boolean d() { - return true; - } - - @Override // c.i.a.c.k1, c.i.a.c.l1 - public String getName() { - return "MetadataRenderer"; - } - - @Override // android.os.Handler.Callback - public boolean handleMessage(Message message) { - if (message.what == 0) { - this.u.l((Metadata) message.obj); - return true; - } - throw new IllegalStateException(); - } - - @Override // c.i.a.c.k1 - public void q(long j, long j2) { - if (!this.C && this.A < 5) { - this.w.p(); - s0 A = A(); - int I = I(A, this.w, false); - if (I == -4) { - if (this.w.n()) { - this.C = true; - } else { - d dVar = this.w; - dVar.q = this.E; - dVar.s(); - b bVar = this.B; - int i = f0.a; - Metadata a = bVar.a(this.w); - if (a != null) { - ArrayList arrayList = new ArrayList(a.i.length); - J(a, arrayList); - if (!arrayList.isEmpty()) { - Metadata metadata = new Metadata(arrayList); - int i2 = this.f777z; - int i3 = this.A; - int i4 = (i2 + i3) % 5; - this.f775x[i4] = metadata; - this.f776y[i4] = this.w.m; - this.A = i3 + 1; - } - } - } - } else if (I == -5) { - Format format = A.b; - Objects.requireNonNull(format); - this.E = format.f2213x; - } - } - if (this.A > 0) { - long[] jArr = this.f776y; - int i5 = this.f777z; - if (jArr[i5] <= j) { - Metadata metadata2 = this.f775x[i5]; - int i6 = f0.a; - Handler handler = this.v; - if (handler != null) { - handler.obtainMessage(0, metadata2).sendToTarget(); - } else { - this.u.l(metadata2); - } - Metadata[] metadataArr = this.f775x; - int i7 = this.f777z; - metadataArr[i7] = null; - this.f777z = (i7 + 1) % 5; - this.A--; - } - } - if (this.C && this.A == 0) { - this.D = true; - } - } -} diff --git a/app/src/main/java/c/i/a/c/c2/g.java b/app/src/main/java/c/i/a/c/c2/g.java deleted file mode 100644 index 0a7ea6c016..0000000000 --- a/app/src/main/java/c/i/a/c/c2/g.java +++ /dev/null @@ -1,24 +0,0 @@ -package c.i.a.c.c2; - -import androidx.annotation.Nullable; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.metadata.Metadata; -import java.nio.ByteBuffer; -import java.util.Objects; -/* compiled from: SimpleMetadataDecoder */ -public abstract class g implements b { - @Override // c.i.a.c.c2.b - @Nullable - public final Metadata a(d dVar) { - ByteBuffer byteBuffer = dVar.k; - Objects.requireNonNull(byteBuffer); - AnimatableValueParser.k(byteBuffer.position() == 0 && byteBuffer.hasArray() && byteBuffer.arrayOffset() == 0); - if (dVar.m()) { - return null; - } - return b(dVar, byteBuffer); - } - - @Nullable - public abstract Metadata b(d dVar, ByteBuffer byteBuffer); -} diff --git a/app/src/main/java/c/i/a/c/c2/h/a.java b/app/src/main/java/c/i/a/c/c2/h/a.java deleted file mode 100644 index a2b243116a..0000000000 --- a/app/src/main/java/c/i/a/c/c2/h/a.java +++ /dev/null @@ -1,72 +0,0 @@ -package c.i.a.c.c2.h; - -import androidx.annotation.Nullable; -import c.i.a.c.c2.d; -import c.i.a.c.c2.g; -import c.i.a.c.i2.v; -import c.i.b.a.c; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.dvbsi.AppInfoTable; -import java.nio.ByteBuffer; -import java.nio.charset.Charset; -import java.util.ArrayList; -/* compiled from: AppInfoTableDecoder */ -public final class a extends g { - @Override // c.i.a.c.c2.g - @Nullable - public Metadata b(d dVar, ByteBuffer byteBuffer) { - if (byteBuffer.get() == 116) { - v vVar = new v(byteBuffer.array(), byteBuffer.limit()); - vVar.m(12); - int d = (vVar.d() + vVar.g(12)) - 4; - vVar.m(44); - vVar.n(vVar.g(12)); - vVar.m(16); - ArrayList arrayList = new ArrayList(); - while (vVar.d() < d) { - vVar.m(48); - int g = vVar.g(8); - vVar.m(4); - int d2 = vVar.d() + vVar.g(12); - String str = null; - String str2 = null; - while (vVar.d() < d2) { - int g2 = vVar.g(8); - int g3 = vVar.g(8); - int d3 = vVar.d() + g3; - if (g2 == 2) { - int g4 = vVar.g(16); - vVar.m(8); - if (g4 != 3) { - } - while (vVar.d() < d3) { - int g5 = vVar.g(8); - Charset charset = c.a; - byte[] bArr = new byte[g5]; - vVar.i(bArr, 0, g5); - str = new String(bArr, charset); - int g6 = vVar.g(8); - for (int i = 0; i < g6; i++) { - vVar.n(vVar.g(8)); - } - } - } else if (g2 == 21) { - Charset charset2 = c.a; - byte[] bArr2 = new byte[g3]; - vVar.i(bArr2, 0, g3); - str2 = new String(bArr2, charset2); - } - vVar.k(d3 * 8); - } - vVar.k(d2 * 8); - if (!(str == null || str2 == null)) { - arrayList.add(new AppInfoTable(g, c.d.b.a.a.s(str, str2))); - } - } - if (!arrayList.isEmpty()) { - return new Metadata(arrayList); - } - } - return null; - } -} diff --git a/app/src/main/java/c/i/a/c/c2/i/a.java b/app/src/main/java/c/i/a/c/c2/i/a.java deleted file mode 100644 index 8a8ead7e7c..0000000000 --- a/app/src/main/java/c/i/a/c/c2/i/a.java +++ /dev/null @@ -1,22 +0,0 @@ -package c.i.a.c.c2.i; - -import c.i.a.c.c2.d; -import c.i.a.c.c2.g; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.emsg.EventMessage; -import java.nio.ByteBuffer; -import java.util.Arrays; -import java.util.Objects; -/* compiled from: EventMessageDecoder */ -public final class a extends g { - @Override // c.i.a.c.c2.g - public Metadata b(d dVar, ByteBuffer byteBuffer) { - w wVar = new w(byteBuffer.array(), byteBuffer.limit()); - String n = wVar.n(); - Objects.requireNonNull(n); - String n2 = wVar.n(); - Objects.requireNonNull(n2); - return new Metadata(new EventMessage(n, n2, wVar.t(), wVar.t(), Arrays.copyOfRange(wVar.a, wVar.b, wVar.f913c))); - } -} diff --git a/app/src/main/java/c/i/a/c/c2/i/b.java b/app/src/main/java/c/i/a/c/c2/i/b.java deleted file mode 100644 index 5657f08703..0000000000 --- a/app/src/main/java/c/i/a/c/c2/i/b.java +++ /dev/null @@ -1,23 +0,0 @@ -package c.i.a.c.c2.i; - -import java.io.ByteArrayOutputStream; -import java.io.DataOutputStream; -import java.io.IOException; -/* compiled from: EventMessageEncoder */ -public final class b { - public final ByteArrayOutputStream a; - public final DataOutputStream b; - - public b() { - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(512); - this.a = byteArrayOutputStream; - this.b = new DataOutputStream(byteArrayOutputStream); - } - - public static void a(DataOutputStream dataOutputStream, long j) throws IOException { - dataOutputStream.writeByte(((int) (j >>> 24)) & 255); - dataOutputStream.writeByte(((int) (j >>> 16)) & 255); - dataOutputStream.writeByte(((int) (j >>> 8)) & 255); - dataOutputStream.writeByte(((int) j) & 255); - } -} diff --git a/app/src/main/java/c/i/a/c/c2/j/a.java b/app/src/main/java/c/i/a/c/c2/j/a.java deleted file mode 100644 index 30e6f96fd7..0000000000 --- a/app/src/main/java/c/i/a/c/c2/j/a.java +++ /dev/null @@ -1,67 +0,0 @@ -package c.i.a.c.c2.j; - -import c.i.a.c.c2.d; -import c.i.a.c.c2.g; -import c.i.a.c.i2.f0; -import c.i.b.a.c; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.icy.IcyInfo; -import java.nio.ByteBuffer; -import java.nio.charset.CharacterCodingException; -import java.nio.charset.CharsetDecoder; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: IcyDecoder */ -public final class a extends g { - public static final Pattern a = Pattern.compile("(.+?)='(.*?)';", 32); - public final CharsetDecoder b = c.f1266c.newDecoder(); - - /* renamed from: c reason: collision with root package name */ - public final CharsetDecoder f778c = c.b.newDecoder(); - - /* JADX INFO: finally extract failed */ - @Override // c.i.a.c.c2.g - public Metadata b(d dVar, ByteBuffer byteBuffer) { - String str; - String str2 = null; - try { - str = this.b.decode(byteBuffer).toString(); - } catch (CharacterCodingException unused) { - try { - str = this.f778c.decode(byteBuffer).toString(); - this.f778c.reset(); - byteBuffer.rewind(); - } catch (CharacterCodingException unused2) { - this.f778c.reset(); - byteBuffer.rewind(); - str = null; - } catch (Throwable th) { - this.f778c.reset(); - byteBuffer.rewind(); - throw th; - } - } finally { - this.b.reset(); - byteBuffer.rewind(); - } - byte[] bArr = new byte[byteBuffer.limit()]; - byteBuffer.get(bArr); - if (str == null) { - return new Metadata(new IcyInfo(bArr, null, null)); - } - Matcher matcher = a.matcher(str); - String str3 = null; - for (int i = 0; matcher.find(i); i = matcher.end()) { - String K = f0.K(matcher.group(1)); - String group = matcher.group(2); - if (K != null) { - if (K.equals("streamurl")) { - str3 = group; - } else if (K.equals("streamtitle")) { - str2 = group; - } - } - } - return new Metadata(new IcyInfo(bArr, str2, str3)); - } -} diff --git a/app/src/main/java/c/i/a/c/c2/k/a.java b/app/src/main/java/c/i/a/c/c2/k/a.java deleted file mode 100644 index d5c4cc2a90..0000000000 --- a/app/src/main/java/c/i/a/c/c2/k/a.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.c2.k; - -import c.i.a.c.c2.k.b; -/* compiled from: lambda */ -public final /* synthetic */ class a implements b.a { - public static final /* synthetic */ a a = new a(); - - @Override // c.i.a.c.c2.k.b.a - public final boolean a(int i, int i2, int i3, int i4, int i5) { - int i6 = b.a; - return false; - } -} diff --git a/app/src/main/java/c/i/a/c/c2/k/b.java b/app/src/main/java/c/i/a/c/c2/k/b.java deleted file mode 100644 index a09f57a80e..0000000000 --- a/app/src/main/java/c/i/a/c/c2/k/b.java +++ /dev/null @@ -1,619 +0,0 @@ -package c.i.a.c.c2.k; - -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.c2.d; -import c.i.a.c.c2.g; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.id3.ApicFrame; -import com.google.android.exoplayer2.metadata.id3.BinaryFrame; -import com.google.android.exoplayer2.metadata.id3.ChapterFrame; -import com.google.android.exoplayer2.metadata.id3.ChapterTocFrame; -import com.google.android.exoplayer2.metadata.id3.CommentFrame; -import com.google.android.exoplayer2.metadata.id3.GeobFrame; -import com.google.android.exoplayer2.metadata.id3.Id3Frame; -import com.google.android.exoplayer2.metadata.id3.MlltFrame; -import com.google.android.exoplayer2.metadata.id3.PrivFrame; -import com.google.android.exoplayer2.metadata.id3.TextInformationFrame; -import com.google.android.exoplayer2.metadata.id3.UrlLinkFrame; -import java.io.UnsupportedEncodingException; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Locale; -/* compiled from: Id3Decoder */ -public final class b extends g { - public static final /* synthetic */ int a = 0; - @Nullable - public final a b; - - /* compiled from: Id3Decoder */ - public interface a { - boolean a(int i, int i2, int i3, int i4, int i5); - } - - /* compiled from: Id3Decoder */ - /* renamed from: c.i.a.c.c2.k.b$b reason: collision with other inner class name */ - public static final class C0085b { - public final int a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final int f779c; - - public C0085b(int i, boolean z2, int i2) { - this.a = i; - this.b = z2; - this.f779c = i2; - } - } - - public b() { - this.b = null; - } - - public b(@Nullable a aVar) { - this.b = aVar; - } - - public static byte[] c(byte[] bArr, int i, int i2) { - return i2 <= i ? f0.f : Arrays.copyOfRange(bArr, i, i2); - } - - public static ApicFrame e(w wVar, int i, int i2) throws UnsupportedEncodingException { - String str; - int i3; - int s2 = wVar.s(); - String t = t(s2); - int i4 = i - 1; - byte[] bArr = new byte[i4]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i4); - wVar.b += i4; - if (i2 == 2) { - StringBuilder K = c.d.b.a.a.K("image/"); - K.append(f0.K(new String(bArr, 0, 3, "ISO-8859-1"))); - str = K.toString(); - if ("image/jpg".equals(str)) { - str = "image/jpeg"; - } - i3 = 2; - } else { - int w = w(bArr, 0); - String K2 = f0.K(new String(bArr, 0, w, "ISO-8859-1")); - if (K2.indexOf(47) == -1) { - i3 = w; - str = c.d.b.a.a.s("image/", K2); - } else { - i3 = w; - str = K2; - } - } - int i5 = i3 + 2; - int v = v(bArr, i5, s2); - return new ApicFrame(str, new String(bArr, i5, v - i5, t), bArr[i3 + 1] & 255, c(bArr, s(s2) + v, i4)); - } - - public static BinaryFrame f(w wVar, int i, String str) { - byte[] bArr = new byte[i]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i); - wVar.b += i; - return new BinaryFrame(str, bArr); - } - - public static ChapterFrame g(w wVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException { - int i4 = wVar.b; - int w = w(wVar.a, i4); - String str = new String(wVar.a, i4, w - i4, "ISO-8859-1"); - wVar.D(w + 1); - int f = wVar.f(); - int f2 = wVar.f(); - long t = wVar.t(); - long j = t == 4294967295L ? -1 : t; - long t2 = wVar.t(); - long j2 = t2 == 4294967295L ? -1 : t2; - ArrayList arrayList = new ArrayList(); - int i5 = i4 + i; - while (wVar.b < i5) { - Id3Frame j3 = j(i2, wVar, z2, i3, aVar); - if (j3 != null) { - arrayList.add(j3); - } - } - return new ChapterFrame(str, f, f2, j, j2, (Id3Frame[]) arrayList.toArray(new Id3Frame[0])); - } - - public static ChapterTocFrame h(w wVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException { - int i4 = wVar.b; - int w = w(wVar.a, i4); - String str = new String(wVar.a, i4, w - i4, "ISO-8859-1"); - wVar.D(w + 1); - int s2 = wVar.s(); - boolean z3 = (s2 & 2) != 0; - boolean z4 = (s2 & 1) != 0; - int s3 = wVar.s(); - String[] strArr = new String[s3]; - for (int i5 = 0; i5 < s3; i5++) { - int i6 = wVar.b; - int w2 = w(wVar.a, i6); - strArr[i5] = new String(wVar.a, i6, w2 - i6, "ISO-8859-1"); - wVar.D(w2 + 1); - } - ArrayList arrayList = new ArrayList(); - int i7 = i4 + i; - while (wVar.b < i7) { - Id3Frame j = j(i2, wVar, z2, i3, aVar); - if (j != null) { - arrayList.add(j); - } - } - return new ChapterTocFrame(str, z3, z4, strArr, (Id3Frame[]) arrayList.toArray(new Id3Frame[0])); - } - - @Nullable - public static CommentFrame i(w wVar, int i) throws UnsupportedEncodingException { - if (i < 4) { - return null; - } - int s2 = wVar.s(); - String t = t(s2); - byte[] bArr = new byte[3]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, 3); - wVar.b += 3; - String str = new String(bArr, 0, 3); - int i2 = i - 4; - byte[] bArr2 = new byte[i2]; - System.arraycopy(wVar.a, wVar.b, bArr2, 0, i2); - wVar.b += i2; - int v = v(bArr2, 0, s2); - String str2 = new String(bArr2, 0, v, t); - int s3 = s(s2) + v; - return new CommentFrame(str, str2, n(bArr2, s3, v(bArr2, s3, s2), t)); - } - - /* JADX WARNING: Code restructure failed: missing block: B:129:0x0188, code lost: - if (r13 == 67) goto L_0x018a; - */ - @Nullable - public static Id3Frame j(int i, w wVar, boolean z2, int i2, @Nullable a aVar) { - int v; - int i3; - int i4; - String str; - boolean z3; - boolean z4; - boolean z5; - boolean z6; - boolean z7; - Id3Frame id3Frame; - int s2 = wVar.s(); - int s3 = wVar.s(); - int s4 = wVar.s(); - int s5 = i >= 3 ? wVar.s() : 0; - if (i == 4) { - v = wVar.v(); - if (!z2) { - v = (((v >> 24) & 255) << 21) | (v & 255) | (((v >> 8) & 255) << 7) | (((v >> 16) & 255) << 14); - } - } else { - v = i == 3 ? wVar.v() : wVar.u(); - } - int i5 = v; - int x2 = i >= 3 ? wVar.x() : 0; - if (s2 == 0 && s3 == 0 && s4 == 0 && s5 == 0 && i5 == 0 && x2 == 0) { - wVar.D(wVar.f913c); - return null; - } - int i6 = wVar.b + i5; - if (i6 > wVar.f913c) { - Log.w("Id3Decoder", "Frame size exceeds remaining tag data"); - wVar.D(wVar.f913c); - return null; - } - if (aVar != null) { - str = "Id3Decoder"; - i4 = i6; - i3 = x2; - if (!aVar.a(i, s2, s3, s4, s5)) { - wVar.D(i4); - return null; - } - } else { - str = "Id3Decoder"; - i4 = i6; - i3 = x2; - } - if (i == 3) { - z6 = (i3 & 128) != 0; - z5 = (i3 & 64) != 0; - z7 = (i3 & 32) != 0; - z3 = z6; - z4 = false; - } else if (i == 4) { - boolean z8 = (i3 & 64) != 0; - boolean z9 = (i3 & 8) != 0; - boolean z10 = (i3 & 4) != 0; - z4 = (i3 & 2) != 0; - z7 = z8; - z6 = (i3 & 1) != 0; - z3 = z9; - z5 = z10; - } else { - z7 = false; - z6 = false; - z5 = false; - z4 = false; - z3 = false; - } - if (z3 || z5) { - Log.w(str, "Skipping unsupported compressed or encrypted frame"); - wVar.D(i4); - return null; - } - if (z7) { - i5--; - wVar.E(1); - } - if (z6) { - i5 -= 4; - wVar.E(4); - } - if (z4) { - i5 = x(wVar, i5); - } - if (s2 == 84 && s3 == 88 && s4 == 88 && (i == 2 || s5 == 88)) { - try { - id3Frame = p(wVar, i5); - } catch (UnsupportedEncodingException unused) { - Log.w(str, "Unsupported character encoding"); - wVar.D(i4); - return null; - } catch (Throwable th) { - wVar.D(i4); - throw th; - } - } else if (s2 == 84) { - id3Frame = o(wVar, i5, u(i, s2, s3, s4, s5)); - } else if (s2 == 87 && s3 == 88 && s4 == 88 && (i == 2 || s5 == 88)) { - id3Frame = r(wVar, i5); - } else if (s2 == 87) { - id3Frame = q(wVar, i5, u(i, s2, s3, s4, s5)); - } else if (s2 == 80 && s3 == 82 && s4 == 73 && s5 == 86) { - id3Frame = m(wVar, i5); - } else if (s2 == 71 && s3 == 69 && s4 == 79 && (s5 == 66 || i == 2)) { - id3Frame = k(wVar, i5); - } else { - if (i == 2) { - if (s2 == 80 && s3 == 73 && s4 == 67) { - } - id3Frame = (s2 != 67 && s3 == 79 && s4 == 77 && (s5 == 77 || i == 2)) ? i(wVar, i5) : (s2 != 67 && s3 == 72 && s4 == 65 && s5 == 80) ? g(wVar, i5, i, z2, i2, aVar) : (s2 != 67 && s3 == 84 && s4 == 79 && s5 == 67) ? h(wVar, i5, i, z2, i2, aVar) : (s2 != 77 && s3 == 76 && s4 == 76 && s5 == 84) ? l(wVar, i5) : f(wVar, i5, u(i, s2, s3, s4, s5)); - } else { - if (s2 == 65) { - if (s3 == 80) { - if (s4 == 73) { - } - } - } - if (s2 != 67) { - } - } - id3Frame = e(wVar, i5, i); - } - if (id3Frame == null) { - Log.w(str, "Failed to decode frame: id=" + u(i, s2, s3, s4, s5) + ", frameSize=" + i5); - } - wVar.D(i4); - return id3Frame; - } - - public static GeobFrame k(w wVar, int i) throws UnsupportedEncodingException { - int s2 = wVar.s(); - String t = t(s2); - int i2 = i - 1; - byte[] bArr = new byte[i2]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i2); - wVar.b += i2; - int w = w(bArr, 0); - String str = new String(bArr, 0, w, "ISO-8859-1"); - int i3 = w + 1; - int v = v(bArr, i3, s2); - String n = n(bArr, i3, v, t); - int s3 = s(s2) + v; - int v2 = v(bArr, s3, s2); - return new GeobFrame(str, n, n(bArr, s3, v2, t), c(bArr, s(s2) + v2, i2)); - } - - public static MlltFrame l(w wVar, int i) { - int x2 = wVar.x(); - int u = wVar.u(); - int u2 = wVar.u(); - int s2 = wVar.s(); - int s3 = wVar.s(); - v vVar = new v(); - vVar.j(wVar.a, wVar.f913c); - vVar.k(wVar.b * 8); - int i2 = ((i - 10) * 8) / (s2 + s3); - int[] iArr = new int[i2]; - int[] iArr2 = new int[i2]; - for (int i3 = 0; i3 < i2; i3++) { - int g = vVar.g(s2); - int g2 = vVar.g(s3); - iArr[i3] = g; - iArr2[i3] = g2; - } - return new MlltFrame(x2, u, u2, iArr, iArr2); - } - - public static PrivFrame m(w wVar, int i) throws UnsupportedEncodingException { - byte[] bArr = new byte[i]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i); - wVar.b += i; - int w = w(bArr, 0); - return new PrivFrame(new String(bArr, 0, w, "ISO-8859-1"), c(bArr, w + 1, i)); - } - - public static String n(byte[] bArr, int i, int i2, String str) throws UnsupportedEncodingException { - return (i2 <= i || i2 > bArr.length) ? "" : new String(bArr, i, i2 - i, str); - } - - @Nullable - public static TextInformationFrame o(w wVar, int i, String str) throws UnsupportedEncodingException { - if (i < 1) { - return null; - } - int s2 = wVar.s(); - String t = t(s2); - int i2 = i - 1; - byte[] bArr = new byte[i2]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i2); - wVar.b += i2; - return new TextInformationFrame(str, null, new String(bArr, 0, v(bArr, 0, s2), t)); - } - - @Nullable - public static TextInformationFrame p(w wVar, int i) throws UnsupportedEncodingException { - if (i < 1) { - return null; - } - int s2 = wVar.s(); - String t = t(s2); - int i2 = i - 1; - byte[] bArr = new byte[i2]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i2); - wVar.b += i2; - int v = v(bArr, 0, s2); - String str = new String(bArr, 0, v, t); - int s3 = s(s2) + v; - return new TextInformationFrame("TXXX", str, n(bArr, s3, v(bArr, s3, s2), t)); - } - - public static UrlLinkFrame q(w wVar, int i, String str) throws UnsupportedEncodingException { - byte[] bArr = new byte[i]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i); - wVar.b += i; - return new UrlLinkFrame(str, null, new String(bArr, 0, w(bArr, 0), "ISO-8859-1")); - } - - @Nullable - public static UrlLinkFrame r(w wVar, int i) throws UnsupportedEncodingException { - if (i < 1) { - return null; - } - int s2 = wVar.s(); - String t = t(s2); - int i2 = i - 1; - byte[] bArr = new byte[i2]; - System.arraycopy(wVar.a, wVar.b, bArr, 0, i2); - wVar.b += i2; - int v = v(bArr, 0, s2); - String str = new String(bArr, 0, v, t); - int s3 = s(s2) + v; - return new UrlLinkFrame("WXXX", str, n(bArr, s3, w(bArr, s3), "ISO-8859-1")); - } - - public static int s(int i) { - return (i == 0 || i == 3) ? 1 : 2; - } - - public static String t(int i) { - return i != 1 ? i != 2 ? i != 3 ? "ISO-8859-1" : "UTF-8" : "UTF-16BE" : "UTF-16"; - } - - public static String u(int i, int i2, int i3, int i4, int i5) { - return i == 2 ? String.format(Locale.US, "%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4)) : String.format(Locale.US, "%c%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4), Integer.valueOf(i5)); - } - - public static int v(byte[] bArr, int i, int i2) { - int w = w(bArr, i); - if (i2 == 0 || i2 == 3) { - return w; - } - while (w < bArr.length - 1) { - if (w % 2 == 0 && bArr[w + 1] == 0) { - return w; - } - w = w(bArr, w + 1); - } - return bArr.length; - } - - public static int w(byte[] bArr, int i) { - while (i < bArr.length) { - if (bArr[i] == 0) { - return i; - } - i++; - } - return bArr.length; - } - - public static int x(w wVar, int i) { - byte[] bArr = wVar.a; - int i2 = wVar.b; - int i3 = i2; - while (true) { - int i4 = i3 + 1; - if (i4 >= i2 + i) { - return i; - } - if ((bArr[i3] & 255) == 255 && bArr[i4] == 0) { - System.arraycopy(bArr, i3 + 2, bArr, i4, (i - (i3 - i2)) - 2); - i--; - } - i3 = i4; - } - } - - /* JADX WARNING: Code restructure failed: missing block: B:30:0x0074, code lost: - if ((r10 & 1) != 0) goto L_0x0087; - */ - /* JADX WARNING: Code restructure failed: missing block: B:37:0x0082, code lost: - if ((r10 & 128) != 0) goto L_0x0087; - */ - public static boolean y(w wVar, int i, int i2, boolean z2) { - int i3; - long j; - int i4; - int i5; - int i6 = wVar.b; - while (true) { - try { - boolean z3 = true; - if (wVar.a() >= i2) { - if (i >= 3) { - i4 = wVar.f(); - j = wVar.t(); - i3 = wVar.x(); - } else { - i4 = wVar.u(); - j = (long) wVar.u(); - i3 = 0; - } - if (i4 == 0 && j == 0 && i3 == 0) { - wVar.D(i6); - return true; - } - if (i == 4 && !z2) { - if ((8421504 & j) != 0) { - wVar.D(i6); - return false; - } - j = (((j >> 24) & 255) << 21) | (j & 255) | (((j >> 8) & 255) << 7) | (((j >> 16) & 255) << 14); - } - if (i == 4) { - i5 = (i3 & 64) != 0 ? 1 : 0; - } else if (i == 3) { - i5 = (i3 & 32) != 0 ? 1 : 0; - } else { - i5 = 0; - } - z3 = false; - if (z3) { - i5 += 4; - } - if (j < ((long) i5)) { - wVar.D(i6); - return false; - } else if (((long) wVar.a()) < j) { - return false; - } else { - wVar.E((int) j); - } - } else { - wVar.D(i6); - return true; - } - } finally { - wVar.D(i6); - } - } - } - - @Override // c.i.a.c.c2.g - @Nullable - public Metadata b(d dVar, ByteBuffer byteBuffer) { - return d(byteBuffer.array(), byteBuffer.limit()); - } - - /* JADX WARNING: Removed duplicated region for block: B:44:0x00b6 A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:45:0x00b7 */ - @Nullable - public Metadata d(byte[] bArr, int i) { - C0085b bVar; - ArrayList arrayList = new ArrayList(); - w wVar = new w(bArr, i); - boolean z2 = false; - int i2 = 10; - if (wVar.a() < 10) { - Log.w("Id3Decoder", "Data too short to be an ID3 tag"); - } else { - int u = wVar.u(); - if (u != 4801587) { - StringBuilder K = c.d.b.a.a.K("Unexpected first three bytes of ID3 tag header: 0x"); - K.append(String.format("%06X", Integer.valueOf(u))); - Log.w("Id3Decoder", K.toString()); - } else { - int s2 = wVar.s(); - wVar.E(1); - int s3 = wVar.s(); - int r = wVar.r(); - if (s2 == 2) { - if ((s3 & 64) != 0) { - Log.w("Id3Decoder", "Skipped ID3 tag with majorVersion=2 and undefined compression scheme"); - } - } else if (s2 == 3) { - if ((s3 & 64) != 0) { - int f = wVar.f(); - wVar.E(f); - r -= f + 4; - } - } else if (s2 == 4) { - if ((s3 & 64) != 0) { - int r2 = wVar.r(); - wVar.E(r2 - 4); - r -= r2; - } - if ((s3 & 16) != 0) { - r -= 10; - } - } else { - c.d.b.a.a.d0("Skipped ID3 tag with unsupported majorVersion=", s2, "Id3Decoder"); - } - bVar = new C0085b(s2, s2 < 4 && (s3 & 128) != 0, r); - if (bVar != null) { - return null; - } - int i3 = wVar.b; - if (bVar.a == 2) { - i2 = 6; - } - int i4 = bVar.f779c; - if (bVar.b) { - i4 = x(wVar, i4); - } - wVar.C(i3 + i4); - if (!y(wVar, bVar.a, i2, false)) { - if (bVar.a != 4 || !y(wVar, 4, i2, true)) { - StringBuilder K2 = c.d.b.a.a.K("Failed to validate ID3 tag with majorVersion="); - K2.append(bVar.a); - Log.w("Id3Decoder", K2.toString()); - return null; - } - z2 = true; - } - while (wVar.a() >= i2) { - Id3Frame j = j(bVar.a, wVar, z2, i2, this.b); - if (j != null) { - arrayList.add(j); - } - } - return new Metadata(arrayList); - } - } - bVar = null; - if (bVar != null) { - } - } -} diff --git a/app/src/main/java/c/i/a/c/c2/l/a.java b/app/src/main/java/c/i/a/c/c2/l/a.java deleted file mode 100644 index 3d46de1dbd..0000000000 --- a/app/src/main/java/c/i/a/c/c2/l/a.java +++ /dev/null @@ -1,216 +0,0 @@ -package c.i.a.c.c2.l; - -import c.i.a.c.c2.d; -import c.i.a.c.c2.g; -import c.i.a.c.i2.e0; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.scte35.PrivateCommand; -import com.google.android.exoplayer2.metadata.scte35.SpliceInsertCommand; -import com.google.android.exoplayer2.metadata.scte35.SpliceNullCommand; -import com.google.android.exoplayer2.metadata.scte35.SpliceScheduleCommand; -import com.google.android.exoplayer2.metadata.scte35.TimeSignalCommand; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -/* compiled from: SpliceInfoDecoder */ -public final class a extends g { - public final w a = new w(); - public final v b = new v(); - - /* renamed from: c reason: collision with root package name */ - public e0 f780c; - - @Override // c.i.a.c.c2.g - public Metadata b(d dVar, ByteBuffer byteBuffer) { - int i; - int i2; - int i3; - long j; - boolean z2; - long j2; - ArrayList arrayList; - boolean z3; - boolean z4; - int i4; - long j3; - long j4; - boolean z5; - int i5; - int i6; - int i7; - long j5; - boolean z6; - List list; - boolean z7; - boolean z8; - boolean z9; - long j6; - long j7; - boolean z10; - e0 e0Var = this.f780c; - if (e0Var == null || dVar.q != e0Var.d()) { - long j8 = dVar.m; - e0 e0Var2 = new e0(j8); - this.f780c = e0Var2; - e0Var2.a(j8 - dVar.q); - } - byte[] array = byteBuffer.array(); - int limit = byteBuffer.limit(); - this.a.B(array, limit); - this.b.j(array, limit); - this.b.m(39); - long g = (((long) this.b.g(1)) << 32) | ((long) this.b.g(32)); - this.b.m(20); - int g2 = this.b.g(12); - int g3 = this.b.g(8); - this.a.E(14); - Metadata.Entry entry = null; - if (g3 == 0) { - entry = new SpliceNullCommand(); - } else if (g3 != 255) { - long j9 = 128; - if (g3 == 4) { - w wVar = this.a; - int s2 = wVar.s(); - ArrayList arrayList2 = new ArrayList(s2); - int i8 = 0; - while (i8 < s2) { - long t = wVar.t(); - boolean z11 = (wVar.s() & 128) != 0; - ArrayList arrayList3 = new ArrayList(); - if (!z11) { - int s3 = wVar.s(); - boolean z12 = (s3 & 128) != 0; - boolean z13 = (s3 & 64) != 0; - boolean z14 = (s3 & 32) != 0; - long t2 = z13 ? wVar.t() : -9223372036854775807L; - if (!z13) { - int s4 = wVar.s(); - ArrayList arrayList4 = new ArrayList(s4); - int i9 = 0; - while (i9 < s4) { - arrayList4.add(new SpliceScheduleCommand.b(wVar.s(), wVar.t(), null)); - i9++; - s4 = s4; - s2 = s2; - } - i4 = s2; - arrayList3 = arrayList4; - } else { - i4 = s2; - } - if (z14) { - long s5 = (long) wVar.s(); - j3 = 128; - z5 = (s5 & 128) != 0; - j4 = ((((s5 & 1) << 32) | wVar.t()) * 1000) / 90; - } else { - j3 = 128; - z5 = false; - j4 = -9223372036854775807L; - } - z2 = z5; - j = j4; - arrayList = arrayList3; - i3 = wVar.x(); - z4 = z12; - z3 = z13; - j2 = t2; - i2 = wVar.s(); - i = wVar.s(); - } else { - i4 = s2; - j3 = j9; - arrayList = arrayList3; - z4 = false; - z3 = false; - j2 = -9223372036854775807L; - z2 = false; - j = -9223372036854775807L; - i3 = 0; - i2 = 0; - i = 0; - } - arrayList2.add(new SpliceScheduleCommand.c(t, z11, z4, z3, arrayList, j2, z2, j, i3, i2, i)); - i8++; - j9 = j3; - s2 = i4; - } - entry = new SpliceScheduleCommand(arrayList2); - } else if (g3 == 5) { - w wVar2 = this.a; - e0 e0Var3 = this.f780c; - long t3 = wVar2.t(); - boolean z15 = (wVar2.s() & 128) != 0; - List emptyList = Collections.emptyList(); - if (!z15) { - int s6 = wVar2.s(); - boolean z16 = (s6 & 128) != 0; - boolean z17 = (s6 & 64) != 0; - boolean z18 = (s6 & 32) != 0; - boolean z19 = (s6 & 16) != 0; - long a = (!z17 || z19) ? -9223372036854775807L : TimeSignalCommand.a(wVar2, g); - if (!z17) { - int s7 = wVar2.s(); - ArrayList arrayList5 = new ArrayList(s7); - for (int i10 = 0; i10 < s7; i10++) { - int s8 = wVar2.s(); - long a2 = !z19 ? TimeSignalCommand.a(wVar2, g) : -9223372036854775807L; - arrayList5.add(new SpliceInsertCommand.b(s8, a2, e0Var3.b(a2), null)); - } - emptyList = arrayList5; - } - if (z18) { - long s9 = (long) wVar2.s(); - z10 = (s9 & 128) != 0; - j7 = ((((s9 & 1) << 32) | wVar2.t()) * 1000) / 90; - } else { - z10 = false; - j7 = -9223372036854775807L; - } - int x2 = wVar2.x(); - int s10 = wVar2.s(); - i7 = x2; - z6 = z10; - i5 = wVar2.s(); - list = emptyList; - j5 = j7; - i6 = s10; - z9 = z16; - j6 = a; - z7 = z19; - z8 = z17; - } else { - list = emptyList; - j6 = -9223372036854775807L; - z9 = false; - z8 = false; - z7 = false; - z6 = false; - j5 = -9223372036854775807L; - i7 = 0; - i6 = 0; - i5 = 0; - } - entry = new SpliceInsertCommand(t3, z15, z9, z8, z7, j6, e0Var3.b(j6), list, z6, j5, i7, i6, i5); - } else if (g3 == 6) { - w wVar3 = this.a; - e0 e0Var4 = this.f780c; - long a3 = TimeSignalCommand.a(wVar3, g); - entry = new TimeSignalCommand(a3, e0Var4.b(a3)); - } - } else { - w wVar4 = this.a; - long t4 = wVar4.t(); - int i11 = g2 - 4; - byte[] bArr = new byte[i11]; - System.arraycopy(wVar4.a, wVar4.b, bArr, 0, i11); - wVar4.b += i11; - entry = new PrivateCommand(t4, bArr, g); - } - return entry == null ? new Metadata(new Metadata.Entry[0]) : new Metadata(entry); - } -} diff --git a/app/src/main/java/c/i/a/c/d.java b/app/src/main/java/c/i/a/c/d.java deleted file mode 100644 index d0cb59cfda..0000000000 --- a/app/src/main/java/c/i/a/c/d.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class d implements o.a { - public final /* synthetic */ int a; - - public /* synthetic */ d(int i) { - this.a = i; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - ((g1.a) obj).f(this.a); - } -} diff --git a/app/src/main/java/c/i/a/c/d0.java b/app/src/main/java/c/i/a/c/d0.java deleted file mode 100644 index 7ed22868fc..0000000000 --- a/app/src/main/java/c/i/a/c/d0.java +++ /dev/null @@ -1,59 +0,0 @@ -package c.i.a.c; - -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.os.Handler; -/* compiled from: AudioBecomingNoisyManager */ -public final class d0 { - public final Context a; - public final a b; - - /* renamed from: c reason: collision with root package name */ - public boolean f781c; - - /* compiled from: AudioBecomingNoisyManager */ - public final class a extends BroadcastReceiver implements Runnable { - public final b i; - public final Handler j; - - public a(Handler handler, b bVar) { - this.j = handler; - this.i = bVar; - } - - @Override // android.content.BroadcastReceiver - public void onReceive(Context context, Intent intent) { - if ("android.media.AUDIO_BECOMING_NOISY".equals(intent.getAction())) { - this.j.post(this); - } - } - - @Override // java.lang.Runnable - public void run() { - if (d0.this.f781c) { - p1.this.Y(false, -1, 3); - } - } - } - - /* compiled from: AudioBecomingNoisyManager */ - public interface b { - } - - public d0(Context context, Handler handler, b bVar) { - this.a = context.getApplicationContext(); - this.b = new a(handler, bVar); - } - - public void a(boolean z2) { - if (z2 && !this.f781c) { - this.a.registerReceiver(this.b, new IntentFilter("android.media.AUDIO_BECOMING_NOISY")); - this.f781c = true; - } else if (!z2 && this.f781c) { - this.a.unregisterReceiver(this.b); - this.f781c = false; - } - } -} diff --git a/app/src/main/java/c/i/a/c/d1.java b/app/src/main/java/c/i/a/c/d1.java deleted file mode 100644 index abef0dba8a..0000000000 --- a/app/src/main/java/c/i/a/c/d1.java +++ /dev/null @@ -1,42 +0,0 @@ -package c.i.a.c; - -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -/* compiled from: PlaybackParameters */ -public final class d1 { - public static final d1 a = new d1(1.0f, 1.0f); - public final float b; - - /* renamed from: c reason: collision with root package name */ - public final float f782c; - public final int d; - - public d1(float f, float f2) { - boolean z2 = true; - AnimatableValueParser.k(f > 0.0f); - AnimatableValueParser.k(f2 <= 0.0f ? false : z2); - this.b = f; - this.f782c = f2; - this.d = Math.round(f * 1000.0f); - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || d1.class != obj.getClass()) { - return false; - } - d1 d1Var = (d1) obj; - return this.b == d1Var.b && this.f782c == d1Var.f782c; - } - - public int hashCode() { - return Float.floatToRawIntBits(this.f782c) + ((Float.floatToRawIntBits(this.b) + 527) * 31); - } - - public String toString() { - return f0.k("PlaybackParameters(speed=%.2f, pitch=%.2f)", Float.valueOf(this.b), Float.valueOf(this.f782c)); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/a.java b/app/src/main/java/c/i/a/c/d2/a.java deleted file mode 100644 index 1eacd0ee30..0000000000 --- a/app/src/main/java/c/i/a/c/d2/a.java +++ /dev/null @@ -1,112 +0,0 @@ -package c.i.a.c.d2; - -import android.util.Pair; -import c.i.a.c.d2.t; -import c.i.a.c.d2.y; -import c.i.a.c.r1; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class a implements y.b { - public final /* synthetic */ m a; - public final /* synthetic */ Object b; - - public /* synthetic */ a(m mVar, Object obj) { - this.a = mVar; - this.b = obj; - } - - /* JADX WARNING: Removed duplicated region for block: B:20:0x0097 */ - /* JADX WARNING: Removed duplicated region for block: B:21:0x00a3 */ - /* JADX WARNING: Removed duplicated region for block: B:24:0x00af */ - /* JADX WARNING: Removed duplicated region for block: B:33:0x00da */ - /* JADX WARNING: Removed duplicated region for block: B:35:? A[RETURN, SYNTHETIC] */ - @Override // c.i.a.c.d2.y.b - public final void a(y yVar, r1 r1Var) { - y.a aVar; - long j; - t.a aVar2; - s sVar; - t.a aVar3; - m mVar = this.a; - Object obj = this.b; - Objects.requireNonNull(mVar); - t tVar = (t) mVar; - Void r1 = (Void) obj; - if (tVar.q) { - t.a aVar4 = tVar.n; - tVar.n = new t.a(r1Var, aVar4.d, aVar4.e); - s sVar2 = tVar.o; - if (sVar2 != null) { - tVar.u(sVar2.o); - } - } else if (r1Var.q()) { - if (tVar.r) { - t.a aVar5 = tVar.n; - aVar3 = new t.a(r1Var, aVar5.d, aVar5.e); - } else { - aVar3 = new t.a(r1Var, r1.c.a, t.a.f808c); - } - tVar.n = aVar3; - } else { - r1Var.n(0, tVar.l); - r1.c cVar = tVar.l; - long j2 = cVar.q; - Object obj2 = cVar.f953c; - s sVar3 = tVar.o; - if (sVar3 != null) { - long j3 = sVar3.j; - tVar.n.h(sVar3.i.a, tVar.m); - long j4 = tVar.m.e + j3; - if (j4 != tVar.n.n(0, tVar.l).q) { - j = j4; - Pair j5 = r1Var.j(tVar.l, tVar.m, 0, j); - Object obj3 = j5.first; - long longValue = ((Long) j5.second).longValue(); - if (!tVar.r) { - t.a aVar6 = tVar.n; - aVar2 = new t.a(r1Var, aVar6.d, aVar6.e); - } else { - aVar2 = new t.a(r1Var, obj2, obj3); - } - tVar.n = aVar2; - sVar = tVar.o; - if (sVar != null) { - tVar.u(longValue); - y.a aVar7 = sVar.i; - Object obj4 = aVar7.a; - if (tVar.n.e != null && obj4.equals(t.a.f808c)) { - obj4 = tVar.n.e; - } - aVar = aVar7.b(obj4); - tVar.r = true; - tVar.q = true; - tVar.q(tVar.n); - if (aVar == null) { - s sVar4 = tVar.o; - Objects.requireNonNull(sVar4); - sVar4.d(aVar); - return; - } - return; - } - } - } - j = j2; - Pair j5 = r1Var.j(tVar.l, tVar.m, 0, j); - Object obj3 = j5.first; - long longValue = ((Long) j5.second).longValue(); - if (!tVar.r) { - } - tVar.n = aVar2; - sVar = tVar.o; - if (sVar != null) { - } - } - aVar = null; - tVar.r = true; - tVar.q = true; - tVar.q(tVar.n); - if (aVar == null) { - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/a0.java b/app/src/main/java/c/i/a/c/d2/a0.java deleted file mode 100644 index 250c6e0305..0000000000 --- a/app/src/main/java/c/i/a/c/d2/a0.java +++ /dev/null @@ -1,4 +0,0 @@ -package c.i.a.c.d2; -/* compiled from: MediaSourceFactory */ -public interface a0 { -} diff --git a/app/src/main/java/c/i/a/c/d2/b.java b/app/src/main/java/c/i/a/c/d2/b.java deleted file mode 100644 index 0cc8aec80a..0000000000 --- a/app/src/main/java/c/i/a/c/d2/b.java +++ /dev/null @@ -1,28 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.z; -import java.io.IOException; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Runnable { - public final /* synthetic */ z.a i; - public final /* synthetic */ z j; - public final /* synthetic */ r k; - public final /* synthetic */ u l; - public final /* synthetic */ IOException m; - public final /* synthetic */ boolean n; - - public /* synthetic */ b(z.a aVar, z zVar, r rVar, u uVar, IOException iOException, boolean z2) { - this.i = aVar; - this.j = zVar; - this.k = rVar; - this.l = uVar; - this.m = iOException; - this.n = z2; - } - - @Override // java.lang.Runnable - public final void run() { - z.a aVar = this.i; - this.j.U(aVar.a, aVar.b, this.k, this.l, this.m, this.n); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/b0.java b/app/src/main/java/c/i/a/c/d2/b0.java deleted file mode 100644 index 154c8911e4..0000000000 --- a/app/src/main/java/c/i/a/c/d2/b0.java +++ /dev/null @@ -1,1212 +0,0 @@ -package c.i.a.c.d2; - -import android.media.MediaCodec; -import android.net.Uri; -import android.os.Handler; -import android.os.Looper; -import android.os.SystemClock; -import androidx.annotation.Nullable; -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.t; -import c.i.a.c.a2.w; -import c.i.a.c.d2.d0; -import c.i.a.c.d2.e0; -import c.i.a.c.d2.q; -import c.i.a.c.d2.v; -import c.i.a.c.d2.z; -import c.i.a.c.f2.g; -import c.i.a.c.h0; -import c.i.a.c.h2.f; -import c.i.a.c.h2.l; -import c.i.a.c.h2.m; -import c.i.a.c.h2.r; -import c.i.a.c.h2.u; -import c.i.a.c.i2.f0; -import c.i.a.c.o1; -import c.i.a.c.s0; -import c.i.a.c.x1.b; -import c.i.a.c.z1.q; -import c.i.a.c.z1.s; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.ParserException; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import com.google.android.exoplayer2.drm.DrmSession; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.metadata.icy.IcyHeaders; -import com.google.android.exoplayer2.source.TrackGroup; -import com.google.android.exoplayer2.source.TrackGroupArray; -import com.google.android.exoplayer2.upstream.HttpDataSource$CleartextNotPermittedException; -import com.google.android.exoplayer2.upstream.Loader; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InterruptedIOException; -import java.nio.ByteBuffer; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import org.checkerframework.checker.nullness.qual.EnsuresNonNull; -/* compiled from: ProgressiveMediaPeriod */ -public final class b0 implements v, j, Loader.b, Loader.f, e0.b { - public static final Map i; - public static final Format j; - @Nullable - public v.a A; - @Nullable - public IcyHeaders B; - public e0[] C; - public d[] D; - public boolean E; - public boolean F; - public boolean G; - public e H; - public t I; - public long J; - public boolean K; - public int L; - public boolean M; - public boolean N; - public int O; - public long P; - public long Q; - public long R; - public boolean S; - public int T; - public boolean U; - public boolean V; - public final Uri k; - public final c.i.a.c.h2.j l; - public final s m; - public final u n; - public final z.a o; - public final q.a p; - public final b q; - public final m r; - @Nullable - - /* renamed from: s reason: collision with root package name */ - public final String f783s; - public final long t; - public final Loader u = new Loader("Loader:ProgressiveMediaPeriod"); - public final k v; - public final c.i.a.c.i2.j w; - - /* renamed from: x reason: collision with root package name */ - public final Runnable f784x; - - /* renamed from: y reason: collision with root package name */ - public final Runnable f785y; - - /* renamed from: z reason: collision with root package name */ - public final Handler f786z; - - /* compiled from: ProgressiveMediaPeriod */ - public final class a implements Loader.e, q.a { - public final long a = r.a.getAndIncrement(); - public final Uri b; - - /* renamed from: c reason: collision with root package name */ - public final c.i.a.c.h2.v f787c; - public final k d; - public final j e; - public final c.i.a.c.i2.j f; - public final c.i.a.c.a2.s g = new c.i.a.c.a2.s(); - public volatile boolean h; - public boolean i = true; - public long j; - public l k = a(0); - public long l = -1; - @Nullable - public w m; - public boolean n; - - public a(Uri uri, c.i.a.c.h2.j jVar, k kVar, j jVar2, c.i.a.c.i2.j jVar3) { - this.b = uri; - this.f787c = new c.i.a.c.h2.v(jVar); - this.d = kVar; - this.e = jVar2; - this.f = jVar3; - } - - public final l a(long j) { - Collections.emptyMap(); - Uri uri = this.b; - String str = b0.this.f783s; - Map map = b0.i; - AnimatableValueParser.I(uri, "The uri must be set."); - return new l(uri, 0, 1, null, map, j, -1, str, 6, null); - } - - public void b() throws IOException { - f fVar; - int i; - int i2 = 0; - while (i2 == 0 && !this.h) { - try { - long j = this.g.a; - l a = a(j); - this.k = a; - long a2 = this.f787c.a(a); - this.l = a2; - if (a2 != -1) { - this.l = a2 + j; - } - b0.this.B = IcyHeaders.a(this.f787c.j()); - c.i.a.c.h2.v vVar = this.f787c; - IcyHeaders icyHeaders = b0.this.B; - if (icyHeaders == null || (i = icyHeaders.n) == -1) { - fVar = vVar; - } else { - fVar = new q(vVar, i, this); - w B = b0.this.B(new d(0, true)); - this.m = B; - ((e0) B).e(b0.j); - } - long j2 = j; - this.d.b(fVar, this.b, this.f787c.j(), j, this.l, this.e); - if (b0.this.B != null) { - h hVar = this.d.b; - if (hVar instanceof c.i.a.c.a2.g0.f) { - ((c.i.a.c.a2.g0.f) hVar).f682s = true; - } - } - if (this.i) { - k kVar = this.d; - long j3 = this.j; - h hVar2 = kVar.b; - Objects.requireNonNull(hVar2); - hVar2.g(j2, j3); - this.i = false; - } - while (true) { - while (i2 == 0 && !this.h) { - try { - c.i.a.c.i2.j jVar = this.f; - synchronized (jVar) { - while (!jVar.b) { - jVar.wait(); - } - } - k kVar2 = this.d; - c.i.a.c.a2.s sVar = this.g; - h hVar3 = kVar2.b; - Objects.requireNonNull(hVar3); - i iVar = kVar2.f803c; - Objects.requireNonNull(iVar); - i2 = hVar3.e(iVar, sVar); - j2 = this.d.a(); - if (j2 > b0.this.t + j2) { - this.f.a(); - b0 b0Var = b0.this; - b0Var.f786z.post(b0Var.f785y); - } - } catch (InterruptedException unused) { - throw new InterruptedIOException(); - } - } - } - if (i2 == 1) { - i2 = 0; - } else if (this.d.a() != -1) { - this.g.a = this.d.a(); - } - c.i.a.c.h2.v vVar2 = this.f787c; - if (vVar2 != null) { - try { - vVar2.a.close(); - } catch (IOException unused2) { - } - } - } catch (Throwable th) { - if (!(i2 == 1 || this.d.a() == -1)) { - this.g.a = this.d.a(); - } - c.i.a.c.h2.v vVar3 = this.f787c; - int i3 = f0.a; - if (vVar3 != null) { - try { - vVar3.a.close(); - } catch (IOException unused3) { - } - } - throw th; - } - } - } - } - - /* compiled from: ProgressiveMediaPeriod */ - public interface b { - } - - /* compiled from: ProgressiveMediaPeriod */ - public final class c implements f0 { - public final int a; - - public c(int i) { - this.a = i; - } - - /* JADX WARNING: Removed duplicated region for block: B:98:0x0233 */ - @Override // c.i.a.c.d2.f0 - public int a(s0 s0Var, DecoderInputBuffer decoderInputBuffer, boolean z2) { - int i; - int i2; - b0 b0Var; - int i3; - d0 d0Var; - d0.a aVar; - int i4; - int i5; - b0 b0Var2 = b0.this; - int i6 = this.a; - if (b0Var2.D()) { - return -3; - } - b0Var2.y(i6); - e0 e0Var = b0Var2.C[i6]; - boolean z3 = b0Var2.U; - e0.a aVar2 = e0Var.b; - synchronized (e0Var) { - decoderInputBuffer.l = false; - i = -5; - if (!e0Var.m()) { - if (!z3) { - if (!e0Var.f794x) { - Format format = e0Var.B; - if (format != null && (z2 || format != e0Var.g)) { - e0Var.p(format, s0Var); - } - } - } - decoderInputBuffer.i = 4; - i = -4; - } else { - int k = e0Var.k(e0Var.t); - if (z2 || e0Var.p[k] != e0Var.g) { - e0Var.p(e0Var.p[k], s0Var); - } else if (!e0Var.o(k)) { - decoderInputBuffer.l = true; - } else { - decoderInputBuffer.i = e0Var.m[k]; - long j = e0Var.n[k]; - decoderInputBuffer.m = j; - if (j < e0Var.u) { - decoderInputBuffer.j(Integer.MIN_VALUE); - } - aVar2.a = e0Var.l[k]; - aVar2.b = e0Var.k[k]; - aVar2.f797c = e0Var.o[k]; - i = -4; - } - } - i = -3; - } - if (i == -4 && !decoderInputBuffer.n()) { - if (!(decoderInputBuffer.k == null && decoderInputBuffer.o == 0)) { - d0 d0Var2 = e0Var.a; - e0.a aVar3 = e0Var.b; - d0.a aVar4 = d0Var2.e; - c.i.a.c.i2.w wVar = d0Var2.f790c; - if (decoderInputBuffer.t()) { - long j2 = aVar3.b; - wVar.z(1); - d0.a e = d0.e(aVar4, j2, wVar.a, 1); - long j3 = j2 + 1; - byte b = wVar.a[0]; - boolean z4 = (b & 128) != 0; - int i7 = b & Byte.MAX_VALUE; - c.i.a.c.x1.b bVar = decoderInputBuffer.j; - byte[] bArr = bVar.a; - if (bArr == null) { - bVar.a = new byte[16]; - } else { - Arrays.fill(bArr, (byte) 0); - } - d0.a e2 = d0.e(e, j3, bVar.a, i7); - long j4 = j3 + ((long) i7); - if (z4) { - wVar.z(2); - e2 = d0.e(e2, j4, wVar.a, 2); - j4 += 2; - i4 = wVar.x(); - } else { - i4 = 1; - } - int[] iArr = bVar.d; - if (iArr == null || iArr.length < i4) { - iArr = new int[i4]; - } - int[] iArr2 = bVar.e; - b0Var = b0Var2; - if (iArr2 == null || iArr2.length < i4) { - iArr2 = new int[i4]; - } - if (z4) { - int i8 = i4 * 6; - wVar.z(i8); - e2 = d0.e(e2, j4, wVar.a, i8); - i5 = i6; - j4 += (long) i8; - wVar.D(0); - for (int i9 = 0; i9 < i4; i9++) { - iArr[i9] = wVar.x(); - iArr2[i9] = wVar.v(); - } - } else { - i5 = i6; - iArr[0] = 0; - iArr2[0] = aVar3.a - ((int) (j4 - aVar3.b)); - } - w.a aVar5 = aVar3.f797c; - int i10 = f0.a; - byte[] bArr2 = aVar5.b; - byte[] bArr3 = bVar.a; - i2 = i5; - int i11 = aVar5.a; - i3 = i; - int i12 = aVar5.f759c; - int i13 = aVar5.d; - bVar.f = i4; - bVar.d = iArr; - bVar.e = iArr2; - bVar.b = bArr2; - bVar.a = bArr3; - bVar.f1008c = i11; - bVar.g = i12; - bVar.h = i13; - d0Var = d0Var2; - MediaCodec.CryptoInfo cryptoInfo = bVar.i; - cryptoInfo.numSubSamples = i4; - cryptoInfo.numBytesOfClearData = iArr; - cryptoInfo.numBytesOfEncryptedData = iArr2; - cryptoInfo.key = bArr2; - cryptoInfo.iv = bArr3; - cryptoInfo.mode = i11; - if (f0.a >= 24) { - b.C0094b bVar2 = bVar.j; - Objects.requireNonNull(bVar2); - bVar2.b.set(i12, i13); - bVar2.a.setPattern(bVar2.b); - } - long j5 = aVar3.b; - int i14 = (int) (j4 - j5); - aVar3.b = j5 + ((long) i14); - aVar3.a -= i14; - aVar4 = e2; - } else { - d0Var = d0Var2; - b0Var = b0Var2; - i2 = i6; - i3 = i; - } - if (decoderInputBuffer.l()) { - wVar.z(4); - d0.a e3 = d0.e(aVar4, aVar3.b, wVar.a, 4); - int v = wVar.v(); - aVar3.b += 4; - aVar3.a -= 4; - decoderInputBuffer.r(v); - d0.a d = d0.d(e3, aVar3.b, decoderInputBuffer.k, v); - aVar3.b += (long) v; - int i15 = aVar3.a - v; - aVar3.a = i15; - ByteBuffer byteBuffer = decoderInputBuffer.n; - if (byteBuffer == null || byteBuffer.capacity() < i15) { - decoderInputBuffer.n = ByteBuffer.allocate(i15); - } else { - decoderInputBuffer.n.clear(); - } - aVar = d0.d(d, aVar3.b, decoderInputBuffer.n, aVar3.a); - } else { - decoderInputBuffer.r(aVar3.a); - aVar = d0.d(aVar4, aVar3.b, decoderInputBuffer.k, aVar3.a); - } - d0Var.e = aVar; - e0Var.t++; - if (i3 == -3) { - b0Var.z(i2); - } - return i3; - } - } - b0Var = b0Var2; - i2 = i6; - i3 = i; - if (i3 == -3) { - } - return i3; - } - - @Override // c.i.a.c.d2.f0 - public void b() throws IOException { - b0 b0Var = b0.this; - e0 e0Var = b0Var.C[this.a]; - DrmSession drmSession = e0Var.h; - if (drmSession == null || drmSession.getState() != 1) { - b0Var.A(); - return; - } - DrmSession.DrmSessionException f = e0Var.h.f(); - Objects.requireNonNull(f); - throw f; - } - - @Override // c.i.a.c.d2.f0 - public int c(long j) { - int i; - b0 b0Var = b0.this; - int i2 = this.a; - boolean z2 = false; - if (b0Var.D()) { - return 0; - } - b0Var.y(i2); - e0 e0Var = b0Var.C[i2]; - boolean z3 = b0Var.U; - synchronized (e0Var) { - int k = e0Var.k(e0Var.t); - if (e0Var.m()) { - if (j >= e0Var.n[k]) { - if (j <= e0Var.w || !z3) { - i = e0Var.i(k, e0Var.q - e0Var.t, j, true); - if (i == -1) { - i = 0; - } - } else { - i = e0Var.q - e0Var.t; - } - } - } - i = 0; - } - synchronized (e0Var) { - if (i >= 0) { - if (e0Var.t + i <= e0Var.q) { - z2 = true; - } - } - AnimatableValueParser.k(z2); - e0Var.t += i; - } - if (i == 0) { - b0Var.z(i2); - } - return i; - } - - @Override // c.i.a.c.d2.f0 - public boolean d() { - b0 b0Var = b0.this; - return !b0Var.D() && b0Var.C[this.a].n(b0Var.U); - } - } - - /* compiled from: ProgressiveMediaPeriod */ - public static final class d { - public final int a; - public final boolean b; - - public d(int i, boolean z2) { - this.a = i; - this.b = z2; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || d.class != obj.getClass()) { - return false; - } - d dVar = (d) obj; - return this.a == dVar.a && this.b == dVar.b; - } - - public int hashCode() { - return (this.a * 31) + (this.b ? 1 : 0); - } - } - - /* compiled from: ProgressiveMediaPeriod */ - public static final class e { - public final TrackGroupArray a; - public final boolean[] b; - - /* renamed from: c reason: collision with root package name */ - public final boolean[] f788c; - public final boolean[] d; - - public e(TrackGroupArray trackGroupArray, boolean[] zArr) { - this.a = trackGroupArray; - this.b = zArr; - int i = trackGroupArray.j; - this.f788c = new boolean[i]; - this.d = new boolean[i]; - } - } - - static { - HashMap hashMap = new HashMap(); - hashMap.put("Icy-MetaData", "1"); - i = Collections.unmodifiableMap(hashMap); - Format.b bVar = new Format.b(); - bVar.a = "icy"; - bVar.k = "application/x-icy"; - j = bVar.a(); - } - - public b0(Uri uri, c.i.a.c.h2.j jVar, c.i.a.c.a2.l lVar, s sVar, q.a aVar, u uVar, z.a aVar2, b bVar, m mVar, @Nullable String str, int i2) { - this.k = uri; - this.l = jVar; - this.m = sVar; - this.p = aVar; - this.n = uVar; - this.o = aVar2; - this.q = bVar; - this.r = mVar; - this.f783s = str; - this.t = (long) i2; - this.v = new k(lVar); - this.w = new c.i.a.c.i2.j(); - this.f784x = new g(this); - this.f785y = new i(this); - this.f786z = f0.j(); - this.D = new d[0]; - this.C = new e0[0]; - this.R = -9223372036854775807L; - this.P = -1; - this.J = -9223372036854775807L; - this.L = 1; - } - - public void A() throws IOException { - Loader loader = this.u; - int a2 = ((r) this.n).a(this.L); - IOException iOException = loader.e; - if (iOException == null) { - Loader.d dVar = loader.d; - if (dVar != null) { - if (a2 == Integer.MIN_VALUE) { - a2 = dVar.i; - } - IOException iOException2 = dVar.m; - if (iOException2 != null && dVar.n > a2) { - throw iOException2; - } - return; - } - return; - } - throw iOException; - } - - public final w B(d dVar) { - int length = this.C.length; - for (int i2 = 0; i2 < length; i2++) { - if (dVar.equals(this.D[i2])) { - return this.C[i2]; - } - } - m mVar = this.r; - Looper looper = this.f786z.getLooper(); - s sVar = this.m; - q.a aVar = this.p; - Objects.requireNonNull(looper); - Objects.requireNonNull(sVar); - Objects.requireNonNull(aVar); - e0 e0Var = new e0(mVar, looper, sVar, aVar); - e0Var.f = this; - int i3 = length + 1; - d[] dVarArr = (d[]) Arrays.copyOf(this.D, i3); - dVarArr[length] = dVar; - int i4 = f0.a; - this.D = dVarArr; - e0[] e0VarArr = (e0[]) Arrays.copyOf(this.C, i3); - e0VarArr[length] = e0Var; - this.C = e0VarArr; - return e0Var; - } - - public final void C() { - a aVar = new a(this.k, this.l, this.v, this, this.w); - if (this.F) { - AnimatableValueParser.D(w()); - long j2 = this.J; - if (j2 == -9223372036854775807L || this.R <= j2) { - t tVar = this.I; - Objects.requireNonNull(tVar); - long j3 = tVar.h(this.R).a.f758c; - long j4 = this.R; - aVar.g.a = j3; - aVar.j = j4; - aVar.i = true; - aVar.n = false; - for (e0 e0Var : this.C) { - e0Var.u = this.R; - } - this.R = -9223372036854775807L; - } else { - this.U = true; - this.R = -9223372036854775807L; - return; - } - } - this.T = u(); - Loader loader = this.u; - int a2 = ((r) this.n).a(this.L); - Objects.requireNonNull(loader); - Looper myLooper = Looper.myLooper(); - AnimatableValueParser.H(myLooper); - loader.e = null; - long elapsedRealtime = SystemClock.elapsedRealtime(); - new Loader.d(myLooper, aVar, this, a2, elapsedRealtime).b(0); - l lVar = aVar.k; - z.a aVar2 = this.o; - aVar2.f(new r(aVar.a, lVar, elapsedRealtime), new u(1, -1, null, 0, null, aVar2.a(aVar.j), aVar2.a(this.J))); - } - - public final boolean D() { - return this.N || w(); - } - - @Override // c.i.a.c.a2.j - public void a(t tVar) { - this.f786z.post(new h(this, tVar)); - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long, boolean] */ - @Override // com.google.android.exoplayer2.upstream.Loader.b - public void b(a aVar, long j2, long j3, boolean z2) { - a aVar2 = aVar; - c.i.a.c.h2.v vVar = aVar2.f787c; - r rVar = new r(aVar2.a, aVar2.k, vVar.f891c, vVar.d, j2, j3, vVar.b); - Objects.requireNonNull(this.n); - z.a aVar3 = this.o; - aVar3.c(rVar, new u(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.J))); - if (!z2) { - if (this.P == -1) { - this.P = aVar2.l; - } - for (e0 e0Var : this.C) { - e0Var.q(false); - } - if (this.O > 0) { - v.a aVar4 = this.A; - Objects.requireNonNull(aVar4); - aVar4.a(this); - } - } - } - - @Override // c.i.a.c.d2.v - public long c() { - if (this.O == 0) { - return Long.MIN_VALUE; - } - return q(); - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long] */ - @Override // com.google.android.exoplayer2.upstream.Loader.b - public void d(a aVar, long j2, long j3) { - t tVar; - a aVar2 = aVar; - if (this.J == -9223372036854775807L && (tVar = this.I) != null) { - boolean c2 = tVar.c(); - long v = v(); - long j4 = v == Long.MIN_VALUE ? 0 : v + 10000; - this.J = j4; - ((c0) this.q).t(j4, c2, this.K); - } - c.i.a.c.h2.v vVar = aVar2.f787c; - r rVar = new r(aVar2.a, aVar2.k, vVar.f891c, vVar.d, j2, j3, vVar.b); - Objects.requireNonNull(this.n); - z.a aVar3 = this.o; - aVar3.d(rVar, new u(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.J))); - if (this.P == -1) { - this.P = aVar2.l; - } - this.U = true; - v.a aVar4 = this.A; - Objects.requireNonNull(aVar4); - aVar4.a(this); - } - - @Override // c.i.a.c.d2.v - public void e() throws IOException { - A(); - if (this.U && !this.F) { - throw new ParserException("Loading finished before preparation is complete."); - } - } - - @Override // c.i.a.c.d2.v - public long f(long j2) { - boolean z2; - t(); - boolean[] zArr = this.H.b; - if (!this.I.c()) { - j2 = 0; - } - this.N = false; - this.Q = j2; - if (w()) { - this.R = j2; - return j2; - } - if (this.L != 7) { - int length = this.C.length; - int i2 = 0; - while (true) { - if (i2 >= length) { - z2 = true; - break; - } else if (this.C[i2].r(j2, false) || (!zArr[i2] && this.G)) { - i2++; - } - } - z2 = false; - if (z2) { - return j2; - } - } - this.S = false; - this.R = j2; - this.U = false; - if (this.u.b()) { - for (e0 e0Var : this.C) { - e0Var.h(); - } - Loader.d dVar = this.u.d; - AnimatableValueParser.H(dVar); - dVar.a(false); - } else { - this.u.e = null; - for (e0 e0Var2 : this.C) { - e0Var2.q(false); - } - } - return j2; - } - - @Override // c.i.a.c.d2.v - public boolean g(long j2) { - if (!this.U) { - if (!(this.u.e != null) && !this.S && (!this.F || this.O != 0)) { - boolean b2 = this.w.b(); - if (this.u.b()) { - return b2; - } - C(); - return true; - } - } - return false; - } - - @Override // c.i.a.c.d2.v - public boolean h() { - boolean z2; - if (this.u.b()) { - c.i.a.c.i2.j jVar = this.w; - synchronized (jVar) { - z2 = jVar.b; - } - if (z2) { - return true; - } - } - return false; - } - - @Override // c.i.a.c.d2.v - public long i(long j2, o1 o1Var) { - t(); - if (!this.I.c()) { - return 0; - } - t.a h = this.I.h(j2); - long j3 = h.a.b; - long j4 = h.b.b; - long j5 = o1Var.f936c; - if (j5 == 0 && o1Var.d == 0) { - return j2; - } - long j6 = Long.MIN_VALUE; - int i2 = f0.a; - long j7 = j2 - j5; - if (((j5 ^ j2) & (j2 ^ j7)) >= 0) { - j6 = j7; - } - long j8 = o1Var.d; - long j9 = Long.MAX_VALUE; - long j10 = j2 + j8; - if (((j8 ^ j10) & (j2 ^ j10)) >= 0) { - j9 = j10; - } - boolean z2 = false; - boolean z3 = j6 <= j3 && j3 <= j9; - if (j6 <= j4 && j4 <= j9) { - z2 = true; - } - if (!z3 || !z2) { - if (z3) { - return j3; - } - if (!z2) { - return j6; - } - } else if (Math.abs(j3 - j2) <= Math.abs(j4 - j2)) { - return j3; - } - return j4; - } - - @Override // c.i.a.c.a2.j - public void j() { - this.E = true; - this.f786z.post(this.f784x); - } - - @Override // c.i.a.c.d2.v - public long k() { - if (!this.N) { - return -9223372036854775807L; - } - if (!this.U && u() <= this.T) { - return -9223372036854775807L; - } - this.N = false; - return this.Q; - } - - @Override // c.i.a.c.d2.v - public void l(v.a aVar, long j2) { - this.A = aVar; - this.w.b(); - C(); - } - - @Override // c.i.a.c.d2.v - public long m(g[] gVarArr, boolean[] zArr, f0[] f0VarArr, boolean[] zArr2, long j2) { - t(); - e eVar = this.H; - TrackGroupArray trackGroupArray = eVar.a; - boolean[] zArr3 = eVar.f788c; - int i2 = this.O; - for (int i3 = 0; i3 < gVarArr.length; i3++) { - if (f0VarArr[i3] != null && (gVarArr[i3] == null || !zArr[i3])) { - int i4 = ((c) f0VarArr[i3]).a; - AnimatableValueParser.D(zArr3[i4]); - this.O--; - zArr3[i4] = false; - f0VarArr[i3] = null; - } - } - boolean z2 = !this.M ? j2 != 0 : i2 == 0; - for (int i5 = 0; i5 < gVarArr.length; i5++) { - if (f0VarArr[i5] == null && gVarArr[i5] != null) { - g gVar = gVarArr[i5]; - AnimatableValueParser.D(gVar.length() == 1); - AnimatableValueParser.D(gVar.f(0) == 0); - int a2 = trackGroupArray.a(gVar.a()); - AnimatableValueParser.D(!zArr3[a2]); - this.O++; - zArr3[a2] = true; - f0VarArr[i5] = new c(a2); - zArr2[i5] = true; - if (!z2) { - e0 e0Var = this.C[a2]; - z2 = !e0Var.r(j2, true) && e0Var.r + e0Var.t != 0; - } - } - } - if (this.O == 0) { - this.S = false; - this.N = false; - if (this.u.b()) { - for (e0 e0Var2 : this.C) { - e0Var2.h(); - } - Loader.d dVar = this.u.d; - AnimatableValueParser.H(dVar); - dVar.a(false); - } else { - for (e0 e0Var3 : this.C) { - e0Var3.q(false); - } - } - } else if (z2) { - j2 = f(j2); - for (int i6 = 0; i6 < f0VarArr.length; i6++) { - if (f0VarArr[i6] != null) { - zArr2[i6] = true; - } - } - } - this.M = true; - return j2; - } - - @Override // c.i.a.c.d2.v - public TrackGroupArray n() { - t(); - return this.H.a; - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long, java.io.IOException, int] */ - /* JADX WARNING: Removed duplicated region for block: B:38:0x00ba */ - /* JADX WARNING: Removed duplicated region for block: B:39:0x00bf */ - @Override // com.google.android.exoplayer2.upstream.Loader.b - public Loader.c o(a aVar, long j2, long j3, IOException iOException, int i2) { - Loader.c cVar; - boolean z2; - t tVar; - a aVar2 = aVar; - if (this.P == -1) { - this.P = aVar2.l; - } - c.i.a.c.h2.v vVar = aVar2.f787c; - r rVar = new r(aVar2.a, aVar2.k, vVar.f891c, vVar.d, j2, j3, vVar.b); - h0.b(aVar2.j); - h0.b(this.J); - r rVar2 = (r) this.n; - long min = ((iOException instanceof ParserException) || (iOException instanceof FileNotFoundException) || (iOException instanceof HttpDataSource$CleartextNotPermittedException) || (iOException instanceof Loader.UnexpectedLoaderException)) ? -9223372036854775807L : (long) Math.min((i2 - 1) * 1000, 5000); - boolean z3 = false; - if (min == -9223372036854775807L) { - cVar = Loader.b; - } else { - int u = u(); - boolean z4 = u > this.T; - if (this.P != -1 || ((tVar = this.I) != null && tVar.i() != -9223372036854775807L)) { - this.T = u; - } else if (!this.F || D()) { - this.N = this.F; - this.Q = 0; - this.T = 0; - for (e0 e0Var : this.C) { - e0Var.q(false); - } - aVar2.g.a = 0; - aVar2.j = 0; - aVar2.i = true; - aVar2.n = false; - } else { - this.S = true; - z2 = false; - cVar = !z2 ? Loader.a(z4, min) : Loader.a; - } - z2 = true; - if (!z2) { - } - } - int i3 = cVar.a; - if (i3 == 0 || i3 == 1) { - z3 = true; - } - boolean z5 = !z3; - z.a aVar3 = this.o; - aVar3.e(rVar, new u(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.J)), iOException, z5); - if (z5) { - Objects.requireNonNull(this.n); - } - return cVar; - } - - @Override // c.i.a.c.a2.j - public w p(int i2, int i3) { - return B(new d(i2, false)); - } - - @Override // c.i.a.c.d2.v - public long q() { - long j2; - boolean z2; - long j3; - t(); - boolean[] zArr = this.H.b; - if (this.U) { - return Long.MIN_VALUE; - } - if (w()) { - return this.R; - } - if (this.G) { - int length = this.C.length; - j2 = Long.MAX_VALUE; - for (int i2 = 0; i2 < length; i2++) { - if (zArr[i2]) { - e0 e0Var = this.C[i2]; - synchronized (e0Var) { - z2 = e0Var.f794x; - } - if (!z2) { - e0 e0Var2 = this.C[i2]; - synchronized (e0Var2) { - j3 = e0Var2.w; - } - j2 = Math.min(j2, j3); - } else { - continue; - } - } - } - } else { - j2 = Long.MAX_VALUE; - } - if (j2 == Long.MAX_VALUE) { - j2 = v(); - } - return j2 == Long.MIN_VALUE ? this.Q : j2; - } - - @Override // c.i.a.c.d2.v - public void r(long j2, boolean z2) { - long j3; - int i2; - t(); - if (!w()) { - boolean[] zArr = this.H.f788c; - int length = this.C.length; - for (int i3 = 0; i3 < length; i3++) { - e0 e0Var = this.C[i3]; - boolean z3 = zArr[i3]; - d0 d0Var = e0Var.a; - synchronized (e0Var) { - int i4 = e0Var.q; - j3 = -1; - if (i4 != 0) { - long[] jArr = e0Var.n; - int i5 = e0Var.f793s; - if (j2 >= jArr[i5]) { - int i6 = e0Var.i(i5, (!z3 || (i2 = e0Var.t) == i4) ? i4 : i2 + 1, j2, z2); - if (i6 != -1) { - j3 = e0Var.g(i6); - } - } - } - } - d0Var.a(j3); - } - } - } - - @Override // c.i.a.c.d2.v - public void s(long j2) { - } - - @EnsuresNonNull({"trackState", "seekMap"}) - public final void t() { - AnimatableValueParser.D(this.F); - Objects.requireNonNull(this.H); - Objects.requireNonNull(this.I); - } - - public final int u() { - e0[] e0VarArr = this.C; - int i2 = 0; - for (e0 e0Var : e0VarArr) { - i2 += e0Var.r + e0Var.q; - } - return i2; - } - - public final long v() { - long j2; - e0[] e0VarArr = this.C; - long j3 = Long.MIN_VALUE; - for (e0 e0Var : e0VarArr) { - synchronized (e0Var) { - j2 = e0Var.w; - } - j3 = Math.max(j3, j2); - } - return j3; - } - - public final boolean w() { - return this.R != -9223372036854775807L; - } - - public final void x() { - if (!(this.V || this.F || !this.E || this.I == null)) { - for (e0 e0Var : this.C) { - if (e0Var.l() == null) { - return; - } - } - this.w.a(); - int length = this.C.length; - TrackGroup[] trackGroupArr = new TrackGroup[length]; - boolean[] zArr = new boolean[length]; - for (int i2 = 0; i2 < length; i2++) { - Format l = this.C[i2].l(); - Objects.requireNonNull(l); - String str = l.t; - boolean h = c.i.a.c.i2.s.h(str); - boolean z2 = h || c.i.a.c.i2.s.j(str); - zArr[i2] = z2; - this.G = z2 | this.G; - IcyHeaders icyHeaders = this.B; - if (icyHeaders != null) { - if (h || this.D[i2].b) { - Metadata metadata = l.r; - Metadata metadata2 = metadata == null ? new Metadata(icyHeaders) : metadata.a(icyHeaders); - Format.b a2 = l.a(); - a2.i = metadata2; - l = a2.a(); - } - if (h && l.n == -1 && l.o == -1 && icyHeaders.i != -1) { - Format.b a3 = l.a(); - a3.f = icyHeaders.i; - l = a3.a(); - } - } - Class c2 = this.m.c(l); - Format.b a4 = l.a(); - a4.D = c2; - trackGroupArr[i2] = new TrackGroup(a4.a()); - } - this.H = new e(new TrackGroupArray(trackGroupArr), zArr); - this.F = true; - v.a aVar = this.A; - Objects.requireNonNull(aVar); - aVar.b(this); - } - } - - public final void y(int i2) { - t(); - e eVar = this.H; - boolean[] zArr = eVar.d; - if (!zArr[i2]) { - Format format = eVar.a.k[i2].j[0]; - z.a aVar = this.o; - aVar.b(new u(1, c.i.a.c.i2.s.g(format.t), format, 0, null, aVar.a(this.Q), -9223372036854775807L)); - zArr[i2] = true; - } - } - - public final void z(int i2) { - t(); - boolean[] zArr = this.H.b; - if (this.S && zArr[i2] && !this.C[i2].n(false)) { - this.R = 0; - this.S = false; - this.N = true; - this.Q = 0; - this.T = 0; - for (e0 e0Var : this.C) { - e0Var.q(false); - } - v.a aVar = this.A; - Objects.requireNonNull(aVar); - aVar.a(this); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/c.java b/app/src/main/java/c/i/a/c/d2/c.java deleted file mode 100644 index 6b386f0115..0000000000 --- a/app/src/main/java/c/i/a/c/d2/c.java +++ /dev/null @@ -1,23 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.z; -/* compiled from: lambda */ -public final /* synthetic */ class c implements Runnable { - public final /* synthetic */ z.a i; - public final /* synthetic */ z j; - public final /* synthetic */ r k; - public final /* synthetic */ u l; - - public /* synthetic */ c(z.a aVar, z zVar, r rVar, u uVar) { - this.i = aVar; - this.j = zVar; - this.k = rVar; - this.l = uVar; - } - - @Override // java.lang.Runnable - public final void run() { - z.a aVar = this.i; - this.j.N(aVar.a, aVar.b, this.k, this.l); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/c0.java b/app/src/main/java/c/i/a/c/d2/c0.java deleted file mode 100644 index a2a06b639e..0000000000 --- a/app/src/main/java/c/i/a/c/d2/c0.java +++ /dev/null @@ -1,156 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import c.i.a.c.a2.l; -import c.i.a.c.d2.b0; -import c.i.a.c.d2.y; -import c.i.a.c.h2.j; -import c.i.a.c.h2.m; -import c.i.a.c.h2.r; -import c.i.a.c.h2.u; -import c.i.a.c.h2.x; -import c.i.a.c.r1; -import c.i.a.c.v0; -import c.i.a.c.z1.p; -import c.i.a.c.z1.s; -import c.i.a.c.z1.t; -import com.google.android.exoplayer2.drm.DrmSession; -import com.google.android.exoplayer2.upstream.Loader; -import java.util.Objects; -/* compiled from: ProgressiveMediaSource */ -public final class c0 extends j implements b0.b { - public final v0 g; - public final v0.g h; - public final j.a i; - public final l j; - public final s k; - public final u l; - public final int m; - public boolean n = true; - public long o = -9223372036854775807L; - public boolean p; - public boolean q; - @Nullable - public x r; - - /* compiled from: ProgressiveMediaSource */ - public class a extends p { - public a(c0 c0Var, r1 r1Var) { - super(r1Var); - } - - @Override // c.i.a.c.r1 - public r1.c o(int i, r1.c cVar, long j) { - this.b.o(i, cVar, j); - cVar.n = true; - return cVar; - } - } - - /* compiled from: ProgressiveMediaSource */ - public static final class b implements a0 { - public final j.a a; - public l b; - - /* renamed from: c reason: collision with root package name */ - public t f789c = new p(); - public u d = new r(); - public int e = 1048576; - - public b(j.a aVar, l lVar) { - this.a = aVar; - this.b = lVar; - } - } - - public c0(v0 v0Var, j.a aVar, l lVar, s sVar, u uVar, int i) { - v0.g gVar = v0Var.b; - Objects.requireNonNull(gVar); - this.h = gVar; - this.g = v0Var; - this.i = aVar; - this.j = lVar; - this.k = sVar; - this.l = uVar; - this.m = i; - } - - @Override // c.i.a.c.d2.y - public v0 e() { - return this.g; - } - - @Override // c.i.a.c.d2.y - public void g() { - } - - @Override // c.i.a.c.d2.y - public void i(v vVar) { - b0 b0Var = (b0) vVar; - if (b0Var.F) { - e0[] e0VarArr = b0Var.C; - for (e0 e0Var : e0VarArr) { - e0Var.h(); - DrmSession drmSession = e0Var.h; - if (drmSession != null) { - drmSession.b(e0Var.d); - e0Var.h = null; - e0Var.g = null; - } - } - } - Loader loader = b0Var.u; - Loader.d dVar = loader.d; - if (dVar != null) { - dVar.a(true); - } - loader.f2286c.execute(new Loader.g(b0Var)); - loader.f2286c.shutdown(); - b0Var.f786z.removeCallbacksAndMessages(null); - b0Var.A = null; - b0Var.V = true; - } - - @Override // c.i.a.c.d2.y - public v m(y.a aVar, m mVar, long j) { - j a2 = this.i.a(); - x xVar = this.r; - if (xVar != null) { - a2.d(xVar); - } - return new b0(this.h.a, a2, this.j, this.k, this.d.g(0, aVar), this.l, this.f800c.g(0, aVar, 0), this, mVar, this.h.f, this.m); - } - - @Override // c.i.a.c.d2.j - public void p(@Nullable x xVar) { - this.r = xVar; - this.k.a(); - s(); - } - - @Override // c.i.a.c.d2.j - public void r() { - this.k.release(); - } - - public final void s() { - r1 i0Var = new i0(this.o, this.p, false, this.q, null, this.g); - if (this.n) { - i0Var = new a(this, i0Var); - } - q(i0Var); - } - - public void t(long j, boolean z2, boolean z3) { - if (j == -9223372036854775807L) { - j = this.o; - } - if (this.n || this.o != j || this.p != z2 || this.q != z3) { - this.o = j; - this.p = z2; - this.q = z3; - this.n = false; - s(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/d.java b/app/src/main/java/c/i/a/c/d2/d.java deleted file mode 100644 index 1df5b75b9d..0000000000 --- a/app/src/main/java/c/i/a/c/d2/d.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.z; -/* compiled from: lambda */ -public final /* synthetic */ class d implements Runnable { - public final /* synthetic */ z.a i; - public final /* synthetic */ z j; - public final /* synthetic */ u k; - - public /* synthetic */ d(z.a aVar, z zVar, u uVar) { - this.i = aVar; - this.j = zVar; - this.k = uVar; - } - - @Override // java.lang.Runnable - public final void run() { - z.a aVar = this.i; - this.j.l(aVar.a, aVar.b, this.k); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/d0.java b/app/src/main/java/c/i/a/c/d2/d0.java deleted file mode 100644 index 795a9ee99b..0000000000 --- a/app/src/main/java/c/i/a/c/d2/d0.java +++ /dev/null @@ -1,148 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import c.i.a.c.h2.c; -import c.i.a.c.h2.m; -import c.i.a.c.i2.w; -import java.nio.ByteBuffer; -import java.util.Objects; -/* compiled from: SampleDataQueue */ -public class d0 { - public final m a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final w f790c = new w(32); - public a d; - public a e; - public a f; - public long g; - - /* compiled from: SampleDataQueue */ - public static final class a { - public final long a; - public final long b; - - /* renamed from: c reason: collision with root package name */ - public boolean f791c; - @Nullable - public c d; - @Nullable - public a e; - - public a(long j, int i) { - this.a = j; - this.b = j + ((long) i); - } - - public int a(long j) { - return ((int) (j - this.a)) + this.d.b; - } - } - - public d0(m mVar) { - this.a = mVar; - int i = mVar.b; - this.b = i; - a aVar = new a(0, i); - this.d = aVar; - this.e = aVar; - this.f = aVar; - } - - public static a d(a aVar, long j, ByteBuffer byteBuffer, int i) { - while (j >= aVar.b) { - aVar = aVar.e; - } - while (i > 0) { - int min = Math.min(i, (int) (aVar.b - j)); - byteBuffer.put(aVar.d.a, aVar.a(j), min); - i -= min; - j += (long) min; - if (j == aVar.b) { - aVar = aVar.e; - } - } - return aVar; - } - - public static a e(a aVar, long j, byte[] bArr, int i) { - while (j >= aVar.b) { - aVar = aVar.e; - } - int i2 = i; - while (i2 > 0) { - int min = Math.min(i2, (int) (aVar.b - j)); - System.arraycopy(aVar.d.a, aVar.a(j), bArr, i - i2, min); - i2 -= min; - j += (long) min; - if (j == aVar.b) { - aVar = aVar.e; - } - } - return aVar; - } - - public void a(long j) { - if (j != -1) { - while (true) { - a aVar = this.d; - if (j >= aVar.b) { - m mVar = this.a; - c cVar = aVar.d; - synchronized (mVar) { - c[] cVarArr = mVar.f884c; - cVarArr[0] = cVar; - mVar.a(cVarArr); - } - a aVar2 = this.d; - aVar2.d = null; - a aVar3 = aVar2.e; - aVar2.e = null; - this.d = aVar3; - } else if (this.e.a < aVar.a) { - this.e = aVar; - return; - } else { - return; - } - } - } - } - - public final void b(int i) { - long j = this.g + ((long) i); - this.g = j; - a aVar = this.f; - if (j == aVar.b) { - this.f = aVar.e; - } - } - - public final int c(int i) { - c cVar; - a aVar = this.f; - if (!aVar.f791c) { - m mVar = this.a; - synchronized (mVar) { - mVar.e++; - int i2 = mVar.f; - if (i2 > 0) { - c[] cVarArr = mVar.g; - int i3 = i2 - 1; - mVar.f = i3; - cVar = cVarArr[i3]; - Objects.requireNonNull(cVar); - mVar.g[mVar.f] = null; - } else { - cVar = new c(new byte[mVar.b], 0); - } - } - a aVar2 = new a(this.f.b, this.b); - aVar.d = cVar; - aVar.e = aVar2; - aVar.f791c = true; - } - return Math.min(i, (int) (this.f.b - this.g)); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/e.java b/app/src/main/java/c/i/a/c/d2/e.java deleted file mode 100644 index 372119d56e..0000000000 --- a/app/src/main/java/c/i/a/c/d2/e.java +++ /dev/null @@ -1,23 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.z; -/* compiled from: lambda */ -public final /* synthetic */ class e implements Runnable { - public final /* synthetic */ z.a i; - public final /* synthetic */ z j; - public final /* synthetic */ r k; - public final /* synthetic */ u l; - - public /* synthetic */ e(z.a aVar, z zVar, r rVar, u uVar) { - this.i = aVar; - this.j = zVar; - this.k = rVar; - this.l = uVar; - } - - @Override // java.lang.Runnable - public final void run() { - z.a aVar = this.i; - this.j.q(aVar.a, aVar.b, this.k, this.l); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/e0.java b/app/src/main/java/c/i/a/c/d2/e0.java deleted file mode 100644 index d10eeded87..0000000000 --- a/app/src/main/java/c/i/a/c/d2/e0.java +++ /dev/null @@ -1,461 +0,0 @@ -package c.i.a.c.d2; - -import android.os.Looper; -import android.util.Log; -import androidx.annotation.CallSuper; -import androidx.annotation.Nullable; -import c.i.a.c.a2.v; -import c.i.a.c.a2.w; -import c.i.a.c.d2.d0; -import c.i.a.c.h2.c; -import c.i.a.c.h2.f; -import c.i.a.c.h2.m; -import c.i.a.c.i2.f0; -import c.i.a.c.s0; -import c.i.a.c.z1.q; -import c.i.a.c.z1.s; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.drm.DrmInitData; -import com.google.android.exoplayer2.drm.DrmSession; -import java.io.EOFException; -import java.io.IOException; -import java.util.Objects; -/* compiled from: SampleQueue */ -public class e0 implements w { - @Nullable - public Format A; - @Nullable - public Format B; - @Nullable - public Format C; - public boolean D; - public boolean E; - public final d0 a; - public final a b = new a(); - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final s f792c; - @Nullable - public final q.a d; - @Nullable - public final Looper e; - @Nullable - public b f; - @Nullable - public Format g; - @Nullable - public DrmSession h; - public int i = 1000; - public int[] j = new int[1000]; - public long[] k = new long[1000]; - public int[] l = new int[1000]; - public int[] m = new int[1000]; - public long[] n = new long[1000]; - public w.a[] o = new w.a[1000]; - public Format[] p = new Format[1000]; - public int q; - public int r; - - /* renamed from: s reason: collision with root package name */ - public int f793s; - public int t; - public long u = Long.MIN_VALUE; - public long v = Long.MIN_VALUE; - public long w = Long.MIN_VALUE; - - /* renamed from: x reason: collision with root package name */ - public boolean f794x; - - /* renamed from: y reason: collision with root package name */ - public boolean f795y = true; - - /* renamed from: z reason: collision with root package name */ - public boolean f796z = true; - - /* compiled from: SampleQueue */ - public static final class a { - public int a; - public long b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public w.a f797c; - } - - /* compiled from: SampleQueue */ - public interface b { - } - - public e0(m mVar, @Nullable Looper looper, @Nullable s sVar, @Nullable q.a aVar) { - this.e = looper; - this.f792c = sVar; - this.d = aVar; - this.a = new d0(mVar); - } - - @Override // c.i.a.c.a2.w - public final int a(f fVar, int i, boolean z2, int i2) throws IOException { - d0 d0Var = this.a; - int c2 = d0Var.c(i); - d0.a aVar = d0Var.f; - int read = fVar.read(aVar.d.a, aVar.a(d0Var.g), c2); - if (read != -1) { - d0Var.b(read); - return read; - } else if (z2) { - return -1; - } else { - throw new EOFException(); - } - } - - @Override // c.i.a.c.a2.w - public /* synthetic */ int b(f fVar, int i, boolean z2) { - return v.a(this, fVar, i, z2); - } - - @Override // c.i.a.c.a2.w - public /* synthetic */ void c(c.i.a.c.i2.w wVar, int i) { - v.b(this, wVar, i); - } - - @Override // c.i.a.c.a2.w - public void d(long j, int i, int i2, int i3, @Nullable w.a aVar) { - int i4 = i & 1; - boolean z2 = i4 != 0; - if (this.f795y) { - if (z2) { - this.f795y = false; - } else { - return; - } - } - long j2 = j + 0; - if (this.D) { - if (j2 >= this.u) { - if (i4 == 0) { - if (!this.E) { - StringBuilder K = c.d.b.a.a.K("Overriding unexpected non-sync sample for format: "); - K.append(this.B); - Log.w("SampleQueue", K.toString()); - this.E = true; - } - i |= 1; - } - } else { - return; - } - } - long j3 = (this.a.g - ((long) i2)) - ((long) i3); - synchronized (this) { - int i5 = this.q; - if (i5 > 0) { - int k = k(i5 - 1); - AnimatableValueParser.k(this.k[k] + ((long) this.l[k]) <= j3); - } - this.f794x = (536870912 & i) != 0; - this.w = Math.max(this.w, j2); - int k2 = k(this.q); - this.n[k2] = j2; - long[] jArr = this.k; - jArr[k2] = j3; - this.l[k2] = i2; - this.m[k2] = i; - this.o[k2] = aVar; - Format[] formatArr = this.p; - Format format = this.B; - formatArr[k2] = format; - this.j[k2] = 0; - this.C = format; - int i6 = this.q + 1; - this.q = i6; - int i7 = this.i; - if (i6 == i7) { - int i8 = i7 + 1000; - int[] iArr = new int[i8]; - long[] jArr2 = new long[i8]; - long[] jArr3 = new long[i8]; - int[] iArr2 = new int[i8]; - int[] iArr3 = new int[i8]; - w.a[] aVarArr = new w.a[i8]; - Format[] formatArr2 = new Format[i8]; - int i9 = this.f793s; - int i10 = i7 - i9; - System.arraycopy(jArr, i9, jArr2, 0, i10); - System.arraycopy(this.n, this.f793s, jArr3, 0, i10); - System.arraycopy(this.m, this.f793s, iArr2, 0, i10); - System.arraycopy(this.l, this.f793s, iArr3, 0, i10); - System.arraycopy(this.o, this.f793s, aVarArr, 0, i10); - System.arraycopy(this.p, this.f793s, formatArr2, 0, i10); - System.arraycopy(this.j, this.f793s, iArr, 0, i10); - int i11 = this.f793s; - System.arraycopy(this.k, 0, jArr2, i10, i11); - System.arraycopy(this.n, 0, jArr3, i10, i11); - System.arraycopy(this.m, 0, iArr2, i10, i11); - System.arraycopy(this.l, 0, iArr3, i10, i11); - System.arraycopy(this.o, 0, aVarArr, i10, i11); - System.arraycopy(this.p, 0, formatArr2, i10, i11); - System.arraycopy(this.j, 0, iArr, i10, i11); - this.k = jArr2; - this.n = jArr3; - this.m = iArr2; - this.l = iArr3; - this.o = aVarArr; - this.p = formatArr2; - this.j = iArr; - this.f793s = 0; - this.i = i8; - } - } - } - - @Override // c.i.a.c.a2.w - public final void e(Format format) { - boolean z2; - this.A = format; - synchronized (this) { - z2 = false; - this.f796z = false; - if (!f0.a(format, this.B)) { - if (f0.a(format, this.C)) { - this.B = this.C; - } else { - this.B = format; - } - Format format2 = this.B; - this.D = c.i.a.c.i2.s.a(format2.t, format2.q); - this.E = false; - z2 = true; - } - } - b bVar = this.f; - if (bVar != null && z2) { - b0 b0Var = (b0) bVar; - b0Var.f786z.post(b0Var.f784x); - } - } - - @Override // c.i.a.c.a2.w - public final void f(c.i.a.c.i2.w wVar, int i, int i2) { - d0 d0Var = this.a; - Objects.requireNonNull(d0Var); - while (i > 0) { - int c2 = d0Var.c(i); - d0.a aVar = d0Var.f; - wVar.e(aVar.d.a, aVar.a(d0Var.g), c2); - i -= c2; - d0Var.b(c2); - } - } - - public final long g(int i) { - this.v = Math.max(this.v, j(i)); - int i2 = this.q - i; - this.q = i2; - this.r += i; - int i3 = this.f793s + i; - this.f793s = i3; - int i4 = this.i; - if (i3 >= i4) { - this.f793s = i3 - i4; - } - int i5 = this.t - i; - this.t = i5; - if (i5 < 0) { - this.t = 0; - } - if (i2 != 0) { - return this.k[this.f793s]; - } - int i6 = this.f793s; - if (i6 != 0) { - i4 = i6; - } - int i7 = i4 - 1; - return this.k[i7] + ((long) this.l[i7]); - } - - public final void h() { - long g; - d0 d0Var = this.a; - synchronized (this) { - int i = this.q; - g = i == 0 ? -1 : g(i); - } - d0Var.a(g); - } - - public final int i(int i, int i2, long j, boolean z2) { - int i3 = -1; - for (int i4 = 0; i4 < i2; i4++) { - long[] jArr = this.n; - if (jArr[i] > j) { - return i3; - } - if (!z2 || (this.m[i] & 1) != 0) { - if (jArr[i] == j) { - return i4; - } - i3 = i4; - } - i++; - if (i == this.i) { - i = 0; - } - } - return i3; - } - - public final long j(int i) { - long j = Long.MIN_VALUE; - if (i == 0) { - return Long.MIN_VALUE; - } - int k = k(i - 1); - for (int i2 = 0; i2 < i; i2++) { - j = Math.max(j, this.n[k]); - if ((this.m[k] & 1) != 0) { - break; - } - k--; - if (k == -1) { - k = this.i - 1; - } - } - return j; - } - - public final int k(int i) { - int i2 = this.f793s + i; - int i3 = this.i; - return i2 < i3 ? i2 : i2 - i3; - } - - @Nullable - public final synchronized Format l() { - return this.f796z ? null : this.B; - } - - public final boolean m() { - return this.t != this.q; - } - - @CallSuper - public synchronized boolean n(boolean z2) { - Format format; - boolean z3 = true; - if (!m()) { - if (!z2 && !this.f794x && ((format = this.B) == null || format == this.g)) { - z3 = false; - } - return z3; - } - int k = k(this.t); - if (this.p[k] != this.g) { - return true; - } - return o(k); - } - - public final boolean o(int i) { - DrmSession drmSession = this.h; - return drmSession == null || drmSession.getState() == 4 || ((this.m[i] & 1073741824) == 0 && this.h.d()); - } - - public final void p(Format format, s0 s0Var) { - Format format2; - Format format3 = this.g; - boolean z2 = format3 == null; - DrmInitData drmInitData = z2 ? null : format3.w; - this.g = format; - DrmInitData drmInitData2 = format.w; - s sVar = this.f792c; - if (sVar != null) { - Class c2 = sVar.c(format); - Format.b a2 = format.a(); - a2.D = c2; - format2 = a2.a(); - } else { - format2 = format; - } - s0Var.b = format2; - s0Var.a = this.h; - if (this.f792c != null) { - if (z2 || !f0.a(drmInitData, drmInitData2)) { - DrmSession drmSession = this.h; - s sVar2 = this.f792c; - Looper looper = this.e; - Objects.requireNonNull(looper); - DrmSession b2 = sVar2.b(looper, this.d, format); - this.h = b2; - s0Var.a = b2; - if (drmSession != null) { - drmSession.b(this.d); - } - } - } - } - - @CallSuper - public void q(boolean z2) { - d0 d0Var = this.a; - d0.a aVar = d0Var.d; - if (aVar.f791c) { - d0.a aVar2 = d0Var.f; - int i = (((int) (aVar2.a - aVar.a)) / d0Var.b) + (aVar2.f791c ? 1 : 0); - c[] cVarArr = new c[i]; - int i2 = 0; - while (i2 < i) { - cVarArr[i2] = aVar.d; - aVar.d = null; - d0.a aVar3 = aVar.e; - aVar.e = null; - i2++; - aVar = aVar3; - } - d0Var.a.a(cVarArr); - } - d0.a aVar4 = new d0.a(0, d0Var.b); - d0Var.d = aVar4; - d0Var.e = aVar4; - d0Var.f = aVar4; - d0Var.g = 0; - d0Var.a.c(); - this.q = 0; - this.r = 0; - this.f793s = 0; - this.t = 0; - this.f795y = true; - this.u = Long.MIN_VALUE; - this.v = Long.MIN_VALUE; - this.w = Long.MIN_VALUE; - this.f794x = false; - this.C = null; - if (z2) { - this.A = null; - this.B = null; - this.f796z = true; - } - } - - public final synchronized boolean r(long j, boolean z2) { - synchronized (this) { - this.t = 0; - d0 d0Var = this.a; - d0Var.e = d0Var.d; - } - int k = k(0); - if (!m() || j < this.n[k] || (j > this.w && !z2)) { - return false; - } - int i = i(k, this.q - this.t, j, true); - if (i == -1) { - return false; - } - this.u = j; - this.t += i; - return true; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/f.java b/app/src/main/java/c/i/a/c/d2/f.java deleted file mode 100644 index 6ad224e3c6..0000000000 --- a/app/src/main/java/c/i/a/c/d2/f.java +++ /dev/null @@ -1,23 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.z; -/* compiled from: lambda */ -public final /* synthetic */ class f implements Runnable { - public final /* synthetic */ z.a i; - public final /* synthetic */ z j; - public final /* synthetic */ r k; - public final /* synthetic */ u l; - - public /* synthetic */ f(z.a aVar, z zVar, r rVar, u uVar) { - this.i = aVar; - this.j = zVar; - this.k = rVar; - this.l = uVar; - } - - @Override // java.lang.Runnable - public final void run() { - z.a aVar = this.i; - this.j.m(aVar.a, aVar.b, this.k, this.l); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/f0.java b/app/src/main/java/c/i/a/c/d2/f0.java deleted file mode 100644 index 37ea5f0191..0000000000 --- a/app/src/main/java/c/i/a/c/d2/f0.java +++ /dev/null @@ -1,15 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.s0; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import java.io.IOException; -/* compiled from: SampleStream */ -public interface f0 { - int a(s0 s0Var, DecoderInputBuffer decoderInputBuffer, boolean z2); - - void b() throws IOException; - - int c(long j); - - boolean d(); -} diff --git a/app/src/main/java/c/i/a/c/d2/g.java b/app/src/main/java/c/i/a/c/d2/g.java deleted file mode 100644 index 96b81e7abc..0000000000 --- a/app/src/main/java/c/i/a/c/d2/g.java +++ /dev/null @@ -1,14 +0,0 @@ -package c.i.a.c.d2; -/* compiled from: lambda */ -public final /* synthetic */ class g implements Runnable { - public final /* synthetic */ b0 i; - - public /* synthetic */ g(b0 b0Var) { - this.i = b0Var; - } - - @Override // java.lang.Runnable - public final void run() { - this.i.x(); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/g0.java b/app/src/main/java/c/i/a/c/d2/g0.java deleted file mode 100644 index ee7ea27748..0000000000 --- a/app/src/main/java/c/i/a/c/d2/g0.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.d2; -/* compiled from: SequenceableLoader */ -public interface g0 { - - /* compiled from: SequenceableLoader */ - public interface a { - void a(T t); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/h.java b/app/src/main/java/c/i/a/c/d2/h.java deleted file mode 100644 index 13b471dba6..0000000000 --- a/app/src/main/java/c/i/a/c/d2/h.java +++ /dev/null @@ -1,32 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.a2.t; -/* compiled from: lambda */ -public final /* synthetic */ class h implements Runnable { - public final /* synthetic */ b0 i; - public final /* synthetic */ t j; - - public /* synthetic */ h(b0 b0Var, t tVar) { - this.i = b0Var; - this.j = tVar; - } - - @Override // java.lang.Runnable - public final void run() { - b0 b0Var = this.i; - t tVar = this.j; - b0Var.I = b0Var.B == null ? tVar : new t.b(-9223372036854775807L, 0); - b0Var.J = tVar.i(); - int i = 1; - boolean z2 = b0Var.P == -1 && tVar.i() == -9223372036854775807L; - b0Var.K = z2; - if (z2) { - i = 7; - } - b0Var.L = i; - ((c0) b0Var.q).t(b0Var.J, tVar.c(), b0Var.K); - if (!b0Var.F) { - b0Var.x(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/h0.java b/app/src/main/java/c/i/a/c/d2/h0.java deleted file mode 100644 index 75074b37d4..0000000000 --- a/app/src/main/java/c/i/a/c/d2/h0.java +++ /dev/null @@ -1,160 +0,0 @@ -package c.i.a.c.d2; - -import java.util.Arrays; -import java.util.Random; -/* compiled from: ShuffleOrder */ -public interface h0 { - - /* compiled from: ShuffleOrder */ - public static class a implements h0 { - public final Random a; - public final int[] b; - - /* renamed from: c reason: collision with root package name */ - public final int[] f798c; - - /* JADX WARNING: Illegal instructions before constructor call */ - public a(int i, Random random) { - this(r0, random); - int[] iArr = new int[i]; - int i2 = 0; - while (i2 < i) { - int i3 = i2 + 1; - int nextInt = random.nextInt(i3); - iArr[i2] = iArr[nextInt]; - iArr[nextInt] = i2; - i2 = i3; - } - } - - public a(int[] iArr, Random random) { - this.b = iArr; - this.a = random; - this.f798c = new int[iArr.length]; - for (int i = 0; i < iArr.length; i++) { - this.f798c[iArr[i]] = i; - } - } - - @Override // c.i.a.c.d2.h0 - public h0 a(int i, int i2) { - int i3 = i2 - i; - int[] iArr = new int[(this.b.length - i3)]; - int i4 = 0; - int i5 = 0; - while (true) { - int[] iArr2 = this.b; - if (i4 >= iArr2.length) { - return new a(iArr, new Random(this.a.nextLong())); - } - if (iArr2[i4] < i || iArr2[i4] >= i2) { - iArr[i4 - i5] = iArr2[i4] >= i ? iArr2[i4] - i3 : iArr2[i4]; - } else { - i5++; - } - i4++; - } - } - - @Override // c.i.a.c.d2.h0 - public int b() { - return this.b.length; - } - - @Override // c.i.a.c.d2.h0 - public int c() { - int[] iArr = this.b; - if (iArr.length > 0) { - return iArr[0]; - } - return -1; - } - - @Override // c.i.a.c.d2.h0 - public int d(int i) { - int i2 = this.f798c[i] - 1; - if (i2 >= 0) { - return this.b[i2]; - } - return -1; - } - - @Override // c.i.a.c.d2.h0 - public int e(int i) { - int i2 = this.f798c[i] + 1; - int[] iArr = this.b; - if (i2 < iArr.length) { - return iArr[i2]; - } - return -1; - } - - @Override // c.i.a.c.d2.h0 - public h0 f(int i, int i2) { - int[] iArr = new int[i2]; - int[] iArr2 = new int[i2]; - int i3 = 0; - int i4 = 0; - while (i4 < i2) { - iArr[i4] = this.a.nextInt(this.b.length + 1); - int i5 = i4 + 1; - int nextInt = this.a.nextInt(i5); - iArr2[i4] = iArr2[nextInt]; - iArr2[nextInt] = i4 + i; - i4 = i5; - } - Arrays.sort(iArr); - int[] iArr3 = new int[(this.b.length + i2)]; - int i6 = 0; - int i7 = 0; - while (true) { - int[] iArr4 = this.b; - if (i3 >= iArr4.length + i2) { - return new a(iArr3, new Random(this.a.nextLong())); - } - if (i6 >= i2 || i7 != iArr[i6]) { - int i8 = i7 + 1; - iArr3[i3] = iArr4[i7]; - if (iArr3[i3] >= i) { - iArr3[i3] = iArr3[i3] + i2; - } - i7 = i8; - } else { - iArr3[i3] = iArr2[i6]; - i6++; - } - i3++; - } - } - - @Override // c.i.a.c.d2.h0 - public int g() { - int[] iArr = this.b; - if (iArr.length > 0) { - return iArr[iArr.length - 1]; - } - return -1; - } - - @Override // c.i.a.c.d2.h0 - public h0 h() { - return new a(0, new Random(this.a.nextLong())); - } - } - - h0 a(int i, int i2); - - int b(); - - int c(); - - int d(int i); - - int e(int i); - - h0 f(int i, int i2); - - int g(); - - h0 h(); -} diff --git a/app/src/main/java/c/i/a/c/d2/i.java b/app/src/main/java/c/i/a/c/d2/i.java deleted file mode 100644 index c0feff4edc..0000000000 --- a/app/src/main/java/c/i/a/c/d2/i.java +++ /dev/null @@ -1,22 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.v; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class i implements Runnable { - public final /* synthetic */ b0 i; - - public /* synthetic */ i(b0 b0Var) { - this.i = b0Var; - } - - @Override // java.lang.Runnable - public final void run() { - b0 b0Var = this.i; - if (!b0Var.V) { - v.a aVar = b0Var.A; - Objects.requireNonNull(aVar); - aVar.a(b0Var); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/i0.java b/app/src/main/java/c/i/a/c/d2/i0.java deleted file mode 100644 index 66c94263be..0000000000 --- a/app/src/main/java/c/i/a/c/d2/i0.java +++ /dev/null @@ -1,83 +0,0 @@ -package c.i.a.c.d2; - -import android.net.Uri; -import androidx.annotation.Nullable; -import c.i.a.c.d2.j0.a; -import c.i.a.c.r1; -import c.i.a.c.v0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Objects; -/* compiled from: SinglePeriodTimeline */ -public final class i0 extends r1 { - public static final Object b = new Object(); - - /* renamed from: c reason: collision with root package name */ - public final long f799c; - public final long d; - public final boolean e; - @Nullable - public final v0 f; - @Nullable - public final v0.f g; - - static { - v0.c cVar = new v0.c(); - cVar.a = "SinglePeriodTimeline"; - cVar.b = Uri.EMPTY; - cVar.a(); - } - - public i0(long j, boolean z2, boolean z3, boolean z4, @Nullable Object obj, v0 v0Var) { - v0.f fVar = z4 ? v0Var.f977c : null; - this.f799c = j; - this.d = j; - this.e = z2; - Objects.requireNonNull(v0Var); - this.f = v0Var; - this.g = fVar; - } - - @Override // c.i.a.c.r1 - public int b(Object obj) { - return b.equals(obj) ? 0 : -1; - } - - @Override // c.i.a.c.r1 - public r1.b g(int i, r1.b bVar, boolean z2) { - AnimatableValueParser.t(i, 0, 1); - Object obj = z2 ? b : null; - long j = this.f799c; - Objects.requireNonNull(bVar); - a aVar = a.a; - bVar.a = null; - bVar.b = obj; - bVar.f952c = 0; - bVar.d = j; - bVar.e = 0; - bVar.f = aVar; - return bVar; - } - - @Override // c.i.a.c.r1 - public int i() { - return 1; - } - - @Override // c.i.a.c.r1 - public Object m(int i) { - AnimatableValueParser.t(i, 0, 1); - return b; - } - - @Override // c.i.a.c.r1 - public r1.c o(int i, r1.c cVar, long j) { - AnimatableValueParser.t(i, 0, 1); - cVar.d(r1.c.a, this.f, null, -9223372036854775807L, -9223372036854775807L, -9223372036854775807L, this.e, false, this.g, 0, this.d, 0, 0, 0); - return cVar; - } - - @Override // c.i.a.c.r1 - public int p() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/j.java b/app/src/main/java/c/i/a/c/d2/j.java deleted file mode 100644 index 332ac82a3d..0000000000 --- a/app/src/main/java/c/i/a/c/d2/j.java +++ /dev/null @@ -1,131 +0,0 @@ -package c.i.a.c.d2; - -import android.os.Handler; -import android.os.Looper; -import androidx.annotation.Nullable; -import c.i.a.c.d2.y; -import c.i.a.c.d2.z; -import c.i.a.c.h2.x; -import c.i.a.c.r1; -import c.i.a.c.z1.q; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Objects; -/* compiled from: BaseMediaSource */ -public abstract class j implements y { - public final ArrayList a = new ArrayList<>(1); - public final HashSet b = new HashSet<>(1); - - /* renamed from: c reason: collision with root package name */ - public final z.a f800c = new z.a(); - public final q.a d = new q.a(); - @Nullable - public Looper e; - @Nullable - public r1 f; - - @Override // c.i.a.c.d2.y - public final void a(y.b bVar) { - this.a.remove(bVar); - if (this.a.isEmpty()) { - this.e = null; - this.f = null; - this.b.clear(); - r(); - return; - } - d(bVar); - } - - @Override // c.i.a.c.d2.y - public final void b(Handler handler, z zVar) { - z.a aVar = this.f800c; - Objects.requireNonNull(aVar); - aVar.f811c.add(new z.a.C0087a(handler, zVar)); - } - - @Override // c.i.a.c.d2.y - public final void c(z zVar) { - z.a aVar = this.f800c; - Iterator it = aVar.f811c.iterator(); - while (it.hasNext()) { - z.a.C0087a next = it.next(); - if (next.b == zVar) { - aVar.f811c.remove(next); - } - } - } - - @Override // c.i.a.c.d2.y - public final void d(y.b bVar) { - boolean z2 = !this.b.isEmpty(); - this.b.remove(bVar); - if (z2 && this.b.isEmpty()) { - n(); - } - } - - @Override // c.i.a.c.d2.y - public final void f(Handler handler, q qVar) { - q.a aVar = this.d; - Objects.requireNonNull(aVar); - aVar.f1017c.add(new q.a.C0095a(handler, qVar)); - } - - @Override // c.i.a.c.d2.y - public /* synthetic */ boolean h() { - return x.b(this); - } - - @Override // c.i.a.c.d2.y - public /* synthetic */ r1 j() { - return x.a(this); - } - - @Override // c.i.a.c.d2.y - public final void k(y.b bVar, @Nullable x xVar) { - Looper myLooper = Looper.myLooper(); - Looper looper = this.e; - AnimatableValueParser.k(looper == null || looper == myLooper); - r1 r1Var = this.f; - this.a.add(bVar); - if (this.e == null) { - this.e = myLooper; - this.b.add(bVar); - p(xVar); - } else if (r1Var != null) { - l(bVar); - bVar.a(this, r1Var); - } - } - - @Override // c.i.a.c.d2.y - public final void l(y.b bVar) { - Objects.requireNonNull(this.e); - boolean isEmpty = this.b.isEmpty(); - this.b.add(bVar); - if (isEmpty) { - o(); - } - } - - public void n() { - } - - public void o() { - } - - public abstract void p(@Nullable x xVar); - - public final void q(r1 r1Var) { - this.f = r1Var; - Iterator it = this.a.iterator(); - while (it.hasNext()) { - it.next().a(this, r1Var); - } - } - - public abstract void r(); -} diff --git a/app/src/main/java/c/i/a/c/d2/j0/a.java b/app/src/main/java/c/i/a/c/d2/j0/a.java deleted file mode 100644 index 69d29a5aad..0000000000 --- a/app/src/main/java/c/i/a/c/d2/j0/a.java +++ /dev/null @@ -1,140 +0,0 @@ -package c.i.a.c.d2.j0; - -import android.net.Uri; -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Arrays; -/* compiled from: AdPlaybackState */ -public final class a { - public static final a a = new a(null, new long[0], null, 0, -9223372036854775807L); - @Nullable - public final Object b = null; - - /* renamed from: c reason: collision with root package name */ - public final int f801c; - public final long[] d; - public final C0086a[] e; - public final long f; - public final long g; - - /* compiled from: AdPlaybackState */ - /* renamed from: c.i.a.c.d2.j0.a$a reason: collision with other inner class name */ - public static final class C0086a { - public final int a = -1; - public final Uri[] b = new Uri[0]; - - /* renamed from: c reason: collision with root package name */ - public final int[] f802c = new int[0]; - public final long[] d = new long[0]; - - public C0086a() { - AnimatableValueParser.k(true); - } - - public int a(int i) { - int i2 = i + 1; - while (true) { - int[] iArr = this.f802c; - if (i2 >= iArr.length || iArr[i2] == 0 || iArr[i2] == 1) { - break; - } - i2++; - } - return i2; - } - - public boolean b() { - return this.a == -1 || a(-1) < this.a; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || C0086a.class != obj.getClass()) { - return false; - } - C0086a aVar = (C0086a) obj; - return this.a == aVar.a && Arrays.equals(this.b, aVar.b) && Arrays.equals(this.f802c, aVar.f802c) && Arrays.equals(this.d, aVar.d); - } - - public int hashCode() { - int hashCode = Arrays.hashCode(this.f802c); - return Arrays.hashCode(this.d) + ((hashCode + (((this.a * 31) + Arrays.hashCode(this.b)) * 31)) * 31); - } - } - - public a(@Nullable Object obj, long[] jArr, @Nullable C0086a[] aVarArr, long j, long j2) { - this.d = jArr; - this.f = j; - this.g = j2; - int length = jArr.length; - this.f801c = length; - C0086a[] aVarArr2 = new C0086a[length]; - for (int i = 0; i < this.f801c; i++) { - aVarArr2[i] = new C0086a(); - } - this.e = aVarArr2; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || a.class != obj.getClass()) { - return false; - } - a aVar = (a) obj; - return f0.a(this.b, aVar.b) && this.f801c == aVar.f801c && this.f == aVar.f && this.g == aVar.g && Arrays.equals(this.d, aVar.d) && Arrays.equals(this.e, aVar.e); - } - - public int hashCode() { - int i = this.f801c * 31; - Object obj = this.b; - int hashCode = obj == null ? 0 : obj.hashCode(); - return Arrays.hashCode(this.e) + ((Arrays.hashCode(this.d) + ((((((i + hashCode) * 31) + ((int) this.f)) * 31) + ((int) this.g)) * 31)) * 31); - } - - public String toString() { - StringBuilder K = c.d.b.a.a.K("AdPlaybackState(adsId="); - K.append(this.b); - K.append(", adResumePositionUs="); - K.append(this.f); - K.append(", adGroups=["); - for (int i = 0; i < this.e.length; i++) { - K.append("adGroup(timeUs="); - K.append(this.d[i]); - K.append(", ads=["); - for (int i2 = 0; i2 < this.e[i].f802c.length; i2++) { - K.append("ad(state="); - int i3 = this.e[i].f802c[i2]; - if (i3 == 0) { - K.append('_'); - } else if (i3 == 1) { - K.append('R'); - } else if (i3 == 2) { - K.append('S'); - } else if (i3 == 3) { - K.append('P'); - } else if (i3 != 4) { - K.append('?'); - } else { - K.append('!'); - } - K.append(", durationUs="); - K.append(this.e[i].d[i2]); - K.append(')'); - if (i2 < this.e[i].f802c.length - 1) { - K.append(", "); - } - } - K.append("])"); - if (i < this.e.length - 1) { - K.append(", "); - } - } - K.append("])"); - return K.toString(); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/j0/b.java b/app/src/main/java/c/i/a/c/d2/j0/b.java deleted file mode 100644 index 81cd62cdc8..0000000000 --- a/app/src/main/java/c/i/a/c/d2/j0/b.java +++ /dev/null @@ -1,12 +0,0 @@ -package c.i.a.c.d2.j0; - -import android.view.View; -import androidx.annotation.Nullable; -/* compiled from: AdsLoader */ -public final class b { - public b(View view, int i) { - } - - public b(View view, int i, @Nullable String str) { - } -} diff --git a/app/src/main/java/c/i/a/c/d2/k.java b/app/src/main/java/c/i/a/c/d2/k.java deleted file mode 100644 index 20be1b0d83..0000000000 --- a/app/src/main/java/c/i/a/c/d2/k.java +++ /dev/null @@ -1,112 +0,0 @@ -package c.i.a.c.d2; - -import android.net.Uri; -import androidx.annotation.Nullable; -import c.d.b.a.a; -import c.i.a.c.a2.e; -import c.i.a.c.a2.h; -import c.i.a.c.a2.i; -import c.i.a.c.a2.j; -import c.i.a.c.a2.l; -import c.i.a.c.h2.f; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.source.UnrecognizedInputFormatException; -import java.io.EOFException; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.Objects; -/* compiled from: BundledExtractorsAdapter */ -public final class k { - public final l a; - @Nullable - public h b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public i f803c; - - public k(l lVar) { - this.a = lVar; - } - - public long a() { - i iVar = this.f803c; - if (iVar != null) { - return iVar.getPosition(); - } - return -1; - } - - /* JADX WARNING: Code restructure failed: missing block: B:17:0x003d, code lost: - if (r6.d != r11) goto L_0x005f; - */ - /* JADX WARNING: Code restructure failed: missing block: B:30:0x005c, code lost: - if (r6.d != r11) goto L_0x005f; - */ - /* JADX WARNING: Code restructure failed: missing block: B:31:0x005f, code lost: - r1 = false; - */ - public void b(f fVar, Uri uri, Map> map, long j, long j2, j jVar) throws IOException { - e eVar = new e(fVar, j, j2); - this.f803c = eVar; - if (this.b == null) { - h[] b = this.a.b(uri, map); - boolean z2 = true; - if (b.length == 1) { - this.b = b[0]; - } else { - int length = b.length; - int i = 0; - while (true) { - if (i >= length) { - break; - } - h hVar = b[i]; - try { - if (hVar.b(eVar)) { - this.b = hVar; - AnimatableValueParser.D(true); - eVar.f = 0; - break; - } - if (this.b == null) { - } - boolean z3 = true; - AnimatableValueParser.D(z3); - eVar.f = 0; - i++; - } catch (EOFException unused) { - if (this.b == null) { - } - } catch (Throwable th) { - if (this.b == null && eVar.d != j) { - z2 = false; - } - AnimatableValueParser.D(z2); - eVar.f = 0; - throw th; - } - } - if (this.b == null) { - StringBuilder K = a.K("None of the available extractors ("); - int i2 = f0.a; - StringBuilder sb = new StringBuilder(); - for (int i3 = 0; i3 < b.length; i3++) { - sb.append(b[i3].getClass().getSimpleName()); - if (i3 < b.length - 1) { - sb.append(", "); - } - } - K.append(sb.toString()); - K.append(") could read the stream."); - String sb2 = K.toString(); - Objects.requireNonNull(uri); - throw new UnrecognizedInputFormatException(sb2, uri); - } - } - this.b.f(jVar); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/l.java b/app/src/main/java/c/i/a/c/d2/l.java deleted file mode 100644 index e6d5d3a1f3..0000000000 --- a/app/src/main/java/c/i/a/c/d2/l.java +++ /dev/null @@ -1,335 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import c.i.a.c.d2.v; -import c.i.a.c.f2.g; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.s; -import c.i.a.c.o1; -import c.i.a.c.s0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.io.IOException; -import java.util.Objects; -/* compiled from: ClippingMediaPeriod */ -public final class l implements v, v.a { - public final v i; - @Nullable - public v.a j; - public a[] k = new a[0]; - public long l; - public long m; - public long n; - - /* compiled from: ClippingMediaPeriod */ - public final class a implements f0 { - public final f0 a; - public boolean b; - - public a(f0 f0Var) { - this.a = f0Var; - } - - @Override // c.i.a.c.d2.f0 - public int a(s0 s0Var, DecoderInputBuffer decoderInputBuffer, boolean z2) { - if (l.this.d()) { - return -3; - } - if (this.b) { - decoderInputBuffer.i = 4; - return -4; - } - int a = this.a.a(s0Var, decoderInputBuffer, z2); - if (a == -5) { - Format format = s0Var.b; - Objects.requireNonNull(format); - int i = format.J; - if (!(i == 0 && format.K == 0)) { - l lVar = l.this; - int i2 = 0; - if (lVar.m != 0) { - i = 0; - } - if (lVar.n == Long.MIN_VALUE) { - i2 = format.K; - } - Format.b a2 = format.a(); - a2.A = i; - a2.B = i2; - s0Var.b = a2.a(); - } - return -5; - } - l lVar2 = l.this; - long j = lVar2.n; - if (j == Long.MIN_VALUE || ((a != -4 || decoderInputBuffer.m < j) && (a != -3 || lVar2.q() != Long.MIN_VALUE || decoderInputBuffer.l))) { - return a; - } - decoderInputBuffer.p(); - decoderInputBuffer.i = 4; - this.b = true; - return -4; - } - - @Override // c.i.a.c.d2.f0 - public void b() throws IOException { - this.a.b(); - } - - @Override // c.i.a.c.d2.f0 - public int c(long j) { - if (l.this.d()) { - return -3; - } - return this.a.c(j); - } - - @Override // c.i.a.c.d2.f0 - public boolean d() { - return !l.this.d() && this.a.d(); - } - } - - public l(v vVar, boolean z2, long j, long j2) { - this.i = vVar; - this.l = z2 ? j : -9223372036854775807L; - this.m = j; - this.n = j2; - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [c.i.a.c.d2.g0] */ - @Override // c.i.a.c.d2.g0.a - public void a(v vVar) { - v.a aVar = this.j; - Objects.requireNonNull(aVar); - aVar.a(this); - } - - @Override // c.i.a.c.d2.v.a - public void b(v vVar) { - v.a aVar = this.j; - Objects.requireNonNull(aVar); - aVar.b(this); - } - - @Override // c.i.a.c.d2.v - public long c() { - long c2 = this.i.c(); - if (c2 != Long.MIN_VALUE) { - long j = this.n; - if (j == Long.MIN_VALUE || c2 < j) { - return c2; - } - } - return Long.MIN_VALUE; - } - - public boolean d() { - return this.l != -9223372036854775807L; - } - - @Override // c.i.a.c.d2.v - public void e() throws IOException { - this.i.e(); - } - - /* JADX WARNING: Code restructure failed: missing block: B:13:0x0031, code lost: - if (r0 > r7) goto L_0x0034; - */ - @Override // c.i.a.c.d2.v - public long f(long j) { - this.l = -9223372036854775807L; - a[] aVarArr = this.k; - boolean z2 = false; - for (a aVar : aVarArr) { - if (aVar != null) { - aVar.b = false; - } - } - long f = this.i.f(j); - if (f != j) { - if (f >= this.m) { - long j2 = this.n; - if (j2 != Long.MIN_VALUE) { - } - } - AnimatableValueParser.D(z2); - return f; - } - z2 = true; - AnimatableValueParser.D(z2); - return f; - } - - @Override // c.i.a.c.d2.v - public boolean g(long j) { - return this.i.g(j); - } - - @Override // c.i.a.c.d2.v - public boolean h() { - return this.i.h(); - } - - @Override // c.i.a.c.d2.v - public long i(long j, o1 o1Var) { - long j2 = this.m; - if (j == j2) { - return j2; - } - long i = f0.i(o1Var.f936c, 0, j - j2); - long j3 = o1Var.d; - long j4 = this.n; - long i2 = f0.i(j3, 0, j4 == Long.MIN_VALUE ? Long.MAX_VALUE : j4 - j); - if (!(i == o1Var.f936c && i2 == o1Var.d)) { - o1Var = new o1(i, i2); - } - return this.i.i(j, o1Var); - } - - @Override // c.i.a.c.d2.v - public long k() { - if (d()) { - long j = this.l; - this.l = -9223372036854775807L; - long k = k(); - return k != -9223372036854775807L ? k : j; - } - long k2 = this.i.k(); - if (k2 == -9223372036854775807L) { - return -9223372036854775807L; - } - boolean z2 = true; - AnimatableValueParser.D(k2 >= this.m); - long j2 = this.n; - if (j2 != Long.MIN_VALUE && k2 > j2) { - z2 = false; - } - AnimatableValueParser.D(z2); - return k2; - } - - @Override // c.i.a.c.d2.v - public void l(v.a aVar, long j) { - this.j = aVar; - this.i.l(this, j); - } - - /* JADX WARNING: Code restructure failed: missing block: B:32:0x0085, code lost: - if (r1 > r5) goto L_0x0088; - */ - /* JADX WARNING: Removed duplicated region for block: B:23:0x0068 */ - /* JADX WARNING: Removed duplicated region for block: B:27:0x0075 */ - /* JADX WARNING: Removed duplicated region for block: B:37:0x008f */ - @Override // c.i.a.c.d2.v - public long m(g[] gVarArr, boolean[] zArr, f0[] f0VarArr, boolean[] zArr2, long j) { - long j2; - boolean z2; - this.k = new a[f0VarArr.length]; - f0[] f0VarArr2 = new f0[f0VarArr.length]; - int i = 0; - while (true) { - f0 f0Var = null; - if (i >= f0VarArr.length) { - break; - } - a[] aVarArr = this.k; - aVarArr[i] = (a) f0VarArr[i]; - if (aVarArr[i] != null) { - f0Var = aVarArr[i].a; - } - f0VarArr2[i] = f0Var; - i++; - } - long m = this.i.m(gVarArr, zArr, f0VarArr2, zArr2, j); - boolean z3 = true; - if (d()) { - long j3 = this.m; - if (j == j3) { - if (j3 != 0) { - int length = gVarArr.length; - int i2 = 0; - while (true) { - if (i2 >= length) { - break; - } - g gVar = gVarArr[i2]; - if (gVar != null) { - Format h = gVar.h(); - if (!s.a(h.t, h.q)) { - z2 = true; - break; - } - } - i2++; - } - if (z2) { - j2 = m; - this.l = j2; - if (m != j) { - if (m >= this.m) { - long j4 = this.n; - if (j4 != Long.MIN_VALUE) { - } - } - z3 = false; - } - AnimatableValueParser.D(z3); - for (int i3 = 0; i3 < f0VarArr.length; i3++) { - if (f0VarArr2[i3] == null) { - this.k[i3] = null; - } else { - a[] aVarArr2 = this.k; - if (aVarArr2[i3] == null || aVarArr2[i3].a != f0VarArr2[i3]) { - aVarArr2[i3] = new a(f0VarArr2[i3]); - } - } - f0VarArr[i3] = this.k[i3]; - } - return m; - } - } - z2 = false; - if (z2) { - } - } - } - j2 = -9223372036854775807L; - this.l = j2; - if (m != j) { - } - AnimatableValueParser.D(z3); - while (i3 < f0VarArr.length) { - } - return m; - } - - @Override // c.i.a.c.d2.v - public TrackGroupArray n() { - return this.i.n(); - } - - @Override // c.i.a.c.d2.v - public long q() { - long q = this.i.q(); - if (q != Long.MIN_VALUE) { - long j = this.n; - if (j == Long.MIN_VALUE || q < j) { - return q; - } - } - return Long.MIN_VALUE; - } - - @Override // c.i.a.c.d2.v - public void r(long j, boolean z2) { - this.i.r(j, z2); - } - - @Override // c.i.a.c.d2.v - public void s(long j) { - this.i.s(j); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/m.java b/app/src/main/java/c/i/a/c/d2/m.java deleted file mode 100644 index 0b4b3fd709..0000000000 --- a/app/src/main/java/c/i/a/c/d2/m.java +++ /dev/null @@ -1,189 +0,0 @@ -package c.i.a.c.d2; - -import android.os.Handler; -import androidx.annotation.CallSuper; -import androidx.annotation.Nullable; -import c.i.a.c.d2.t; -import c.i.a.c.d2.y; -import c.i.a.c.d2.z; -import c.i.a.c.h2.x; -import c.i.a.c.i2.f0; -import c.i.a.c.z1.q; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.io.IOException; -import java.util.HashMap; -import java.util.Objects; -/* compiled from: CompositeMediaSource */ -public abstract class m extends j { - public final HashMap g = new HashMap<>(); - @Nullable - public Handler h; - @Nullable - public x i; - - /* compiled from: CompositeMediaSource */ - public final class a implements z, q { - public final T i; - public z.a j; - public q.a k; - - public a(T t) { - this.j = m.this.f800c.g(0, null, 0); - this.k = m.this.d.g(0, null); - this.i = t; - } - - @Override // c.i.a.c.z1.q - public void B(int i, @Nullable y.a aVar) { - a(i, aVar); - this.k.b(); - } - - @Override // c.i.a.c.z1.q - public void F(int i, @Nullable y.a aVar) { - a(i, aVar); - this.k.d(); - } - - @Override // c.i.a.c.z1.q - public void L(int i, @Nullable y.a aVar) { - a(i, aVar); - this.k.a(); - } - - @Override // c.i.a.c.d2.z - public void N(int i, @Nullable y.a aVar, r rVar, u uVar) { - a(i, aVar); - this.j.d(rVar, b(uVar)); - } - - @Override // c.i.a.c.z1.q - public void R(int i, @Nullable y.a aVar) { - a(i, aVar); - this.k.f(); - } - - @Override // c.i.a.c.d2.z - public void U(int i, @Nullable y.a aVar, r rVar, u uVar, IOException iOException, boolean z2) { - a(i, aVar); - this.j.e(rVar, b(uVar), iOException, z2); - } - - @Override // c.i.a.c.z1.q - public void W(int i, @Nullable y.a aVar) { - a(i, aVar); - this.k.c(); - } - - public final boolean a(int i, @Nullable y.a aVar) { - y.a aVar2; - if (aVar != null) { - m mVar = m.this; - T t = this.i; - t tVar = (t) mVar; - Objects.requireNonNull(tVar); - Object obj = aVar.a; - Object obj2 = tVar.n.e; - if (obj2 != null && obj2.equals(obj)) { - obj = t.a.f808c; - } - aVar2 = aVar.b(obj); - } else { - aVar2 = null; - } - Objects.requireNonNull(m.this); - z.a aVar3 = this.j; - if (aVar3.a != i || !f0.a(aVar3.b, aVar2)) { - this.j = m.this.f800c.g(i, aVar2, 0); - } - q.a aVar4 = this.k; - if (aVar4.a == i && f0.a(aVar4.b, aVar2)) { - return true; - } - this.k = new q.a(m.this.d.f1017c, i, aVar2); - return true; - } - - public final u b(u uVar) { - m mVar = m.this; - long j = uVar.f; - Objects.requireNonNull(mVar); - m mVar2 = m.this; - long j2 = uVar.g; - Objects.requireNonNull(mVar2); - return (j == uVar.f && j2 == uVar.g) ? uVar : new u(uVar.a, uVar.b, uVar.f809c, uVar.d, uVar.e, j, j2); - } - - @Override // c.i.a.c.d2.z - public void l(int i, @Nullable y.a aVar, u uVar) { - a(i, aVar); - this.j.b(b(uVar)); - } - - @Override // c.i.a.c.d2.z - public void m(int i, @Nullable y.a aVar, r rVar, u uVar) { - a(i, aVar); - this.j.c(rVar, b(uVar)); - } - - @Override // c.i.a.c.z1.q - public void o(int i, @Nullable y.a aVar, Exception exc) { - a(i, aVar); - this.k.e(exc); - } - - @Override // c.i.a.c.d2.z - public void q(int i, @Nullable y.a aVar, r rVar, u uVar) { - a(i, aVar); - this.j.f(rVar, b(uVar)); - } - } - - /* compiled from: CompositeMediaSource */ - public static final class b { - public final y a; - public final y.b b; - - /* renamed from: c reason: collision with root package name */ - public final z f805c; - - public b(y yVar, y.b bVar, z zVar) { - this.a = yVar; - this.b = bVar; - this.f805c = zVar; - } - } - - @Override // c.i.a.c.d2.j - @CallSuper - public void n() { - for (b bVar : this.g.values()) { - bVar.a.d(bVar.b); - } - } - - @Override // c.i.a.c.d2.j - @CallSuper - public void o() { - for (b bVar : this.g.values()) { - bVar.a.l(bVar.b); - } - } - - public final void s(T t, y yVar) { - AnimatableValueParser.k(!this.g.containsKey(null)); - y.b aVar = new a(this, null); - a aVar2 = new a(null); - this.g.put(null, new b(yVar, aVar, aVar2)); - Handler handler = this.h; - Objects.requireNonNull(handler); - yVar.b(handler, aVar2); - Handler handler2 = this.h; - Objects.requireNonNull(handler2); - yVar.f(handler2, aVar2); - yVar.k(aVar, this.i); - if (!(!this.b.isEmpty())) { - yVar.d(aVar); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/n.java b/app/src/main/java/c/i/a/c/d2/n.java deleted file mode 100644 index f743bbbfc5..0000000000 --- a/app/src/main/java/c/i/a/c/d2/n.java +++ /dev/null @@ -1,36 +0,0 @@ -package c.i.a.c.d2; - -import android.content.Context; -import android.util.SparseArray; -import c.i.a.c.a2.l; -import c.i.a.c.d2.c0; -import c.i.a.c.h2.j; -import c.i.a.c.h2.p; -/* compiled from: DefaultMediaSourceFactory */ -public final class n implements a0 { - public final SparseArray a; - public final int[] b; - - public n(Context context, l lVar) { - p pVar = new p(context); - SparseArray sparseArray = new SparseArray<>(); - try { - sparseArray.put(0, (a0) Class.forName("com.google.android.exoplayer2.source.dash.DashMediaSource$Factory").asSubclass(a0.class).getConstructor(j.a.class).newInstance(pVar)); - } catch (Exception unused) { - } - try { - sparseArray.put(1, (a0) Class.forName("com.google.android.exoplayer2.source.smoothstreaming.SsMediaSource$Factory").asSubclass(a0.class).getConstructor(j.a.class).newInstance(pVar)); - } catch (Exception unused2) { - } - try { - sparseArray.put(2, (a0) Class.forName("com.google.android.exoplayer2.source.hls.HlsMediaSource$Factory").asSubclass(a0.class).getConstructor(j.a.class).newInstance(pVar)); - } catch (Exception unused3) { - } - sparseArray.put(3, new c0.b(pVar, lVar)); - this.a = sparseArray; - this.b = new int[sparseArray.size()]; - for (int i = 0; i < this.a.size(); i++) { - this.b[i] = this.a.keyAt(i); - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/o.java b/app/src/main/java/c/i/a/c/d2/o.java deleted file mode 100644 index 8352490906..0000000000 --- a/app/src/main/java/c/i/a/c/d2/o.java +++ /dev/null @@ -1,26 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.s0; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -/* compiled from: EmptySampleStream */ -public final class o implements f0 { - @Override // c.i.a.c.d2.f0 - public int a(s0 s0Var, DecoderInputBuffer decoderInputBuffer, boolean z2) { - decoderInputBuffer.i = 4; - return -4; - } - - @Override // c.i.a.c.d2.f0 - public void b() { - } - - @Override // c.i.a.c.d2.f0 - public int c(long j) { - return 0; - } - - @Override // c.i.a.c.d2.f0 - public boolean d() { - return true; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/p.java b/app/src/main/java/c/i/a/c/d2/p.java deleted file mode 100644 index be464f979c..0000000000 --- a/app/src/main/java/c/i/a/c/d2/p.java +++ /dev/null @@ -1,56 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.r1; -/* compiled from: ForwardingTimeline */ -public abstract class p extends r1 { - public final r1 b; - - public p(r1 r1Var) { - this.b = r1Var; - } - - @Override // c.i.a.c.r1 - public int a(boolean z2) { - return this.b.a(z2); - } - - @Override // c.i.a.c.r1 - public int b(Object obj) { - return this.b.b(obj); - } - - @Override // c.i.a.c.r1 - public int c(boolean z2) { - return this.b.c(z2); - } - - @Override // c.i.a.c.r1 - public int e(int i, int i2, boolean z2) { - return this.b.e(i, i2, z2); - } - - @Override // c.i.a.c.r1 - public r1.b g(int i, r1.b bVar, boolean z2) { - return this.b.g(i, bVar, z2); - } - - @Override // c.i.a.c.r1 - public int i() { - return this.b.i(); - } - - @Override // c.i.a.c.r1 - public int l(int i, int i2, boolean z2) { - return this.b.l(i, i2, z2); - } - - @Override // c.i.a.c.r1 - public Object m(int i) { - return this.b.m(i); - } - - @Override // c.i.a.c.r1 - public int p() { - return this.b.p(); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/q.java b/app/src/main/java/c/i/a/c/d2/q.java deleted file mode 100644 index e3be280640..0000000000 --- a/app/src/main/java/c/i/a/c/d2/q.java +++ /dev/null @@ -1,130 +0,0 @@ -package c.i.a.c.d2; - -import android.net.Uri; -import androidx.annotation.Nullable; -import c.i.a.c.d2.b0; -import c.i.a.c.h2.j; -import c.i.a.c.h2.l; -import c.i.a.c.h2.x; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.Objects; -/* compiled from: IcyDataSource */ -public final class q implements j { - public final j a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final a f806c; - public final byte[] d; - public int e; - - /* compiled from: IcyDataSource */ - public interface a { - } - - public q(j jVar, int i, a aVar) { - AnimatableValueParser.k(i > 0); - this.a = jVar; - this.b = i; - this.f806c = aVar; - this.d = new byte[1]; - this.e = i; - } - - @Override // c.i.a.c.h2.j - public long a(l lVar) { - throw new UnsupportedOperationException(); - } - - @Override // c.i.a.c.h2.j - public void close() { - throw new UnsupportedOperationException(); - } - - @Override // c.i.a.c.h2.j - public void d(x xVar) { - Objects.requireNonNull(xVar); - this.a.d(xVar); - } - - @Override // c.i.a.c.h2.j - public Map> j() { - return this.a.j(); - } - - @Override // c.i.a.c.h2.j - @Nullable - public Uri m() { - return this.a.m(); - } - - /* JADX WARNING: Removed duplicated region for block: B:23:0x0073 */ - /* JADX WARNING: Removed duplicated region for block: B:24:0x0078 A[RETURN] */ - @Override // c.i.a.c.h2.f - public int read(byte[] bArr, int i, int i2) throws IOException { - long j; - if (this.e == 0) { - boolean z2 = true; - if (this.a.read(this.d, 0, 1) != -1) { - int i3 = (this.d[0] & 255) << 4; - if (i3 != 0) { - byte[] bArr2 = new byte[i3]; - int i4 = i3; - int i5 = 0; - while (true) { - if (i4 <= 0) { - while (i3 > 0) { - int i6 = i3 - 1; - if (bArr2[i6] != 0) { - break; - } - i3 = i6; - } - if (i3 > 0) { - a aVar = this.f806c; - w wVar = new w(bArr2, i3); - b0.a aVar2 = (b0.a) aVar; - if (!aVar2.n) { - j = aVar2.j; - } else { - b0 b0Var = b0.this; - Map map = b0.i; - j = Math.max(b0Var.v(), aVar2.j); - } - int a2 = wVar.a(); - c.i.a.c.a2.w wVar2 = aVar2.m; - Objects.requireNonNull(wVar2); - wVar2.c(wVar, a2); - wVar2.d(j, 1, a2, 0, null); - aVar2.n = true; - } - } else { - int read = this.a.read(bArr2, i5, i4); - if (read == -1) { - break; - } - i5 += read; - i4 -= read; - } - } - } - if (z2) { - return -1; - } - this.e = this.b; - } - z2 = false; - if (z2) { - } - } - int read2 = this.a.read(bArr, i, Math.min(this.e, i2)); - if (read2 != -1) { - this.e -= read2; - } - return read2; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/r.java b/app/src/main/java/c/i/a/c/d2/r.java deleted file mode 100644 index 58e080d677..0000000000 --- a/app/src/main/java/c/i/a/c/d2/r.java +++ /dev/null @@ -1,27 +0,0 @@ -package c.i.a.c.d2; - -import android.net.Uri; -import c.i.a.c.h2.l; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.atomic.AtomicLong; -/* compiled from: LoadEventInfo */ -public final class r { - public static final AtomicLong a = new AtomicLong(); - public final Map> b; - - /* renamed from: c reason: collision with root package name */ - public final long f807c; - - public r(long j, l lVar, long j2) { - Uri uri = lVar.a; - this.b = Collections.emptyMap(); - this.f807c = 0; - } - - public r(long j, l lVar, Uri uri, Map> map, long j2, long j3, long j4) { - this.b = map; - this.f807c = j3; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/s.java b/app/src/main/java/c/i/a/c/d2/s.java deleted file mode 100644 index 8dc413090f..0000000000 --- a/app/src/main/java/c/i/a/c/d2/s.java +++ /dev/null @@ -1,173 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import c.i.a.c.d2.v; -import c.i.a.c.d2.y; -import c.i.a.c.f2.g; -import c.i.a.c.h2.m; -import c.i.a.c.i2.f0; -import c.i.a.c.o1; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.io.IOException; -import java.util.Objects; -/* compiled from: MaskingMediaPeriod */ -public final class s implements v, v.a { - public final y.a i; - public final long j; - public final m k; - public y l; - public v m; - @Nullable - public v.a n; - public long o = -9223372036854775807L; - - public s(y.a aVar, m mVar, long j) { - this.i = aVar; - this.k = mVar; - this.j = j; - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [c.i.a.c.d2.g0] */ - @Override // c.i.a.c.d2.g0.a - public void a(v vVar) { - v.a aVar = this.n; - int i = f0.a; - aVar.a(this); - } - - @Override // c.i.a.c.d2.v.a - public void b(v vVar) { - v.a aVar = this.n; - int i = f0.a; - aVar.b(this); - } - - @Override // c.i.a.c.d2.v - public long c() { - v vVar = this.m; - int i = f0.a; - return vVar.c(); - } - - public void d(y.a aVar) { - long j = this.j; - long j2 = this.o; - if (j2 != -9223372036854775807L) { - j = j2; - } - y yVar = this.l; - Objects.requireNonNull(yVar); - v m = yVar.m(aVar, this.k, j); - this.m = m; - if (this.n != null) { - m.l(this, j); - } - } - - @Override // c.i.a.c.d2.v - public void e() throws IOException { - try { - v vVar = this.m; - if (vVar != null) { - vVar.e(); - return; - } - y yVar = this.l; - if (yVar != null) { - yVar.g(); - } - } catch (IOException e) { - throw e; - } - } - - @Override // c.i.a.c.d2.v - public long f(long j) { - v vVar = this.m; - int i = f0.a; - return vVar.f(j); - } - - @Override // c.i.a.c.d2.v - public boolean g(long j) { - v vVar = this.m; - return vVar != null && vVar.g(j); - } - - @Override // c.i.a.c.d2.v - public boolean h() { - v vVar = this.m; - return vVar != null && vVar.h(); - } - - @Override // c.i.a.c.d2.v - public long i(long j, o1 o1Var) { - v vVar = this.m; - int i = f0.a; - return vVar.i(j, o1Var); - } - - @Override // c.i.a.c.d2.v - public long k() { - v vVar = this.m; - int i = f0.a; - return vVar.k(); - } - - @Override // c.i.a.c.d2.v - public void l(v.a aVar, long j) { - this.n = aVar; - v vVar = this.m; - if (vVar != null) { - long j2 = this.j; - long j3 = this.o; - if (j3 != -9223372036854775807L) { - j2 = j3; - } - vVar.l(this, j2); - } - } - - @Override // c.i.a.c.d2.v - public long m(g[] gVarArr, boolean[] zArr, f0[] f0VarArr, boolean[] zArr2, long j) { - long j2; - long j3 = this.o; - if (j3 == -9223372036854775807L || j != this.j) { - j2 = j; - } else { - this.o = -9223372036854775807L; - j2 = j3; - } - v vVar = this.m; - int i = f0.a; - return vVar.m(gVarArr, zArr, f0VarArr, zArr2, j2); - } - - @Override // c.i.a.c.d2.v - public TrackGroupArray n() { - v vVar = this.m; - int i = f0.a; - return vVar.n(); - } - - @Override // c.i.a.c.d2.v - public long q() { - v vVar = this.m; - int i = f0.a; - return vVar.q(); - } - - @Override // c.i.a.c.d2.v - public void r(long j, boolean z2) { - v vVar = this.m; - int i = f0.a; - vVar.r(j, z2); - } - - @Override // c.i.a.c.d2.v - public void s(long j) { - v vVar = this.m; - int i = f0.a; - vVar.s(j); - } -} diff --git a/app/src/main/java/c/i/a/c/d2/t.java b/app/src/main/java/c/i/a/c/d2/t.java deleted file mode 100644 index 2a74d563a9..0000000000 --- a/app/src/main/java/c/i/a/c/d2/t.java +++ /dev/null @@ -1,224 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import androidx.annotation.VisibleForTesting; -import c.i.a.c.d2.m; -import c.i.a.c.d2.y; -import c.i.a.c.h2.x; -import c.i.a.c.i2.f0; -import c.i.a.c.r1; -import c.i.a.c.v0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Objects; -import org.checkerframework.checker.nullness.qual.RequiresNonNull; -/* compiled from: MaskingMediaSource */ -public final class t extends m { - public final y j; - public final boolean k; - public final r1.c l; - public final r1.b m; - public a n; - @Nullable - public s o; - public boolean p; - public boolean q; - public boolean r; - - /* compiled from: MaskingMediaSource */ - public static final class a extends p { - - /* renamed from: c reason: collision with root package name */ - public static final Object f808c = new Object(); - @Nullable - public final Object d; - @Nullable - public final Object e; - - public a(r1 r1Var, @Nullable Object obj, @Nullable Object obj2) { - super(r1Var); - this.d = obj; - this.e = obj2; - } - - @Override // c.i.a.c.d2.p, c.i.a.c.r1 - public int b(Object obj) { - Object obj2; - r1 r1Var = this.b; - if (f808c.equals(obj) && (obj2 = this.e) != null) { - obj = obj2; - } - return r1Var.b(obj); - } - - @Override // c.i.a.c.d2.p, c.i.a.c.r1 - public r1.b g(int i, r1.b bVar, boolean z2) { - this.b.g(i, bVar, z2); - if (f0.a(bVar.b, this.e) && z2) { - bVar.b = f808c; - } - return bVar; - } - - @Override // c.i.a.c.d2.p, c.i.a.c.r1 - public Object m(int i) { - Object m = this.b.m(i); - return f0.a(m, this.e) ? f808c : m; - } - - @Override // c.i.a.c.r1 - public r1.c o(int i, r1.c cVar, long j) { - this.b.o(i, cVar, j); - if (f0.a(cVar.f953c, this.d)) { - cVar.f953c = r1.c.a; - } - return cVar; - } - } - - /* compiled from: MaskingMediaSource */ - @VisibleForTesting - public static final class b extends r1 { - public final v0 b; - - public b(v0 v0Var) { - this.b = v0Var; - } - - @Override // c.i.a.c.r1 - public int b(Object obj) { - return obj == a.f808c ? 0 : -1; - } - - @Override // c.i.a.c.r1 - public r1.b g(int i, r1.b bVar, boolean z2) { - Object obj = null; - int i2 = z2 ? 0 : null; - if (z2) { - obj = a.f808c; - } - Objects.requireNonNull(bVar); - c.i.a.c.d2.j0.a aVar = c.i.a.c.d2.j0.a.a; - bVar.a = i2; - bVar.b = obj; - bVar.f952c = 0; - bVar.d = -9223372036854775807L; - bVar.e = 0; - bVar.f = aVar; - return bVar; - } - - @Override // c.i.a.c.r1 - public int i() { - return 1; - } - - @Override // c.i.a.c.r1 - public Object m(int i) { - return a.f808c; - } - - @Override // c.i.a.c.r1 - public r1.c o(int i, r1.c cVar, long j) { - cVar.d(r1.c.a, this.b, null, -9223372036854775807L, -9223372036854775807L, -9223372036854775807L, false, true, null, 0, -9223372036854775807L, 0, 0, 0); - cVar.n = true; - return cVar; - } - - @Override // c.i.a.c.r1 - public int p() { - return 1; - } - } - - public t(y yVar, boolean z2) { - this.j = yVar; - this.k = z2 && yVar.h(); - this.l = new r1.c(); - this.m = new r1.b(); - r1 j = yVar.j(); - if (j != null) { - this.n = new a(j, null, null); - this.r = true; - return; - } - this.n = new a(new b(yVar.e()), r1.c.a, a.f808c); - } - - @Override // c.i.a.c.d2.y - public v0 e() { - return this.j.e(); - } - - @Override // c.i.a.c.d2.y - public void g() { - } - - @Override // c.i.a.c.d2.y - public void i(v vVar) { - s sVar = (s) vVar; - if (sVar.m != null) { - y yVar = sVar.l; - Objects.requireNonNull(yVar); - yVar.i(sVar.m); - } - if (vVar == this.o) { - this.o = null; - } - } - - @Override // c.i.a.c.d2.j - public void p(@Nullable x xVar) { - this.i = xVar; - this.h = f0.j(); - if (!this.k) { - this.p = true; - s(null, this.j); - } - } - - @Override // c.i.a.c.d2.j - public void r() { - this.q = false; - this.p = false; - for (m.b bVar : this.g.values()) { - bVar.a.a(bVar.b); - bVar.a.c(bVar.f805c); - } - this.g.clear(); - } - - /* renamed from: t */ - public s m(y.a aVar, c.i.a.c.h2.m mVar, long j) { - s sVar = new s(aVar, mVar, j); - y yVar = this.j; - AnimatableValueParser.D(sVar.l == null); - sVar.l = yVar; - if (this.q) { - Object obj = aVar.a; - if (this.n.e != null && obj.equals(a.f808c)) { - obj = this.n.e; - } - sVar.d(aVar.b(obj)); - } else { - this.o = sVar; - if (!this.p) { - this.p = true; - s(null, this.j); - } - } - return sVar; - } - - @RequiresNonNull({"unpreparedMaskingMediaPeriod"}) - public final void u(long j) { - s sVar = this.o; - int b2 = this.n.b(sVar.i.a); - if (b2 != -1) { - long j2 = this.n.f(b2, this.m).d; - if (j2 != -9223372036854775807L && j >= j2) { - j = Math.max(0L, j2 - 1); - } - sVar.o = j; - } - } -} diff --git a/app/src/main/java/c/i/a/c/d2/u.java b/app/src/main/java/c/i/a/c/d2/u.java deleted file mode 100644 index a1d3b6f0f9..0000000000 --- a/app/src/main/java/c/i/a/c/d2/u.java +++ /dev/null @@ -1,28 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import com.google.android.exoplayer2.Format; -/* compiled from: MediaLoadData */ -public final class u { - public final int a; - public final int b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final Format f809c; - public final int d; - @Nullable - public final Object e; - public final long f; - public final long g; - - public u(int i, int i2, @Nullable Format format, int i3, @Nullable Object obj, long j, long j2) { - this.a = i; - this.b = i2; - this.f809c = format; - this.d = i3; - this.e = obj; - this.f = j; - this.g = j2; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/v.java b/app/src/main/java/c/i/a/c/d2/v.java deleted file mode 100644 index 5e2a47a408..0000000000 --- a/app/src/main/java/c/i/a/c/d2/v.java +++ /dev/null @@ -1,41 +0,0 @@ -package c.i.a.c.d2; - -import c.i.a.c.d2.g0; -import c.i.a.c.f2.g; -import c.i.a.c.o1; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.io.IOException; -/* compiled from: MediaPeriod */ -public interface v extends g0 { - - /* compiled from: MediaPeriod */ - public interface a extends g0.a { - void b(v vVar); - } - - long c(); - - void e() throws IOException; - - long f(long j); - - boolean g(long j); - - boolean h(); - - long i(long j, o1 o1Var); - - long k(); - - void l(a aVar, long j); - - long m(g[] gVarArr, boolean[] zArr, f0[] f0VarArr, boolean[] zArr2, long j); - - TrackGroupArray n(); - - long q(); - - void r(long j, boolean z2); - - void s(long j); -} diff --git a/app/src/main/java/c/i/a/c/d2/w.java b/app/src/main/java/c/i/a/c/d2/w.java deleted file mode 100644 index f8b652fc11..0000000000 --- a/app/src/main/java/c/i/a/c/d2/w.java +++ /dev/null @@ -1,72 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -/* compiled from: MediaPeriodId */ -public class w { - public final Object a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f810c; - public final long d; - public final int e; - - public w(w wVar) { - this.a = wVar.a; - this.b = wVar.b; - this.f810c = wVar.f810c; - this.d = wVar.d; - this.e = wVar.e; - } - - public w(Object obj) { - this.a = obj; - this.b = -1; - this.f810c = -1; - this.d = -1; - this.e = -1; - } - - public w(Object obj, int i, int i2, long j) { - this.a = obj; - this.b = i; - this.f810c = i2; - this.d = j; - this.e = -1; - } - - public w(Object obj, int i, int i2, long j, int i3) { - this.a = obj; - this.b = i; - this.f810c = i2; - this.d = j; - this.e = i3; - } - - public w(Object obj, long j, int i) { - this.a = obj; - this.b = -1; - this.f810c = -1; - this.d = j; - this.e = i; - } - - public boolean a() { - return this.b != -1; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (!(obj instanceof w)) { - return false; - } - w wVar = (w) obj; - return this.a.equals(wVar.a) && this.b == wVar.b && this.f810c == wVar.f810c && this.d == wVar.d && this.e == wVar.e; - } - - public int hashCode() { - return ((((((((this.a.hashCode() + 527) * 31) + this.b) * 31) + this.f810c) * 31) + ((int) this.d)) * 31) + this.e; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/x.java b/app/src/main/java/c/i/a/c/d2/x.java deleted file mode 100644 index 75989aba25..0000000000 --- a/app/src/main/java/c/i/a/c/d2/x.java +++ /dev/null @@ -1,15 +0,0 @@ -package c.i.a.c.d2; - -import androidx.annotation.Nullable; -import c.i.a.c.r1; -/* compiled from: MediaSource */ -public final /* synthetic */ class x { - @Nullable - public static r1 a(y yVar) { - return null; - } - - public static boolean b(y yVar) { - return true; - } -} diff --git a/app/src/main/java/c/i/a/c/d2/y.java b/app/src/main/java/c/i/a/c/d2/y.java deleted file mode 100644 index fcd66585c7..0000000000 --- a/app/src/main/java/c/i/a/c/d2/y.java +++ /dev/null @@ -1,68 +0,0 @@ -package c.i.a.c.d2; - -import android.os.Handler; -import androidx.annotation.Nullable; -import c.i.a.c.h2.m; -import c.i.a.c.h2.x; -import c.i.a.c.r1; -import c.i.a.c.v0; -import c.i.a.c.z1.q; -import java.io.IOException; -/* compiled from: MediaSource */ -public interface y { - - /* compiled from: MediaSource */ - public static final class a extends w { - public a(w wVar) { - super(wVar); - } - - public a(Object obj) { - super(obj); - } - - public a(Object obj, int i, int i2, long j) { - super(obj, i, i2, j); - } - - public a(Object obj, long j, int i) { - super(obj, j, i); - } - - public a b(Object obj) { - return new a(this.a.equals(obj) ? this : new w(obj, this.b, this.f810c, this.d, this.e)); - } - } - - /* compiled from: MediaSource */ - public interface b { - void a(y yVar, r1 r1Var); - } - - void a(b bVar); - - void b(Handler handler, z zVar); - - void c(z zVar); - - void d(b bVar); - - v0 e(); - - void f(Handler handler, q qVar); - - void g() throws IOException; - - boolean h(); - - void i(v vVar); - - @Nullable - r1 j(); - - void k(b bVar, @Nullable x xVar); - - void l(b bVar); - - v m(a aVar, m mVar, long j); -} diff --git a/app/src/main/java/c/i/a/c/d2/z.java b/app/src/main/java/c/i/a/c/d2/z.java deleted file mode 100644 index ecf86afdcd..0000000000 --- a/app/src/main/java/c/i/a/c/d2/z.java +++ /dev/null @@ -1,114 +0,0 @@ -package c.i.a.c.d2; - -import android.os.Handler; -import androidx.annotation.CheckResult; -import androidx.annotation.Nullable; -import c.i.a.c.d2.y; -import c.i.a.c.h0; -import c.i.a.c.i2.f0; -import java.io.IOException; -import java.util.Iterator; -import java.util.concurrent.CopyOnWriteArrayList; -/* compiled from: MediaSourceEventListener */ -public interface z { - - /* compiled from: MediaSourceEventListener */ - public static class a { - public final int a; - @Nullable - public final y.a b; - - /* renamed from: c reason: collision with root package name */ - public final CopyOnWriteArrayList f811c; - public final long d; - - /* compiled from: MediaSourceEventListener */ - /* renamed from: c.i.a.c.d2.z$a$a reason: collision with other inner class name */ - public static final class C0087a { - public Handler a; - public z b; - - public C0087a(Handler handler, z zVar) { - this.a = handler; - this.b = zVar; - } - } - - public a() { - this.f811c = new CopyOnWriteArrayList<>(); - this.a = 0; - this.b = null; - this.d = 0; - } - - public a(CopyOnWriteArrayList copyOnWriteArrayList, int i, @Nullable y.a aVar, long j) { - this.f811c = copyOnWriteArrayList; - this.a = i; - this.b = aVar; - this.d = j; - } - - public final long a(long j) { - long b = h0.b(j); - if (b == -9223372036854775807L) { - return -9223372036854775807L; - } - return this.d + b; - } - - public void b(u uVar) { - Iterator it = this.f811c.iterator(); - while (it.hasNext()) { - C0087a next = it.next(); - f0.D(next.a, new d(this, next.b, uVar)); - } - } - - public void c(r rVar, u uVar) { - Iterator it = this.f811c.iterator(); - while (it.hasNext()) { - C0087a next = it.next(); - f0.D(next.a, new f(this, next.b, rVar, uVar)); - } - } - - public void d(r rVar, u uVar) { - Iterator it = this.f811c.iterator(); - while (it.hasNext()) { - C0087a next = it.next(); - f0.D(next.a, new c(this, next.b, rVar, uVar)); - } - } - - public void e(r rVar, u uVar, IOException iOException, boolean z2) { - Iterator it = this.f811c.iterator(); - while (it.hasNext()) { - C0087a next = it.next(); - f0.D(next.a, new b(this, next.b, rVar, uVar, iOException, z2)); - } - } - - public void f(r rVar, u uVar) { - Iterator it = this.f811c.iterator(); - while (it.hasNext()) { - C0087a next = it.next(); - f0.D(next.a, new e(this, next.b, rVar, uVar)); - } - } - - @CheckResult - public a g(int i, @Nullable y.a aVar, long j) { - return new a(this.f811c, i, aVar, j); - } - } - - void N(int i, @Nullable y.a aVar, r rVar, u uVar); - - void U(int i, @Nullable y.a aVar, r rVar, u uVar, IOException iOException, boolean z2); - - void l(int i, @Nullable y.a aVar, u uVar); - - void m(int i, @Nullable y.a aVar, r rVar, u uVar); - - void q(int i, @Nullable y.a aVar, r rVar, u uVar); -} diff --git a/app/src/main/java/c/i/a/c/e.java b/app/src/main/java/c/i/a/c/e.java deleted file mode 100644 index 415ffcda18..0000000000 --- a/app/src/main/java/c/i/a/c/e.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class e implements o.a { - public final /* synthetic */ int a; - - public /* synthetic */ e(int i) { - this.a = i; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - ((g1.a) obj).D(this.a); - } -} diff --git a/app/src/main/java/c/i/a/c/e0.java b/app/src/main/java/c/i/a/c/e0.java deleted file mode 100644 index 0bb9003bb6..0000000000 --- a/app/src/main/java/c/i/a/c/e0.java +++ /dev/null @@ -1,129 +0,0 @@ -package c.i.a.c; - -import android.content.Context; -import android.media.AudioFocusRequest; -import android.media.AudioManager; -import android.os.Handler; -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import c.i.a.c.p1; -import c.i.a.c.v1.n; -import java.util.Objects; -/* compiled from: AudioFocusManager */ -public final class e0 { - public final AudioManager a; - public final a b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public b f812c; - @Nullable - public n d; - public int e; - public int f; - public float g = 1.0f; - public AudioFocusRequest h; - - /* compiled from: AudioFocusManager */ - public class a implements AudioManager.OnAudioFocusChangeListener { - public final Handler i; - - public a(Handler handler) { - this.i = handler; - } - - @Override // android.media.AudioManager.OnAudioFocusChangeListener - public void onAudioFocusChange(int i) { - this.i.post(new b(this, i)); - } - } - - /* compiled from: AudioFocusManager */ - public interface b { - } - - public e0(Context context, Handler handler, b bVar) { - AudioManager audioManager = (AudioManager) context.getApplicationContext().getSystemService("audio"); - Objects.requireNonNull(audioManager); - this.a = audioManager; - this.f812c = bVar; - this.b = new a(handler); - this.e = 0; - } - - public final void a() { - if (this.e != 0) { - if (f0.a >= 26) { - AudioFocusRequest audioFocusRequest = this.h; - if (audioFocusRequest != null) { - this.a.abandonAudioFocusRequest(audioFocusRequest); - } - } else { - this.a.abandonAudioFocus(this.b); - } - c(0); - } - } - - public final void b(int i) { - b bVar = this.f812c; - if (bVar != null) { - p1.c cVar = (p1.c) bVar; - boolean g = p1.this.g(); - p1.this.Y(g, i, p1.O(g, i)); - } - } - - public final void c(int i) { - if (this.e != i) { - this.e = i; - float f = i == 3 ? 0.2f : 1.0f; - if (this.g != f) { - this.g = f; - b bVar = this.f812c; - if (bVar != null) { - p1 p1Var = p1.this; - p1Var.R(1, 2, Float.valueOf(p1Var.B * p1Var.m.g)); - } - } - } - } - - public int d(boolean z2, int i) { - int i2; - int i3 = 1; - if (i == 1 || this.f != 1) { - a(); - return z2 ? 1 : -1; - } else if (!z2) { - return -1; - } else { - if (this.e != 1) { - if (f0.a >= 26) { - AudioFocusRequest audioFocusRequest = this.h; - if (audioFocusRequest == null) { - AudioFocusRequest.Builder builder = audioFocusRequest == null ? new AudioFocusRequest.Builder(this.f) : new AudioFocusRequest.Builder(this.h); - n nVar = this.d; - boolean z3 = nVar != null && nVar.b == 1; - Objects.requireNonNull(nVar); - this.h = builder.setAudioAttributes(nVar.a()).setWillPauseWhenDucked(z3).setOnAudioFocusChangeListener(this.b).build(); - } - i2 = this.a.requestAudioFocus(this.h); - } else { - AudioManager audioManager = this.a; - a aVar = this.b; - n nVar2 = this.d; - Objects.requireNonNull(nVar2); - i2 = audioManager.requestAudioFocus(aVar, f0.t(nVar2.d), this.f); - } - if (i2 == 1) { - c(1); - } else { - c(0); - i3 = -1; - } - } - return i3; - } - } -} diff --git a/app/src/main/java/c/i/a/c/e1.java b/app/src/main/java/c/i/a/c/e1.java deleted file mode 100644 index ca0b53460d..0000000000 --- a/app/src/main/java/c/i/a/c/e1.java +++ /dev/null @@ -1,7 +0,0 @@ -package c.i.a.c; -/* compiled from: PlaybackPreparer */ -@Deprecated -public interface e1 { - @Deprecated - void a(); -} diff --git a/app/src/main/java/c/i/a/c/e2/a.java b/app/src/main/java/c/i/a/c/e2/a.java deleted file mode 100644 index 29ccee71ab..0000000000 --- a/app/src/main/java/c/i/a/c/e2/a.java +++ /dev/null @@ -1,25 +0,0 @@ -package c.i.a.c.e2; - -import c.i.a.c.x1.f; -/* compiled from: lambda */ -public final /* synthetic */ class a implements f.a { - public final /* synthetic */ d a; - - public /* synthetic */ a(d dVar) { - this.a = dVar; - } - - @Override // c.i.a.c.x1.f.a - public final void a(f fVar) { - d dVar = this.a; - j jVar = (j) fVar; - synchronized (dVar.b) { - jVar.q(); - O[] oArr = dVar.f; - int i = dVar.h; - dVar.h = i + 1; - oArr[i] = jVar; - dVar.g(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/b.java b/app/src/main/java/c/i/a/c/e2/b.java deleted file mode 100644 index 880d832fb5..0000000000 --- a/app/src/main/java/c/i/a/c/e2/b.java +++ /dev/null @@ -1,26 +0,0 @@ -package c.i.a.c.e2; - -import android.graphics.Typeface; -import androidx.annotation.Nullable; -/* compiled from: CaptionStyleCompat */ -public final class b { - public static final b a = new b(-1, -16777216, 0, 0, -1, null); - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f813c; - public final int d; - public final int e; - public final int f; - @Nullable - public final Typeface g; - - public b(int i, int i2, int i3, int i4, int i5, @Nullable Typeface typeface) { - this.b = i; - this.f813c = i2; - this.d = i3; - this.e = i4; - this.f = i5; - this.g = typeface; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/c.java b/app/src/main/java/c/i/a/c/e2/c.java deleted file mode 100644 index d78ca51171..0000000000 --- a/app/src/main/java/c/i/a/c/e2/c.java +++ /dev/null @@ -1,134 +0,0 @@ -package c.i.a.c.e2; - -import android.graphics.Bitmap; -import android.text.Layout; -import androidx.annotation.ColorInt; -import androidx.annotation.Nullable; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Objects; -/* compiled from: Cue */ -public final class c { - public static final c a; - @Nullable - public final CharSequence b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public final Layout.Alignment f814c; - @Nullable - public final Bitmap d; - public final float e; - public final int f; - public final int g; - public final float h; - public final int i; - public final float j; - public final float k; - public final boolean l; - public final int m; - public final int n; - public final float o; - public final int p; - public final float q; - - /* compiled from: Cue */ - public static final class b { - @Nullable - public CharSequence a; - @Nullable - public Bitmap b; - @Nullable - - /* renamed from: c reason: collision with root package name */ - public Layout.Alignment f815c; - public float d; - public int e; - public int f; - public float g; - public int h; - public int i; - public float j; - public float k; - public float l; - public boolean m; - @ColorInt - public int n; - public int o; - public float p; - - public b() { - this.a = null; - this.b = null; - this.f815c = null; - this.d = -3.4028235E38f; - this.e = Integer.MIN_VALUE; - this.f = Integer.MIN_VALUE; - this.g = -3.4028235E38f; - this.h = Integer.MIN_VALUE; - this.i = Integer.MIN_VALUE; - this.j = -3.4028235E38f; - this.k = -3.4028235E38f; - this.l = -3.4028235E38f; - this.m = false; - this.n = -16777216; - this.o = Integer.MIN_VALUE; - } - - public b(c cVar, a aVar) { - this.a = cVar.b; - this.b = cVar.d; - this.f815c = cVar.f814c; - this.d = cVar.e; - this.e = cVar.f; - this.f = cVar.g; - this.g = cVar.h; - this.h = cVar.i; - this.i = cVar.n; - this.j = cVar.o; - this.k = cVar.j; - this.l = cVar.k; - this.m = cVar.l; - this.n = cVar.m; - this.o = cVar.p; - this.p = cVar.q; - } - - public c a() { - return new c(this.a, this.f815c, this.b, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.p, null); - } - } - - static { - b bVar = new b(); - bVar.a = ""; - a = bVar.a(); - } - - public c(CharSequence charSequence, Layout.Alignment alignment, Bitmap bitmap, float f, int i, int i2, float f2, int i3, int i4, float f3, float f4, float f5, boolean z2, int i5, int i6, float f6, a aVar) { - if (charSequence == null) { - Objects.requireNonNull(bitmap); - } else { - AnimatableValueParser.k(bitmap == null); - } - this.b = charSequence; - this.f814c = alignment; - this.d = bitmap; - this.e = f; - this.f = i; - this.g = i2; - this.h = f2; - this.i = i3; - this.j = f4; - this.k = f5; - this.l = z2; - this.m = i5; - this.n = i4; - this.o = f3; - this.p = i6; - this.q = f6; - } - - public b a() { - return new b(this, null); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/d.java b/app/src/main/java/c/i/a/c/e2/d.java deleted file mode 100644 index 7b7f50c871..0000000000 --- a/app/src/main/java/c/i/a/c/e2/d.java +++ /dev/null @@ -1,43 +0,0 @@ -package c.i.a.c.e2; - -import androidx.annotation.Nullable; -import c.i.a.c.x1.g; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.nio.ByteBuffer; -import java.util.Objects; -/* compiled from: SimpleSubtitleDecoder */ -public abstract class d extends g implements g { - public d(String str) { - super(new i[2], new j[2]); - AnimatableValueParser.D(this.g == this.e.length); - for (DecoderInputBuffer decoderInputBuffer : this.e) { - decoderInputBuffer.r(1024); - } - } - - @Override // c.i.a.c.e2.g - public void a(long j) { - } - - /* Return type fixed from 'com.google.android.exoplayer2.decoder.DecoderException' to match base method */ - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.decoder.DecoderInputBuffer, c.i.a.c.x1.f, boolean] */ - @Override // c.i.a.c.x1.g - @Nullable - public SubtitleDecoderException e(i iVar, j jVar, boolean z2) { - i iVar2 = iVar; - j jVar2 = jVar; - try { - ByteBuffer byteBuffer = iVar2.k; - Objects.requireNonNull(byteBuffer); - jVar2.r(iVar2.m, j(byteBuffer.array(), byteBuffer.limit(), z2), iVar2.q); - jVar2.i &= Integer.MAX_VALUE; - return null; - } catch (SubtitleDecoderException e) { - return e; - } - } - - public abstract f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException; -} diff --git a/app/src/main/java/c/i/a/c/e2/e.java b/app/src/main/java/c/i/a/c/e2/e.java deleted file mode 100644 index fd1dc84e9d..0000000000 --- a/app/src/main/java/c/i/a/c/e2/e.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.e2; - -import c.i.a.c.x1.f; -/* compiled from: SimpleSubtitleOutputBuffer */ -public final class e extends j { - public final f.a m; - - public e(f.a aVar) { - this.m = aVar; - } - - @Override // c.i.a.c.x1.f - public final void p() { - this.m.a(this); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/f.java b/app/src/main/java/c/i/a/c/e2/f.java deleted file mode 100644 index 5dce67dc0b..0000000000 --- a/app/src/main/java/c/i/a/c/e2/f.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.e2; - -import java.util.List; -/* compiled from: Subtitle */ -public interface f { - int f(long j); - - long g(int i); - - List h(long j); - - int i(); -} diff --git a/app/src/main/java/c/i/a/c/e2/g.java b/app/src/main/java/c/i/a/c/e2/g.java deleted file mode 100644 index cd5433cc91..0000000000 --- a/app/src/main/java/c/i/a/c/e2/g.java +++ /dev/null @@ -1,8 +0,0 @@ -package c.i.a.c.e2; - -import c.i.a.c.x1.c; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -/* compiled from: SubtitleDecoder */ -public interface g extends c { - void a(long j); -} diff --git a/app/src/main/java/c/i/a/c/e2/h.java b/app/src/main/java/c/i/a/c/e2/h.java deleted file mode 100644 index 6953bb72bd..0000000000 --- a/app/src/main/java/c/i/a/c/e2/h.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.i.a.c.e2; -/* compiled from: SubtitleDecoderFactory */ -public interface h { - public static final h a = new a(); - - /* compiled from: SubtitleDecoderFactory */ - public class a implements h { - } -} diff --git a/app/src/main/java/c/i/a/c/e2/i.java b/app/src/main/java/c/i/a/c/e2/i.java deleted file mode 100644 index 4fbe9c530b..0000000000 --- a/app/src/main/java/c/i/a/c/e2/i.java +++ /dev/null @@ -1,11 +0,0 @@ -package c.i.a.c.e2; - -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -/* compiled from: SubtitleInputBuffer */ -public class i extends DecoderInputBuffer { - public long q; - - public i() { - super(1); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/j.java b/app/src/main/java/c/i/a/c/e2/j.java deleted file mode 100644 index 33a0f67d51..0000000000 --- a/app/src/main/java/c/i/a/c/e2/j.java +++ /dev/null @@ -1,54 +0,0 @@ -package c.i.a.c.e2; - -import androidx.annotation.Nullable; -import c.i.a.c.x1.f; -import java.util.List; -import java.util.Objects; -/* compiled from: SubtitleOutputBuffer */ -public abstract class j extends f implements f { - @Nullable - public f k; - public long l; - - @Override // c.i.a.c.e2.f - public int f(long j) { - f fVar = this.k; - Objects.requireNonNull(fVar); - return fVar.f(j - this.l); - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - f fVar = this.k; - Objects.requireNonNull(fVar); - return fVar.g(i) + this.l; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - f fVar = this.k; - Objects.requireNonNull(fVar); - return fVar.h(j - this.l); - } - - @Override // c.i.a.c.e2.f - public int i() { - f fVar = this.k; - Objects.requireNonNull(fVar); - return fVar.i(); - } - - public void q() { - this.i = 0; - this.k = null; - } - - public void r(long j, f fVar, long j2) { - this.j = j; - this.k = fVar; - if (j2 != Long.MAX_VALUE) { - j = j2; - } - this.l = j; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/k.java b/app/src/main/java/c/i/a/c/e2/k.java deleted file mode 100644 index d9e9b96343..0000000000 --- a/app/src/main/java/c/i/a/c/e2/k.java +++ /dev/null @@ -1,7 +0,0 @@ -package c.i.a.c.e2; - -import java.util.List; -/* compiled from: TextOutput */ -public interface k { - void m(List list); -} diff --git a/app/src/main/java/c/i/a/c/e2/l.java b/app/src/main/java/c/i/a/c/e2/l.java deleted file mode 100644 index a396dd543d..0000000000 --- a/app/src/main/java/c/i/a/c/e2/l.java +++ /dev/null @@ -1,472 +0,0 @@ -package c.i.a.c.e2; - -import android.os.Handler; -import android.os.Looper; -import android.os.Message; -import androidx.annotation.Nullable; -import c.d.b.a.a; -import c.i.a.c.e2.h; -import c.i.a.c.e2.m.c; -import c.i.a.c.e2.u.d; -import c.i.a.c.e2.u.i; -import c.i.a.c.g0; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.p; -import c.i.a.c.i2.s; -import c.i.a.c.s0; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -/* compiled from: TextRenderer */ -public final class l extends g0 implements Handler.Callback { - public int A; - @Nullable - public Format B; - @Nullable - public g C; - @Nullable - public i D; - @Nullable - public j E; - @Nullable - public j F; - public int G; - public long H; - @Nullable - public final Handler t; - public final k u; - public final h v; - public final s0 w; - - /* renamed from: x reason: collision with root package name */ - public boolean f816x; - - /* renamed from: y reason: collision with root package name */ - public boolean f817y; - - /* renamed from: z reason: collision with root package name */ - public boolean f818z; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public l(k kVar, @Nullable Looper looper) { - super(3); - Handler handler; - h hVar = h.a; - Objects.requireNonNull(kVar); - this.u = kVar; - if (looper == null) { - handler = null; - } else { - int i = f0.a; - handler = new Handler(looper, this); - } - this.t = handler; - this.v = hVar; - this.w = new s0(); - this.H = -9223372036854775807L; - } - - @Override // c.i.a.c.g0 - public void B() { - this.B = null; - this.H = -9223372036854775807L; - J(); - N(); - g gVar = this.C; - Objects.requireNonNull(gVar); - gVar.release(); - this.C = null; - this.A = 0; - } - - @Override // c.i.a.c.g0 - public void D(long j, boolean z2) { - J(); - this.f816x = false; - this.f817y = false; - this.H = -9223372036854775807L; - if (this.A != 0) { - O(); - return; - } - N(); - g gVar = this.C; - Objects.requireNonNull(gVar); - gVar.flush(); - } - - @Override // c.i.a.c.g0 - public void H(Format[] formatArr, long j, long j2) { - this.B = formatArr[0]; - if (this.C != null) { - this.A = 1; - } else { - M(); - } - } - - public final void J() { - List emptyList = Collections.emptyList(); - Handler handler = this.t; - if (handler != null) { - handler.obtainMessage(0, emptyList).sendToTarget(); - } else { - this.u.m(emptyList); - } - } - - public final long K() { - if (this.G == -1) { - return Long.MAX_VALUE; - } - Objects.requireNonNull(this.E); - int i = this.G; - f fVar = this.E.k; - Objects.requireNonNull(fVar); - if (i >= fVar.i()) { - return Long.MAX_VALUE; - } - j jVar = this.E; - int i2 = this.G; - f fVar2 = jVar.k; - Objects.requireNonNull(fVar2); - return fVar2.g(i2) + jVar.l; - } - - public final void L(SubtitleDecoderException subtitleDecoderException) { - StringBuilder K = a.K("Subtitle decoding failed. streamFormat="); - K.append(this.B); - p.b("TextRenderer", K.toString(), subtitleDecoderException); - J(); - O(); - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - /* JADX WARNING: Code restructure failed: missing block: B:32:0x008e, code lost: - if (r1.equals("application/pgs") == false) goto L_0x009c; - */ - public final void M() { - g gVar; - char c2 = 1; - this.f818z = true; - h hVar = this.v; - Format format = this.B; - Objects.requireNonNull(format); - Objects.requireNonNull((h.a) hVar); - String str = format.t; - if (str != null) { - switch (str.hashCode()) { - case -1351681404: - if (str.equals("application/dvbsubs")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case -1248334819: - break; - case -1026075066: - if (str.equals("application/x-mp4-vtt")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case -1004728940: - if (str.equals("text/vtt")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case 691401887: - if (str.equals("application/x-quicktime-tx3g")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case 822864842: - if (str.equals("text/x-ssa")) { - c2 = 5; - break; - } - c2 = 65535; - break; - case 930165504: - if (str.equals("application/x-mp4-cea-608")) { - c2 = 6; - break; - } - c2 = 65535; - break; - case 1566015601: - if (str.equals("application/cea-608")) { - c2 = 7; - break; - } - c2 = 65535; - break; - case 1566016562: - if (str.equals("application/cea-708")) { - c2 = '\b'; - break; - } - c2 = 65535; - break; - case 1668750253: - if (str.equals("application/x-subrip")) { - c2 = '\t'; - break; - } - c2 = 65535; - break; - case 1693976202: - if (str.equals("application/ttml+xml")) { - c2 = '\n'; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - switch (c2) { - case 0: - gVar = new c.i.a.c.e2.n.a(format.v); - this.C = gVar; - return; - case 1: - gVar = new c.i.a.c.e2.o.a(); - this.C = gVar; - return; - case 2: - gVar = new d(); - this.C = gVar; - return; - case 3: - gVar = new i(); - this.C = gVar; - return; - case 4: - gVar = new c.i.a.c.e2.t.a(format.v); - this.C = gVar; - return; - case 5: - gVar = new c.i.a.c.e2.q.a(format.v); - this.C = gVar; - return; - case 6: - case 7: - gVar = new c(str, format.L, 16000); - this.C = gVar; - return; - case '\b': - gVar = new c.i.a.c.e2.m.d(format.L, format.v); - this.C = gVar; - return; - case '\t': - gVar = new c.i.a.c.e2.r.a(); - this.C = gVar; - return; - case '\n': - gVar = new c.i.a.c.e2.s.c(); - this.C = gVar; - return; - } - } - throw new IllegalArgumentException(a.s("Attempted to create decoder for unsupported MIME type: ", str)); - } - - public final void N() { - this.D = null; - this.G = -1; - j jVar = this.E; - if (jVar != null) { - jVar.p(); - this.E = null; - } - j jVar2 = this.F; - if (jVar2 != null) { - jVar2.p(); - this.F = null; - } - } - - public final void O() { - N(); - g gVar = this.C; - Objects.requireNonNull(gVar); - gVar.release(); - this.C = null; - this.A = 0; - M(); - } - - @Override // c.i.a.c.l1 - public int a(Format format) { - Objects.requireNonNull((h.a) this.v); - String str = format.t; - if (!("text/vtt".equals(str) || "text/x-ssa".equals(str) || "application/ttml+xml".equals(str) || "application/x-mp4-vtt".equals(str) || "application/x-subrip".equals(str) || "application/x-quicktime-tx3g".equals(str) || "application/cea-608".equals(str) || "application/x-mp4-cea-608".equals(str) || "application/cea-708".equals(str) || "application/dvbsubs".equals(str) || "application/pgs".equals(str))) { - return s.i(format.t) ? 1 : 0; - } - return (format.M == null ? 4 : 2) | 0 | 0; - } - - @Override // c.i.a.c.k1 - public boolean b() { - return this.f817y; - } - - @Override // c.i.a.c.k1 - public boolean d() { - return true; - } - - @Override // c.i.a.c.k1, c.i.a.c.l1 - public String getName() { - return "TextRenderer"; - } - - @Override // android.os.Handler.Callback - public boolean handleMessage(Message message) { - if (message.what == 0) { - this.u.m((List) message.obj); - return true; - } - throw new IllegalStateException(); - } - - @Override // c.i.a.c.k1 - public void q(long j, long j2) { - boolean z2; - if (this.r) { - long j3 = this.H; - if (j3 != -9223372036854775807L && j >= j3) { - N(); - this.f817y = true; - } - } - if (!this.f817y) { - if (this.F == null) { - g gVar = this.C; - Objects.requireNonNull(gVar); - gVar.a(j); - try { - g gVar2 = this.C; - Objects.requireNonNull(gVar2); - this.F = gVar2.b(); - } catch (SubtitleDecoderException e) { - L(e); - return; - } - } - if (this.m == 2) { - if (this.E != null) { - long K = K(); - z2 = false; - while (K <= j) { - this.G++; - K = K(); - z2 = true; - } - } else { - z2 = false; - } - j jVar = this.F; - if (jVar != null) { - if (jVar.n()) { - if (!z2 && K() == Long.MAX_VALUE) { - if (this.A == 2) { - O(); - } else { - N(); - this.f817y = true; - } - } - } else if (jVar.j <= j) { - j jVar2 = this.E; - if (jVar2 != null) { - jVar2.p(); - } - f fVar = jVar.k; - Objects.requireNonNull(fVar); - this.G = fVar.f(j - jVar.l); - this.E = jVar; - this.F = null; - z2 = true; - } - } - if (z2) { - Objects.requireNonNull(this.E); - j jVar3 = this.E; - f fVar2 = jVar3.k; - Objects.requireNonNull(fVar2); - List h = fVar2.h(j - jVar3.l); - Handler handler = this.t; - if (handler != null) { - handler.obtainMessage(0, h).sendToTarget(); - } else { - this.u.m(h); - } - } - if (this.A != 2) { - while (!this.f816x) { - try { - i iVar = this.D; - if (iVar == null) { - g gVar3 = this.C; - Objects.requireNonNull(gVar3); - iVar = gVar3.c(); - if (iVar != null) { - this.D = iVar; - } else { - return; - } - } - if (this.A == 1) { - iVar.i = 4; - g gVar4 = this.C; - Objects.requireNonNull(gVar4); - gVar4.d(iVar); - this.D = null; - this.A = 2; - return; - } - int I = I(this.w, iVar, false); - if (I == -4) { - if (iVar.n()) { - this.f816x = true; - this.f818z = false; - } else { - Format format = this.w.b; - if (format != null) { - iVar.q = format.f2213x; - iVar.s(); - this.f818z &= !iVar.o(); - } else { - return; - } - } - if (!this.f818z) { - g gVar5 = this.C; - Objects.requireNonNull(gVar5); - gVar5.d(iVar); - this.D = null; - } - } else if (I == -3) { - return; - } - } catch (SubtitleDecoderException e2) { - L(e2); - return; - } - } - } - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/a.java b/app/src/main/java/c/i/a/c/e2/m/a.java deleted file mode 100644 index 49e61a5c92..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/a.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.e2.m; - -import c.i.a.c.e2.m.d; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class a implements Comparator { - public static final /* synthetic */ a i = new a(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - return Integer.compare(((d.a) obj2).b, ((d.a) obj).b); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/b.java b/app/src/main/java/c/i/a/c/e2/m/b.java deleted file mode 100644 index e570d9f3b5..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/b.java +++ /dev/null @@ -1,23 +0,0 @@ -package c.i.a.c.e2.m; - -import c.i.a.c.e2.m.e; -import c.i.a.c.x1.f; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class b implements f.a { - public final /* synthetic */ e a; - - public /* synthetic */ b(e eVar) { - this.a = eVar; - } - - @Override // c.i.a.c.x1.f.a - public final void a(f fVar) { - e eVar = this.a; - e.c cVar = (e.c) fVar; - Objects.requireNonNull(eVar); - cVar.i = 0; - cVar.k = null; - eVar.b.add(cVar); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/c.java b/app/src/main/java/c/i/a/c/e2/m/c.java deleted file mode 100644 index 6332a173c2..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/c.java +++ /dev/null @@ -1,602 +0,0 @@ -package c.i.a.c.e2.m; - -import android.text.Layout; -import android.text.SpannableString; -import android.text.SpannableStringBuilder; -import android.text.style.ForegroundColorSpan; -import android.text.style.StyleSpan; -import android.text.style.UnderlineSpan; -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.e2.f; -import c.i.a.c.e2.i; -import c.i.a.c.e2.j; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -/* compiled from: Cea608Decoder */ -public final class c extends e { - public static final int[] g = {11, 1, 3, 12, 14, 5, 7, 9}; - public static final int[] h = {0, 4, 8, 12, 16, 20, 24, 28}; - public static final int[] i = {-1, -16711936, -16776961, -16711681, -65536, -256, -65281}; - public static final int[] j = {32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 225, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 233, 93, 237, 243, 250, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 231, 247, 209, 241, 9632}; - public static final int[] k = {174, 176, 189, 191, 8482, 162, 163, 9834, 224, 32, 232, 226, 234, 238, 244, 251}; - public static final int[] l = {193, 201, 211, 218, 220, 252, 8216, 161, 42, 39, 8212, 169, 8480, 8226, 8220, 8221, 192, 194, 199, 200, 202, 203, 235, 206, 207, 239, 212, 217, 249, 219, 171, 187}; - public static final int[] m = {195, 227, 205, 204, 236, 210, 242, 213, 245, 123, 125, 92, 94, 95, 124, 126, 196, 228, 214, 246, 223, 165, 164, 9474, 197, 229, 216, 248, 9484, 9488, 9492, 9496}; - public static final boolean[] n = {false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false}; - public boolean A; - public byte B; - public byte C; - public int D = 0; - public boolean E; - public long F; - public final w o = new w(); - public final int p; - public final int q; - public final int r; - - /* renamed from: s reason: collision with root package name */ - public final long f819s; - public final ArrayList t = new ArrayList<>(); - public a u = new a(0, 4); - @Nullable - public List v; - @Nullable - public List w; - - /* renamed from: x reason: collision with root package name */ - public int f820x; - - /* renamed from: y reason: collision with root package name */ - public int f821y; - - /* renamed from: z reason: collision with root package name */ - public boolean f822z; - - /* compiled from: Cea608Decoder */ - public static final class a { - public final List a = new ArrayList(); - public final List b = new ArrayList(); - - /* renamed from: c reason: collision with root package name */ - public final StringBuilder f823c = new StringBuilder(); - public int d; - public int e; - public int f; - public int g; - public int h; - - /* compiled from: Cea608Decoder */ - /* renamed from: c.i.a.c.e2.m.c$a$a reason: collision with other inner class name */ - public static class C0088a { - public final int a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public int f824c; - - public C0088a(int i, boolean z2, int i2) { - this.a = i; - this.b = z2; - this.f824c = i2; - } - } - - public a(int i, int i2) { - f(i); - this.h = i2; - } - - public void a(char c2) { - if (this.f823c.length() < 32) { - this.f823c.append(c2); - } - } - - public void b() { - int length = this.f823c.length(); - if (length > 0) { - this.f823c.delete(length - 1, length); - for (int size = this.a.size() - 1; size >= 0; size--) { - C0088a aVar = this.a.get(size); - int i = aVar.f824c; - if (i == length) { - aVar.f824c = i - 1; - } else { - return; - } - } - } - } - - @Nullable - public c.i.a.c.e2.c c(int i) { - float f; - int i2 = this.e + this.f; - int i3 = 32 - i2; - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); - for (int i4 = 0; i4 < this.b.size(); i4++) { - SpannableString spannableString = this.b.get(i4); - int i5 = f0.a; - if (spannableString.length() > i3) { - spannableString = spannableString.subSequence(0, i3); - } - spannableStringBuilder.append(spannableString); - spannableStringBuilder.append('\n'); - } - SpannableString d = d(); - int i6 = f0.a; - int length = d.length(); - CharSequence charSequence = d; - if (length > i3) { - charSequence = d.subSequence(0, i3); - } - spannableStringBuilder.append(charSequence); - if (spannableStringBuilder.length() == 0) { - return null; - } - int length2 = i3 - spannableStringBuilder.length(); - int i7 = i2 - length2; - int i8 = i != Integer.MIN_VALUE ? i : (this.g != 2 || (Math.abs(i7) >= 3 && length2 >= 0)) ? (this.g != 2 || i7 <= 0) ? 0 : 2 : 1; - if (i8 != 1) { - if (i8 == 2) { - i2 = 32 - length2; - } - f = ((((float) i2) / 32.0f) * 0.8f) + 0.1f; - } else { - f = 0.5f; - } - int i9 = this.d; - if (i9 > 7) { - i9 = (i9 - 15) - 2; - } else if (this.g == 1) { - i9 -= this.h - 1; - } - return new c.i.a.c.e2.c(spannableStringBuilder, Layout.Alignment.ALIGN_NORMAL, null, (float) i9, 1, Integer.MIN_VALUE, f, i8, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, -16777216, Integer.MIN_VALUE, 0.0f, null); - } - - public final SpannableString d() { - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(this.f823c); - int length = spannableStringBuilder.length(); - int i = 0; - int i2 = -1; - int i3 = -1; - int i4 = 0; - int i5 = -1; - boolean z2 = false; - int i6 = -1; - while (i < this.a.size()) { - C0088a aVar = this.a.get(i); - boolean z3 = aVar.b; - int i7 = aVar.a; - if (i7 != 8) { - boolean z4 = i7 == 7; - if (i7 != 7) { - i6 = c.i[i7]; - } - z2 = z4; - } - int i8 = aVar.f824c; - i++; - if (i8 != (i < this.a.size() ? this.a.get(i).f824c : length)) { - if (i2 != -1 && !z3) { - spannableStringBuilder.setSpan(new UnderlineSpan(), i2, i8, 33); - i2 = -1; - } else if (i2 == -1 && z3) { - i2 = i8; - } - if (i3 != -1 && !z2) { - spannableStringBuilder.setSpan(new StyleSpan(2), i3, i8, 33); - i3 = -1; - } else if (i3 == -1 && z2) { - i3 = i8; - } - if (i6 != i5) { - if (i5 != -1) { - spannableStringBuilder.setSpan(new ForegroundColorSpan(i5), i4, i8, 33); - } - i4 = i8; - i5 = i6; - } - } - } - if (!(i2 == -1 || i2 == length)) { - spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); - } - if (!(i3 == -1 || i3 == length)) { - spannableStringBuilder.setSpan(new StyleSpan(2), i3, length, 33); - } - if (!(i4 == length || i5 == -1)) { - spannableStringBuilder.setSpan(new ForegroundColorSpan(i5), i4, length, 33); - } - return new SpannableString(spannableStringBuilder); - } - - public boolean e() { - return this.a.isEmpty() && this.b.isEmpty() && this.f823c.length() == 0; - } - - public void f(int i) { - this.g = i; - this.a.clear(); - this.b.clear(); - this.f823c.setLength(0); - this.d = 15; - this.e = 0; - this.f = 0; - } - } - - public c(String str, int i2, long j2) { - this.f819s = j2 > 0 ? j2 * 1000 : -9223372036854775807L; - this.p = "application/x-mp4-cea-608".equals(str) ? 2 : 3; - if (i2 == 1) { - this.r = 0; - this.q = 0; - } else if (i2 == 2) { - this.r = 1; - this.q = 0; - } else if (i2 == 3) { - this.r = 0; - this.q = 1; - } else if (i2 != 4) { - Log.w("Cea608Decoder", "Invalid channel. Defaulting to CC1."); - this.r = 0; - this.q = 0; - } else { - this.r = 1; - this.q = 1; - } - l(0); - k(); - this.E = true; - this.F = -9223372036854775807L; - } - - @Override // c.i.a.c.e2.m.e - public f e() { - List list = this.v; - this.w = list; - Objects.requireNonNull(list); - return new f(list); - } - - /* JADX WARNING: Removed duplicated region for block: B:203:0x008f A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:213:0x0015 A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:24:0x0069 */ - @Override // c.i.a.c.e2.m.e - public void f(i iVar) { - boolean z2; - boolean z3; - ByteBuffer byteBuffer = iVar.k; - Objects.requireNonNull(byteBuffer); - this.o.B(byteBuffer.array(), byteBuffer.limit()); - boolean z4 = false; - while (true) { - int a2 = this.o.a(); - int i2 = this.p; - if (a2 >= i2) { - byte s2 = i2 == 2 ? -4 : (byte) this.o.s(); - int s3 = this.o.s(); - int s4 = this.o.s(); - if ((s2 & 2) == 0 && (s2 & 1) == this.q) { - byte b = (byte) (s3 & 127); - byte b2 = (byte) (s4 & 127); - if (b != 0 || b2 != 0) { - boolean z5 = this.f822z; - if ((s2 & 4) == 4) { - boolean[] zArr = n; - if (zArr[s3] && zArr[s4]) { - z2 = true; - this.f822z = z2; - if (z2) { - if ((b & 240) == 16) { - if (this.A && this.B == b && this.C == b2) { - this.A = false; - z3 = true; - if (!z3) { - } - } else { - this.A = true; - this.B = b; - this.C = b2; - z3 = false; - if (!z3) { - if (z2) { - if (1 <= b && b <= 15) { - this.E = false; - } else { - if ((b & 247) == 20) { - if (!(b2 == 32 || b2 == 47)) { - switch (b2) { - default: - switch (b2) { - case 42: - case 43: - this.E = false; - break; - } - case 37: - case 38: - case 39: - this.E = true; - break; - } - } - this.E = true; - } - } - if (this.E) { - int i3 = b & 224; - if (i3 == 0) { - this.D = (b >> 3) & 1; - } - if (this.D == this.r) { - if (i3 == 0) { - int i4 = b & 247; - if (i4 == 17 && (b2 & 240) == 48) { - this.u.a((char) k[b2 & 15]); - } else { - int i5 = b & 246; - if (i5 == 18 && (b2 & 224) == 32) { - this.u.b(); - this.u.a((char) ((b & 1) == 0 ? l[b2 & 31] : m[b2 & 31])); - } else { - if (i4 == 17 && (b2 & 240) == 32) { - this.u.a(' '); - boolean z6 = (b2 & 1) == 1; - a aVar = this.u; - aVar.a.add(new a.C0088a((b2 >> 1) & 7, z6, aVar.f823c.length())); - } else { - if ((b & 240) == 16 && (b2 & 192) == 64) { - int i6 = g[b & 7]; - if ((b2 & 32) != 0) { - i6++; - } - a aVar2 = this.u; - if (i6 != aVar2.d) { - if (this.f820x != 1 && !aVar2.e()) { - a aVar3 = new a(this.f820x, this.f821y); - this.u = aVar3; - this.t.add(aVar3); - } - this.u.d = i6; - } - boolean z7 = (b2 & 16) == 16; - boolean z8 = (b2 & 1) == 1; - int i7 = (b2 >> 1) & 7; - a aVar4 = this.u; - aVar4.a.add(new a.C0088a(z7 ? 8 : i7, z8, aVar4.f823c.length())); - if (z7) { - this.u.e = h[i7]; - } - } else { - if (i4 == 23 && b2 >= 33 && b2 <= 35) { - this.u.f = b2 - 32; - } else { - if (i5 == 20 && (b2 & 240) == 32) { - if (b2 == 32) { - l(2); - } else if (b2 != 41) { - switch (b2) { - case 37: - l(1); - m(2); - break; - case 38: - l(1); - m(3); - break; - case 39: - l(1); - m(4); - break; - default: - int i8 = this.f820x; - if (i8 != 0) { - if (b2 == 33) { - this.u.b(); - break; - } else { - switch (b2) { - case 44: - this.v = Collections.emptyList(); - int i9 = this.f820x; - if (i9 == 1 || i9 == 3) { - k(); - break; - } - case 45: - if (i8 == 1 && !this.u.e()) { - a aVar5 = this.u; - aVar5.b.add(aVar5.d()); - aVar5.f823c.setLength(0); - aVar5.a.clear(); - int min = Math.min(aVar5.h, aVar5.d); - while (aVar5.b.size() >= min) { - aVar5.b.remove(0); - } - break; - } - case 46: - k(); - break; - case 47: - this.v = j(); - k(); - break; - } - } - } - break; - } - } else { - l(3); - } - } - } - } - } - } - } - } else { - a aVar6 = this.u; - int[] iArr = j; - aVar6.a((char) iArr[(b & Byte.MAX_VALUE) - 32]); - if ((b2 & 224) != 0) { - this.u.a((char) iArr[(b2 & Byte.MAX_VALUE) - 32]); - } - } - } - } - } else if (z5) { - k(); - } - z4 = true; - } - } - } - } - this.A = false; - z3 = false; - if (!z3) { - } - } - } - z2 = false; - this.f822z = z2; - if (z2) { - } - this.A = false; - z3 = false; - if (!z3) { - } - } - } - } else if (z4) { - int i10 = this.f820x; - if (i10 == 1 || i10 == 3) { - this.v = j(); - this.F = this.e; - return; - } - return; - } else { - return; - } - } - } - - @Override // c.i.a.c.e2.m.e, c.i.a.c.x1.c - public void flush() { - super.flush(); - this.v = null; - this.w = null; - l(0); - m(4); - k(); - this.f822z = false; - this.A = false; - this.B = 0; - this.C = 0; - this.D = 0; - this.E = true; - this.F = -9223372036854775807L; - } - - @Override // c.i.a.c.e2.m.e - @Nullable - /* renamed from: g */ - public j b() throws SubtitleDecoderException { - j pollFirst; - j g2 = super.b(); - if (g2 != null) { - return g2; - } - long j2 = this.f819s; - boolean z2 = false; - if (j2 != -9223372036854775807L) { - long j3 = this.F; - if (j3 != -9223372036854775807L && this.e - j3 >= j2) { - z2 = true; - } - } - if (!z2 || (pollFirst = this.b.pollFirst()) == null) { - return null; - } - List emptyList = Collections.emptyList(); - this.v = emptyList; - this.F = -9223372036854775807L; - this.w = emptyList; - Objects.requireNonNull(emptyList); - pollFirst.r(this.e, new f(emptyList), Long.MAX_VALUE); - return pollFirst; - } - - @Override // c.i.a.c.e2.m.e - public boolean h() { - return this.v != this.w; - } - - public final List j() { - int size = this.t.size(); - ArrayList arrayList = new ArrayList(size); - int i2 = 2; - for (int i3 = 0; i3 < size; i3++) { - c.i.a.c.e2.c c2 = this.t.get(i3).c(Integer.MIN_VALUE); - arrayList.add(c2); - if (c2 != null) { - i2 = Math.min(i2, c2.i); - } - } - ArrayList arrayList2 = new ArrayList(size); - for (int i4 = 0; i4 < size; i4++) { - c.i.a.c.e2.c cVar = (c.i.a.c.e2.c) arrayList.get(i4); - if (cVar != null) { - if (cVar.i != i2) { - cVar = this.t.get(i4).c(i2); - Objects.requireNonNull(cVar); - } - arrayList2.add(cVar); - } - } - return arrayList2; - } - - public final void k() { - this.u.f(this.f820x); - this.t.clear(); - this.t.add(this.u); - } - - public final void l(int i2) { - int i3 = this.f820x; - if (i3 != i2) { - this.f820x = i2; - if (i2 == 3) { - for (int i4 = 0; i4 < this.t.size(); i4++) { - this.t.get(i4).g = i2; - } - return; - } - k(); - if (i3 == 3 || i2 == 1 || i2 == 0) { - this.v = Collections.emptyList(); - } - } - } - - public final void m(int i2) { - this.f821y = i2; - this.u.h = i2; - } - - @Override // c.i.a.c.e2.m.e, c.i.a.c.x1.c - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/d.java b/app/src/main/java/c/i/a/c/e2/m/d.java deleted file mode 100644 index 137c09cafc..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/d.java +++ /dev/null @@ -1,879 +0,0 @@ -package c.i.a.c.e2.m; - -import android.graphics.Color; -import android.text.Layout; -import android.text.SpannableString; -import android.text.SpannableStringBuilder; -import android.text.style.BackgroundColorSpan; -import android.text.style.ForegroundColorSpan; -import android.text.style.StyleSpan; -import android.text.style.UnderlineSpan; -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.e2.f; -import c.i.a.c.e2.i; -import c.i.a.c.i2.v; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -/* compiled from: Cea708Decoder */ -public final class d extends e { - public final w g = new w(); - public final v h = new v(); - public int i = -1; - public final int j; - public final b[] k; - public b l; - @Nullable - public List m; - @Nullable - public List n; - @Nullable - public c o; - public int p; - - /* compiled from: Cea708Decoder */ - public static final class a { - public final c.i.a.c.e2.c a; - public final int b; - - public a(CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3, boolean z2, int i4, int i5) { - int i6; - boolean z3; - if (z2) { - i6 = i4; - z3 = true; - } else { - z3 = false; - i6 = -16777216; - } - this.a = new c.i.a.c.e2.c(charSequence, alignment, null, f, i, i2, f2, i3, Integer.MIN_VALUE, -3.4028235E38f, f3, -3.4028235E38f, z3, i6, Integer.MIN_VALUE, 0.0f, null); - this.b = i5; - } - } - - /* compiled from: Cea708Decoder */ - public static final class b { - public static final int a = d(2, 2, 2, 0); - public static final int b; - - /* renamed from: c reason: collision with root package name */ - public static final int f825c; - public static final int[] d = {0, 0, 0, 0, 0, 2, 0}; - public static final int[] e = {0, 0, 0, 0, 0, 0, 2}; - public static final int[] f = {3, 3, 3, 3, 3, 3, 1}; - public static final boolean[] g = {false, false, false, true, true, true, false}; - public static final int[] h; - public static final int[] i = {0, 1, 2, 3, 4, 3, 4}; - public static final int[] j = {0, 0, 0, 0, 0, 3, 3}; - public static final int[] k; - public int A; - public int B; - public int C; - public int D; - public int E; - public int F; - public int G; - public final List l = new ArrayList(); - public final SpannableStringBuilder m = new SpannableStringBuilder(); - public boolean n; - public boolean o; - public int p; - public boolean q; - public int r; - - /* renamed from: s reason: collision with root package name */ - public int f826s; - public int t; - public int u; - public boolean v; - public int w; - - /* renamed from: x reason: collision with root package name */ - public int f827x; - - /* renamed from: y reason: collision with root package name */ - public int f828y; - - /* renamed from: z reason: collision with root package name */ - public int f829z; - - static { - int d2 = d(0, 0, 0, 0); - b = d2; - int d3 = d(0, 0, 0, 3); - f825c = d3; - h = new int[]{d2, d3, d2, d2, d3, d2, d2}; - k = new int[]{d2, d2, d2, d2, d2, d3, d3}; - } - - public b() { - f(); - } - - /* JADX WARNING: Removed duplicated region for block: B:11:0x0025 */ - /* JADX WARNING: Removed duplicated region for block: B:12:0x0028 */ - /* JADX WARNING: Removed duplicated region for block: B:14:0x002b */ - /* JADX WARNING: Removed duplicated region for block: B:15:0x002e */ - /* JADX WARNING: Removed duplicated region for block: B:17:0x0031 */ - public static int d(int i2, int i3, int i4, int i5) { - int i6; - int i7 = 0; - AnimatableValueParser.t(i2, 0, 4); - AnimatableValueParser.t(i3, 0, 4); - AnimatableValueParser.t(i4, 0, 4); - AnimatableValueParser.t(i5, 0, 4); - if (!(i5 == 0 || i5 == 1)) { - if (i5 == 2) { - i6 = 127; - } else if (i5 == 3) { - i6 = 0; - } - int i8 = i2 <= 1 ? 255 : 0; - int i9 = i3 <= 1 ? 255 : 0; - if (i4 > 1) { - i7 = 255; - } - return Color.argb(i6, i8, i9, i7); - } - i6 = 255; - if (i2 <= 1) { - } - if (i3 <= 1) { - } - if (i4 > 1) { - } - return Color.argb(i6, i8, i9, i7); - } - - public void a(char c2) { - if (c2 == '\n') { - this.l.add(b()); - this.m.clear(); - if (this.A != -1) { - this.A = 0; - } - if (this.B != -1) { - this.B = 0; - } - if (this.C != -1) { - this.C = 0; - } - if (this.E != -1) { - this.E = 0; - } - while (true) { - if ((this.v && this.l.size() >= this.u) || this.l.size() >= 15) { - this.l.remove(0); - } else { - return; - } - } - } else { - this.m.append(c2); - } - } - - public SpannableString b() { - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(this.m); - int length = spannableStringBuilder.length(); - if (length > 0) { - if (this.A != -1) { - spannableStringBuilder.setSpan(new StyleSpan(2), this.A, length, 33); - } - if (this.B != -1) { - spannableStringBuilder.setSpan(new UnderlineSpan(), this.B, length, 33); - } - if (this.C != -1) { - spannableStringBuilder.setSpan(new ForegroundColorSpan(this.D), this.C, length, 33); - } - if (this.E != -1) { - spannableStringBuilder.setSpan(new BackgroundColorSpan(this.F), this.E, length, 33); - } - } - return new SpannableString(spannableStringBuilder); - } - - public void c() { - this.l.clear(); - this.m.clear(); - this.A = -1; - this.B = -1; - this.C = -1; - this.E = -1; - this.G = 0; - } - - public boolean e() { - return !this.n || (this.l.isEmpty() && this.m.length() == 0); - } - - public void f() { - c(); - this.n = false; - this.o = false; - this.p = 4; - this.q = false; - this.r = 0; - this.f826s = 0; - this.t = 0; - this.u = 15; - this.v = true; - this.w = 0; - this.f827x = 0; - this.f828y = 0; - int i2 = b; - this.f829z = i2; - this.D = a; - this.F = i2; - } - - public void g(boolean z2, boolean z3) { - if (this.A != -1) { - if (!z2) { - this.m.setSpan(new StyleSpan(2), this.A, this.m.length(), 33); - this.A = -1; - } - } else if (z2) { - this.A = this.m.length(); - } - if (this.B != -1) { - if (!z3) { - this.m.setSpan(new UnderlineSpan(), this.B, this.m.length(), 33); - this.B = -1; - } - } else if (z3) { - this.B = this.m.length(); - } - } - - public void h(int i2, int i3) { - if (!(this.C == -1 || this.D == i2)) { - this.m.setSpan(new ForegroundColorSpan(this.D), this.C, this.m.length(), 33); - } - if (i2 != a) { - this.C = this.m.length(); - this.D = i2; - } - if (!(this.E == -1 || this.F == i3)) { - this.m.setSpan(new BackgroundColorSpan(this.F), this.E, this.m.length(), 33); - } - if (i3 != b) { - this.E = this.m.length(); - this.F = i3; - } - } - } - - /* compiled from: Cea708Decoder */ - public static final class c { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final byte[] f830c; - public int d = 0; - - public c(int i, int i2) { - this.a = i; - this.b = i2; - this.f830c = new byte[((i2 * 2) - 1)]; - } - } - - public d(int i, @Nullable List list) { - this.j = i == -1 ? 1 : i; - if (!(list == null || (list.size() == 1 && list.get(0).length == 1 && list.get(0)[0] == 1))) { - } - this.k = new b[8]; - for (int i2 = 0; i2 < 8; i2++) { - this.k[i2] = new b(); - } - this.l = this.k[0]; - } - - @Override // c.i.a.c.e2.m.e - public f e() { - List list = this.m; - this.n = list; - Objects.requireNonNull(list); - return new f(list); - } - - @Override // c.i.a.c.e2.m.e - public void f(i iVar) { - ByteBuffer byteBuffer = iVar.k; - Objects.requireNonNull(byteBuffer); - this.g.B(byteBuffer.array(), byteBuffer.limit()); - while (this.g.a() >= 3) { - int s2 = this.g.s() & 7; - int i = s2 & 3; - boolean z2 = false; - boolean z3 = (s2 & 4) == 4; - byte s3 = (byte) this.g.s(); - byte s4 = (byte) this.g.s(); - if (i == 2 || i == 3) { - if (z3) { - if (i == 3) { - j(); - int i2 = (s3 & 192) >> 6; - int i3 = this.i; - if (!(i3 == -1 || i2 == (i3 + 1) % 4)) { - l(); - Log.w("Cea708Decoder", "Sequence number discontinuity. previous=" + this.i + " current=" + i2); - } - this.i = i2; - int i4 = s3 & 63; - if (i4 == 0) { - i4 = 64; - } - c cVar = new c(i2, i4); - this.o = cVar; - byte[] bArr = cVar.f830c; - int i5 = cVar.d; - cVar.d = i5 + 1; - bArr[i5] = s4; - } else { - if (i == 2) { - z2 = true; - } - AnimatableValueParser.k(z2); - c cVar2 = this.o; - if (cVar2 == null) { - Log.e("Cea708Decoder", "Encountered DTVCC_PACKET_DATA before DTVCC_PACKET_START"); - } else { - byte[] bArr2 = cVar2.f830c; - int i6 = cVar2.d; - int i7 = i6 + 1; - cVar2.d = i7; - bArr2[i6] = s3; - cVar2.d = i7 + 1; - bArr2[i7] = s4; - } - } - c cVar3 = this.o; - if (cVar3.d == (cVar3.b * 2) - 1) { - j(); - } - } - } - } - } - - @Override // c.i.a.c.e2.m.e, c.i.a.c.x1.c - public void flush() { - super.flush(); - this.m = null; - this.n = null; - this.p = 0; - this.l = this.k[0]; - l(); - this.o = null; - } - - @Override // c.i.a.c.e2.m.e - public boolean h() { - return this.m != this.n; - } - - public final void j() { - c cVar = this.o; - if (cVar != null) { - if (cVar.d != (cVar.b * 2) - 1) { - StringBuilder K = c.d.b.a.a.K("DtvCcPacket ended prematurely; size is "); - K.append((this.o.b * 2) - 1); - K.append(", but current index is "); - K.append(this.o.d); - K.append(" (sequence number "); - K.append(this.o.a); - K.append(");"); - Log.d("Cea708Decoder", K.toString()); - } - v vVar = this.h; - c cVar2 = this.o; - vVar.j(cVar2.f830c, cVar2.d); - int i = 3; - int g = this.h.g(3); - int g2 = this.h.g(5); - int i2 = 7; - int i3 = 6; - if (g == 7) { - this.h.m(2); - g = this.h.g(6); - if (g < 7) { - c.d.b.a.a.d0("Invalid extended service number: ", g, "Cea708Decoder"); - } - } - if (g2 == 0) { - if (g != 0) { - Log.w("Cea708Decoder", "serviceNumber is non-zero (" + g + ") when blockSize is 0"); - } - } else if (g == this.j) { - boolean z2 = false; - while (this.h.b() > 0) { - int g3 = this.h.g(8); - if (g3 != 16) { - if (g3 <= 31) { - if (g3 != 0) { - if (g3 == i) { - this.m = k(); - } else if (g3 != 8) { - switch (g3) { - case 12: - l(); - continue; - case 13: - this.l.a('\n'); - continue; - case 14: - break; - default: - if (g3 < 17 || g3 > 23) { - if (g3 < 24 || g3 > 31) { - c.d.b.a.a.d0("Invalid C0 command: ", g3, "Cea708Decoder"); - break; - } else { - c.d.b.a.a.d0("Currently unsupported COMMAND_P16 Command: ", g3, "Cea708Decoder"); - this.h.m(16); - break; - } - } else { - c.d.b.a.a.d0("Currently unsupported COMMAND_EXT1 Command: ", g3, "Cea708Decoder"); - this.h.m(8); - continue; - } - } - } else { - b bVar = this.l; - int length = bVar.m.length(); - if (length > 0) { - bVar.m.delete(length - 1, length); - } - } - } - } else if (g3 <= 127) { - if (g3 == 127) { - this.l.a(9835); - } else { - this.l.a((char) (g3 & 255)); - } - } else if (g3 <= 159) { - switch (g3) { - case 128: - case 129: - case 130: - case 131: - case 132: - case 133: - case 134: - case 135: - int i4 = g3 - 128; - if (this.p != i4) { - this.p = i4; - this.l = this.k[i4]; - break; - } - break; - case 136: - for (int i5 = 1; i5 <= 8; i5++) { - if (this.h.f()) { - this.k[8 - i5].c(); - } - } - break; - case 137: - for (int i6 = 1; i6 <= 8; i6++) { - if (this.h.f()) { - this.k[8 - i6].o = true; - } - } - break; - case 138: - for (int i7 = 1; i7 <= 8; i7++) { - if (this.h.f()) { - this.k[8 - i7].o = false; - } - } - break; - case 139: - for (int i8 = 1; i8 <= 8; i8++) { - if (this.h.f()) { - b bVar2 = this.k[8 - i8]; - bVar2.o = !bVar2.o; - } - } - break; - case 140: - for (int i9 = 1; i9 <= 8; i9++) { - if (this.h.f()) { - this.k[8 - i9].f(); - } - } - break; - case 141: - this.h.m(8); - break; - case 142: - break; - case 143: - l(); - break; - case 144: - if (!this.l.n) { - this.h.m(16); - break; - } else { - this.h.g(4); - this.h.g(2); - this.h.g(2); - boolean f = this.h.f(); - boolean f2 = this.h.f(); - this.h.g(3); - this.h.g(3); - this.l.g(f, f2); - break; - } - case 145: - if (!this.l.n) { - this.h.m(24); - break; - } else { - int d = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); - int d2 = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); - this.h.m(2); - b.d(this.h.g(2), this.h.g(2), this.h.g(2), 0); - this.l.h(d, d2); - break; - } - case 146: - if (!this.l.n) { - this.h.m(16); - break; - } else { - this.h.m(4); - int g4 = this.h.g(4); - this.h.m(2); - this.h.g(6); - b bVar3 = this.l; - if (bVar3.G != g4) { - bVar3.a('\n'); - } - bVar3.G = g4; - break; - } - case 147: - case 148: - case 149: - case 150: - default: - Log.w("Cea708Decoder", c.d.b.a.a.j("Invalid C1 command: ", g3)); - break; - case 151: - if (!this.l.n) { - this.h.m(32); - break; - } else { - int d3 = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); - this.h.g(2); - b.d(this.h.g(2), this.h.g(2), this.h.g(2), 0); - this.h.f(); - this.h.f(); - this.h.g(2); - this.h.g(2); - int g5 = this.h.g(2); - this.h.m(8); - b bVar4 = this.l; - bVar4.f829z = d3; - bVar4.w = g5; - break; - } - case 152: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 159: - int i10 = g3 - 152; - b bVar5 = this.k[i10]; - this.h.m(2); - boolean f3 = this.h.f(); - boolean f4 = this.h.f(); - this.h.f(); - int g6 = this.h.g(i); - boolean f5 = this.h.f(); - int g7 = this.h.g(i2); - int g8 = this.h.g(8); - int g9 = this.h.g(4); - int g10 = this.h.g(4); - this.h.m(2); - this.h.g(i3); - this.h.m(2); - int g11 = this.h.g(i); - int g12 = this.h.g(i); - bVar5.n = true; - bVar5.o = f3; - bVar5.v = f4; - bVar5.p = g6; - bVar5.q = f5; - bVar5.r = g7; - bVar5.f826s = g8; - bVar5.t = g9; - int i11 = g10 + 1; - if (bVar5.u != i11) { - bVar5.u = i11; - while (true) { - if ((f4 && bVar5.l.size() >= bVar5.u) || bVar5.l.size() >= 15) { - bVar5.l.remove(0); - } - } - } - if (!(g11 == 0 || bVar5.f827x == g11)) { - bVar5.f827x = g11; - int i12 = g11 - 1; - int i13 = b.h[i12]; - boolean z3 = b.g[i12]; - int i14 = b.e[i12]; - int i15 = b.f[i12]; - int i16 = b.d[i12]; - bVar5.f829z = i13; - bVar5.w = i16; - } - if (!(g12 == 0 || bVar5.f828y == g12)) { - bVar5.f828y = g12; - int i17 = g12 - 1; - int i18 = b.j[i17]; - int i19 = b.i[i17]; - bVar5.g(false, false); - bVar5.h(b.a, b.k[i17]); - } - if (this.p != i10) { - this.p = i10; - this.l = this.k[i10]; - break; - } - break; - } - } else if (g3 <= 255) { - this.l.a((char) (g3 & 255)); - } else { - c.d.b.a.a.d0("Invalid base command: ", g3, "Cea708Decoder"); - } - i = 3; - i2 = 7; - i3 = 6; - } else { - int g13 = this.h.g(8); - if (g13 <= 31) { - if (g13 > 7) { - if (g13 <= 15) { - this.h.m(8); - } else if (g13 <= 23) { - this.h.m(16); - } else if (g13 <= 31) { - this.h.m(24); - } - } - } else if (g13 <= 127) { - if (g13 == 32) { - this.l.a(' '); - } else if (g13 == 33) { - this.l.a(160); - } else if (g13 == 37) { - this.l.a(8230); - } else if (g13 == 42) { - this.l.a(352); - } else if (g13 == 44) { - this.l.a(338); - } else if (g13 == 63) { - this.l.a(376); - } else if (g13 == 57) { - this.l.a(8482); - } else if (g13 == 58) { - this.l.a(353); - } else if (g13 == 60) { - this.l.a(339); - } else if (g13 != 61) { - switch (g13) { - case 48: - this.l.a(9608); - break; - case 49: - this.l.a(8216); - break; - case 50: - this.l.a(8217); - break; - case 51: - this.l.a(8220); - break; - case 52: - this.l.a(8221); - break; - case 53: - this.l.a(8226); - break; - default: - switch (g13) { - case 118: - this.l.a(8539); - break; - case 119: - this.l.a(8540); - break; - case 120: - this.l.a(8541); - break; - case 121: - this.l.a(8542); - break; - case 122: - this.l.a(9474); - break; - case 123: - this.l.a(9488); - break; - case 124: - this.l.a(9492); - break; - case 125: - this.l.a(9472); - break; - case 126: - this.l.a(9496); - break; - case 127: - this.l.a(9484); - break; - default: - c.d.b.a.a.d0("Invalid G2 character: ", g13, "Cea708Decoder"); - break; - } - } - } else { - this.l.a(8480); - } - } else if (g13 <= 159) { - if (g13 <= 135) { - this.h.m(32); - } else if (g13 <= 143) { - this.h.m(40); - } else if (g13 <= 159) { - this.h.m(2); - this.h.m(this.h.g(6) * 8); - } - } else if (g13 > 255) { - c.d.b.a.a.d0("Invalid extended command: ", g13, "Cea708Decoder"); - } else if (g13 == 160) { - this.l.a(13252); - } else { - c.d.b.a.a.d0("Invalid G3 character: ", g13, "Cea708Decoder"); - this.l.a('_'); - } - i = 3; - i2 = 7; - i3 = 6; - } - z2 = true; - i = 3; - i2 = 7; - i3 = 6; - } - if (z2) { - this.m = k(); - } - } - this.o = null; - } - } - - /* JADX WARNING: Removed duplicated region for block: B:27:0x0082 */ - /* JADX WARNING: Removed duplicated region for block: B:28:0x008d */ - /* JADX WARNING: Removed duplicated region for block: B:31:0x00ae */ - /* JADX WARNING: Removed duplicated region for block: B:32:0x00b0 */ - /* JADX WARNING: Removed duplicated region for block: B:37:0x00b9 */ - /* JADX WARNING: Removed duplicated region for block: B:38:0x00bc */ - /* JADX WARNING: Removed duplicated region for block: B:43:0x00c9 */ - /* JADX WARNING: Removed duplicated region for block: B:44:0x00cc */ - public final List k() { - a aVar; - Layout.Alignment alignment; - float f; - float f2; - ArrayList arrayList = new ArrayList(); - for (int i = 0; i < 8; i++) { - if (!this.k[i].e()) { - b[] bVarArr = this.k; - if (bVarArr[i].o) { - b bVar = bVarArr[i]; - if (bVar.e()) { - aVar = null; - } else { - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); - for (int i2 = 0; i2 < bVar.l.size(); i2++) { - spannableStringBuilder.append((CharSequence) bVar.l.get(i2)); - spannableStringBuilder.append('\n'); - } - spannableStringBuilder.append((CharSequence) bVar.b()); - int i3 = bVar.w; - if (i3 != 0) { - if (i3 == 1) { - alignment = Layout.Alignment.ALIGN_OPPOSITE; - } else if (i3 == 2) { - alignment = Layout.Alignment.ALIGN_CENTER; - } else if (i3 != 3) { - StringBuilder K = c.d.b.a.a.K("Unexpected justification value: "); - K.append(bVar.w); - throw new IllegalArgumentException(K.toString()); - } - if (!bVar.q) { - f2 = ((float) bVar.f826s) / 99.0f; - f = ((float) bVar.r) / 99.0f; - } else { - f2 = ((float) bVar.f826s) / 209.0f; - f = ((float) bVar.r) / 74.0f; - } - float f3 = (f2 * 0.9f) + 0.05f; - float f4 = (f * 0.9f) + 0.05f; - int i4 = bVar.t; - int i5 = i4 / 3; - int i6 = i4 % 3; - aVar = new a(spannableStringBuilder, alignment, f4, 0, i5 != 0 ? 0 : i5 == 1 ? 1 : 2, f3, i6 != 0 ? 0 : i6 == 1 ? 1 : 2, -3.4028235E38f, bVar.f829z == b.b, bVar.f829z, bVar.p); - } - alignment = Layout.Alignment.ALIGN_NORMAL; - if (!bVar.q) { - } - float f3 = (f2 * 0.9f) + 0.05f; - float f4 = (f * 0.9f) + 0.05f; - int i4 = bVar.t; - int i5 = i4 / 3; - int i6 = i4 % 3; - aVar = new a(spannableStringBuilder, alignment, f4, 0, i5 != 0 ? 0 : i5 == 1 ? 1 : 2, f3, i6 != 0 ? 0 : i6 == 1 ? 1 : 2, -3.4028235E38f, bVar.f829z == b.b, bVar.f829z, bVar.p); - } - if (aVar != null) { - arrayList.add(aVar); - } - } else { - continue; - } - } - } - Collections.sort(arrayList, a.i); - ArrayList arrayList2 = new ArrayList(arrayList.size()); - for (int i7 = 0; i7 < arrayList.size(); i7++) { - arrayList2.add(((a) arrayList.get(i7)).a); - } - return Collections.unmodifiableList(arrayList2); - } - - public final void l() { - for (int i = 0; i < 8; i++) { - this.k[i].f(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/e.java b/app/src/main/java/c/i/a/c/e2/m/e.java deleted file mode 100644 index b3374d2fa2..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/e.java +++ /dev/null @@ -1,178 +0,0 @@ -package c.i.a.c.e2.m; - -import androidx.annotation.Nullable; -import c.i.a.c.e2.g; -import c.i.a.c.e2.i; -import c.i.a.c.e2.j; -import c.i.a.c.i2.f0; -import c.i.a.c.x1.f; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.decoder.DecoderException; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.ArrayDeque; -import java.util.PriorityQueue; -/* compiled from: CeaDecoder */ -public abstract class e implements g { - public final ArrayDeque a = new ArrayDeque<>(); - public final ArrayDeque b; - - /* renamed from: c reason: collision with root package name */ - public final PriorityQueue f831c; - @Nullable - public b d; - public long e; - public long f; - - /* compiled from: CeaDecoder */ - public static final class b extends i implements Comparable { - public long r; - - public b() { - } - - public b(a aVar) { - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ - @Override // java.lang.Comparable - public int compareTo(b bVar) { - b bVar2 = bVar; - if (n() == bVar2.n()) { - long j = this.m - bVar2.m; - if (j == 0) { - j = this.r - bVar2.r; - if (j == 0) { - return 0; - } - } - if (j > 0) { - return 1; - } - } else if (n()) { - return 1; - } - return -1; - } - } - - /* compiled from: CeaDecoder */ - public static final class c extends j { - public f.a m; - - public c(f.a aVar) { - this.m = aVar; - } - - @Override // c.i.a.c.x1.f - public final void p() { - this.m.a(this); - } - } - - public e() { - for (int i = 0; i < 10; i++) { - this.a.add(new b(null)); - } - this.b = new ArrayDeque<>(); - for (int i2 = 0; i2 < 2; i2++) { - this.b.add(new c(new b(this))); - } - this.f831c = new PriorityQueue<>(); - } - - @Override // c.i.a.c.e2.g - public void a(long j) { - this.e = j; - } - - /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.c.x1.c - @Nullable - public i c() throws DecoderException { - AnimatableValueParser.D(this.d == null); - if (this.a.isEmpty()) { - return null; - } - b pollFirst = this.a.pollFirst(); - this.d = pollFirst; - return pollFirst; - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ - @Override // c.i.a.c.x1.c - public void d(i iVar) throws DecoderException { - i iVar2 = iVar; - AnimatableValueParser.k(iVar2 == this.d); - b bVar = (b) iVar2; - if (bVar.m()) { - i(bVar); - } else { - long j = this.f; - this.f = 1 + j; - bVar.r = j; - this.f831c.add(bVar); - } - this.d = null; - } - - public abstract c.i.a.c.e2.f e(); - - public abstract void f(i iVar); - - @Override // c.i.a.c.x1.c - public void flush() { - this.f = 0; - this.e = 0; - while (!this.f831c.isEmpty()) { - int i = f0.a; - i(this.f831c.poll()); - } - b bVar = this.d; - if (bVar != null) { - i(bVar); - this.d = null; - } - } - - @Nullable - /* renamed from: g */ - public j b() throws SubtitleDecoderException { - if (this.b.isEmpty()) { - return null; - } - while (!this.f831c.isEmpty()) { - int i = f0.a; - if (this.f831c.peek().m > this.e) { - break; - } - b poll = this.f831c.poll(); - if (poll.n()) { - j pollFirst = this.b.pollFirst(); - pollFirst.j(4); - i(poll); - return pollFirst; - } - f(poll); - if (h()) { - c.i.a.c.e2.f e = e(); - j pollFirst2 = this.b.pollFirst(); - pollFirst2.r(poll.m, e, Long.MAX_VALUE); - i(poll); - return pollFirst2; - } - i(poll); - } - return null; - } - - public abstract boolean h(); - - public final void i(b bVar) { - bVar.p(); - this.a.add(bVar); - } - - @Override // c.i.a.c.x1.c - public void release() { - } -} diff --git a/app/src/main/java/c/i/a/c/e2/m/f.java b/app/src/main/java/c/i/a/c/e2/m/f.java deleted file mode 100644 index 8e93fabb95..0000000000 --- a/app/src/main/java/c/i/a/c/e2/m/f.java +++ /dev/null @@ -1,35 +0,0 @@ -package c.i.a.c.e2.m; - -import c.i.a.c.e2.c; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Collections; -import java.util.List; -/* compiled from: CeaSubtitle */ -public final class f implements c.i.a.c.e2.f { - public final List i; - - public f(List list) { - this.i = list; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - return j < 0 ? 0 : -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - AnimatableValueParser.k(i == 0); - return 0; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - return j >= 0 ? this.i : Collections.emptyList(); - } - - @Override // c.i.a.c.e2.f - public int i() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/n/a.java b/app/src/main/java/c/i/a/c/e2/n/a.java deleted file mode 100644 index 6f4f9b0ee9..0000000000 --- a/app/src/main/java/c/i/a/c/e2/n/a.java +++ /dev/null @@ -1,289 +0,0 @@ -package c.i.a.c.e2.n; - -import android.graphics.Bitmap; -import android.graphics.Canvas; -import android.graphics.Paint; -import android.graphics.PorterDuff; -import android.util.Log; -import android.util.SparseArray; -import c.i.a.c.e2.c; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.e2.n.b; -import c.i.a.c.i2.v; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -/* compiled from: DvbDecoder */ -public final class a extends d { - public final b n; - - public a(List list) { - super("DvbDecoder"); - byte[] bArr = list.get(0); - int length = bArr.length; - int i = 0 + 1; - int i2 = i + 1; - this.n = new b(((bArr[0] & 255) << 8) | (bArr[i] & 255), (bArr[i2 + 1] & 255) | ((bArr[i2] & 255) << 8)); - } - - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) { - c cVar; - c cVar2; - List list; - int i2; - c cVar3; - SparseArray sparseArray; - SparseArray sparseArray2; - b.f fVar; - int i3; - int i4; - int i5; - int i6; - int i7; - int i8; - if (z2) { - b.h hVar = this.n.i; - hVar.f838c.clear(); - hVar.d.clear(); - hVar.e.clear(); - hVar.f.clear(); - hVar.g.clear(); - hVar.h = null; - hVar.i = null; - } - b bVar = this.n; - Objects.requireNonNull(bVar); - v vVar = new v(bArr, i); - while (vVar.b() >= 48 && vVar.g(8) == 15) { - b.h hVar2 = bVar.i; - int g = vVar.g(8); - int i9 = 16; - int g2 = vVar.g(16); - int g3 = vVar.g(16); - int d = vVar.d() + g3; - if (g3 * 8 > vVar.b()) { - Log.w("DvbParser", "Data field length exceeds limit"); - vVar.m(vVar.b()); - } else { - switch (g) { - case 16: - if (g2 == hVar2.a) { - b.d dVar = hVar2.i; - int i10 = 8; - int g4 = vVar.g(8); - int g5 = vVar.g(4); - int g6 = vVar.g(2); - vVar.m(2); - int i11 = g3 - 2; - SparseArray sparseArray3 = new SparseArray(); - while (i11 > 0) { - int g7 = vVar.g(i10); - vVar.m(i10); - i11 -= 6; - sparseArray3.put(g7, new b.e(vVar.g(16), vVar.g(16))); - i10 = 8; - } - b.d dVar2 = new b.d(g4, g5, g6, sparseArray3); - if (g6 == 0) { - if (!(dVar == null || dVar.a == g5)) { - hVar2.i = dVar2; - break; - } - } else { - hVar2.i = dVar2; - hVar2.f838c.clear(); - hVar2.d.clear(); - hVar2.e.clear(); - break; - } - } - break; - case 17: - b.d dVar3 = hVar2.i; - if (g2 == hVar2.a && dVar3 != null) { - int g8 = vVar.g(8); - vVar.m(4); - boolean f = vVar.f(); - vVar.m(3); - int g9 = vVar.g(16); - int g10 = vVar.g(16); - int g11 = vVar.g(3); - int g12 = vVar.g(3); - vVar.m(2); - int g13 = vVar.g(8); - int g14 = vVar.g(8); - int g15 = vVar.g(4); - int g16 = vVar.g(2); - vVar.m(2); - int i12 = g3 - 10; - SparseArray sparseArray4 = new SparseArray(); - while (i12 > 0) { - int g17 = vVar.g(i9); - int g18 = vVar.g(2); - int g19 = vVar.g(2); - int g20 = vVar.g(12); - vVar.m(4); - int g21 = vVar.g(12); - i12 -= 6; - if (g18 == 1 || g18 == 2) { - i12 -= 2; - i4 = vVar.g(8); - i3 = vVar.g(8); - } else { - i4 = 0; - i3 = 0; - } - sparseArray4.put(g17, new b.g(g18, g19, g20, g21, i4, i3)); - i9 = 16; - } - b.f fVar2 = new b.f(g8, f, g9, g10, g11, g12, g13, g14, g15, g16, sparseArray4); - if (dVar3.b == 0 && (fVar = hVar2.f838c.get(g8)) != null) { - SparseArray sparseArray5 = fVar.j; - for (int i13 = 0; i13 < sparseArray5.size(); i13++) { - fVar2.j.put(sparseArray5.keyAt(i13), sparseArray5.valueAt(i13)); - } - } - hVar2.f838c.put(fVar2.a, fVar2); - break; - } - case 18: - if (g2 != hVar2.a) { - if (g2 == hVar2.b) { - b.a f2 = b.f(vVar, g3); - hVar2.f.put(f2.a, f2); - break; - } - } else { - b.a f3 = b.f(vVar, g3); - hVar2.d.put(f3.a, f3); - break; - } - break; - case 19: - if (g2 != hVar2.a) { - if (g2 == hVar2.b) { - b.c g22 = b.g(vVar); - hVar2.g.put(g22.a, g22); - break; - } - } else { - b.c g23 = b.g(vVar); - hVar2.e.put(g23.a, g23); - break; - } - break; - case 20: - if (g2 == hVar2.a) { - vVar.m(4); - boolean f4 = vVar.f(); - vVar.m(3); - int g24 = vVar.g(16); - int g25 = vVar.g(16); - if (f4) { - int g26 = vVar.g(16); - i7 = vVar.g(16); - i6 = vVar.g(16); - i5 = vVar.g(16); - i8 = g26; - } else { - i7 = g24; - i5 = g25; - i8 = 0; - i6 = 0; - } - hVar2.h = new b.C0089b(g24, g25, i8, i7, i6, i5); - break; - } - break; - } - vVar.n(d - vVar.d()); - } - } - b.h hVar3 = bVar.i; - b.d dVar4 = hVar3.i; - if (dVar4 == null) { - list = Collections.emptyList(); - cVar2 = cVar; - } else { - b.C0089b bVar2 = hVar3.h; - if (bVar2 == null) { - bVar2 = bVar.g; - } - Bitmap bitmap = bVar.j; - if (!(bitmap != null && bVar2.a + 1 == bitmap.getWidth() && bVar2.b + 1 == bVar.j.getHeight())) { - Bitmap createBitmap = Bitmap.createBitmap(bVar2.a + 1, bVar2.b + 1, Bitmap.Config.ARGB_8888); - bVar.j = createBitmap; - bVar.f.setBitmap(createBitmap); - } - ArrayList arrayList = new ArrayList(); - SparseArray sparseArray6 = dVar4.f836c; - int i14 = 0; - while (i14 < sparseArray6.size()) { - bVar.f.save(); - b.e valueAt = sparseArray6.valueAt(i14); - b.f fVar3 = bVar.i.f838c.get(sparseArray6.keyAt(i14)); - int i15 = valueAt.a + bVar2.f834c; - int i16 = valueAt.b + bVar2.e; - bVar.f.clipRect(i15, i16, Math.min(fVar3.f837c + i15, bVar2.d), Math.min(fVar3.d + i16, bVar2.f)); - b.a aVar = bVar.i.d.get(fVar3.f); - if (aVar == null && (aVar = bVar.i.f.get(fVar3.f)) == null) { - aVar = bVar.h; - } - SparseArray sparseArray7 = fVar3.j; - int i17 = 0; - while (i17 < sparseArray7.size()) { - int keyAt = sparseArray7.keyAt(i17); - b.g valueAt2 = sparseArray7.valueAt(i17); - b.c cVar4 = bVar.i.e.get(keyAt); - if (cVar4 == null) { - cVar4 = bVar.i.g.get(keyAt); - } - if (cVar4 != null) { - Paint paint = cVar4.b ? null : bVar.d; - int i18 = fVar3.e; - sparseArray2 = sparseArray6; - int i19 = valueAt2.a + i15; - int i20 = valueAt2.b + i16; - sparseArray = sparseArray7; - Canvas canvas = bVar.f; - cVar3 = cVar; - int[] iArr = i18 == 3 ? aVar.d : i18 == 2 ? aVar.f833c : aVar.b; - i2 = i14; - b.e(cVar4.f835c, iArr, i18, i19, i20, paint, canvas); - b.e(cVar4.d, iArr, i18, i19, i20 + 1, paint, canvas); - } else { - cVar3 = cVar; - sparseArray2 = sparseArray6; - i2 = i14; - sparseArray = sparseArray7; - } - i17++; - sparseArray6 = sparseArray2; - sparseArray7 = sparseArray; - cVar = cVar3; - i14 = i2; - } - if (fVar3.b) { - int i21 = fVar3.e; - bVar.e.setColor(i21 == 3 ? aVar.d[fVar3.g] : i21 == 2 ? aVar.f833c[fVar3.h] : aVar.b[fVar3.i]); - bVar.f.drawRect((float) i15, (float) i16, (float) (fVar3.f837c + i15), (float) (fVar3.d + i16), bVar.e); - } - Bitmap createBitmap2 = Bitmap.createBitmap(bVar.j, i15, i16, fVar3.f837c, fVar3.d); - float f5 = (float) bVar2.a; - float f6 = (float) bVar2.b; - arrayList.add(new c(null, null, createBitmap2, ((float) i16) / f6, 0, 0, ((float) i15) / f5, 0, Integer.MIN_VALUE, -3.4028235E38f, ((float) fVar3.f837c) / f5, ((float) fVar3.d) / f6, false, -16777216, Integer.MIN_VALUE, 0.0f, null)); - bVar.f.drawColor(0, PorterDuff.Mode.CLEAR); - bVar.f.restore(); - i14++; - sparseArray6 = sparseArray6; - cVar = cVar; - } - cVar2 = cVar; - list = Collections.unmodifiableList(arrayList); - } - return new c(list); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/n/b.java b/app/src/main/java/c/i/a/c/e2/n/b.java deleted file mode 100644 index fde17e216a..0000000000 --- a/app/src/main/java/c/i/a/c/e2/n/b.java +++ /dev/null @@ -1,653 +0,0 @@ -package c.i.a.c.e2.n; - -import android.graphics.Bitmap; -import android.graphics.Canvas; -import android.graphics.Paint; -import android.graphics.PorterDuff; -import android.graphics.PorterDuffXfermode; -import android.util.SparseArray; -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.v; -/* compiled from: DvbParser */ -public final class b { - public static final byte[] a = {0, 7, 8, 15}; - public static final byte[] b = {0, 119, -120, -1}; - - /* renamed from: c reason: collision with root package name */ - public static final byte[] f832c = {0, 17, 34, 51, 68, 85, 102, 119, -120, -103, -86, -69, -52, -35, -18, -1}; - public final Paint d; - public final Paint e; - public final Canvas f = new Canvas(); - public final C0089b g = new C0089b(719, 575, 0, 719, 0, 575); - public final a h = new a(0, new int[]{0, -1, -16777216, -8421505}, b(), c()); - public final h i; - public Bitmap j; - - /* compiled from: DvbParser */ - public static final class a { - public final int a; - public final int[] b; - - /* renamed from: c reason: collision with root package name */ - public final int[] f833c; - public final int[] d; - - public a(int i, int[] iArr, int[] iArr2, int[] iArr3) { - this.a = i; - this.b = iArr; - this.f833c = iArr2; - this.d = iArr3; - } - } - - /* compiled from: DvbParser */ - /* renamed from: c.i.a.c.e2.n.b$b reason: collision with other inner class name */ - public static final class C0089b { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f834c; - public final int d; - public final int e; - public final int f; - - public C0089b(int i, int i2, int i3, int i4, int i5, int i6) { - this.a = i; - this.b = i2; - this.f834c = i3; - this.d = i4; - this.e = i5; - this.f = i6; - } - } - - /* compiled from: DvbParser */ - public static final class c { - public final int a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final byte[] f835c; - public final byte[] d; - - public c(int i, boolean z2, byte[] bArr, byte[] bArr2) { - this.a = i; - this.b = z2; - this.f835c = bArr; - this.d = bArr2; - } - } - - /* compiled from: DvbParser */ - public static final class d { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final SparseArray f836c; - - public d(int i, int i2, int i3, SparseArray sparseArray) { - this.a = i2; - this.b = i3; - this.f836c = sparseArray; - } - } - - /* compiled from: DvbParser */ - public static final class e { - public final int a; - public final int b; - - public e(int i, int i2) { - this.a = i; - this.b = i2; - } - } - - /* compiled from: DvbParser */ - public static final class f { - public final int a; - public final boolean b; - - /* renamed from: c reason: collision with root package name */ - public final int f837c; - public final int d; - public final int e; - public final int f; - public final int g; - public final int h; - public final int i; - public final SparseArray j; - - public f(int i, boolean z2, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, SparseArray sparseArray) { - this.a = i; - this.b = z2; - this.f837c = i2; - this.d = i3; - this.e = i5; - this.f = i6; - this.g = i7; - this.h = i8; - this.i = i9; - this.j = sparseArray; - } - } - - /* compiled from: DvbParser */ - public static final class g { - public final int a; - public final int b; - - public g(int i, int i2, int i3, int i4, int i5, int i6) { - this.a = i3; - this.b = i4; - } - } - - /* compiled from: DvbParser */ - public static final class h { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final SparseArray f838c = new SparseArray<>(); - public final SparseArray d = new SparseArray<>(); - public final SparseArray e = new SparseArray<>(); - public final SparseArray f = new SparseArray<>(); - public final SparseArray g = new SparseArray<>(); - @Nullable - public C0089b h; - @Nullable - public d i; - - public h(int i, int i2) { - this.a = i; - this.b = i2; - } - } - - public b(int i, int i2) { - Paint paint = new Paint(); - this.d = paint; - paint.setStyle(Paint.Style.FILL_AND_STROKE); - paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); - paint.setPathEffect(null); - Paint paint2 = new Paint(); - this.e = paint2; - paint2.setStyle(Paint.Style.FILL); - paint2.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER)); - paint2.setPathEffect(null); - this.i = new h(i, i2); - } - - public static byte[] a(int i, int i2, v vVar) { - byte[] bArr = new byte[i]; - for (int i3 = 0; i3 < i; i3++) { - bArr[i3] = (byte) vVar.g(i2); - } - return bArr; - } - - public static int[] b() { - int[] iArr = new int[16]; - iArr[0] = 0; - for (int i = 1; i < 16; i++) { - if (i < 8) { - iArr[i] = d(255, (i & 1) != 0 ? 255 : 0, (i & 2) != 0 ? 255 : 0, (i & 4) != 0 ? 255 : 0); - } else { - int i2 = 127; - int i3 = (i & 1) != 0 ? 127 : 0; - int i4 = (i & 2) != 0 ? 127 : 0; - if ((i & 4) == 0) { - i2 = 0; - } - iArr[i] = d(255, i3, i4, i2); - } - } - return iArr; - } - - public static int[] c() { - int[] iArr = new int[256]; - iArr[0] = 0; - for (int i = 0; i < 256; i++) { - int i2 = 255; - if (i < 8) { - int i3 = (i & 1) != 0 ? 255 : 0; - int i4 = (i & 2) != 0 ? 255 : 0; - if ((i & 4) == 0) { - i2 = 0; - } - iArr[i] = d(63, i3, i4, i2); - } else { - int i5 = i & 136; - int i6 = 170; - int i7 = 85; - if (i5 == 0) { - int i8 = ((i & 1) != 0 ? 85 : 0) + ((i & 16) != 0 ? 170 : 0); - int i9 = ((i & 2) != 0 ? 85 : 0) + ((i & 32) != 0 ? 170 : 0); - if ((i & 4) == 0) { - i7 = 0; - } - if ((i & 64) == 0) { - i6 = 0; - } - iArr[i] = d(255, i8, i9, i7 + i6); - } else if (i5 != 8) { - int i10 = 43; - if (i5 == 128) { - int i11 = ((i & 1) != 0 ? 43 : 0) + 127 + ((i & 16) != 0 ? 85 : 0); - int i12 = ((i & 2) != 0 ? 43 : 0) + 127 + ((i & 32) != 0 ? 85 : 0); - if ((i & 4) == 0) { - i10 = 0; - } - int i13 = i10 + 127; - if ((i & 64) == 0) { - i7 = 0; - } - iArr[i] = d(255, i11, i12, i13 + i7); - } else if (i5 == 136) { - int i14 = ((i & 1) != 0 ? 43 : 0) + ((i & 16) != 0 ? 85 : 0); - int i15 = ((i & 2) != 0 ? 43 : 0) + ((i & 32) != 0 ? 85 : 0); - if ((i & 4) == 0) { - i10 = 0; - } - if ((i & 64) == 0) { - i7 = 0; - } - iArr[i] = d(255, i14, i15, i10 + i7); - } - } else { - int i16 = ((i & 1) != 0 ? 85 : 0) + ((i & 16) != 0 ? 170 : 0); - int i17 = ((i & 2) != 0 ? 85 : 0) + ((i & 32) != 0 ? 170 : 0); - if ((i & 4) == 0) { - i7 = 0; - } - if ((i & 64) == 0) { - i6 = 0; - } - iArr[i] = d(127, i16, i17, i7 + i6); - } - } - } - return iArr; - } - - public static int d(int i, int i2, int i3, int i4) { - return (i << 24) | (i2 << 16) | (i3 << 8) | i4; - } - - /* JADX DEBUG: Failed to insert an additional move for type inference into block B:63:0x0114 */ - /* JADX DEBUG: Failed to insert an additional move for type inference into block B:106:0x01d3 */ - /* JADX WARNING: Removed duplicated region for block: B:105:0x01d1 A[ADDED_TO_REGION] */ - /* JADX WARNING: Removed duplicated region for block: B:113:0x020b A[LOOP:3: B:83:0x0163->B:113:0x020b, LOOP_END] */ - /* JADX WARNING: Removed duplicated region for block: B:136:0x013b A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:137:0x0205 A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:62:0x0112 A[ADDED_TO_REGION] */ - /* JADX WARNING: Removed duplicated region for block: B:70:0x0141 A[LOOP:2: B:38:0x00ab->B:70:0x0141, LOOP_END] */ - /* JADX WARNING: Removed duplicated region for block: B:85:0x016a */ - public static void e(byte[] bArr, int[] iArr, int i, int i2, int i3, @Nullable Paint paint, Canvas canvas) { - byte[] bArr2; - int i4; - boolean z2; - int g2; - int i5; - boolean z3; - byte b2; - int i6; - int i7; - int i8; - byte[] bArr3; - byte[] bArr4; - int i9; - boolean z4; - byte b3; - int i10; - int i11; - int i12; - int i13; - boolean z5; - v vVar = new v(bArr); - int i14 = i2; - int i15 = i3; - byte[] bArr5 = null; - byte[] bArr6 = null; - byte[] bArr7 = null; - while (vVar.b() != 0) { - int i16 = 8; - int g3 = vVar.g(8); - if (g3 != 240) { - int i17 = 4; - int i18 = 2; - switch (g3) { - case 16: - if (i == 3) { - bArr3 = bArr5 == null ? b : bArr5; - } else if (i == 2) { - bArr3 = bArr7 == null ? a : bArr7; - } else { - bArr2 = null; - i4 = i14; - z2 = false; - while (true) { - g2 = vVar.g(2); - if (g2 == 0) { - if (vVar.f()) { - i8 = vVar.g(3) + 3; - i7 = vVar.g(2); - } else if (vVar.f()) { - g2 = 0; - } else { - int g4 = vVar.g(2); - if (g4 == 0) { - z2 = true; - } else if (g4 == 1) { - z3 = z2; - b2 = 0; - i5 = 2; - if (i5 != 0 || paint == null) { - i6 = i4; - } else { - if (bArr2 != null) { - b2 = bArr2[b2]; - } - paint.setColor(iArr[b2 == true ? 1 : 0]); - i6 = i4; - canvas.drawRect((float) i4, (float) i15, (float) (i4 + i5), (float) (i15 + 1), paint); - } - i4 = i6 + i5; - if (z3) { - vVar.c(); - i14 = i4; - continue; - } else { - z2 = z3; - } - } else if (g4 == 2) { - i8 = vVar.g(4) + 12; - i7 = vVar.g(2); - } else if (g4 == 3) { - i8 = vVar.g(8) + 29; - i7 = vVar.g(2); - } - z3 = z2; - b2 = 0; - i5 = 0; - if (i5 != 0) { - } - i6 = i4; - i4 = i6 + i5; - if (z3) { - } - } - i5 = i8; - b2 = i7; - z3 = z2; - if (i5 != 0) { - } - i6 = i4; - i4 = i6 + i5; - if (z3) { - } - } - z3 = z2; - i5 = 1; - b2 = g2; - if (i5 != 0) { - } - i6 = i4; - i4 = i6 + i5; - if (z3) { - } - } - } - bArr2 = bArr3; - i4 = i14; - z2 = false; - while (true) { - g2 = vVar.g(2); - if (g2 == 0) { - } - z3 = z2; - i5 = 1; - b2 = g2; - if (i5 != 0) { - } - i6 = i4; - i4 = i6 + i5; - if (z3) { - } - z2 = z3; - } - case 17: - if (i == 3) { - bArr4 = bArr6 == null ? f832c : bArr6; - } else { - bArr4 = null; - } - int i19 = i14; - boolean z6 = false; - while (true) { - int g5 = vVar.g(i17); - if (g5 == 0) { - if (!vVar.f()) { - int g6 = vVar.g(3); - if (g6 != 0) { - z4 = z6; - i9 = g6 + 2; - b3 = 0; - if (i9 != 0 || paint == null) { - i10 = i19; - } else { - if (bArr4 != null) { - b3 = bArr4[b3]; - } - paint.setColor(iArr[b3 == true ? 1 : 0]); - i10 = i19; - canvas.drawRect((float) i19, (float) i15, (float) (i19 + i9), (float) (i15 + 1), paint); - } - i19 = i10 + i9; - if (z4) { - vVar.c(); - i14 = i19; - continue; - } else { - z6 = z4; - i18 = 2; - i17 = 4; - i16 = 8; - } - } else { - z6 = true; - } - } else { - if (!vVar.f()) { - i12 = vVar.g(i18) + i17; - i11 = vVar.g(i17); - } else { - int g7 = vVar.g(i18); - if (g7 == 0) { - g5 = 0; - } else if (g7 == 1) { - z4 = z6; - b3 = 0; - i9 = 2; - if (i9 != 0) { - } - i10 = i19; - i19 = i10 + i9; - if (z4) { - } - } else if (g7 == i18) { - i12 = vVar.g(i17) + 9; - i11 = vVar.g(i17); - } else if (g7 == 3) { - i12 = vVar.g(i16) + 25; - i11 = vVar.g(i17); - } - } - z4 = z6; - i9 = i12; - b3 = i11; - if (i9 != 0) { - } - i10 = i19; - i19 = i10 + i9; - if (z4) { - } - } - z4 = z6; - b3 = 0; - i9 = 0; - if (i9 != 0) { - } - i10 = i19; - i19 = i10 + i9; - if (z4) { - } - } - z4 = z6; - b3 = g5; - i9 = 1; - if (i9 != 0) { - } - i10 = i19; - i19 = i10 + i9; - if (z4) { - } - } - case 18: - int i20 = i14; - boolean z7 = false; - while (true) { - int g8 = vVar.g(8); - if (g8 != 0) { - z5 = z7; - i13 = 1; - } else if (!vVar.f()) { - int g9 = vVar.g(7); - if (g9 != 0) { - z5 = z7; - i13 = g9; - g8 = 0; - } else { - g8 = 0; - z5 = true; - i13 = 0; - } - } else { - z5 = z7; - i13 = vVar.g(7); - g8 = vVar.g(8); - } - if (i13 != 0 && paint != null) { - paint.setColor(iArr[g8]); - canvas.drawRect((float) i20, (float) i15, (float) (i20 + i13), (float) (i15 + 1), paint); - } - i20 += i13; - if (z5) { - i14 = i20; - continue; - } else { - z7 = z5; - } - } - default: - switch (g3) { - case 32: - bArr7 = a(4, 4, vVar); - continue; - case 33: - bArr5 = a(4, 8, vVar); - continue; - case 34: - bArr6 = a(16, 8, vVar); - continue; - default: - continue; - } - } - } else { - i15 += 2; - i14 = i2; - } - } - } - - public static a f(v vVar, int i) { - int i2; - int i3; - int i4; - int i5; - int i6 = 8; - int g2 = vVar.g(8); - vVar.m(8); - int i7 = i - 2; - int i8 = 4; - int[] iArr = {0, -1, -16777216, -8421505}; - int[] b2 = b(); - int[] c2 = c(); - while (i7 > 0) { - int g3 = vVar.g(i6); - int g4 = vVar.g(i6); - int i9 = i7 - 2; - int[] iArr2 = (g4 & 128) != 0 ? iArr : (g4 & 64) != 0 ? b2 : c2; - if ((g4 & 1) != 0) { - i5 = vVar.g(i6); - i4 = vVar.g(i6); - i3 = vVar.g(i6); - i2 = vVar.g(i6); - i7 = i9 - 4; - } else { - i7 = i9 - 2; - i4 = vVar.g(i8) << i8; - i2 = vVar.g(2) << 6; - i5 = vVar.g(6) << 2; - i3 = vVar.g(i8) << i8; - } - if (i5 == 0) { - i4 = 0; - i3 = 0; - i2 = 255; - } - double d2 = (double) i5; - double d3 = (double) (i4 - 128); - double d4 = (double) (i3 - 128); - iArr2[g3] = d((byte) (255 - (i2 & 255)), f0.h((int) ((1.402d * d3) + d2), 0, 255), f0.h((int) ((d2 - (0.34414d * d4)) - (d3 * 0.71414d)), 0, 255), f0.h((int) ((d4 * 1.772d) + d2), 0, 255)); - iArr = iArr; - g2 = g2; - i6 = 8; - i8 = 4; - } - return new a(g2, iArr, b2, c2); - } - - public static c g(v vVar) { - byte[] bArr; - int g2 = vVar.g(16); - vVar.m(4); - int g3 = vVar.g(2); - boolean f2 = vVar.f(); - vVar.m(1); - byte[] bArr2 = f0.f; - if (g3 == 1) { - vVar.m(vVar.g(8) * 16); - } else if (g3 == 0) { - int g4 = vVar.g(16); - int g5 = vVar.g(16); - if (g4 > 0) { - bArr2 = new byte[g4]; - vVar.i(bArr2, 0, g4); - } - if (g5 > 0) { - bArr = new byte[g5]; - vVar.i(bArr, 0, g5); - return new c(g2, f2, bArr2, bArr); - } - } - bArr = bArr2; - return new c(g2, f2, bArr2, bArr); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/n/c.java b/app/src/main/java/c/i/a/c/e2/n/c.java deleted file mode 100644 index 60b0d55f63..0000000000 --- a/app/src/main/java/c/i/a/c/e2/n/c.java +++ /dev/null @@ -1,32 +0,0 @@ -package c.i.a.c.e2.n; - -import c.i.a.c.e2.f; -import java.util.List; -/* compiled from: DvbSubtitle */ -public final class c implements f { - public final List i; - - public c(List list) { - this.i = list; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - return 0; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - return this.i; - } - - @Override // c.i.a.c.e2.f - public int i() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/o/a.java b/app/src/main/java/c/i/a/c/e2/o/a.java deleted file mode 100644 index c3f12f7d42..0000000000 --- a/app/src/main/java/c/i/a/c/e2/o/a.java +++ /dev/null @@ -1,199 +0,0 @@ -package c.i.a.c.e2.o; - -import android.graphics.Bitmap; -import androidx.annotation.Nullable; -import c.i.a.c.e2.c; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Objects; -import java.util.zip.Inflater; -/* compiled from: PgsDecoder */ -public final class a extends d { - public final w n = new w(); - public final w o = new w(); - public final C0090a p = new C0090a(); - @Nullable - public Inflater q; - - /* compiled from: PgsDecoder */ - /* renamed from: c.i.a.c.e2.o.a$a reason: collision with other inner class name */ - public static final class C0090a { - public final w a = new w(); - public final int[] b = new int[256]; - - /* renamed from: c reason: collision with root package name */ - public boolean f839c; - public int d; - public int e; - public int f; - public int g; - public int h; - public int i; - - public void a() { - this.d = 0; - this.e = 0; - this.f = 0; - this.g = 0; - this.h = 0; - this.i = 0; - this.a.z(0); - this.f839c = false; - } - } - - public a() { - super("PgsDecoder"); - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { - c cVar; - w wVar; - w wVar2; - int i2; - int i3; - int u; - a aVar = this; - w wVar3 = aVar.n; - wVar3.a = bArr; - wVar3.f913c = i; - int i4 = 0; - wVar3.b = 0; - if (wVar3.a() > 0 && wVar3.c() == 120) { - if (aVar.q == null) { - aVar.q = new Inflater(); - } - if (f0.x(wVar3, aVar.o, aVar.q)) { - w wVar4 = aVar.o; - wVar3.B(wVar4.a, wVar4.f913c); - } - } - aVar.p.a(); - ArrayList arrayList = new ArrayList(); - while (aVar.n.a() >= 3) { - w wVar5 = aVar.n; - C0090a aVar2 = aVar.p; - int i5 = wVar5.f913c; - int s2 = wVar5.s(); - int x2 = wVar5.x(); - int i6 = wVar5.b + x2; - if (i6 > i5) { - wVar5.D(i5); - cVar = null; - } else { - if (s2 != 128) { - switch (s2) { - case 20: - Objects.requireNonNull(aVar2); - if (x2 % 5 == 2) { - wVar5.E(2); - Arrays.fill(aVar2.b, i4); - int i7 = x2 / 5; - int i8 = 0; - while (i8 < i7) { - int s3 = wVar5.s(); - double s4 = (double) wVar5.s(); - double s5 = (double) (wVar5.s() - 128); - arrayList = arrayList; - double s6 = (double) (wVar5.s() - 128); - aVar2.b[s3] = (f0.h((int) ((1.402d * s5) + s4), 0, 255) << 16) | (wVar5.s() << 24) | (f0.h((int) ((s4 - (0.34414d * s6)) - (s5 * 0.71414d)), 0, 255) << 8) | f0.h((int) ((s6 * 1.772d) + s4), 0, 255); - i8++; - wVar5 = wVar5; - } - wVar = wVar5; - aVar2.f839c = true; - break; - } - wVar = wVar5; - break; - case 21: - Objects.requireNonNull(aVar2); - if (x2 >= 4) { - wVar5.E(3); - int i9 = x2 - 4; - if ((wVar5.s() & 128) != 0) { - if (i9 >= 7 && (u = wVar5.u()) >= 4) { - aVar2.h = wVar5.x(); - aVar2.i = wVar5.x(); - aVar2.a.z(u - 4); - i9 -= 7; - } - } - w wVar6 = aVar2.a; - int i10 = wVar6.b; - int i11 = wVar6.f913c; - if (i10 < i11 && i9 > 0) { - int min = Math.min(i9, i11 - i10); - wVar5.e(aVar2.a.a, i10, min); - aVar2.a.D(i10 + min); - } - } - wVar = wVar5; - break; - case 22: - Objects.requireNonNull(aVar2); - if (x2 >= 19) { - aVar2.d = wVar5.x(); - aVar2.e = wVar5.x(); - wVar5.E(11); - aVar2.f = wVar5.x(); - aVar2.g = wVar5.x(); - } - wVar = wVar5; - break; - default: - wVar = wVar5; - break; - } - cVar = null; - } else { - wVar = wVar5; - if (aVar2.d == 0 || aVar2.e == 0 || aVar2.h == 0 || aVar2.i == 0 || (i2 = (wVar2 = aVar2.a).f913c) == 0 || wVar2.b != i2 || !aVar2.f839c) { - cVar = null; - } else { - wVar2.D(0); - int i12 = aVar2.h * aVar2.i; - int[] iArr = new int[i12]; - int i13 = 0; - while (i13 < i12) { - int s7 = aVar2.a.s(); - if (s7 != 0) { - i3 = i13 + 1; - iArr[i13] = aVar2.b[s7]; - } else { - int s8 = aVar2.a.s(); - if (s8 != 0) { - i3 = ((s8 & 64) == 0 ? s8 & 63 : ((s8 & 63) << 8) | aVar2.a.s()) + i13; - Arrays.fill(iArr, i13, i3, (s8 & 128) == 0 ? 0 : aVar2.b[aVar2.a.s()]); - } - } - i13 = i3; - } - Bitmap createBitmap = Bitmap.createBitmap(iArr, aVar2.h, aVar2.i, Bitmap.Config.ARGB_8888); - float f = (float) aVar2.d; - float f2 = ((float) aVar2.f) / f; - float f3 = (float) aVar2.e; - cVar = new c(null, null, createBitmap, ((float) aVar2.g) / f3, 0, 0, f2, 0, Integer.MIN_VALUE, -3.4028235E38f, ((float) aVar2.h) / f, ((float) aVar2.i) / f3, false, -16777216, Integer.MIN_VALUE, 0.0f, null); - } - aVar2.a(); - } - wVar.D(i6); - } - if (cVar != null) { - arrayList.add(cVar); - } - arrayList = arrayList; - i4 = 0; - aVar = this; - } - return new b(Collections.unmodifiableList(arrayList)); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/o/b.java b/app/src/main/java/c/i/a/c/e2/o/b.java deleted file mode 100644 index ef65398278..0000000000 --- a/app/src/main/java/c/i/a/c/e2/o/b.java +++ /dev/null @@ -1,33 +0,0 @@ -package c.i.a.c.e2.o; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import java.util.List; -/* compiled from: PgsSubtitle */ -public final class b implements f { - public final List i; - - public b(List list) { - this.i = list; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - return 0; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - return this.i; - } - - @Override // c.i.a.c.e2.f - public int i() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/p/a.java b/app/src/main/java/c/i/a/c/e2/p/a.java deleted file mode 100644 index e452918f1d..0000000000 --- a/app/src/main/java/c/i/a/c/e2/p/a.java +++ /dev/null @@ -1,4 +0,0 @@ -package c.i.a.c.e2.p; -/* compiled from: HorizontalTextInVerticalContextSpan */ -public final class a { -} diff --git a/app/src/main/java/c/i/a/c/e2/p/b.java b/app/src/main/java/c/i/a/c/e2/p/b.java deleted file mode 100644 index 4750859dde..0000000000 --- a/app/src/main/java/c/i/a/c/e2/p/b.java +++ /dev/null @@ -1,11 +0,0 @@ -package c.i.a.c.e2.p; -/* compiled from: RubySpan */ -public final class b { - public final String a; - public final int b; - - public b(String str, int i) { - this.a = str; - this.b = i; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/p/c.java b/app/src/main/java/c/i/a/c/e2/p/c.java deleted file mode 100644 index 12431e3fc3..0000000000 --- a/app/src/main/java/c/i/a/c/e2/p/c.java +++ /dev/null @@ -1,15 +0,0 @@ -package c.i.a.c.e2.p; -/* compiled from: TextEmphasisSpan */ -public final class c { - public int a; - public int b; - - /* renamed from: c reason: collision with root package name */ - public final int f840c; - - public c(int i, int i2, int i3) { - this.a = i; - this.b = i2; - this.f840c = i3; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/q/a.java b/app/src/main/java/c/i/a/c/e2/q/a.java deleted file mode 100644 index 2474722ef7..0000000000 --- a/app/src/main/java/c/i/a/c/e2/q/a.java +++ /dev/null @@ -1,521 +0,0 @@ -package c.i.a.c.e2.q; - -import android.graphics.PointF; -import android.text.Layout; -import android.text.SpannableString; -import android.text.TextUtils; -import android.text.style.ForegroundColorSpan; -import android.text.style.StyleSpan; -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.e2.c; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.e2.q.c; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.p; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: SsaDecoder */ -public final class a extends d { - public static final Pattern n = Pattern.compile("(?:(\\d+):)?(\\d+):(\\d+)[:.](\\d+)"); - public final boolean o; - @Nullable - public final b p; - public Map q; - public float r = -3.4028235E38f; - - /* renamed from: s reason: collision with root package name */ - public float f841s = -3.4028235E38f; - - public a(@Nullable List list) { - super("SsaDecoder"); - if (list == null || list.isEmpty()) { - this.o = false; - this.p = null; - return; - } - this.o = true; - String l = f0.l(list.get(0)); - AnimatableValueParser.k(l.startsWith("Format:")); - b a = b.a(l); - Objects.requireNonNull(a); - this.p = a; - m(new w(list.get(1))); - } - - public static int k(long j, List list, List> list2) { - int i; - int size = list.size() - 1; - while (true) { - if (size < 0) { - i = 0; - break; - } else if (list.get(size).longValue() == j) { - return size; - } else { - if (list.get(size).longValue() < j) { - i = size + 1; - break; - } - size--; - } - } - list.add(i, Long.valueOf(j)); - list2.add(i, i == 0 ? new ArrayList() : new ArrayList(list2.get(i - 1))); - return i; - } - - public static float l(int i) { - if (i == 0) { - return 0.05f; - } - if (i != 1) { - return i != 2 ? -3.4028235E38f : 0.95f; - } - return 0.5f; - } - - public static long n(String str) { - Matcher matcher = n.matcher(str.trim()); - if (!matcher.matches()) { - return -9223372036854775807L; - } - String group = matcher.group(1); - int i = f0.a; - long parseLong = (Long.parseLong(matcher.group(2)) * 60 * 1000000) + (Long.parseLong(group) * 60 * 60 * 1000000); - return (Long.parseLong(matcher.group(4)) * 10000) + (Long.parseLong(matcher.group(3)) * 1000000) + parseLong; - } - - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) { - w wVar; - b bVar; - long j; - float f; - int i2; - int i3; - Layout.Alignment alignment; - int i4; - int i5; - float f2; - float f3; - int i6; - float f4; - float f5; - int i7; - int i8; - a aVar = this; - ArrayList arrayList = new ArrayList(); - ArrayList arrayList2 = new ArrayList(); - w wVar2 = new w(bArr, i); - if (!aVar.o) { - aVar.m(wVar2); - } - b bVar2 = aVar.o ? aVar.p : null; - while (true) { - String g = wVar2.g(); - if (g == null) { - return new d(arrayList, arrayList2); - } - if (g.startsWith("Format:")) { - bVar2 = b.a(g); - } else { - if (g.startsWith("Dialogue:")) { - if (bVar2 == null) { - c.d.b.a.a.g0("Skipping dialogue line before complete format: ", g, "SsaDecoder"); - } else { - AnimatableValueParser.k(g.startsWith("Dialogue:")); - String[] split = g.substring(9).split(",", bVar2.e); - if (split.length != bVar2.e) { - c.d.b.a.a.g0("Skipping dialogue line with fewer columns than format: ", g, "SsaDecoder"); - } else { - long n2 = n(split[bVar2.a]); - if (n2 == -9223372036854775807L) { - c.d.b.a.a.g0("Skipping invalid timing: ", g, "SsaDecoder"); - } else { - long n3 = n(split[bVar2.b]); - if (n3 == -9223372036854775807L) { - c.d.b.a.a.g0("Skipping invalid timing: ", g, "SsaDecoder"); - } else { - Map map = aVar.q; - c cVar = (map == null || (i8 = bVar2.f842c) == -1) ? null : map.get(split[i8].trim()); - String str = split[bVar2.d]; - Matcher matcher = c.b.a.matcher(str); - PointF pointF = null; - int i9 = -1; - while (true) { - wVar = wVar2; - if (matcher.find()) { - String group = matcher.group(1); - Objects.requireNonNull(group); - try { - PointF a = c.b.a(group); - if (a != null) { - pointF = a; - } - } catch (RuntimeException unused) { - } - try { - Matcher matcher2 = c.b.d.matcher(group); - if (matcher2.find()) { - String group2 = matcher2.group(1); - Objects.requireNonNull(group2); - i7 = c.a(group2); - } else { - i7 = -1; - } - if (i7 != -1) { - i9 = i7; - } - } catch (RuntimeException unused2) { - } - wVar2 = wVar; - } else { - String replace = c.b.a.matcher(str).replaceAll("").replace("\\N", "\n").replace("\\n", "\n").replace("\\h", " "); - float f6 = aVar.r; - float f7 = aVar.f841s; - SpannableString spannableString = new SpannableString(replace); - if (cVar != null) { - if (cVar.f843c != null) { - bVar = bVar2; - j = n3; - spannableString.setSpan(new ForegroundColorSpan(cVar.f843c.intValue()), 0, spannableString.length(), 33); - } else { - bVar = bVar2; - j = n3; - } - float f8 = cVar.d; - if (f8 == -3.4028235E38f || f7 == -3.4028235E38f) { - f4 = -3.4028235E38f; - i6 = Integer.MIN_VALUE; - } else { - f4 = f8 / f7; - i6 = 1; - } - boolean z3 = cVar.e; - if (!z3 || !cVar.f) { - f5 = f4; - if (z3) { - spannableString.setSpan(new StyleSpan(1), 0, spannableString.length(), 33); - } else if (cVar.f) { - spannableString.setSpan(new StyleSpan(2), 0, spannableString.length(), 33); - } - } else { - f5 = f4; - spannableString.setSpan(new StyleSpan(3), 0, spannableString.length(), 33); - } - i3 = -1; - i2 = i6; - f = f5; - } else { - bVar = bVar2; - j = n3; - i3 = -1; - i2 = Integer.MIN_VALUE; - f = -3.4028235E38f; - } - if (i9 == i3) { - i9 = cVar != null ? cVar.b : i3; - } - switch (i9) { - case 0: - default: - Log.w("SsaDecoder", c.d.b.a.a.j("Unknown alignment: ", i9)); - case -1: - alignment = null; - break; - case 1: - case 4: - case 7: - alignment = Layout.Alignment.ALIGN_NORMAL; - break; - case 2: - case 5: - case 8: - alignment = Layout.Alignment.ALIGN_CENTER; - break; - case 3: - case 6: - case 9: - alignment = Layout.Alignment.ALIGN_OPPOSITE; - break; - } - switch (i9) { - case 0: - default: - Log.w("SsaDecoder", c.d.b.a.a.j("Unknown alignment: ", i9)); - case -1: - i4 = Integer.MIN_VALUE; - break; - case 1: - case 4: - case 7: - i4 = 0; - break; - case 2: - case 5: - case 8: - i4 = 1; - break; - case 3: - case 6: - case 9: - i4 = 2; - break; - } - switch (i9) { - case 0: - default: - Log.w("SsaDecoder", c.d.b.a.a.j("Unknown alignment: ", i9)); - case -1: - i5 = Integer.MIN_VALUE; - break; - case 1: - case 2: - case 3: - i5 = 2; - break; - case 4: - case 5: - case 6: - i5 = 1; - break; - case 7: - case 8: - case 9: - i5 = 0; - break; - } - if (pointF == null || f7 == -3.4028235E38f || f6 == -3.4028235E38f) { - f3 = l(i4); - f2 = l(i5); - } else { - f3 = pointF.x / f6; - f2 = pointF.y / f7; - } - c.i.a.c.e2.c cVar2 = new c.i.a.c.e2.c(spannableString, alignment, null, f2, 0, i5, f3, i4, i2, f, -3.4028235E38f, -3.4028235E38f, false, -16777216, Integer.MIN_VALUE, 0.0f, null); - int k = k(j, arrayList2, arrayList); - for (int k2 = k(n2, arrayList2, arrayList); k2 < k; k2++) { - ((List) arrayList.get(k2)).add(cVar2); - } - aVar = this; - bVar2 = bVar; - wVar2 = wVar; - } - } - } - } - } - } - } - wVar = wVar2; - bVar = bVar2; - aVar = this; - bVar2 = bVar; - wVar2 = wVar; - } - } - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - /* JADX WARNING: Removed duplicated region for block: B:100:0x01ee */ - /* JADX WARNING: Removed duplicated region for block: B:101:0x01fb */ - /* JADX WARNING: Removed duplicated region for block: B:104:0x0202 */ - /* JADX WARNING: Removed duplicated region for block: B:105:0x020f */ - /* JADX WARNING: Removed duplicated region for block: B:111:0x0233 */ - public final void m(w wVar) { - char c2; - c cVar; - float f; - while (true) { - String g = wVar.g(); - if (g != null) { - int i = 91; - char c3 = 2; - char c4 = 1; - if ("[Script Info]".equalsIgnoreCase(g)) { - while (true) { - String g2 = wVar.g(); - if (g2 != null && (wVar.a() == 0 || wVar.c() != 91)) { - String[] split = g2.split(":"); - if (split.length == 2) { - String K = f0.K(split[0].trim()); - K.hashCode(); - if (K.equals("playresx")) { - this.r = Float.parseFloat(split[1].trim()); - } else if (K.equals("playresy")) { - try { - this.f841s = Float.parseFloat(split[1].trim()); - } catch (NumberFormatException unused) { - } - } - } - } - } - } else if ("[V4+ Styles]".equalsIgnoreCase(g)) { - LinkedHashMap linkedHashMap = new LinkedHashMap(); - while (true) { - c.a aVar = null; - while (true) { - String g3 = wVar.g(); - if (g3 != null && (wVar.a() == 0 || wVar.c() != i)) { - if (g3.startsWith("Format:")) { - String[] split2 = TextUtils.split(g3.substring(7), ","); - int i2 = -1; - int i3 = -1; - int i4 = -1; - int i5 = -1; - int i6 = -1; - int i7 = -1; - for (int i8 = 0; i8 < split2.length; i8++) { - String K2 = f0.K(split2[i8].trim()); - K2.hashCode(); - switch (K2.hashCode()) { - case -1178781136: - if (K2.equals("italic")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case -70925746: - if (K2.equals("primarycolour")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case 3029637: - if (K2.equals("bold")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case 3373707: - if (K2.equals("name")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case 366554320: - if (K2.equals("fontsize")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case 1767875043: - if (K2.equals("alignment")) { - c2 = 5; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - if (c2 == 0) { - i7 = i8; - } else if (c2 == c4) { - i4 = i8; - } else if (c2 == c3) { - i6 = i8; - } else if (c2 == 3) { - i2 = i8; - } else if (c2 == 4) { - i5 = i8; - } else if (c2 == 5) { - i3 = i8; - } - } - if (i2 != -1) { - aVar = new c.a(i2, i3, i4, i5, i6, i7, split2.length); - i = 91; - } else { - i = 91; - } - } else { - if (g3.startsWith("Style:")) { - if (aVar == null) { - c.d.b.a.a.g0("Skipping 'Style:' line before 'Format:' line: ", g3, "SsaDecoder"); - } else { - AnimatableValueParser.k(g3.startsWith("Style:")); - String[] split3 = TextUtils.split(g3.substring(6), ","); - int length = split3.length; - int i9 = aVar.g; - if (length != i9) { - Object[] objArr = new Object[3]; - objArr[0] = Integer.valueOf(i9); - objArr[c4] = Integer.valueOf(split3.length); - objArr[c3] = g3; - Log.w("SsaStyle", f0.k("Skipping malformed 'Style:' line (expected %s values, found %s): '%s'", objArr)); - } else { - try { - String trim = split3[aVar.a].trim(); - int i10 = aVar.b; - int a = i10 != -1 ? c.a(split3[i10].trim()) : -1; - int i11 = aVar.f844c; - Integer c5 = i11 != -1 ? c.c(split3[i11].trim()) : null; - int i12 = aVar.d; - if (i12 != -1) { - String trim2 = split3[i12].trim(); - try { - f = Float.parseFloat(trim2); - } catch (NumberFormatException e) { - p.c("SsaStyle", "Failed to parse font size: '" + trim2 + "'", e); - } - int i13 = aVar.e; - boolean b = i13 == -1 ? c.b(split3[i13].trim()) : false; - int i14 = aVar.f; - cVar = new c(trim, a, c5, f, b, i14 == -1 ? c.b(split3[i14].trim()) : false); - if (cVar != null) { - linkedHashMap.put(cVar.a, cVar); - } - } - f = -3.4028235E38f; - int i13 = aVar.e; - if (i13 == -1) { - } - int i14 = aVar.f; - cVar = new c(trim, a, c5, f, b, i14 == -1 ? c.b(split3[i14].trim()) : false); - } catch (RuntimeException e2) { - p.c("SsaStyle", "Skipping malformed 'Style:' line: '" + g3 + "'", e2); - } - if (cVar != null) { - } - } - cVar = null; - if (cVar != null) { - } - } - } - i = 91; - c3 = 2; - c4 = 1; - } - } - } - } - this.q = linkedHashMap; - } else if ("[V4 Styles]".equalsIgnoreCase(g)) { - Log.i("SsaDecoder", "[V4 Styles] are not supported"); - } else if ("[Events]".equalsIgnoreCase(g)) { - return; - } - } else { - return; - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/q/b.java b/app/src/main/java/c/i/a/c/e2/q/b.java deleted file mode 100644 index 7d33b9c3ac..0000000000 --- a/app/src/main/java/c/i/a/c/e2/q/b.java +++ /dev/null @@ -1,86 +0,0 @@ -package c.i.a.c.e2.q; - -import android.text.TextUtils; -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -/* compiled from: SsaDialogueFormat */ -public final class b { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f842c; - public final int d; - public final int e; - - public b(int i, int i2, int i3, int i4, int i5) { - this.a = i; - this.b = i2; - this.f842c = i3; - this.d = i4; - this.e = i5; - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - @Nullable - public static b a(String str) { - char c2; - AnimatableValueParser.k(str.startsWith("Format:")); - String[] split = TextUtils.split(str.substring(7), ","); - int i = -1; - int i2 = -1; - int i3 = -1; - int i4 = -1; - for (int i5 = 0; i5 < split.length; i5++) { - String K = f0.K(split[i5].trim()); - K.hashCode(); - switch (K.hashCode()) { - case 100571: - if (K.equals("end")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case 3556653: - if (K.equals("text")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case 109757538: - if (K.equals("start")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case 109780401: - if (K.equals("style")) { - c2 = 3; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - if (c2 == 0) { - i2 = i5; - } else if (c2 == 1) { - i4 = i5; - } else if (c2 == 2) { - i = i5; - } else if (c2 == 3) { - i3 = i5; - } - } - if (i == -1 || i2 == -1 || i4 == -1) { - return null; - } - return new b(i, i2, i3, i4, split.length); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/q/c.java b/app/src/main/java/c/i/a/c/e2/q/c.java deleted file mode 100644 index 2140cb6d63..0000000000 --- a/app/src/main/java/c/i/a/c/e2/q/c.java +++ /dev/null @@ -1,146 +0,0 @@ -package c.i.a.c.e2.q; - -import android.graphics.Color; -import android.graphics.PointF; -import android.util.Log; -import androidx.annotation.ColorInt; -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.p; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: SsaStyle */ -public final class c { - public final String a; - public final int b; - @Nullable - @ColorInt - - /* renamed from: c reason: collision with root package name */ - public final Integer f843c; - public final float d; - public final boolean e; - public final boolean f; - - /* compiled from: SsaStyle */ - public static final class a { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f844c; - public final int d; - public final int e; - public final int f; - public final int g; - - public a(int i, int i2, int i3, int i4, int i5, int i6, int i7) { - this.a = i; - this.b = i2; - this.f844c = i3; - this.d = i4; - this.e = i5; - this.f = i6; - this.g = i7; - } - } - - /* compiled from: SsaStyle */ - public static final class b { - public static final Pattern a = Pattern.compile("\\{([^}]*)\\}"); - public static final Pattern b = Pattern.compile(f0.k("\\\\pos\\((%1$s),(%1$s)\\)", "\\s*\\d+(?:\\.\\d+)?\\s*")); - - /* renamed from: c reason: collision with root package name */ - public static final Pattern f845c = Pattern.compile(f0.k("\\\\move\\(%1$s,%1$s,(%1$s),(%1$s)(?:,%1$s,%1$s)?\\)", "\\s*\\d+(?:\\.\\d+)?\\s*")); - public static final Pattern d = Pattern.compile("\\\\an(\\d+)"); - - @Nullable - public static PointF a(String str) { - String str2; - String str3; - Matcher matcher = b.matcher(str); - Matcher matcher2 = f845c.matcher(str); - boolean find = matcher.find(); - boolean find2 = matcher2.find(); - if (find) { - if (find2) { - Log.i("SsaStyle.Overrides", "Override has both \\pos(x,y) and \\move(x1,y1,x2,y2); using \\pos values. override='" + str + "'"); - } - str2 = matcher.group(1); - str3 = matcher.group(2); - } else if (!find2) { - return null; - } else { - str2 = matcher2.group(1); - str3 = matcher2.group(2); - } - Objects.requireNonNull(str2); - float parseFloat = Float.parseFloat(str2.trim()); - Objects.requireNonNull(str3); - return new PointF(parseFloat, Float.parseFloat(str3.trim())); - } - } - - public c(String str, int i, @Nullable @ColorInt Integer num, float f, boolean z2, boolean z3) { - this.a = str; - this.b = i; - this.f843c = num; - this.d = f; - this.e = z2; - this.f = z3; - } - - public static int a(String str) { - boolean z2; - try { - int parseInt = Integer.parseInt(str.trim()); - switch (parseInt) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - z2 = true; - break; - default: - z2 = false; - break; - } - if (z2) { - return parseInt; - } - } catch (NumberFormatException unused) { - } - c.d.b.a.a.g0("Ignoring unknown alignment: ", str, "SsaStyle"); - return -1; - } - - public static boolean b(String str) { - try { - int parseInt = Integer.parseInt(str); - return parseInt == 1 || parseInt == -1; - } catch (NumberFormatException e) { - p.c("SsaStyle", "Failed to parse bold/italic: '" + str + "'", e); - return false; - } - } - - @Nullable - @ColorInt - public static Integer c(String str) { - try { - long parseLong = str.startsWith("&H") ? Long.parseLong(str.substring(2), 16) : Long.parseLong(str); - AnimatableValueParser.k(parseLong <= 4294967295L); - return Integer.valueOf(Color.argb(c.i.a.f.e.o.c.t(((parseLong >> 24) & 255) ^ 255), c.i.a.f.e.o.c.t(parseLong & 255), c.i.a.f.e.o.c.t((parseLong >> 8) & 255), c.i.a.f.e.o.c.t((parseLong >> 16) & 255))); - } catch (IllegalArgumentException e) { - p.c("SsaStyle", "Failed to parse color expression: '" + str + "'", e); - return null; - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/q/d.java b/app/src/main/java/c/i/a/c/e2/q/d.java deleted file mode 100644 index f47eec3999..0000000000 --- a/app/src/main/java/c/i/a/c/e2/q/d.java +++ /dev/null @@ -1,80 +0,0 @@ -package c.i.a.c.e2.q; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Collections; -import java.util.List; -/* compiled from: SsaSubtitle */ -public final class d implements f { - public final List> i; - public final List j; - - public d(List> list, List list2) { - this.i = list; - this.j = list2; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - int i; - List list = this.j; - Long valueOf = Long.valueOf(j); - int i2 = f0.a; - int binarySearch = Collections.binarySearch(list, valueOf); - if (binarySearch < 0) { - i = ~binarySearch; - } else { - int size = list.size(); - do { - binarySearch++; - if (binarySearch >= size) { - break; - } - } while (list.get(binarySearch).compareTo(valueOf) == 0); - i = binarySearch; - } - if (i < this.j.size()) { - return i; - } - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - boolean z2 = true; - AnimatableValueParser.k(i >= 0); - if (i >= this.j.size()) { - z2 = false; - } - AnimatableValueParser.k(z2); - return this.j.get(i).longValue(); - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - int i; - List list = this.j; - Long valueOf = Long.valueOf(j); - int i2 = f0.a; - int binarySearch = Collections.binarySearch(list, valueOf); - if (binarySearch < 0) { - i = -(binarySearch + 2); - } else { - do { - binarySearch--; - if (binarySearch < 0) { - break; - } - } while (list.get(binarySearch).compareTo(valueOf) == 0); - i = binarySearch + 1; - } - return i == -1 ? Collections.emptyList() : this.i.get(i); - } - - @Override // c.i.a.c.e2.f - public int i() { - return this.j.size(); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/r/a.java b/app/src/main/java/c/i/a/c/e2/r/a.java deleted file mode 100644 index 5deb92790b..0000000000 --- a/app/src/main/java/c/i/a/c/e2/r/a.java +++ /dev/null @@ -1,299 +0,0 @@ -package c.i.a.c.e2.r; - -import android.text.Html; -import android.text.Spanned; -import android.text.TextUtils; -import android.util.Log; -import c.i.a.c.e2.c; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.i2.w; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: SubripDecoder */ -public final class a extends d { - public static final Pattern n = Pattern.compile("\\s*((?:(\\d+):)?(\\d+):(\\d+)(?:,(\\d+))?)\\s*-->\\s*((?:(\\d+):)?(\\d+):(\\d+)(?:,(\\d+))?)\\s*"); - public static final Pattern o = Pattern.compile("\\{\\\\.*?\\}"); - public final StringBuilder p = new StringBuilder(); - public final ArrayList q = new ArrayList<>(); - - public a() { - super("SubripDecoder"); - } - - public static float k(int i) { - if (i == 0) { - return 0.08f; - } - if (i == 1) { - return 0.5f; - } - if (i == 2) { - return 0.92f; - } - throw new IllegalArgumentException(); - } - - public static long l(Matcher matcher, int i) { - String group = matcher.group(i + 1); - long parseLong = group != null ? Long.parseLong(group) * 60 * 60 * 1000 : 0; - String group2 = matcher.group(i + 2); - Objects.requireNonNull(group2); - String group3 = matcher.group(i + 3); - Objects.requireNonNull(group3); - long parseLong2 = (Long.parseLong(group3) * 1000) + (Long.parseLong(group2) * 60 * 1000) + parseLong; - String group4 = matcher.group(i + 4); - if (group4 != null) { - parseLong2 += Long.parseLong(group4); - } - return parseLong2 * 1000; - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) { - w wVar; - int i2; - long[] jArr; - c cVar; - char c2; - char c3; - a aVar = this; - ArrayList arrayList = new ArrayList(); - long[] jArr2 = new long[32]; - w wVar2 = new w(bArr, i); - int i3 = 0; - int i4 = 0; - while (true) { - String g = wVar2.g(); - if (g != null) { - if (g.length() != 0) { - try { - Integer.parseInt(g); - String g2 = wVar2.g(); - if (g2 == null) { - Log.w("SubripDecoder", "Unexpected end"); - } else { - Matcher matcher = n.matcher(g2); - if (matcher.matches()) { - long l = l(matcher, 1); - if (i4 == jArr2.length) { - jArr2 = Arrays.copyOf(jArr2, i4 * 2); - } - int i5 = i4 + 1; - jArr2[i4] = l; - long l2 = l(matcher, 6); - if (i5 == jArr2.length) { - jArr2 = Arrays.copyOf(jArr2, i5 * 2); - } - int i6 = i5 + 1; - jArr2[i5] = l2; - aVar.p.setLength(i3); - aVar.q.clear(); - for (String g3 = wVar2.g(); !TextUtils.isEmpty(g3); g3 = wVar2.g()) { - if (aVar.p.length() > 0) { - aVar.p.append("
"); - } - StringBuilder sb = aVar.p; - ArrayList arrayList2 = aVar.q; - String trim = g3.trim(); - StringBuilder sb2 = new StringBuilder(trim); - Matcher matcher2 = o.matcher(trim); - int i7 = 0; - while (matcher2.find()) { - String group = matcher2.group(); - arrayList2.add(group); - int start = matcher2.start() - i7; - int length = group.length(); - sb2.replace(start, start + length, ""); - i7 += length; - } - sb.append(sb2.toString()); - } - Spanned fromHtml = Html.fromHtml(aVar.p.toString()); - String str = null; - int i8 = 0; - while (true) { - if (i8 < aVar.q.size()) { - String str2 = aVar.q.get(i8); - if (str2.matches("\\{\\\\an[1-9]\\}")) { - str = str2; - } else { - i8++; - } - } - } - if (str == null) { - cVar = new c(fromHtml, null, null, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, -16777216, Integer.MIN_VALUE, 0.0f, null); - jArr = jArr2; - wVar = wVar2; - i2 = i6; - } else { - jArr = jArr2; - wVar = wVar2; - switch (str.hashCode()) { - case -685620710: - if (str.equals("{\\an1}")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case -685620679: - if (str.equals("{\\an2}")) { - c2 = 6; - break; - } - c2 = 65535; - break; - case -685620648: - if (str.equals("{\\an3}")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case -685620617: - if (str.equals("{\\an4}")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case -685620586: - if (str.equals("{\\an5}")) { - c2 = 7; - break; - } - c2 = 65535; - break; - case -685620555: - if (str.equals("{\\an6}")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case -685620524: - if (str.equals("{\\an7}")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case -685620493: - if (str.equals("{\\an8}")) { - c2 = '\b'; - break; - } - c2 = 65535; - break; - case -685620462: - if (str.equals("{\\an9}")) { - c2 = 5; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - i2 = i6; - int i9 = (c2 == 0 || c2 == 1 || c2 == 2) ? 0 : (c2 == 3 || c2 == 4 || c2 == 5) ? 2 : 1; - switch (str.hashCode()) { - case -685620710: - if (str.equals("{\\an1}")) { - c3 = 0; - break; - } - c3 = 65535; - break; - case -685620679: - if (str.equals("{\\an2}")) { - c3 = 1; - break; - } - c3 = 65535; - break; - case -685620648: - if (str.equals("{\\an3}")) { - c3 = 2; - break; - } - c3 = 65535; - break; - case -685620617: - if (str.equals("{\\an4}")) { - c3 = 6; - break; - } - c3 = 65535; - break; - case -685620586: - if (str.equals("{\\an5}")) { - c3 = 7; - break; - } - c3 = 65535; - break; - case -685620555: - if (str.equals("{\\an6}")) { - c3 = '\b'; - break; - } - c3 = 65535; - break; - case -685620524: - if (str.equals("{\\an7}")) { - c3 = 3; - break; - } - c3 = 65535; - break; - case -685620493: - if (str.equals("{\\an8}")) { - c3 = 4; - break; - } - c3 = 65535; - break; - case -685620462: - if (str.equals("{\\an9}")) { - c3 = 5; - break; - } - c3 = 65535; - break; - default: - c3 = 65535; - break; - } - int i10 = (c3 == 0 || c3 == 1 || c3 == 2) ? 2 : (c3 == 3 || c3 == 4 || c3 == 5) ? 0 : 1; - cVar = new c(fromHtml, null, null, k(i10), 0, i10, k(i9), i9, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, -16777216, Integer.MIN_VALUE, 0.0f, null); - } - arrayList.add(cVar); - arrayList.add(c.a); - jArr2 = jArr; - i4 = i2; - } else { - wVar = wVar2; - c.d.b.a.a.g0("Skipping invalid timing: ", g2, "SubripDecoder"); - } - i3 = 0; - aVar = this; - wVar2 = wVar; - } - } catch (NumberFormatException unused) { - wVar = wVar2; - c.d.b.a.a.g0("Skipping invalid index: ", g, "SubripDecoder"); - } - } - } - } - return new b((c[]) arrayList.toArray(new c[0]), Arrays.copyOf(jArr2, i4)); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/r/b.java b/app/src/main/java/c/i/a/c/e2/r/b.java deleted file mode 100644 index 598c781f8d..0000000000 --- a/app/src/main/java/c/i/a/c/e2/r/b.java +++ /dev/null @@ -1,55 +0,0 @@ -package c.i.a.c.e2.r; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Collections; -import java.util.List; -/* compiled from: SubripSubtitle */ -public final class b implements f { - public final c[] i; - public final long[] j; - - public b(c[] cVarArr, long[] jArr) { - this.i = cVarArr; - this.j = jArr; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - int b = f0.b(this.j, j, false, false); - if (b < this.j.length) { - return b; - } - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - boolean z2 = true; - AnimatableValueParser.k(i >= 0); - if (i >= this.j.length) { - z2 = false; - } - AnimatableValueParser.k(z2); - return this.j[i]; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - int e = f0.e(this.j, j, true, false); - if (e != -1) { - c[] cVarArr = this.i; - if (cVarArr[e] != c.a) { - return Collections.singletonList(cVarArr[e]); - } - } - return Collections.emptyList(); - } - - @Override // c.i.a.c.e2.f - public int i() { - return this.j.length; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/a.java b/app/src/main/java/c/i/a/c/e2/s/a.java deleted file mode 100644 index 09135e7318..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/a.java +++ /dev/null @@ -1,4 +0,0 @@ -package c.i.a.c.e2.s; -/* compiled from: DeleteTextSpan */ -public final class a { -} diff --git a/app/src/main/java/c/i/a/c/e2/s/b.java b/app/src/main/java/c/i/a/c/e2/s/b.java deleted file mode 100644 index 404a655cb9..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/b.java +++ /dev/null @@ -1,27 +0,0 @@ -package c.i.a.c.e2.s; - -import c.i.b.b.z; -import java.util.regex.Pattern; -/* compiled from: TextEmphasis */ -public final class b { - public static final Pattern a = Pattern.compile("\\s+"); - public static final z b = z.l(2, "auto", "none"); - - /* renamed from: c reason: collision with root package name */ - public static final z f846c = z.t("dot", "sesame", "circle"); - public static final z d = z.l(2, "filled", "open"); - public static final z e = z.t("after", "before", "outside"); - public final int f; - public final int g; - public final int h; - - static { - int i = z.j; - } - - public b(int i, int i2, int i3) { - this.f = i; - this.g = i2; - this.h = i3; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/c.java b/app/src/main/java/c/i/a/c/e2/s/c.java deleted file mode 100644 index 1a2b9137a5..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/c.java +++ /dev/null @@ -1,1260 +0,0 @@ -package c.i.a.c.e2.s; - -import android.text.Layout; -import android.text.TextUtils; -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.i; -import c.i.a.c.i2.p; -import c.i.b.b.a1; -import c.i.b.b.h; -import c.i.b.b.y0; -import c.i.b.b.z; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.util.ArrayDeque; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import org.xmlpull.v1.XmlPullParser; -import org.xmlpull.v1.XmlPullParserException; -import org.xmlpull.v1.XmlPullParserFactory; -/* compiled from: TtmlDecoder */ -public final class c extends d { - public static final Pattern n = Pattern.compile("^([0-9][0-9]+):([0-9][0-9]):([0-9][0-9])(?:(\\.[0-9]+)|:([0-9][0-9])(?:\\.([0-9]+))?)?$"); - public static final Pattern o = Pattern.compile("^([0-9]+(?:\\.[0-9]+)?)(h|m|s|ms|f|t)$"); - public static final Pattern p = Pattern.compile("^(([0-9]*.)?[0-9]+)(px|em|%)$"); - public static final Pattern q = Pattern.compile("^([-+]?\\d+\\.?\\d*?)%$"); - public static final Pattern r = Pattern.compile("^(\\d+\\.?\\d*?)% (\\d+\\.?\\d*?)%$"); - - /* renamed from: s reason: collision with root package name */ - public static final Pattern f847s = Pattern.compile("^(\\d+\\.?\\d*?)px (\\d+\\.?\\d*?)px$"); - public static final Pattern t = Pattern.compile("^(\\d+) (\\d+)$"); - public static final b u = new b(30.0f, 1, 1); - public static final a v = new a(32, 15); - public final XmlPullParserFactory w; - - /* compiled from: TtmlDecoder */ - public static final class a { - public final int a; - - public a(int i, int i2) { - this.a = i2; - } - } - - /* compiled from: TtmlDecoder */ - public static final class b { - public final float a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int f848c; - - public b(float f, int i, int i2) { - this.a = f; - this.b = i; - this.f848c = i2; - } - } - - /* compiled from: TtmlDecoder */ - /* renamed from: c.i.a.c.e2.s.c$c reason: collision with other inner class name */ - public static final class C0091c { - public final int a; - public final int b; - - public C0091c(int i, int i2) { - this.a = i; - this.b = i2; - } - } - - public c() { - super("TtmlDecoder"); - try { - XmlPullParserFactory newInstance = XmlPullParserFactory.newInstance(); - this.w = newInstance; - newInstance.setNamespaceAware(true); - } catch (XmlPullParserException e) { - throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e); - } - } - - public static f k(@Nullable f fVar) { - return fVar == null ? new f() : fVar; - } - - public static boolean l(String str) { - return str.equals("tt") || str.equals("head") || str.equals("body") || str.equals("div") || str.equals("p") || str.equals("span") || str.equals("br") || str.equals("style") || str.equals("styling") || str.equals("layout") || str.equals("region") || str.equals("metadata") || str.equals("image") || str.equals("data") || str.equals("information"); - } - - public static a m(XmlPullParser xmlPullParser, a aVar) throws SubtitleDecoderException { - String attributeValue = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "cellResolution"); - if (attributeValue == null) { - return aVar; - } - Matcher matcher = t.matcher(attributeValue); - if (!matcher.matches()) { - c.d.b.a.a.g0("Ignoring malformed cell resolution: ", attributeValue, "TtmlDecoder"); - return aVar; - } - try { - String group = matcher.group(1); - Objects.requireNonNull(group); - int parseInt = Integer.parseInt(group); - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - int parseInt2 = Integer.parseInt(group2); - if (parseInt != 0 && parseInt2 != 0) { - return new a(parseInt, parseInt2); - } - throw new SubtitleDecoderException("Invalid cell resolution " + parseInt + " " + parseInt2); - } catch (NumberFormatException unused) { - c.d.b.a.a.g0("Ignoring malformed cell resolution: ", attributeValue, "TtmlDecoder"); - return aVar; - } - } - - public static void n(String str, f fVar) throws SubtitleDecoderException { - Matcher matcher; - int i = f0.a; - String[] split = str.split("\\s+", -1); - if (split.length == 1) { - matcher = p.matcher(str); - } else if (split.length == 2) { - matcher = p.matcher(split[1]); - Log.w("TtmlDecoder", "Multiple values in fontSize attribute. Picking the second value for vertical font size and ignoring the first."); - } else { - throw new SubtitleDecoderException(c.d.b.a.a.w(c.d.b.a.a.K("Invalid number of entries for fontSize: "), split.length, ".")); - } - if (matcher.matches()) { - String group = matcher.group(3); - Objects.requireNonNull(group); - group.hashCode(); - char c2 = 65535; - switch (group.hashCode()) { - case 37: - if (group.equals("%")) { - c2 = 0; - break; - } - break; - case 3240: - if (group.equals("em")) { - c2 = 1; - break; - } - break; - case 3592: - if (group.equals("px")) { - c2 = 2; - break; - } - break; - } - switch (c2) { - case 0: - fVar.j = 3; - break; - case 1: - fVar.j = 2; - break; - case 2: - fVar.j = 1; - break; - default: - throw new SubtitleDecoderException(c.d.b.a.a.t("Invalid unit for fontSize: '", group, "'.")); - } - String group2 = matcher.group(1); - Objects.requireNonNull(group2); - fVar.k = Float.parseFloat(group2); - return; - } - throw new SubtitleDecoderException(c.d.b.a.a.t("Invalid expression for fontSize: '", str, "'.")); - } - - public static b o(XmlPullParser xmlPullParser) throws SubtitleDecoderException { - String attributeValue = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "frameRate"); - int parseInt = attributeValue != null ? Integer.parseInt(attributeValue) : 30; - float f = 1.0f; - String attributeValue2 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "frameRateMultiplier"); - if (attributeValue2 != null) { - int i = f0.a; - String[] split = attributeValue2.split(" ", -1); - if (split.length == 2) { - f = ((float) Integer.parseInt(split[0])) / ((float) Integer.parseInt(split[1])); - } else { - throw new SubtitleDecoderException("frameRateMultiplier doesn't have 2 parts"); - } - } - b bVar = u; - int i2 = bVar.b; - String attributeValue3 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "subFrameRate"); - if (attributeValue3 != null) { - i2 = Integer.parseInt(attributeValue3); - } - int i3 = bVar.f848c; - String attributeValue4 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "tickRate"); - if (attributeValue4 != null) { - i3 = Integer.parseInt(attributeValue4); - } - return new b(((float) parseInt) * f, i2, i3); - } - - /* JADX WARNING: Removed duplicated region for block: B:59:0x016f */ - /* JADX WARNING: Removed duplicated region for block: B:76:0x01ac A[ADDED_TO_REGION] */ - /* JADX WARNING: Removed duplicated region for block: B:93:0x01ee */ - public static Map p(XmlPullParser xmlPullParser, Map map, a aVar, @Nullable C0091c cVar, Map map2, Map map3) throws IOException, XmlPullParserException { - String t0; - e eVar; - float f; - float f2; - float f3; - float f4; - int i; - float f5; - String t02; - int i2; - char c2; - do { - xmlPullParser.next(); - if (AnimatableValueParser.x1(xmlPullParser, "style")) { - String t03 = AnimatableValueParser.t0(xmlPullParser, "style"); - f r2 = r(xmlPullParser, new f()); - if (t03 != null) { - for (String str : s(t03)) { - r2.a(map.get(str)); - } - } - String str2 = r2.l; - if (str2 != null) { - map.put(str2, r2); - } - } else if (AnimatableValueParser.x1(xmlPullParser, "region")) { - String t04 = AnimatableValueParser.t0(xmlPullParser, "id"); - if (t04 != null) { - String t05 = AnimatableValueParser.t0(xmlPullParser, "origin"); - if (t05 != null) { - Pattern pattern = r; - Matcher matcher = pattern.matcher(t05); - Pattern pattern2 = f847s; - Matcher matcher2 = pattern2.matcher(t05); - if (matcher.matches()) { - try { - String group = matcher.group(1); - Objects.requireNonNull(group); - f = Float.parseFloat(group) / 100.0f; - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - f2 = Float.parseFloat(group2) / 100.0f; - } catch (NumberFormatException unused) { - c.d.b.a.a.g0("Ignoring region with malformed origin: ", t05, "TtmlDecoder"); - } - } else if (!matcher2.matches()) { - c.d.b.a.a.g0("Ignoring region with unsupported origin: ", t05, "TtmlDecoder"); - } else if (cVar == null) { - c.d.b.a.a.g0("Ignoring region with missing tts:extent: ", t05, "TtmlDecoder"); - } else { - try { - String group3 = matcher2.group(1); - Objects.requireNonNull(group3); - int parseInt = Integer.parseInt(group3); - String group4 = matcher2.group(2); - Objects.requireNonNull(group4); - int parseInt2 = Integer.parseInt(group4); - float f6 = ((float) parseInt) / ((float) cVar.a); - float f7 = ((float) parseInt2) / ((float) cVar.b); - f = f6; - f2 = f7; - } catch (NumberFormatException unused2) { - c.d.b.a.a.g0("Ignoring region with malformed origin: ", t05, "TtmlDecoder"); - } - } - String t06 = AnimatableValueParser.t0(xmlPullParser, "extent"); - if (t06 != null) { - Matcher matcher3 = pattern.matcher(t06); - Matcher matcher4 = pattern2.matcher(t06); - if (matcher3.matches()) { - try { - String group5 = matcher3.group(1); - Objects.requireNonNull(group5); - float parseFloat = Float.parseFloat(group5) / 100.0f; - String group6 = matcher3.group(2); - Objects.requireNonNull(group6); - f3 = Float.parseFloat(group6) / 100.0f; - f4 = parseFloat; - } catch (NumberFormatException unused3) { - c.d.b.a.a.g0("Ignoring region with malformed extent: ", t05, "TtmlDecoder"); - } - } else if (!matcher4.matches()) { - c.d.b.a.a.g0("Ignoring region with unsupported extent: ", t05, "TtmlDecoder"); - } else if (cVar == null) { - c.d.b.a.a.g0("Ignoring region with missing tts:extent: ", t05, "TtmlDecoder"); - } else { - try { - String group7 = matcher4.group(1); - Objects.requireNonNull(group7); - int parseInt3 = Integer.parseInt(group7); - String group8 = matcher4.group(2); - Objects.requireNonNull(group8); - float parseInt4 = (float) Integer.parseInt(group8); - f4 = ((float) parseInt3) / ((float) cVar.a); - f3 = parseInt4 / ((float) cVar.b); - } catch (NumberFormatException unused4) { - c.d.b.a.a.g0("Ignoring region with malformed extent: ", t05, "TtmlDecoder"); - } - } - String t07 = AnimatableValueParser.t0(xmlPullParser, "displayAlign"); - if (t07 != null) { - String K = f0.K(t07); - K.hashCode(); - if (K.equals("center")) { - f5 = (f3 / 2.0f) + f2; - i = 1; - } else if (K.equals("after")) { - f5 = f2 + f3; - i = 2; - } - float f8 = 1.0f / ((float) aVar.a); - t02 = AnimatableValueParser.t0(xmlPullParser, "writingMode"); - if (t02 != null) { - String K2 = f0.K(t02); - K2.hashCode(); - int hashCode = K2.hashCode(); - if (hashCode != 3694) { - if (hashCode != 3553396) { - if (hashCode == 3553576 && K2.equals("tbrl")) { - c2 = 2; - if (c2 != 0 || c2 == 1) { - i2 = 2; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - map2.put(eVar.a, eVar); - } - } else if (c2 == 2) { - i2 = 1; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } - } - } else if (K2.equals("tblr")) { - c2 = 1; - if (c2 != 0) { - } - i2 = 2; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } - } else if (K2.equals("tb")) { - c2 = 0; - if (c2 != 0) { - } - i2 = 2; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } - c2 = 65535; - if (c2 != 0) { - } - i2 = 2; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } - i2 = Integer.MIN_VALUE; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } - f5 = f2; - i = 0; - float f8 = 1.0f / ((float) aVar.a); - t02 = AnimatableValueParser.t0(xmlPullParser, "writingMode"); - if (t02 != null) { - } - i2 = Integer.MIN_VALUE; - eVar = new e(t04, f, f5, 0, i, f4, f3, 1, f8, i2); - if (eVar != null) { - } - } else { - Log.w("TtmlDecoder", "Ignoring region without an extent"); - } - } else { - Log.w("TtmlDecoder", "Ignoring region without an origin"); - } - } - eVar = null; - if (eVar != null) { - } - } else if (AnimatableValueParser.x1(xmlPullParser, "metadata")) { - do { - xmlPullParser.next(); - if (AnimatableValueParser.x1(xmlPullParser, "image") && (t0 = AnimatableValueParser.t0(xmlPullParser, "id")) != null) { - map3.put(t0, xmlPullParser.nextText()); - } - } while (!AnimatableValueParser.j1(xmlPullParser, "metadata")); - } - } while (!AnimatableValueParser.j1(xmlPullParser, "head")); - return map; - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - public static d q(XmlPullParser xmlPullParser, @Nullable d dVar, Map map, b bVar) throws SubtitleDecoderException { - long j; - long j2; - char c2; - XmlPullParser xmlPullParser2 = xmlPullParser; - int attributeCount = xmlPullParser.getAttributeCount(); - f r2 = r(xmlPullParser2, null); - String str = null; - String str2 = ""; - long j3 = -9223372036854775807L; - long j4 = -9223372036854775807L; - long j5 = -9223372036854775807L; - String[] strArr = null; - int i = 0; - while (i < attributeCount) { - String attributeName = xmlPullParser2.getAttributeName(i); - String attributeValue = xmlPullParser2.getAttributeValue(i); - attributeName.hashCode(); - switch (attributeName.hashCode()) { - case -934795532: - if (attributeName.equals("region")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case 99841: - if (attributeName.equals("dur")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case 100571: - if (attributeName.equals("end")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case 93616297: - if (attributeName.equals("begin")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case 109780401: - if (attributeName.equals("style")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case 1292595405: - if (attributeName.equals("backgroundImage")) { - c2 = 5; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - if (c2 != 0) { - if (c2 == 1) { - j5 = t(attributeValue, bVar); - } else if (c2 == 2) { - j4 = t(attributeValue, bVar); - } else if (c2 == 3) { - j3 = t(attributeValue, bVar); - } else if (c2 == 4) { - String[] s2 = s(attributeValue); - if (s2.length > 0) { - strArr = s2; - } - } else if (c2 == 5 && attributeValue.startsWith("#")) { - str = attributeValue.substring(1); - } - } else if (map.containsKey(attributeValue)) { - str2 = attributeValue; - } - i++; - xmlPullParser2 = xmlPullParser; - } - if (dVar != null) { - long j6 = dVar.d; - j = -9223372036854775807L; - if (j6 != -9223372036854775807L) { - if (j3 != -9223372036854775807L) { - j3 += j6; - } - if (j4 != -9223372036854775807L) { - j4 += j6; - } - } - } else { - j = -9223372036854775807L; - } - if (j4 == j) { - if (j5 != j) { - j2 = j3 + j5; - } else if (dVar != null) { - long j7 = dVar.e; - if (j7 != j) { - j2 = j7; - } - } - return new d(xmlPullParser.getName(), null, j3, j2, r2, strArr, str2, str, dVar); - } - j2 = j4; - return new d(xmlPullParser.getName(), null, j3, j2, r2, strArr, str2, str, dVar); - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - /* JADX WARNING: Code restructure failed: missing block: B:95:0x01b3, code lost: - if (r3.equals("auto") != false) goto L_0x01b7; - */ - /* JADX WARNING: Removed duplicated region for block: B:100:0x01c1 */ - /* JADX WARNING: Removed duplicated region for block: B:118:0x0213 */ - /* JADX WARNING: Removed duplicated region for block: B:119:0x0215 */ - /* JADX WARNING: Removed duplicated region for block: B:122:0x0227 */ - /* JADX WARNING: Removed duplicated region for block: B:132:0x0246 */ - /* JADX WARNING: Removed duplicated region for block: B:136:0x024f */ - /* JADX WARNING: Removed duplicated region for block: B:139:0x0255 */ - /* JADX WARNING: Removed duplicated region for block: B:81:0x0176 */ - /* JADX WARNING: Removed duplicated region for block: B:84:0x017c */ - /* JADX WARNING: Removed duplicated region for block: B:87:0x018b */ - /* JADX WARNING: Removed duplicated region for block: B:98:0x01ba */ - public static f r(XmlPullParser xmlPullParser, f fVar) { - char c2; - char c3; - h.a aVar; - b bVar; - char c4; - int hashCode; - int attributeCount = xmlPullParser.getAttributeCount(); - for (int i = 0; i < attributeCount; i++) { - String attributeValue = xmlPullParser.getAttributeValue(i); - String attributeName = xmlPullParser.getAttributeName(i); - attributeName.hashCode(); - int i2 = -1; - char c5 = 1; - switch (attributeName.hashCode()) { - case -1550943582: - if (attributeName.equals("fontStyle")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case -1224696685: - if (attributeName.equals("fontFamily")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case -1065511464: - if (attributeName.equals("textAlign")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case -879295043: - if (attributeName.equals("textDecoration")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case -734428249: - if (attributeName.equals("fontWeight")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case 3355: - if (attributeName.equals("id")) { - c2 = 5; - break; - } - c2 = 65535; - break; - case 3511770: - if (attributeName.equals("ruby")) { - c2 = 6; - break; - } - c2 = 65535; - break; - case 94842723: - if (attributeName.equals("color")) { - c2 = 7; - break; - } - c2 = 65535; - break; - case 109403361: - if (attributeName.equals("shear")) { - c2 = '\b'; - break; - } - c2 = 65535; - break; - case 110138194: - if (attributeName.equals("textCombine")) { - c2 = '\t'; - break; - } - c2 = 65535; - break; - case 365601008: - if (attributeName.equals("fontSize")) { - c2 = '\n'; - break; - } - c2 = 65535; - break; - case 921125321: - if (attributeName.equals("textEmphasis")) { - c2 = 11; - break; - } - c2 = 65535; - break; - case 1115953443: - if (attributeName.equals("rubyPosition")) { - c2 = '\f'; - break; - } - c2 = 65535; - break; - case 1287124693: - if (attributeName.equals("backgroundColor")) { - c2 = '\r'; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - switch (c2) { - case 0: - fVar = k(fVar); - fVar.i = "italic".equalsIgnoreCase(attributeValue) ? 1 : 0; - break; - case 1: - fVar = k(fVar); - fVar.a = attributeValue; - break; - case 2: - String K = f0.K(attributeValue); - K.hashCode(); - K.hashCode(); - char c6 = 65535; - switch (K.hashCode()) { - case -1364013995: - if (K.equals("center")) { - c6 = 0; - break; - } - break; - case 100571: - if (K.equals("end")) { - c6 = 1; - break; - } - break; - case 3317767: - if (K.equals("left")) { - c6 = 2; - break; - } - break; - case 108511772: - if (K.equals("right")) { - c6 = 3; - break; - } - break; - case 109757538: - if (K.equals("start")) { - c6 = 4; - break; - } - break; - } - switch (c6) { - case 0: - fVar = k(fVar); - fVar.o = Layout.Alignment.ALIGN_CENTER; - continue; - case 1: - case 3: - fVar = k(fVar); - fVar.o = Layout.Alignment.ALIGN_OPPOSITE; - continue; - case 2: - case 4: - fVar = k(fVar); - fVar.o = Layout.Alignment.ALIGN_NORMAL; - continue; - } - case 3: - String K2 = f0.K(attributeValue); - K2.hashCode(); - K2.hashCode(); - char c7 = 65535; - switch (K2.hashCode()) { - case -1461280213: - if (K2.equals("nounderline")) { - c7 = 0; - break; - } - break; - case -1026963764: - if (K2.equals("underline")) { - c7 = 1; - break; - } - break; - case 913457136: - if (K2.equals("nolinethrough")) { - c7 = 2; - break; - } - break; - case 1679736913: - if (K2.equals("linethrough")) { - c7 = 3; - break; - } - break; - } - switch (c7) { - case 0: - fVar = k(fVar); - fVar.g = 0; - continue; - case 1: - fVar = k(fVar); - fVar.g = 1; - continue; - case 2: - fVar = k(fVar); - fVar.f = 0; - continue; - case 3: - fVar = k(fVar); - fVar.f = 1; - continue; - } - case 4: - fVar = k(fVar); - fVar.h = "bold".equalsIgnoreCase(attributeValue) ? 1 : 0; - break; - case 5: - if ("style".equals(xmlPullParser.getName())) { - fVar = k(fVar); - fVar.l = attributeValue; - break; - } else { - break; - } - case 6: - String K3 = f0.K(attributeValue); - K3.hashCode(); - switch (K3.hashCode()) { - case -618561360: - if (K3.equals("baseContainer")) { - i2 = 0; - break; - } - break; - case -410956671: - if (K3.equals("container")) { - i2 = 1; - break; - } - break; - case -250518009: - if (K3.equals("delimiter")) { - i2 = 2; - break; - } - break; - case -136074796: - if (K3.equals("textContainer")) { - i2 = 3; - break; - } - break; - case 3016401: - if (K3.equals("base")) { - i2 = 4; - break; - } - break; - case 3556653: - if (K3.equals("text")) { - i2 = 5; - break; - } - break; - } - if (i2 != 0) { - if (i2 != 1) { - if (i2 != 2) { - if (i2 != 3) { - if (i2 != 4) { - if (i2 != 5) { - break; - } - } - } - fVar = k(fVar); - fVar.m = 3; - break; - } else { - fVar = k(fVar); - fVar.m = 4; - break; - } - } else { - fVar = k(fVar); - fVar.m = 1; - break; - } - } - fVar = k(fVar); - fVar.m = 2; - break; - case 7: - fVar = k(fVar); - try { - fVar.b = i.a(attributeValue, false); - fVar.f851c = true; - break; - } catch (IllegalArgumentException unused) { - c.d.b.a.a.g0("Failed parsing color value: ", attributeValue, "TtmlDecoder"); - break; - } - case '\b': - fVar = k(fVar); - Matcher matcher = q.matcher(attributeValue); - float f = Float.MAX_VALUE; - if (!matcher.matches()) { - c.d.b.a.a.g0("Invalid value for shear: ", attributeValue, "TtmlDecoder"); - } else { - try { - String group = matcher.group(1); - Objects.requireNonNull(group); - f = Math.min(100.0f, Math.max(-100.0f, Float.parseFloat(group))); - } catch (NumberFormatException e) { - p.c("TtmlDecoder", "Failed to parse shear: " + attributeValue, e); - } - } - fVar.r = f; - break; - case '\t': - String K4 = f0.K(attributeValue); - K4.hashCode(); - if (!K4.equals("all")) { - if (!K4.equals("none")) { - break; - } else { - fVar = k(fVar); - fVar.p = 0; - break; - } - } else { - fVar = k(fVar); - fVar.p = 1; - break; - } - case '\n': - try { - fVar = k(fVar); - n(attributeValue, fVar); - break; - } catch (SubtitleDecoderException unused2) { - c.d.b.a.a.g0("Failed parsing fontSize value: ", attributeValue, "TtmlDecoder"); - break; - } - case 11: - fVar = k(fVar); - String K5 = f0.K(attributeValue); - Pattern pattern = b.a; - b bVar2 = null; - if (K5 != null) { - String trim = K5.trim(); - if (!trim.isEmpty()) { - z n2 = z.n(TextUtils.split(trim, b.a)); - String str = (String) c.i.a.f.e.o.c.K(h.b(b.e, n2), "outside"); - int hashCode2 = str.hashCode(); - if (hashCode2 != -1392885889) { - if (hashCode2 != -1106037339) { - if (hashCode2 == 92734940 && str.equals("after")) { - c3 = 0; - int i3 = c3 == 0 ? c3 != 1 ? 1 : -2 : 2; - aVar = (h.a) h.b(b.b, n2); - if (aVar.isEmpty()) { - String next = new y0(aVar).next(); - int hashCode3 = next.hashCode(); - if (hashCode3 == 3005871) { - break; - } else if (hashCode3 == 3387192 && next.equals("none")) { - c5 = 0; - if (c5 == 0) { - i2 = 0; - } - bVar = new b(i2, 0, i3); - } - c5 = 65535; - if (c5 == 0) { - } - bVar = new b(i2, 0, i3); - } else { - a1 b2 = h.b(b.d, n2); - a1 b3 = h.b(b.f846c, n2); - if (!((h.a) b2).isEmpty() || !((h.a) b3).isEmpty()) { - String str2 = (String) c.i.a.f.e.o.c.K(b2, "filled"); - int hashCode4 = str2.hashCode(); - if (hashCode4 != -1274499742) { - if (hashCode4 == 3417674 && str2.equals("open")) { - c4 = 0; - int i4 = c4 != 0 ? 1 : 2; - String str3 = (String) c.i.a.f.e.o.c.K(b3, "circle"); - hashCode = str3.hashCode(); - if (hashCode != -1360216880) { - if (hashCode != -905816648) { - if (hashCode == 99657 && str3.equals("dot")) { - i2 = 0; - } - } else if (str3.equals("sesame")) { - i2 = 1; - } - } else if (str3.equals("circle")) { - i2 = 2; - } - bVar2 = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); - } - } else if (str2.equals("filled")) { - c4 = 1; - if (c4 != 0) { - } - String str3 = (String) c.i.a.f.e.o.c.K(b3, "circle"); - hashCode = str3.hashCode(); - if (hashCode != -1360216880) { - } - bVar2 = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); - } - c4 = 65535; - if (c4 != 0) { - } - String str3 = (String) c.i.a.f.e.o.c.K(b3, "circle"); - hashCode = str3.hashCode(); - if (hashCode != -1360216880) { - } - bVar2 = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); - } else { - bVar = new b(-1, 0, i3); - } - } - bVar2 = bVar; - } - } else if (str.equals("outside")) { - c3 = 1; - if (c3 == 0) { - } - aVar = (h.a) h.b(b.b, n2); - if (aVar.isEmpty()) { - } - bVar2 = bVar; - } - } else if (str.equals("before")) { - c3 = 2; - if (c3 == 0) { - } - aVar = (h.a) h.b(b.b, n2); - if (aVar.isEmpty()) { - } - bVar2 = bVar; - } - c3 = 65535; - if (c3 == 0) { - } - aVar = (h.a) h.b(b.b, n2); - if (aVar.isEmpty()) { - } - bVar2 = bVar; - } - } - fVar.q = bVar2; - break; - case '\f': - String K6 = f0.K(attributeValue); - K6.hashCode(); - if (!K6.equals("before")) { - if (!K6.equals("after")) { - break; - } else { - fVar = k(fVar); - fVar.n = 2; - break; - } - } else { - fVar = k(fVar); - fVar.n = 1; - break; - } - case '\r': - fVar = k(fVar); - try { - fVar.d = i.a(attributeValue, false); - fVar.e = true; - break; - } catch (IllegalArgumentException unused3) { - c.d.b.a.a.g0("Failed parsing background value: ", attributeValue, "TtmlDecoder"); - break; - } - } - } - return fVar; - } - - public static String[] s(String str) { - String trim = str.trim(); - if (trim.isEmpty()) { - return new String[0]; - } - int i = f0.a; - return trim.split("\\s+", -1); - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - /* JADX WARNING: Code restructure failed: missing block: B:21:0x00ab, code lost: - if (r13.equals("ms") == false) goto L_0x00da; - */ - public static long t(String str, b bVar) throws SubtitleDecoderException { - double parseDouble; - double d; - double d2; - Matcher matcher = n.matcher(str); - char c2 = 4; - if (matcher.matches()) { - String group = matcher.group(1); - Objects.requireNonNull(group); - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - String group3 = matcher.group(3); - Objects.requireNonNull(group3); - double parseLong = ((double) (Long.parseLong(group) * 3600)) + ((double) (Long.parseLong(group2) * 60)) + ((double) Long.parseLong(group3)); - String group4 = matcher.group(4); - double d3 = 0.0d; - double parseDouble2 = parseLong + (group4 != null ? Double.parseDouble(group4) : 0.0d); - String group5 = matcher.group(5); - double parseLong2 = parseDouble2 + (group5 != null ? (double) (((float) Long.parseLong(group5)) / bVar.a) : 0.0d); - String group6 = matcher.group(6); - if (group6 != null) { - d3 = (((double) Long.parseLong(group6)) / ((double) bVar.b)) / ((double) bVar.a); - } - parseDouble = parseLong2 + d3; - } else { - Matcher matcher2 = o.matcher(str); - if (matcher2.matches()) { - String group7 = matcher2.group(1); - Objects.requireNonNull(group7); - parseDouble = Double.parseDouble(group7); - String group8 = matcher2.group(2); - Objects.requireNonNull(group8); - switch (group8.hashCode()) { - case 102: - if (group8.equals("f")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case 104: - if (group8.equals("h")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case 109: - if (group8.equals("m")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case 116: - if (group8.equals("t")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case 3494: - break; - default: - c2 = 65535; - break; - } - switch (c2) { - case 0: - d = (double) bVar.a; - parseDouble /= d; - break; - case 1: - d2 = 3600.0d; - parseDouble *= d2; - break; - case 2: - d2 = 60.0d; - parseDouble *= d2; - break; - case 3: - d = (double) bVar.f848c; - parseDouble /= d; - break; - case 4: - d = 1000.0d; - parseDouble /= d; - break; - } - } else { - throw new SubtitleDecoderException(c.d.b.a.a.s("Malformed time expression: ", str)); - } - } - return (long) (parseDouble * 1000000.0d); - } - - @Nullable - public static C0091c u(XmlPullParser xmlPullParser) { - String t0 = AnimatableValueParser.t0(xmlPullParser, "extent"); - if (t0 == null) { - return null; - } - Matcher matcher = f847s.matcher(t0); - if (!matcher.matches()) { - c.d.b.a.a.g0("Ignoring non-pixel tts extent: ", t0, "TtmlDecoder"); - return null; - } - try { - String group = matcher.group(1); - Objects.requireNonNull(group); - int parseInt = Integer.parseInt(group); - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - return new C0091c(parseInt, Integer.parseInt(group2)); - } catch (NumberFormatException unused) { - c.d.b.a.a.g0("Ignoring malformed tts extent: ", t0, "TtmlDecoder"); - return null; - } - } - - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { - b bVar; - try { - XmlPullParser newPullParser = this.w.newPullParser(); - HashMap hashMap = new HashMap(); - HashMap hashMap2 = new HashMap(); - HashMap hashMap3 = new HashMap(); - hashMap2.put("", new e("", -3.4028235E38f, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, Integer.MIN_VALUE, -3.4028235E38f, Integer.MIN_VALUE)); - C0091c cVar = null; - newPullParser.setInput(new ByteArrayInputStream(bArr, 0, i), null); - ArrayDeque arrayDeque = new ArrayDeque(); - b bVar2 = u; - a aVar = v; - g gVar = null; - int i2 = 0; - for (int eventType = newPullParser.getEventType(); eventType != 1; eventType = newPullParser.getEventType()) { - d dVar = (d) arrayDeque.peek(); - if (i2 == 0) { - String name = newPullParser.getName(); - if (eventType == 2) { - if ("tt".equals(name)) { - bVar2 = o(newPullParser); - aVar = m(newPullParser, v); - cVar = u(newPullParser); - } - if (!l(name)) { - Log.i("TtmlDecoder", "Ignoring unsupported tag: " + newPullParser.getName()); - i2++; - bVar = bVar2; - } else if ("head".equals(name)) { - bVar = bVar2; - p(newPullParser, hashMap, aVar, cVar, hashMap2, hashMap3); - } else { - bVar = bVar2; - try { - d q2 = q(newPullParser, dVar, hashMap2, bVar); - arrayDeque.push(q2); - if (dVar != null) { - dVar.a(q2); - } - } catch (SubtitleDecoderException e) { - p.c("TtmlDecoder", "Suppressing parser error", e); - i2++; - } - } - bVar2 = bVar; - cVar = cVar; - aVar = aVar; - } else if (eventType == 4) { - Objects.requireNonNull(dVar); - d b2 = d.b(newPullParser.getText()); - if (dVar.m == null) { - dVar.m = new ArrayList(); - } - dVar.m.add(b2); - } else if (eventType == 3) { - if (newPullParser.getName().equals("tt")) { - d dVar2 = (d) arrayDeque.peek(); - Objects.requireNonNull(dVar2); - gVar = new g(dVar2, hashMap, hashMap2, hashMap3); - } - arrayDeque.pop(); - } - } else if (eventType == 2) { - i2++; - } else if (eventType == 3) { - i2--; - } - newPullParser.next(); - } - if (gVar != null) { - return gVar; - } - throw new SubtitleDecoderException("No TTML subtitles found"); - } catch (XmlPullParserException e2) { - throw new SubtitleDecoderException("Unable to decode source", e2); - } catch (IOException e3) { - throw new IllegalStateException("Unexpected error when reading input.", e3); - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/d.java b/app/src/main/java/c/i/a/c/e2/s/d.java deleted file mode 100644 index 2f6dacf604..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/d.java +++ /dev/null @@ -1,365 +0,0 @@ -package c.i.a.c.e2.s; - -import android.text.SpannableStringBuilder; -import android.text.style.AbsoluteSizeSpan; -import android.text.style.BackgroundColorSpan; -import android.text.style.ForegroundColorSpan; -import android.text.style.RelativeSizeSpan; -import android.text.style.StrikethroughSpan; -import android.text.style.StyleSpan; -import android.text.style.TypefaceSpan; -import android.text.style.UnderlineSpan; -import android.util.Log; -import android.util.Pair; -import androidx.annotation.Nullable; -import c.i.a.c.e2.c; -import c.i.a.c.e2.p.a; -import c.i.a.c.e2.p.b; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.ArrayDeque; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.TreeSet; -/* compiled from: TtmlNode */ -public final class d { - @Nullable - public final String a; - @Nullable - public final String b; - - /* renamed from: c reason: collision with root package name */ - public final boolean f849c; - public final long d; - public final long e; - @Nullable - public final f f; - @Nullable - public final String[] g; - public final String h; - @Nullable - public final String i; - @Nullable - public final d j; - public final HashMap k; - public final HashMap l; - public List m; - - public d(@Nullable String str, @Nullable String str2, long j, long j2, @Nullable f fVar, @Nullable String[] strArr, String str3, @Nullable String str4, @Nullable d dVar) { - this.a = str; - this.b = str2; - this.i = str4; - this.f = fVar; - this.g = strArr; - this.f849c = str2 != null; - this.d = j; - this.e = j2; - Objects.requireNonNull(str3); - this.h = str3; - this.j = dVar; - this.k = new HashMap<>(); - this.l = new HashMap<>(); - } - - public static d b(String str) { - return new d(null, str.replaceAll("\r\n", "\n").replaceAll(" *\n *", "\n").replaceAll("\n", " ").replaceAll("[ \t\\x0B\f\r]+", " "), -9223372036854775807L, -9223372036854775807L, null, null, "", null, null); - } - - public static SpannableStringBuilder f(String str, Map map) { - if (!map.containsKey(str)) { - c.b bVar = new c.b(); - bVar.a = new SpannableStringBuilder(); - map.put(str, bVar); - } - CharSequence charSequence = map.get(str).a; - Objects.requireNonNull(charSequence); - return (SpannableStringBuilder) charSequence; - } - - public void a(d dVar) { - if (this.m == null) { - this.m = new ArrayList(); - } - this.m.add(dVar); - } - - public d c(int i) { - List list = this.m; - if (list != null) { - return list.get(i); - } - throw new IndexOutOfBoundsException(); - } - - public int d() { - List list = this.m; - if (list == null) { - return 0; - } - return list.size(); - } - - public final void e(TreeSet treeSet, boolean z2) { - boolean equals = "p".equals(this.a); - boolean equals2 = "div".equals(this.a); - if (z2 || equals || (equals2 && this.i != null)) { - long j = this.d; - if (j != -9223372036854775807L) { - treeSet.add(Long.valueOf(j)); - } - long j2 = this.e; - if (j2 != -9223372036854775807L) { - treeSet.add(Long.valueOf(j2)); - } - } - if (this.m != null) { - for (int i = 0; i < this.m.size(); i++) { - this.m.get(i).e(treeSet, z2 || equals); - } - } - } - - public boolean g(long j) { - long j2 = this.d; - return (j2 == -9223372036854775807L && this.e == -9223372036854775807L) || (j2 <= j && this.e == -9223372036854775807L) || ((j2 == -9223372036854775807L && j < this.e) || (j2 <= j && j < this.e)); - } - - public final void h(long j, String str, List> list) { - if (!"".equals(this.h)) { - str = this.h; - } - if (!g(j) || !"div".equals(this.a) || this.i == null) { - for (int i = 0; i < d(); i++) { - c(i).h(j, str, list); - } - return; - } - list.add(new Pair<>(str, this.i)); - } - - /* JADX WARNING: Removed duplicated region for block: B:110:0x01d7 */ - /* JADX WARNING: Removed duplicated region for block: B:112:0x01da */ - /* JADX WARNING: Removed duplicated region for block: B:115:0x01ea */ - /* JADX WARNING: Removed duplicated region for block: B:120:0x020b */ - public final void i(long j, Map map, Map map2, String str, Map map3) { - Iterator> it; - boolean z2; - int i; - d dVar; - int i2; - if (g(j)) { - String str2 = "".equals(this.h) ? str : this.h; - Iterator> it2 = this.l.entrySet().iterator(); - while (it2.hasNext()) { - Map.Entry next = it2.next(); - String key = next.getKey(); - int intValue = this.k.containsKey(key) ? this.k.get(key).intValue() : 0; - int intValue2 = next.getValue().intValue(); - if (intValue != intValue2) { - c.b bVar = map3.get(key); - Objects.requireNonNull(bVar); - e eVar = map2.get(str2); - Objects.requireNonNull(eVar); - int i3 = eVar.j; - f s2 = AnimatableValueParser.s2(this.f, this.g, map); - SpannableStringBuilder spannableStringBuilder = (SpannableStringBuilder) bVar.a; - if (spannableStringBuilder == null) { - spannableStringBuilder = new SpannableStringBuilder(); - bVar.a = spannableStringBuilder; - } - if (s2 != null) { - d dVar2 = this.j; - if (s2.b() != -1) { - spannableStringBuilder.setSpan(new StyleSpan(s2.b()), intValue, intValue2, 33); - } - if (s2.f == 1) { - spannableStringBuilder.setSpan(new StrikethroughSpan(), intValue, intValue2, 33); - } - if (s2.g == 1) { - spannableStringBuilder.setSpan(new UnderlineSpan(), intValue, intValue2, 33); - } - if (s2.f851c) { - if (s2.f851c) { - AnimatableValueParser.c(spannableStringBuilder, new ForegroundColorSpan(s2.b), intValue, intValue2, 33); - } else { - throw new IllegalStateException("Font color has not been defined."); - } - } - if (s2.e) { - if (s2.e) { - AnimatableValueParser.c(spannableStringBuilder, new BackgroundColorSpan(s2.d), intValue, intValue2, 33); - } else { - throw new IllegalStateException("Background color has not been defined."); - } - } - if (s2.a != null) { - AnimatableValueParser.c(spannableStringBuilder, new TypefaceSpan(s2.a), intValue, intValue2, 33); - } - b bVar2 = s2.q; - if (bVar2 != null) { - int i4 = bVar2.f; - it = it2; - if (i4 == -1) { - i4 = (i3 == 2 || i3 == 1) ? 3 : 1; - i2 = 1; - } else { - i2 = bVar2.g; - } - int i5 = bVar2.h; - if (i5 == -2) { - i5 = 1; - } - AnimatableValueParser.c(spannableStringBuilder, new c.i.a.c.e2.p.c(i4, i2, i5), intValue, intValue2, 33); - } else { - it = it2; - } - int i6 = s2.m; - if (i6 == 2) { - while (true) { - if (dVar2 == null) { - dVar2 = null; - break; - } - f s22 = AnimatableValueParser.s2(dVar2.f, dVar2.g, map); - if (s22 != null && s22.m == 1) { - break; - } - dVar2 = dVar2.j; - } - if (dVar2 != null) { - ArrayDeque arrayDeque = new ArrayDeque(); - arrayDeque.push(dVar2); - while (true) { - if (arrayDeque.isEmpty()) { - dVar = null; - break; - } - d dVar3 = (d) arrayDeque.pop(); - f s23 = AnimatableValueParser.s2(dVar3.f, dVar3.g, map); - if (s23 != null && s23.m == 3) { - dVar = dVar3; - break; - } - for (int d = dVar3.d() - 1; d >= 0; d--) { - arrayDeque.push(dVar3.c(d)); - } - } - if (dVar != null) { - if (dVar.d() == 1) { - z2 = false; - if (dVar.c(0).b != null) { - String str3 = dVar.c(0).b; - int i7 = f0.a; - f fVar = dVar2.f; - spannableStringBuilder.setSpan(new b(str3, fVar != null ? fVar.n : -1), intValue, intValue2, 33); - if (s2.p == 1) { - z2 = true; - } - if (z2) { - AnimatableValueParser.c(spannableStringBuilder, new a(), intValue, intValue2, 33); - } - i = s2.j; - if (i == 1) { - AnimatableValueParser.c(spannableStringBuilder, new AbsoluteSizeSpan((int) s2.k, true), intValue, intValue2, 33); - } else if (i == 2) { - AnimatableValueParser.c(spannableStringBuilder, new RelativeSizeSpan(s2.k), intValue, intValue2, 33); - } else if (i == 3) { - AnimatableValueParser.c(spannableStringBuilder, new RelativeSizeSpan(s2.k / 100.0f), intValue, intValue2, 33); - } - if (s2.r != Float.MAX_VALUE && "p".equals(this.a)) { - bVar.p = (s2.r * -90.0f) / 100.0f; - } - bVar.f815c = s2.o; - it2 = it; - } - } else { - z2 = false; - } - Log.i("TtmlRenderUtil", "Skipping rubyText node without exactly one text child."); - if (s2.p == 1) { - } - if (z2) { - } - i = s2.j; - if (i == 1) { - } - bVar.p = (s2.r * -90.0f) / 100.0f; - bVar.f815c = s2.o; - it2 = it; - } - } - } else if (i6 == 3 || i6 == 4) { - spannableStringBuilder.setSpan(new a(), intValue, intValue2, 33); - } - z2 = false; - if (s2.p == 1) { - } - if (z2) { - } - i = s2.j; - if (i == 1) { - } - bVar.p = (s2.r * -90.0f) / 100.0f; - bVar.f815c = s2.o; - it2 = it; - } - } - it = it2; - it2 = it; - } - for (int i8 = 0; i8 < d(); i8++) { - c(i8).i(j, map, map2, str2, map3); - } - } - } - - public final void j(long j, boolean z2, String str, Map map) { - this.k.clear(); - this.l.clear(); - if (!"metadata".equals(this.a)) { - if (!"".equals(this.h)) { - str = this.h; - } - if (this.f849c && z2) { - SpannableStringBuilder f = f(str, map); - String str2 = this.b; - Objects.requireNonNull(str2); - f.append((CharSequence) str2); - } else if ("br".equals(this.a) && z2) { - f(str, map).append('\n'); - } else if (g(j)) { - for (Map.Entry entry : map.entrySet()) { - CharSequence charSequence = entry.getValue().a; - Objects.requireNonNull(charSequence); - this.k.put(entry.getKey(), Integer.valueOf(charSequence.length())); - } - boolean equals = "p".equals(this.a); - for (int i = 0; i < d(); i++) { - c(i).j(j, z2 || equals, str, map); - } - if (equals) { - SpannableStringBuilder f2 = f(str, map); - int length = f2.length(); - do { - length--; - if (length < 0) { - break; - } - } while (f2.charAt(length) == ' '); - if (length >= 0 && f2.charAt(length) != '\n') { - f2.append('\n'); - } - } - for (Map.Entry entry2 : map.entrySet()) { - CharSequence charSequence2 = entry2.getValue().a; - Objects.requireNonNull(charSequence2); - this.l.put(entry2.getKey(), Integer.valueOf(charSequence2.length())); - } - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/e.java b/app/src/main/java/c/i/a/c/e2/s/e.java deleted file mode 100644 index 109bc038f8..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/e.java +++ /dev/null @@ -1,29 +0,0 @@ -package c.i.a.c.e2.s; -/* compiled from: TtmlRegion */ -public final class e { - public final String a; - public final float b; - - /* renamed from: c reason: collision with root package name */ - public final float f850c; - public final int d; - public final int e; - public final float f; - public final float g; - public final int h; - public final float i; - public final int j; - - public e(String str, float f, float f2, int i, int i2, float f3, float f4, int i3, float f5, int i4) { - this.a = str; - this.b = f; - this.f850c = f2; - this.d = i; - this.e = i2; - this.f = f3; - this.g = f4; - this.h = i3; - this.i = f5; - this.j = i4; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/f.java b/app/src/main/java/c/i/a/c/e2/s/f.java deleted file mode 100644 index 4d66470cff..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/f.java +++ /dev/null @@ -1,98 +0,0 @@ -package c.i.a.c.e2.s; - -import android.text.Layout; -import androidx.annotation.Nullable; -/* compiled from: TtmlStyle */ -public final class f { - @Nullable - public String a; - public int b; - - /* renamed from: c reason: collision with root package name */ - public boolean f851c; - public int d; - public boolean e; - public int f = -1; - public int g = -1; - public int h = -1; - public int i = -1; - public int j = -1; - public float k; - @Nullable - public String l; - public int m = -1; - public int n = -1; - @Nullable - public Layout.Alignment o; - public int p = -1; - @Nullable - public b q; - public float r = Float.MAX_VALUE; - - public f a(@Nullable f fVar) { - int i; - Layout.Alignment alignment; - String str; - if (fVar != null) { - if (!this.f851c && fVar.f851c) { - this.b = fVar.b; - this.f851c = true; - } - if (this.h == -1) { - this.h = fVar.h; - } - if (this.i == -1) { - this.i = fVar.i; - } - if (this.a == null && (str = fVar.a) != null) { - this.a = str; - } - if (this.f == -1) { - this.f = fVar.f; - } - if (this.g == -1) { - this.g = fVar.g; - } - if (this.n == -1) { - this.n = fVar.n; - } - if (this.o == null && (alignment = fVar.o) != null) { - this.o = alignment; - } - if (this.p == -1) { - this.p = fVar.p; - } - if (this.j == -1) { - this.j = fVar.j; - this.k = fVar.k; - } - if (this.q == null) { - this.q = fVar.q; - } - if (this.r == Float.MAX_VALUE) { - this.r = fVar.r; - } - if (!this.e && fVar.e) { - this.d = fVar.d; - this.e = true; - } - if (this.m == -1 && (i = fVar.m) != -1) { - this.m = i; - } - } - return this; - } - - public int b() { - int i = this.h; - if (i == -1 && this.i == -1) { - return -1; - } - int i2 = 0; - int i3 = i == 1 ? 1 : 0; - if (this.i == 1) { - i2 = 2; - } - return i3 | i2; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/s/g.java b/app/src/main/java/c/i/a/c/e2/s/g.java deleted file mode 100644 index d7d0d445da..0000000000 --- a/app/src/main/java/c/i/a/c/e2/s/g.java +++ /dev/null @@ -1,153 +0,0 @@ -package c.i.a.c.e2.s; - -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.text.SpannableStringBuilder; -import android.util.Base64; -import android.util.Pair; -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.TreeMap; -import java.util.TreeSet; -/* compiled from: TtmlSubtitle */ -public final class g implements f { - public final d i; - public final long[] j; - public final Map k; - public final Map l; - public final Map m; - - public g(d dVar, Map map, Map map2, Map map3) { - this.i = dVar; - this.l = map2; - this.m = map3; - this.k = Collections.unmodifiableMap(map); - TreeSet treeSet = new TreeSet<>(); - int i = 0; - dVar.e(treeSet, false); - long[] jArr = new long[treeSet.size()]; - Iterator it = treeSet.iterator(); - while (it.hasNext()) { - jArr[i] = it.next().longValue(); - i++; - } - this.j = jArr; - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - int b = f0.b(this.j, j, false, false); - if (b < this.j.length) { - return b; - } - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - return this.j[i]; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - d dVar = this.i; - Map map = this.k; - Map map2 = this.l; - Map map3 = this.m; - Objects.requireNonNull(dVar); - ArrayList arrayList = new ArrayList(); - dVar.h(j, dVar.h, arrayList); - TreeMap treeMap = new TreeMap(); - dVar.j(j, false, dVar.h, treeMap); - dVar.i(j, map, map2, dVar.h, treeMap); - ArrayList arrayList2 = new ArrayList(); - Iterator it = arrayList.iterator(); - while (it.hasNext()) { - Pair pair = (Pair) it.next(); - String str = map3.get(pair.second); - if (str != null) { - byte[] decode = Base64.decode(str, 0); - Bitmap decodeByteArray = BitmapFactory.decodeByteArray(decode, 0, decode.length); - e eVar = map2.get(pair.first); - Objects.requireNonNull(eVar); - arrayList2.add(new c(null, null, decodeByteArray, eVar.f850c, 0, eVar.e, eVar.b, 0, Integer.MIN_VALUE, -3.4028235E38f, eVar.f, eVar.g, false, -16777216, eVar.j, 0.0f, null)); - } - } - for (Map.Entry entry : treeMap.entrySet()) { - e eVar2 = map2.get(entry.getKey()); - Objects.requireNonNull(eVar2); - c.b bVar = (c.b) entry.getValue(); - CharSequence charSequence = bVar.a; - Objects.requireNonNull(charSequence); - SpannableStringBuilder spannableStringBuilder = (SpannableStringBuilder) charSequence; - a[] aVarArr = (a[]) spannableStringBuilder.getSpans(0, spannableStringBuilder.length(), a.class); - for (a aVar : aVarArr) { - spannableStringBuilder.replace(spannableStringBuilder.getSpanStart(aVar), spannableStringBuilder.getSpanEnd(aVar), (CharSequence) ""); - } - for (int i = 0; i < spannableStringBuilder.length(); i++) { - if (spannableStringBuilder.charAt(i) == ' ') { - int i2 = i + 1; - int i3 = i2; - while (i3 < spannableStringBuilder.length() && spannableStringBuilder.charAt(i3) == ' ') { - i3++; - } - int i4 = i3 - i2; - if (i4 > 0) { - spannableStringBuilder.delete(i, i4 + i); - } - } - } - if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(0) == ' ') { - spannableStringBuilder.delete(0, 1); - } - for (int i5 = 0; i5 < spannableStringBuilder.length() - 1; i5++) { - if (spannableStringBuilder.charAt(i5) == '\n') { - int i6 = i5 + 1; - if (spannableStringBuilder.charAt(i6) == ' ') { - spannableStringBuilder.delete(i6, i5 + 2); - } - } - } - if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(spannableStringBuilder.length() - 1) == ' ') { - spannableStringBuilder.delete(spannableStringBuilder.length() - 1, spannableStringBuilder.length()); - } - for (int i7 = 0; i7 < spannableStringBuilder.length() - 1; i7++) { - if (spannableStringBuilder.charAt(i7) == ' ') { - int i8 = i7 + 1; - if (spannableStringBuilder.charAt(i8) == '\n') { - spannableStringBuilder.delete(i7, i8); - } - } - } - if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(spannableStringBuilder.length() - 1) == '\n') { - spannableStringBuilder.delete(spannableStringBuilder.length() - 1, spannableStringBuilder.length()); - } - float f = eVar2.f850c; - int i9 = eVar2.d; - bVar.d = f; - bVar.e = i9; - bVar.f = eVar2.e; - bVar.g = eVar2.b; - bVar.k = eVar2.f; - float f2 = eVar2.i; - int i10 = eVar2.h; - bVar.j = f2; - bVar.i = i10; - bVar.o = eVar2.j; - arrayList2.add(bVar.a()); - } - return arrayList2; - } - - @Override // c.i.a.c.e2.f - public int i() { - return this.j.length; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/t/a.java b/app/src/main/java/c/i/a/c/e2/t/a.java deleted file mode 100644 index 2858057caf..0000000000 --- a/app/src/main/java/c/i/a/c/e2/t/a.java +++ /dev/null @@ -1,176 +0,0 @@ -package c.i.a.c.e2.t; - -import android.text.SpannableStringBuilder; -import android.text.style.ForegroundColorSpan; -import android.text.style.StyleSpan; -import android.text.style.TypefaceSpan; -import android.text.style.UnderlineSpan; -import android.util.Log; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import c.i.b.a.c; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.List; -/* compiled from: Tx3gDecoder */ -public final class a extends d { - public final w n = new w(); - public final boolean o; - public final int p; - public final int q; - public final String r; - - /* renamed from: s reason: collision with root package name */ - public final float f852s; - public final int t; - - public a(List list) { - super("Tx3gDecoder"); - String str = "sans-serif"; - boolean z2 = true; - if (list.size() == 1 && (list.get(0).length == 48 || list.get(0).length == 53)) { - byte[] bArr = list.get(0); - this.p = bArr[24]; - this.q = ((bArr[26] & 255) << 24) | ((bArr[27] & 255) << 16) | ((bArr[28] & 255) << 8) | (bArr[29] & 255); - this.r = "Serif".equals(f0.m(bArr, 43, bArr.length - 43)) ? "serif" : str; - int i = bArr[25] * 20; - this.t = i; - z2 = (bArr[0] & 32) == 0 ? false : z2; - this.o = z2; - if (z2) { - this.f852s = f0.g(((float) ((bArr[11] & 255) | ((bArr[10] & 255) << 8))) / ((float) i), 0.0f, 0.95f); - } else { - this.f852s = 0.85f; - } - } else { - this.p = 0; - this.q = -1; - this.r = str; - this.o = false; - this.f852s = 0.85f; - this.t = -1; - } - } - - public static void k(boolean z2) throws SubtitleDecoderException { - if (!z2) { - throw new SubtitleDecoderException("Unexpected subtitle format."); - } - } - - public static void l(SpannableStringBuilder spannableStringBuilder, int i, int i2, int i3, int i4, int i5) { - if (i != i2) { - int i6 = i5 | 33; - boolean z2 = true; - boolean z3 = (i & 1) != 0; - boolean z4 = (i & 2) != 0; - if (z3) { - if (z4) { - spannableStringBuilder.setSpan(new StyleSpan(3), i3, i4, i6); - } else { - spannableStringBuilder.setSpan(new StyleSpan(1), i3, i4, i6); - } - } else if (z4) { - spannableStringBuilder.setSpan(new StyleSpan(2), i3, i4, i6); - } - if ((i & 4) == 0) { - z2 = false; - } - if (z2) { - spannableStringBuilder.setSpan(new UnderlineSpan(), i3, i4, i6); - } - if (!z2 && !z3 && !z4) { - spannableStringBuilder.setSpan(new StyleSpan(0), i3, i4, i6); - } - } - } - - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { - String str; - w wVar = this.n; - wVar.a = bArr; - wVar.f913c = i; - wVar.b = 0; - int i2 = 2; - int i3 = 1; - k(wVar.a() >= 2); - int x2 = wVar.x(); - if (x2 == 0) { - str = ""; - } else { - if (wVar.a() >= 2) { - byte[] bArr2 = wVar.a; - int i4 = wVar.b; - char c2 = (char) ((bArr2[i4 + 1] & 255) | ((bArr2[i4] & 255) << 8)); - if (c2 == 65279 || c2 == 65534) { - str = wVar.q(x2, c.e); - } - } - str = wVar.q(x2, c.f1266c); - } - if (str.isEmpty()) { - return b.i; - } - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(str); - l(spannableStringBuilder, this.p, 0, 0, spannableStringBuilder.length(), 16711680); - int i5 = this.q; - int length = spannableStringBuilder.length(); - if (i5 != -1) { - spannableStringBuilder.setSpan(new ForegroundColorSpan((i5 >>> 8) | ((i5 & 255) << 24)), 0, length, 16711713); - } - String str2 = this.r; - int length2 = spannableStringBuilder.length(); - if (str2 != "sans-serif") { - spannableStringBuilder.setSpan(new TypefaceSpan(str2), 0, length2, 16711713); - } - float f = this.f852s; - for (int i6 = 8; this.n.a() >= i6; i6 = 8) { - w wVar2 = this.n; - int i7 = wVar2.b; - int f2 = wVar2.f(); - int f3 = this.n.f(); - if (f3 == 1937013100) { - k(this.n.a() >= i2); - int x3 = this.n.x(); - int i8 = 0; - while (i8 < x3) { - w wVar3 = this.n; - k(wVar3.a() >= 12); - int x4 = wVar3.x(); - int x5 = wVar3.x(); - wVar3.E(i2); - int s2 = wVar3.s(); - wVar3.E(i3); - int f4 = wVar3.f(); - if (x5 > spannableStringBuilder.length()) { - StringBuilder L = c.d.b.a.a.L("Truncating styl end (", x5, ") to cueText.length() ("); - L.append(spannableStringBuilder.length()); - L.append(")."); - Log.w("Tx3gDecoder", L.toString()); - x5 = spannableStringBuilder.length(); - } - if (x4 >= x5) { - Log.w("Tx3gDecoder", c.d.b.a.a.n("Ignoring styl with start (", x4, ") >= end (", x5, ").")); - } else { - l(spannableStringBuilder, s2, this.p, x4, x5, 0); - if (f4 != this.q) { - spannableStringBuilder.setSpan(new ForegroundColorSpan(((f4 & 255) << 24) | (f4 >>> 8)), x4, x5, 33); - } - } - i8++; - i2 = 2; - i3 = 1; - } - } else if (f3 == 1952608120 && this.o) { - k(this.n.a() >= 2); - f = f0.g(((float) this.n.x()) / ((float) this.t), 0.0f, 0.95f); - } - this.n.D(i7 + f2); - i2 = 2; - i3 = 1; - } - return new b(new c.i.a.c.e2.c(spannableStringBuilder, null, null, f, 0, 0, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, -16777216, Integer.MIN_VALUE, 0.0f, null)); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/t/b.java b/app/src/main/java/c/i/a/c/e2/t/b.java deleted file mode 100644 index 6f996b8a87..0000000000 --- a/app/src/main/java/c/i/a/c/e2/t/b.java +++ /dev/null @@ -1,41 +0,0 @@ -package c.i.a.c.e2.t; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Collections; -import java.util.List; -/* compiled from: Tx3gSubtitle */ -public final class b implements f { - public static final b i = new b(); - public final List j; - - public b() { - this.j = Collections.emptyList(); - } - - public b(c cVar) { - this.j = Collections.singletonList(cVar); - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - return j < 0 ? 0 : -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i2) { - AnimatableValueParser.k(i2 == 0); - return 0; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - return j >= 0 ? this.j : Collections.emptyList(); - } - - @Override // c.i.a.c.e2.f - public int i() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/a.java b/app/src/main/java/c/i/a/c/e2/u/a.java deleted file mode 100644 index 090bb6391f..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/a.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.e2.u; - -import c.i.a.c.e2.u.h; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class a implements Comparator { - public static final /* synthetic */ a i = new a(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - return Integer.compare(((h.b) obj).b.b, ((h.b) obj2).b.b); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/b.java b/app/src/main/java/c/i/a/c/e2/u/b.java deleted file mode 100644 index 692f25e21e..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/b.java +++ /dev/null @@ -1,12 +0,0 @@ -package c.i.a.c.e2.u; - -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Comparator { - public static final /* synthetic */ b i = new b(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - return Long.compare(((g) obj).b, ((g) obj2).b); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/c.java b/app/src/main/java/c/i/a/c/e2/u/c.java deleted file mode 100644 index b375afd0a7..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/c.java +++ /dev/null @@ -1,99 +0,0 @@ -package c.i.a.c.e2.u; - -import androidx.annotation.Nullable; -import c.d.b.a.a; -import c.i.a.c.i2.w; -import java.util.regex.Pattern; -/* compiled from: CssParser */ -public final class c { - public static final Pattern a = Pattern.compile("\\[voice=\"([^\"]*)\"\\]"); - public final w b = new w(); - - /* renamed from: c reason: collision with root package name */ - public final StringBuilder f853c = new StringBuilder(); - - public static String a(w wVar, StringBuilder sb) { - boolean z2 = false; - sb.setLength(0); - int i = wVar.b; - int i2 = wVar.f913c; - while (i < i2 && !z2) { - char c2 = (char) wVar.a[i]; - if ((c2 < 'A' || c2 > 'Z') && ((c2 < 'a' || c2 > 'z') && !((c2 >= '0' && c2 <= '9') || c2 == '#' || c2 == '-' || c2 == '.' || c2 == '_'))) { - z2 = true; - } else { - i++; - sb.append(c2); - } - } - wVar.E(i - wVar.b); - return sb.toString(); - } - - @Nullable - public static String b(w wVar, StringBuilder sb) { - c(wVar); - if (wVar.a() == 0) { - return null; - } - String a2 = a(wVar, sb); - if (!"".equals(a2)) { - return a2; - } - StringBuilder K = a.K(""); - K.append((char) wVar.s()); - return K.toString(); - } - - /* JADX WARNING: Removed duplicated region for block: B:35:0x0068 A[LOOP:1: B:2:0x0002->B:35:0x0068, LOOP_END] */ - /* JADX WARNING: Removed duplicated region for block: B:40:0x0001 A[SYNTHETIC] */ - public static void c(w wVar) { - boolean z2; - boolean z3; - while (true) { - boolean z4 = true; - while (wVar.a() > 0 && z4) { - char c2 = (char) wVar.a[wVar.b]; - if (c2 == '\t' || c2 == '\n' || c2 == '\f' || c2 == '\r' || c2 == ' ') { - wVar.E(1); - z2 = true; - } else { - z2 = false; - } - if (!z2) { - int i = wVar.b; - int i2 = wVar.f913c; - byte[] bArr = wVar.a; - if (i + 2 <= i2) { - int i3 = i + 1; - if (bArr[i] == 47) { - int i4 = i3 + 1; - if (bArr[i3] == 42) { - while (true) { - int i5 = i4 + 1; - if (i5 >= i2) { - break; - } else if (((char) bArr[i4]) == '*' && ((char) bArr[i5]) == '/') { - i2 = i5 + 1; - i4 = i2; - } else { - i4 = i5; - } - } - wVar.E(i2 - wVar.b); - z3 = true; - if (z3) { - z4 = false; - } - } - } - } - z3 = false; - if (z3) { - } - } - } - return; - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/d.java b/app/src/main/java/c/i/a/c/e2/u/d.java deleted file mode 100644 index 93b6ffc4b9..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/d.java +++ /dev/null @@ -1,77 +0,0 @@ -package c.i.a.c.e2.u; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import c.i.a.c.e2.u.h; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.regex.Pattern; -/* compiled from: Mp4WebvttDecoder */ -public final class d extends c.i.a.c.e2.d { - public final w n = new w(); - - public d() { - super("Mp4WebvttDecoder"); - } - - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { - c cVar; - w wVar = this.n; - wVar.a = bArr; - wVar.f913c = i; - wVar.b = 0; - ArrayList arrayList = new ArrayList(); - while (this.n.a() > 0) { - if (this.n.a() >= 8) { - int f = this.n.f(); - if (this.n.f() == 1987343459) { - w wVar2 = this.n; - int i2 = f - 8; - CharSequence charSequence = null; - c.b bVar = null; - while (i2 > 0) { - if (i2 >= 8) { - int f2 = wVar2.f(); - int f3 = wVar2.f(); - int i3 = f2 - 8; - String m = f0.m(wVar2.a, wVar2.b, i3); - wVar2.E(i3); - i2 = (i2 - 8) - i3; - if (f3 == 1937011815) { - h.e eVar = new h.e(); - h.e(m, eVar); - bVar = eVar.a(); - } else if (f3 == 1885436268) { - charSequence = h.f(null, m.trim(), Collections.emptyList()); - } - } else { - throw new SubtitleDecoderException("Incomplete vtt cue box header found."); - } - } - if (charSequence == null) { - charSequence = ""; - } - if (bVar != null) { - bVar.a = charSequence; - cVar = bVar.a(); - } else { - Pattern pattern = h.a; - h.e eVar2 = new h.e(); - eVar2.f859c = charSequence; - cVar = eVar2.a().a(); - } - arrayList.add(cVar); - } else { - this.n.E(f - 8); - } - } else { - throw new SubtitleDecoderException("Incomplete Mp4Webvtt Top Level box header found."); - } - } - return new e(arrayList); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/e.java b/app/src/main/java/c/i/a/c/e2/u/e.java deleted file mode 100644 index 93f4e80dd9..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/e.java +++ /dev/null @@ -1,36 +0,0 @@ -package c.i.a.c.e2.u; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.Collections; -import java.util.List; -/* compiled from: Mp4WebvttSubtitle */ -public final class e implements f { - public final List i; - - public e(List list) { - this.i = Collections.unmodifiableList(list); - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - return j < 0 ? 0 : -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - AnimatableValueParser.k(i == 0); - return 0; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - return j >= 0 ? this.i : Collections.emptyList(); - } - - @Override // c.i.a.c.e2.f - public int i() { - return 1; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/f.java b/app/src/main/java/c/i/a/c/e2/u/f.java deleted file mode 100644 index a042f94a0f..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/f.java +++ /dev/null @@ -1,52 +0,0 @@ -package c.i.a.c.e2.u; - -import androidx.annotation.ColorInt; -import androidx.annotation.Nullable; -import java.util.Collections; -import java.util.Set; -/* compiled from: WebvttCssStyle */ -public final class f { - public String a = ""; - public String b = ""; - - /* renamed from: c reason: collision with root package name */ - public Set f854c = Collections.emptySet(); - public String d = ""; - @Nullable - public String e = null; - @ColorInt - public int f; - public boolean g = false; - public int h; - public boolean i = false; - public int j = -1; - public int k = -1; - public int l = -1; - public int m = -1; - public int n = -1; - public int o = -1; - public boolean p = false; - - public static int b(int i, String str, @Nullable String str2, int i2) { - if (str.isEmpty() || i == -1) { - return i; - } - if (str.equals(str2)) { - return i + i2; - } - return -1; - } - - public int a() { - int i = this.l; - if (i == -1 && this.m == -1) { - return -1; - } - int i2 = 0; - int i3 = i == 1 ? 1 : 0; - if (this.m == 1) { - i2 = 2; - } - return i3 | i2; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/g.java b/app/src/main/java/c/i/a/c/e2/u/g.java deleted file mode 100644 index 2d9abcd8fa..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/g.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c.e2.u; - -import c.i.a.c.e2.c; -/* compiled from: WebvttCueInfo */ -public final class g { - public final c a; - public final long b; - - /* renamed from: c reason: collision with root package name */ - public final long f855c; - - public g(c cVar, long j, long j2) { - this.a = cVar; - this.b = j; - this.f855c = j2; - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/h.java b/app/src/main/java/c/i/a/c/e2/u/h.java deleted file mode 100644 index a2b60201a0..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/h.java +++ /dev/null @@ -1,1008 +0,0 @@ -package c.i.a.c.e2.u; - -import android.graphics.Color; -import android.text.Layout; -import android.text.SpannableStringBuilder; -import android.text.SpannedString; -import android.text.TextUtils; -import android.text.style.AbsoluteSizeSpan; -import android.text.style.BackgroundColorSpan; -import android.text.style.ForegroundColorSpan; -import android.text.style.RelativeSizeSpan; -import android.text.style.StrikethroughSpan; -import android.text.style.StyleSpan; -import android.text.style.TypefaceSpan; -import android.text.style.UnderlineSpan; -import android.util.Log; -import androidx.annotation.Nullable; -import c.i.a.c.e2.c; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.ArrayDeque; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: WebvttCueParser */ -public final class h { - public static final Pattern a = Pattern.compile("^(\\S+)\\s+-->\\s+(\\S+)(.*)?$"); - public static final Pattern b = Pattern.compile("(\\S+?):(\\S+)"); - - /* renamed from: c reason: collision with root package name */ - public static final Map f856c; - public static final Map d; - - /* compiled from: WebvttCueParser */ - public static class b { - public static final /* synthetic */ int a = 0; - public final c b; - - /* renamed from: c reason: collision with root package name */ - public final int f857c; - - public b(c cVar, int i, a aVar) { - this.b = cVar; - this.f857c = i; - } - } - - /* compiled from: WebvttCueParser */ - public static final class c { - public final String a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final String f858c; - public final Set d; - - public c(String str, int i, String str2, Set set) { - this.b = i; - this.a = str; - this.f858c = str2; - this.d = set; - } - } - - /* compiled from: WebvttCueParser */ - public static final class d implements Comparable { - public final int i; - public final f j; - - public d(int i, f fVar) { - this.i = i; - this.j = fVar; - } - - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ - @Override // java.lang.Comparable - public int compareTo(d dVar) { - return Integer.compare(this.i, dVar.i); - } - } - - /* compiled from: WebvttCueParser */ - public static final class e { - public long a = 0; - public long b = 0; - - /* renamed from: c reason: collision with root package name */ - public CharSequence f859c; - public int d = 2; - public float e = -3.4028235E38f; - public int f = 1; - public int g = 0; - public float h = -3.4028235E38f; - public int i = Integer.MIN_VALUE; - public float j = 1.0f; - public int k = Integer.MIN_VALUE; - - /* JADX WARNING: Code restructure failed: missing block: B:37:0x0072, code lost: - if (r6 == 0) goto L_0x0074; - */ - /* JADX WARNING: Removed duplicated region for block: B:36:0x0070 */ - /* JADX WARNING: Removed duplicated region for block: B:37:0x0072 */ - /* JADX WARNING: Removed duplicated region for block: B:41:0x0086 */ - /* JADX WARNING: Removed duplicated region for block: B:49:0x00a2 */ - /* JADX WARNING: Removed duplicated region for block: B:52:0x00b2 */ - public c.b a() { - Layout.Alignment alignment; - int i; - CharSequence charSequence; - float f = this.h; - float f2 = -3.4028235E38f; - if (f == -3.4028235E38f) { - int i2 = this.d; - f = i2 != 4 ? i2 != 5 ? 0.5f : 1.0f : 0.0f; - } - int i3 = this.i; - if (i3 == Integer.MIN_VALUE) { - int i4 = this.d; - if (i4 != 1) { - if (i4 != 3) { - if (i4 != 4) { - if (i4 != 5) { - i3 = 1; - } - } - } - i3 = 2; - } - i3 = 0; - } - c.b bVar = new c.b(); - int i5 = this.d; - if (i5 != 1) { - if (i5 != 2) { - if (i5 != 3) { - if (i5 != 4) { - if (i5 != 5) { - c.d.b.a.a.d0("Unknown textAlignment: ", i5, "WebvttCueParser"); - alignment = null; - } - } - } - alignment = Layout.Alignment.ALIGN_OPPOSITE; - } else { - alignment = Layout.Alignment.ALIGN_CENTER; - } - bVar.f815c = alignment; - float f3 = this.e; - int i6 = this.f; - i = (f3 > -3.4028235E38f ? 1 : (f3 == -3.4028235E38f ? 0 : -1)); - if (i == 0 || i6 != 0 || (f3 >= 0.0f && f3 <= 1.0f)) { - if (i == 0) { - f2 = f3; - } - bVar.d = f2; - bVar.e = i6; - bVar.f = this.g; - bVar.g = f; - bVar.h = i3; - float f4 = this.j; - if (i3 == 0) { - f = 1.0f - f; - } else if (i3 == 1) { - f = f <= 0.5f ? f * 2.0f : (1.0f - f) * 2.0f; - } else if (i3 != 2) { - throw new IllegalStateException(String.valueOf(i3)); - } - bVar.k = Math.min(f4, f); - bVar.o = this.k; - charSequence = this.f859c; - if (charSequence != null) { - bVar.a = charSequence; - } - return bVar; - } - f2 = 1.0f; - bVar.d = f2; - bVar.e = i6; - bVar.f = this.g; - bVar.g = f; - bVar.h = i3; - float f4 = this.j; - if (i3 == 0) { - } - bVar.k = Math.min(f4, f); - bVar.o = this.k; - charSequence = this.f859c; - if (charSequence != null) { - } - return bVar; - } - alignment = Layout.Alignment.ALIGN_NORMAL; - bVar.f815c = alignment; - float f3 = this.e; - int i6 = this.f; - i = (f3 > -3.4028235E38f ? 1 : (f3 == -3.4028235E38f ? 0 : -1)); - if (i == 0) { - } - bVar.d = f2; - bVar.e = i6; - bVar.f = this.g; - bVar.g = f; - bVar.h = i3; - float f4 = this.j; - if (i3 == 0) { - } - bVar.k = Math.min(f4, f); - bVar.o = this.k; - charSequence = this.f859c; - if (charSequence != null) { - } - return bVar; - } - } - - static { - HashMap hashMap = new HashMap(); - hashMap.put("white", Integer.valueOf(Color.rgb(255, 255, 255))); - hashMap.put("lime", Integer.valueOf(Color.rgb(0, 255, 0))); - hashMap.put("cyan", Integer.valueOf(Color.rgb(0, 255, 255))); - hashMap.put("red", Integer.valueOf(Color.rgb(255, 0, 0))); - hashMap.put("yellow", Integer.valueOf(Color.rgb(255, 255, 0))); - hashMap.put("magenta", Integer.valueOf(Color.rgb(255, 0, 255))); - hashMap.put("blue", Integer.valueOf(Color.rgb(0, 0, 255))); - hashMap.put("black", Integer.valueOf(Color.rgb(0, 0, 0))); - f856c = Collections.unmodifiableMap(hashMap); - HashMap hashMap2 = new HashMap(); - hashMap2.put("bg_white", Integer.valueOf(Color.rgb(255, 255, 255))); - hashMap2.put("bg_lime", Integer.valueOf(Color.rgb(0, 255, 0))); - hashMap2.put("bg_cyan", Integer.valueOf(Color.rgb(0, 255, 255))); - hashMap2.put("bg_red", Integer.valueOf(Color.rgb(255, 0, 0))); - hashMap2.put("bg_yellow", Integer.valueOf(Color.rgb(255, 255, 0))); - hashMap2.put("bg_magenta", Integer.valueOf(Color.rgb(255, 0, 255))); - hashMap2.put("bg_blue", Integer.valueOf(Color.rgb(0, 0, 255))); - hashMap2.put("bg_black", Integer.valueOf(Color.rgb(0, 0, 0))); - d = Collections.unmodifiableMap(hashMap2); - } - - /* JADX WARNING: Removed duplicated region for block: B:133:0x0242 A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:43:0x0097 A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:44:0x0098 */ - /* JADX WARNING: Removed duplicated region for block: B:56:0x010b */ - /* JADX WARNING: Removed duplicated region for block: B:57:0x0114 */ - /* JADX WARNING: Removed duplicated region for block: B:58:0x011d */ - /* JADX WARNING: Removed duplicated region for block: B:67:0x0165 */ - /* JADX WARNING: Removed duplicated region for block: B:71:0x017c */ - public static void a(@Nullable String str, c cVar, List list, SpannableStringBuilder spannableStringBuilder, List list2) { - char c2; - List b2; - int i; - ArrayList arrayList; - int i2 = cVar.b; - int length = spannableStringBuilder.length(); - String str2 = cVar.a; - str2.hashCode(); - int hashCode = str2.hashCode(); - int i3 = -1; - if (hashCode != 0) { - if (hashCode != 105) { - if (hashCode != 3314158) { - if (hashCode != 3511770) { - if (hashCode != 98) { - if (hashCode != 99) { - if (hashCode != 117) { - if (hashCode == 118 && str2.equals("v")) { - c2 = 5; - switch (c2) { - case 0: - case 5: - case 6: - break; - case 1: - spannableStringBuilder.setSpan(new StyleSpan(1), i2, length, 33); - break; - case 2: - for (String str3 : cVar.d) { - Map map = f856c; - if (map.containsKey(str3)) { - spannableStringBuilder.setSpan(new ForegroundColorSpan(map.get(str3).intValue()), i2, length, 33); - } else { - Map map2 = d; - if (map2.containsKey(str3)) { - spannableStringBuilder.setSpan(new BackgroundColorSpan(map2.get(str3).intValue()), i2, length, 33); - } - } - } - break; - case 3: - spannableStringBuilder.setSpan(new StyleSpan(2), i2, length, 33); - break; - case 4: - spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); - break; - case 7: - int c3 = c(list2, str, cVar); - ArrayList arrayList2 = new ArrayList(list.size()); - arrayList2.addAll(list); - int i4 = b.a; - Collections.sort(arrayList2, a.i); - int i5 = cVar.b; - int i6 = 0; - int i7 = 0; - while (i6 < arrayList2.size()) { - if ("rt".equals(((b) arrayList2.get(i6)).b.a)) { - b bVar = (b) arrayList2.get(i6); - int c4 = c(list2, str, bVar.b); - if (c4 == i3) { - c4 = c3 != i3 ? c3 : 1; - } - int i8 = bVar.b.b - i7; - int i9 = bVar.f857c - i7; - CharSequence subSequence = spannableStringBuilder.subSequence(i8, i9); - spannableStringBuilder.delete(i8, i9); - spannableStringBuilder.setSpan(new c.i.a.c.e2.p.b(subSequence.toString(), c4), i5, i8, 33); - i7 = subSequence.length() + i7; - i5 = i8; - } - i6++; - i3 = -1; - } - break; - default: - return; - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - f fVar = ((d) arrayList.get(i)).j; - if (fVar != null) { - if (fVar.a() != -1) { - AnimatableValueParser.c(spannableStringBuilder, new StyleSpan(fVar.a()), i2, length, 33); - } - if (fVar.j == 1) { - spannableStringBuilder.setSpan(new StrikethroughSpan(), i2, length, 33); - } - if (fVar.k == 1) { - spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); - } - if (fVar.g) { - if (fVar.g) { - AnimatableValueParser.c(spannableStringBuilder, new ForegroundColorSpan(fVar.f), i2, length, 33); - } else { - throw new IllegalStateException("Font color not defined"); - } - } - if (fVar.i) { - if (fVar.i) { - AnimatableValueParser.c(spannableStringBuilder, new BackgroundColorSpan(fVar.h), i2, length, 33); - } else { - throw new IllegalStateException("Background color not defined."); - } - } - if (fVar.e != null) { - AnimatableValueParser.c(spannableStringBuilder, new TypefaceSpan(fVar.e), i2, length, 33); - } - int i10 = fVar.n; - if (i10 == 1) { - AnimatableValueParser.c(spannableStringBuilder, new AbsoluteSizeSpan((int) 0.0f, true), i2, length, 33); - } else if (i10 == 2) { - AnimatableValueParser.c(spannableStringBuilder, new RelativeSizeSpan(0.0f), i2, length, 33); - } else if (i10 == 3) { - AnimatableValueParser.c(spannableStringBuilder, new RelativeSizeSpan(0.0f), i2, length, 33); - } - if (fVar.p) { - spannableStringBuilder.setSpan(new c.i.a.c.e2.p.a(), i2, length, 33); - } - } - i++; - } else { - return; - } - } - } - } else if (str2.equals("u")) { - c2 = 4; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("c")) { - c2 = 2; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("b")) { - c2 = 1; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("ruby")) { - c2 = 7; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("lang")) { - c2 = 6; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("i")) { - c2 = 3; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - } else if (str2.equals("")) { - c2 = 0; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - c2 = 65535; - switch (c2) { - } - b2 = b(list2, str, cVar); - i = 0; - while (true) { - arrayList = (ArrayList) b2; - if (i < arrayList.size()) { - } - i++; - } - } - - /* JADX DEBUG: Multi-variable search result rejected for r4v6, resolved type: boolean */ - /* JADX WARN: Multi-variable type inference failed */ - public static List b(List list, @Nullable String str, c cVar) { - int i; - ArrayList arrayList = new ArrayList(); - for (int i2 = 0; i2 < list.size(); i2++) { - f fVar = list.get(i2); - String str2 = cVar.a; - Set set = cVar.d; - String str3 = cVar.f858c; - if (!fVar.a.isEmpty() || !fVar.b.isEmpty() || !fVar.f854c.isEmpty() || !fVar.d.isEmpty()) { - int b2 = f.b(f.b(f.b(0, fVar.a, str, 1073741824), fVar.b, str2, 2), fVar.d, str3, 4); - i = (b2 == -1 || !set.containsAll(fVar.f854c)) ? 0 : b2 + (fVar.f854c.size() * 4); - } else { - i = TextUtils.isEmpty(str2); - } - if (i > 0) { - arrayList.add(new d(i == 1 ? 1 : 0, fVar)); - } - } - Collections.sort(arrayList); - return arrayList; - } - - public static int c(List list, @Nullable String str, c cVar) { - List b2 = b(list, str, cVar); - int i = 0; - while (true) { - ArrayList arrayList = (ArrayList) b2; - if (i >= arrayList.size()) { - return -1; - } - int i2 = ((d) arrayList.get(i)).j.o; - if (i2 != -1) { - return i2; - } - i++; - } - } - - @Nullable - public static g d(@Nullable String str, Matcher matcher, w wVar, List list) { - e eVar = new e(); - try { - String group = matcher.group(1); - Objects.requireNonNull(group); - eVar.a = j.b(group); - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - eVar.b = j.b(group2); - String group3 = matcher.group(3); - Objects.requireNonNull(group3); - e(group3, eVar); - StringBuilder sb = new StringBuilder(); - String g = wVar.g(); - while (!TextUtils.isEmpty(g)) { - if (sb.length() > 0) { - sb.append("\n"); - } - sb.append(g.trim()); - g = wVar.g(); - } - eVar.f859c = f(str, sb.toString(), list); - return new g(eVar.a().a(), eVar.a, eVar.b); - } catch (NumberFormatException unused) { - StringBuilder K = c.d.b.a.a.K("Skipping cue with bad header: "); - K.append(matcher.group()); - Log.w("WebvttCueParser", K.toString()); - return null; - } - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - public static void e(String str, e eVar) { - Matcher matcher = b.matcher(str); - while (matcher.find()) { - int i = 1; - String group = matcher.group(1); - Objects.requireNonNull(group); - String group2 = matcher.group(2); - Objects.requireNonNull(group2); - try { - if ("line".equals(group)) { - g(group2, eVar); - } else if ("align".equals(group)) { - group2.hashCode(); - char c2 = 65535; - switch (group2.hashCode()) { - case -1364013995: - if (group2.equals("center")) { - c2 = 0; - break; - } - break; - case -1074341483: - if (group2.equals("middle")) { - c2 = 1; - break; - } - break; - case 100571: - if (group2.equals("end")) { - c2 = 2; - break; - } - break; - case 3317767: - if (group2.equals("left")) { - c2 = 3; - break; - } - break; - case 108511772: - if (group2.equals("right")) { - c2 = 4; - break; - } - break; - case 109757538: - if (group2.equals("start")) { - c2 = 5; - break; - } - break; - } - switch (c2) { - case 0: - case 1: - i = 2; - break; - case 2: - i = 3; - break; - case 3: - i = 4; - break; - case 4: - i = 5; - break; - case 5: - break; - default: - Log.w("WebvttCueParser", "Invalid alignment value: " + group2); - i = 2; - break; - } - eVar.d = i; - } else if ("position".equals(group)) { - h(group2, eVar); - } else if ("size".equals(group)) { - eVar.j = j.a(group2); - } else if ("vertical".equals(group)) { - if (group2.equals("lr")) { - i = 2; - } else if (!group2.equals("rl")) { - Log.w("WebvttCueParser", "Invalid 'vertical' value: " + group2); - i = Integer.MIN_VALUE; - } - eVar.k = i; - } else { - Log.w("WebvttCueParser", "Unknown cue setting " + group + ":" + group2); - } - } catch (NumberFormatException unused) { - StringBuilder K = c.d.b.a.a.K("Skipping bad cue setting: "); - K.append(matcher.group()); - Log.w("WebvttCueParser", K.toString()); - } - } - } - - /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - public static SpannedString f(@Nullable String str, String str2, List list) { - char c2; - boolean z2; - SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); - ArrayDeque arrayDeque = new ArrayDeque(); - ArrayList arrayList = new ArrayList(); - int i = 0; - int i2 = 0; - while (true) { - String str3 = ""; - if (i2 < str2.length()) { - char charAt = str2.charAt(i2); - if (charAt == '&') { - i2++; - int indexOf = str2.indexOf(59, i2); - int indexOf2 = str2.indexOf(32, i2); - char c3 = 65535; - if (indexOf == -1) { - indexOf = indexOf2; - } else if (indexOf2 != -1) { - indexOf = Math.min(indexOf, indexOf2); - } - if (indexOf != -1) { - String substring = str2.substring(i2, indexOf); - substring.hashCode(); - switch (substring.hashCode()) { - case 3309: - if (substring.equals("gt")) { - c3 = 0; - break; - } - break; - case 3464: - if (substring.equals("lt")) { - c3 = 1; - break; - } - break; - case 96708: - if (substring.equals("amp")) { - c3 = 2; - break; - } - break; - case 3374865: - if (substring.equals("nbsp")) { - c3 = 3; - break; - } - break; - } - switch (c3) { - case 0: - spannableStringBuilder.append('>'); - break; - case 1: - spannableStringBuilder.append('<'); - break; - case 2: - spannableStringBuilder.append('&'); - break; - case 3: - spannableStringBuilder.append(' '); - break; - default: - Log.w("WebvttCueParser", "ignoring unsupported entity: '&" + substring + ";'"); - break; - } - if (indexOf == indexOf2) { - spannableStringBuilder.append((CharSequence) " "); - } - i2 = indexOf + 1; - } else { - spannableStringBuilder.append(charAt); - } - } else if (charAt != '<') { - spannableStringBuilder.append(charAt); - i2++; - } else { - int i3 = i2 + 1; - if (i3 < str2.length()) { - boolean z3 = str2.charAt(i3) == '/'; - int indexOf3 = str2.indexOf(62, i3); - i3 = indexOf3 == -1 ? str2.length() : indexOf3 + 1; - int i4 = i3 - 2; - boolean z4 = str2.charAt(i4) == '/'; - int i5 = i2 + (z3 ? 2 : 1); - if (!z4) { - i4 = i3 - 1; - } - String substring2 = str2.substring(i5, i4); - if (!substring2.trim().isEmpty()) { - String trim = substring2.trim(); - AnimatableValueParser.k(!trim.isEmpty()); - int i6 = f0.a; - String str4 = trim.split("[ \\.]", 2)[i]; - str4.hashCode(); - switch (str4.hashCode()) { - case 98: - if (str4.equals("b")) { - c2 = 0; - break; - } - c2 = 65535; - break; - case 99: - if (str4.equals("c")) { - c2 = 1; - break; - } - c2 = 65535; - break; - case 105: - if (str4.equals("i")) { - c2 = 2; - break; - } - c2 = 65535; - break; - case 117: - if (str4.equals("u")) { - c2 = 3; - break; - } - c2 = 65535; - break; - case 118: - if (str4.equals("v")) { - c2 = 4; - break; - } - c2 = 65535; - break; - case 3650: - if (str4.equals("rt")) { - c2 = 5; - break; - } - c2 = 65535; - break; - case 3314158: - if (str4.equals("lang")) { - c2 = 6; - break; - } - c2 = 65535; - break; - case 3511770: - if (str4.equals("ruby")) { - c2 = 7; - break; - } - c2 = 65535; - break; - default: - c2 = 65535; - break; - } - switch (c2) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - z2 = true; - break; - default: - z2 = false; - break; - } - if (z2) { - if (z3) { - while (!arrayDeque.isEmpty()) { - c cVar = (c) arrayDeque.pop(); - a(str, cVar, arrayList, spannableStringBuilder, list); - if (!arrayDeque.isEmpty()) { - arrayList.add(new b(cVar, spannableStringBuilder.length(), null)); - } else { - arrayList.clear(); - } - if (cVar.a.equals(str4)) { - } - } - } else if (!z4) { - int length = spannableStringBuilder.length(); - String trim2 = substring2.trim(); - AnimatableValueParser.k(!trim2.isEmpty()); - int indexOf4 = trim2.indexOf(" "); - if (indexOf4 != -1) { - str3 = trim2.substring(indexOf4).trim(); - trim2 = trim2.substring(i, indexOf4); - } - String[] G = f0.G(trim2, "\\."); - String str5 = G[i]; - HashSet hashSet = new HashSet(); - for (int i7 = 1; i7 < G.length; i7++) { - hashSet.add(G[i7]); - } - arrayDeque.push(new c(str5, length, str3, hashSet)); - } - } - } - i2 = i3; - } - i2 = i3; - } - i = 0; - } else { - while (!arrayDeque.isEmpty()) { - a(str, (c) arrayDeque.pop(), arrayList, spannableStringBuilder, list); - } - a(str, new c(str3, 0, str3, Collections.emptySet()), Collections.emptyList(), spannableStringBuilder, list); - return SpannedString.valueOf(spannableStringBuilder); - } - } - } - - public static void g(String str, e eVar) { - int indexOf = str.indexOf(44); - if (indexOf != -1) { - String substring = str.substring(indexOf + 1); - substring.hashCode(); - substring.hashCode(); - int i = 2; - char c2 = 65535; - switch (substring.hashCode()) { - case -1364013995: - if (substring.equals("center")) { - c2 = 0; - break; - } - break; - case -1074341483: - if (substring.equals("middle")) { - c2 = 1; - break; - } - break; - case 100571: - if (substring.equals("end")) { - c2 = 2; - break; - } - break; - case 109757538: - if (substring.equals("start")) { - c2 = 3; - break; - } - break; - } - switch (c2) { - case 0: - case 1: - i = 1; - break; - case 2: - break; - case 3: - i = 0; - break; - default: - c.d.b.a.a.g0("Invalid anchor value: ", substring, "WebvttCueParser"); - i = Integer.MIN_VALUE; - break; - } - eVar.g = i; - str = str.substring(0, indexOf); - } - if (str.endsWith("%")) { - eVar.e = j.a(str); - eVar.f = 0; - return; - } - eVar.e = (float) Integer.parseInt(str); - eVar.f = 1; - } - - public static void h(String str, e eVar) { - int indexOf = str.indexOf(44); - if (indexOf != -1) { - String substring = str.substring(indexOf + 1); - substring.hashCode(); - substring.hashCode(); - int i = 2; - char c2 = 65535; - switch (substring.hashCode()) { - case -1842484672: - if (substring.equals("line-left")) { - c2 = 0; - break; - } - break; - case -1364013995: - if (substring.equals("center")) { - c2 = 1; - break; - } - break; - case -1276788989: - if (substring.equals("line-right")) { - c2 = 2; - break; - } - break; - case -1074341483: - if (substring.equals("middle")) { - c2 = 3; - break; - } - break; - case 100571: - if (substring.equals("end")) { - c2 = 4; - break; - } - break; - case 109757538: - if (substring.equals("start")) { - c2 = 5; - break; - } - break; - } - switch (c2) { - case 0: - case 5: - i = 0; - break; - case 1: - case 3: - i = 1; - break; - case 2: - case 4: - break; - default: - c.d.b.a.a.g0("Invalid anchor value: ", substring, "WebvttCueParser"); - i = Integer.MIN_VALUE; - break; - } - eVar.i = i; - str = str.substring(0, indexOf); - } - eVar.h = j.a(str); - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/i.java b/app/src/main/java/c/i/a/c/e2/u/i.java deleted file mode 100644 index bf25bb169e..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/i.java +++ /dev/null @@ -1,290 +0,0 @@ -package c.i.a.c.e2.u; - -import android.text.TextUtils; -import c.i.a.c.e2.d; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ParserException; -import com.google.android.exoplayer2.text.SubtitleDecoderException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Objects; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -/* compiled from: WebvttDecoder */ -public final class i extends d { - public final w n = new w(); - public final c o = new c(); - - public i() { - super("WebvttDecoder"); - } - - /* JADX WARNING: Code restructure failed: missing block: B:53:0x0110, code lost: - if (")".equals(c.i.a.c.e2.u.c.b(r10, r11)) == false) goto L_0x0112; - */ - /* JADX WARNING: Unknown variable types count: 1 */ - @Override // c.i.a.c.e2.d - public f j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { - ArrayList arrayList; - g gVar; - String str; - c cVar; - String str2; - String sb; - w wVar = this.n; - wVar.a = bArr; - wVar.f913c = i; - int i2 = 0; - wVar.b = 0; - ArrayList arrayList2 = new ArrayList(); - try { - j.c(this.n); - do { - } while (!TextUtils.isEmpty(this.n.g())); - arrayList = new ArrayList(); - } catch (ParserException e) { - throw new SubtitleDecoderException(e); - } - while (true) { - w wVar2 = this.n; - int i3 = -1; - ?? r8 = 1; - char c2 = 65535; - int i4 = 0; - while (c2 == 65535) { - i4 = wVar2.b; - String g = wVar2.g(); - c2 = g == null ? 0 : "STYLE".equals(g) ? 2 : g.startsWith("NOTE") ? (char) 1 : 3; - } - wVar2.D(i4); - if (c2 == 0) { - return new k(arrayList); - } - if (c2 == 1) { - do { - } while (!TextUtils.isEmpty(this.n.g())); - } else { - if (c2 == 2) { - if (arrayList.isEmpty()) { - this.n.g(); - c cVar2 = this.o; - w wVar3 = this.n; - cVar2.f853c.setLength(i2); - int i5 = wVar3.b; - do { - } while (!TextUtils.isEmpty(wVar3.g())); - cVar2.b.B(wVar3.a, wVar3.b); - cVar2.b.D(i5); - ArrayList arrayList3 = new ArrayList(); - while (true) { - w wVar4 = cVar2.b; - StringBuilder sb2 = cVar2.f853c; - c.c(wVar4); - if (wVar4.a() >= 5 && "::cue".equals(wVar4.p(5))) { - int i6 = wVar4.b; - String b = c.b(wVar4, sb2); - if (b != null) { - if ("{".equals(b)) { - wVar4.D(i6); - str = ""; - } else if ("(".equals(b)) { - int i7 = wVar4.b; - int i8 = wVar4.f913c; - boolean z3 = false; - while (i7 < i8 && !z3) { - int i9 = i7 + 1; - boolean z4 = ((char) wVar4.a[i7]) == ')'; - i7 = i9; - z3 = z4; - } - str = wVar4.p((i7 - 1) - wVar4.b).trim(); - } else { - str = null; - } - if (str == null || !"{".equals(c.b(cVar2.b, cVar2.f853c))) { - break; - } - f fVar = new f(); - if (!"".equals(str)) { - int indexOf = str.indexOf(91); - if (indexOf != i3) { - Matcher matcher = c.a.matcher(str.substring(indexOf)); - if (matcher.matches()) { - String group = matcher.group((int) r8); - Objects.requireNonNull(group); - fVar.d = group; - } - str = str.substring(i2, indexOf); - } - String[] G = f0.G(str, "\\."); - String str3 = G[i2]; - int indexOf2 = str3.indexOf(35); - if (indexOf2 != i3) { - fVar.b = str3.substring(i2, indexOf2); - fVar.a = str3.substring(indexOf2 + 1); - } else { - fVar.b = str3; - } - if (G.length > r8) { - int length = G.length; - AnimatableValueParser.k(r8); - AnimatableValueParser.k(length <= G.length); - int i10 = r8 == true ? 1 : 0; - int i11 = r8 == true ? 1 : 0; - int i12 = r8 == true ? 1 : 0; - fVar.f854c = new HashSet(Arrays.asList((String[]) Arrays.copyOfRange(G, i10, length))); - } - } - boolean z5 = false; - String str4 = null; - while (!z5) { - w wVar5 = cVar2.b; - int i13 = wVar5.b; - String b2 = c.b(wVar5, cVar2.f853c); - boolean z6 = b2 == null || "}".equals(b2); - if (!z6) { - cVar2.b.D(i13); - w wVar6 = cVar2.b; - StringBuilder sb3 = cVar2.f853c; - c.c(wVar6); - String a = c.a(wVar6, sb3); - if (!"".equals(a) && ":".equals(c.b(wVar6, sb3))) { - c.c(wVar6); - StringBuilder sb4 = new StringBuilder(); - boolean z7 = false; - while (true) { - if (z7) { - str2 = b2; - cVar = cVar2; - sb = sb4.toString(); - break; - } - str2 = b2; - int i14 = wVar6.b; - cVar = cVar2; - String b3 = c.b(wVar6, sb3); - if (b3 == null) { - sb = null; - break; - } else if ("}".equals(b3) || ";".equals(b3)) { - wVar6.D(i14); - b2 = str2; - cVar2 = cVar; - z7 = true; - } else { - sb4.append(b3); - b2 = str2; - cVar2 = cVar; - } - } - if (sb != null && !"".equals(sb)) { - int i15 = wVar6.b; - String b4 = c.b(wVar6, sb3); - if (!";".equals(b4)) { - if ("}".equals(b4)) { - wVar6.D(i15); - } - } - if ("color".equals(a)) { - fVar.f = c.i.a.c.i2.i.a(sb, true); - fVar.g = true; - } else if ("background-color".equals(a)) { - fVar.h = c.i.a.c.i2.i.a(sb, true); - fVar.i = true; - } else { - if ("ruby-position".equals(a)) { - if ("over".equals(sb)) { - fVar.o = 1; - } else if ("under".equals(sb)) { - fVar.o = 2; - } - } else if ("text-combine-upright".equals(a)) { - fVar.p = "all".equals(sb) || sb.startsWith("digits"); - } else if ("text-decoration".equals(a)) { - if ("underline".equals(sb)) { - fVar.k = 1; - } - } else if ("font-family".equals(a)) { - fVar.e = f0.K(sb); - } else { - if ("font-weight".equals(a)) { - if ("bold".equals(sb)) { - fVar.l = 1; - } - } else if ("font-style".equals(a) && "italic".equals(sb)) { - fVar.m = 1; - } - z5 = z6; - str4 = str2; - cVar2 = cVar; - } - z5 = z6; - str4 = str2; - cVar2 = cVar; - } - } - z5 = z6; - str4 = str2; - cVar2 = cVar; - } - } - str2 = b2; - cVar = cVar2; - z5 = z6; - str4 = str2; - cVar2 = cVar; - } - if ("}".equals(str4)) { - arrayList3.add(fVar); - } - cVar2 = cVar2; - i2 = 0; - i3 = -1; - r8 = 1; - } - } - str = null; - if (str == null) { - break; - } - break; - } - arrayList2.addAll(arrayList3); - } else { - throw new SubtitleDecoderException("A style block was found after the first cue."); - } - } else if (c2 == 3) { - w wVar7 = this.n; - Pattern pattern = h.a; - String g2 = wVar7.g(); - if (g2 == null) { - gVar = null; - } else { - Pattern pattern2 = h.a; - Matcher matcher2 = pattern2.matcher(g2); - if (matcher2.matches()) { - gVar = h.d(null, matcher2, wVar7, arrayList2); - } else { - String g3 = wVar7.g(); - if (g3 != null) { - Matcher matcher3 = pattern2.matcher(g3); - if (matcher3.matches()) { - gVar = h.d(g2.trim(), matcher3, wVar7, arrayList2); - } - } - gVar = null; - } - } - if (gVar != null) { - arrayList.add(gVar); - } - } - i2 = 0; - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/j.java b/app/src/main/java/c/i/a/c/e2/u/j.java deleted file mode 100644 index 8968b5d403..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/j.java +++ /dev/null @@ -1,45 +0,0 @@ -package c.i.a.c.e2.u; - -import c.d.b.a.a; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.w; -import com.google.android.exoplayer2.ParserException; -import java.util.regex.Pattern; -/* compiled from: WebvttParserUtil */ -public final class j { - static { - Pattern.compile("^NOTE([ \t].*)?$"); - } - - public static float a(String str) throws NumberFormatException { - if (str.endsWith("%")) { - return Float.parseFloat(str.substring(0, str.length() - 1)) / 100.0f; - } - throw new NumberFormatException("Percentages must end with %"); - } - - public static long b(String str) throws NumberFormatException { - int i = f0.a; - String[] split = str.split("\\.", 2); - long j = 0; - for (String str2 : f0.G(split[0], ":")) { - j = (j * 60) + Long.parseLong(str2); - } - long j2 = j * 1000; - if (split.length == 2) { - j2 += Long.parseLong(split[1]); - } - return j2 * 1000; - } - - public static void c(w wVar) throws ParserException { - int i = wVar.b; - String g = wVar.g(); - if (!(g != null && g.startsWith("WEBVTT"))) { - wVar.D(i); - StringBuilder K = a.K("Expected WEBVTT. Got "); - K.append(wVar.g()); - throw new ParserException(K.toString()); - } - } -} diff --git a/app/src/main/java/c/i/a/c/e2/u/k.java b/app/src/main/java/c/i/a/c/e2/u/k.java deleted file mode 100644 index 2a459a955e..0000000000 --- a/app/src/main/java/c/i/a/c/e2/u/k.java +++ /dev/null @@ -1,84 +0,0 @@ -package c.i.a.c.e2.u; - -import c.i.a.c.e2.c; -import c.i.a.c.e2.f; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -/* compiled from: WebvttSubtitle */ -public final class k implements f { - public final List i; - public final long[] j; - public final long[] k; - - public k(List list) { - this.i = Collections.unmodifiableList(new ArrayList(list)); - this.j = new long[(list.size() * 2)]; - for (int i = 0; i < list.size(); i++) { - g gVar = list.get(i); - int i2 = i * 2; - long[] jArr = this.j; - jArr[i2] = gVar.b; - jArr[i2 + 1] = gVar.f855c; - } - long[] jArr2 = this.j; - long[] copyOf = Arrays.copyOf(jArr2, jArr2.length); - this.k = copyOf; - Arrays.sort(copyOf); - } - - @Override // c.i.a.c.e2.f - public int f(long j) { - int b = f0.b(this.k, j, false, false); - if (b < this.k.length) { - return b; - } - return -1; - } - - @Override // c.i.a.c.e2.f - public long g(int i) { - boolean z2 = true; - AnimatableValueParser.k(i >= 0); - if (i >= this.k.length) { - z2 = false; - } - AnimatableValueParser.k(z2); - return this.k[i]; - } - - @Override // c.i.a.c.e2.f - public List h(long j) { - ArrayList arrayList = new ArrayList(); - ArrayList arrayList2 = new ArrayList(); - for (int i = 0; i < this.i.size(); i++) { - long[] jArr = this.j; - int i2 = i * 2; - if (jArr[i2] <= j && j < jArr[i2 + 1]) { - g gVar = this.i.get(i); - c cVar = gVar.a; - if (cVar.e == -3.4028235E38f) { - arrayList2.add(gVar); - } else { - arrayList.add(cVar); - } - } - } - Collections.sort(arrayList2, b.i); - for (int i3 = 0; i3 < arrayList2.size(); i3++) { - c.b a = ((g) arrayList2.get(i3)).a.a(); - a.d = (float) (-1 - i3); - a.e = 1; - arrayList.add(a.a()); - } - return arrayList; - } - - @Override // c.i.a.c.e2.f - public int i() { - return this.k.length; - } -} diff --git a/app/src/main/java/c/i/a/c/f.java b/app/src/main/java/c/i/a/c/f.java deleted file mode 100644 index fb3c35c63a..0000000000 --- a/app/src/main/java/c/i/a/c/f.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class f implements o.a { - public final /* synthetic */ c1 a; - - public /* synthetic */ f(c1 c1Var) { - this.a = c1Var; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - ((g1.a) obj).n(this.a.g); - } -} diff --git a/app/src/main/java/c/i/a/c/f0.java b/app/src/main/java/c/i/a/c/f0.java deleted file mode 100644 index 61149d3538..0000000000 --- a/app/src/main/java/c/i/a/c/f0.java +++ /dev/null @@ -1,56 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.r1; -/* compiled from: BasePlayer */ -public abstract class f0 implements g1 { - public final r1.c a = new r1.c(); - - @Override // c.i.a.c.g1 - public final boolean hasNext() { - return y() != -1; - } - - @Override // c.i.a.c.g1 - public final boolean hasPrevious() { - return t() != -1; - } - - @Override // c.i.a.c.g1 - public final boolean k() { - r1 D = D(); - return !D.q() && D.n(o(), this.a).j; - } - - @Override // c.i.a.c.g1 - public final int t() { - r1 D = D(); - if (D.q()) { - return -1; - } - int o = o(); - int B = B(); - if (B == 1) { - B = 0; - } - return D.l(o, B, F()); - } - - @Override // c.i.a.c.g1 - public final boolean v() { - return u() == 3 && g() && z() == 0; - } - - @Override // c.i.a.c.g1 - public final int y() { - r1 D = D(); - if (D.q()) { - return -1; - } - int o = o(); - int B = B(); - if (B == 1) { - B = 0; - } - return D.e(o, B, F()); - } -} diff --git a/app/src/main/java/c/i/a/c/f1.java b/app/src/main/java/c/i/a/c/f1.java deleted file mode 100644 index 7ee7432b08..0000000000 --- a/app/src/main/java/c/i/a/c/f1.java +++ /dev/null @@ -1,81 +0,0 @@ -package c.i.a.c; - -import androidx.annotation.Nullable; -import c.i.a.c.f2.k; -import c.i.a.c.g1; -import c.i.a.c.r1; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.util.List; -/* compiled from: Player */ -public final /* synthetic */ class f1 { - public static void a(g1.a aVar, g1 g1Var, g1.b bVar) { - } - - public static void b(g1.a aVar, boolean z2) { - } - - public static void c(g1.a aVar, boolean z2) { - } - - public static void d(g1.a aVar, boolean z2) { - aVar.e(z2); - } - - public static void e(g1.a aVar, boolean z2) { - } - - @Deprecated - public static void f(g1.a aVar, boolean z2) { - } - - public static void g(@Nullable g1.a aVar, v0 v0Var, int i) { - } - - public static void h(g1.a aVar, boolean z2, int i) { - } - - public static void i(g1.a aVar, d1 d1Var) { - } - - public static void j(g1.a aVar, int i) { - } - - public static void k(g1.a aVar, int i) { - } - - public static void l(g1.a aVar, ExoPlaybackException exoPlaybackException) { - } - - @Deprecated - public static void m(g1.a aVar, boolean z2, int i) { - } - - public static void n(g1.a aVar, int i) { - } - - public static void o(g1.a aVar, int i) { - } - - @Deprecated - public static void p(g1.a aVar) { - } - - public static void q(g1.a aVar, boolean z2) { - } - - /* JADX WARN: Incorrect args count in method signature: (Ljava/util/List;)V */ - public static void r(g1.a aVar, List list) { - } - - public static void s(g1.a aVar, r1 r1Var, int i) { - aVar.C(r1Var, r1Var.p() == 1 ? r1Var.n(0, new r1.c()).f : null, i); - } - - @Deprecated - public static void t(g1.a aVar, @Nullable r1 r1Var, Object obj, int i) { - } - - public static void u(g1.a aVar, TrackGroupArray trackGroupArray, k kVar) { - } -} diff --git a/app/src/main/java/c/i/a/c/f2/a.java b/app/src/main/java/c/i/a/c/f2/a.java deleted file mode 100644 index 668a9d52fd..0000000000 --- a/app/src/main/java/c/i/a/c/f2/a.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.f2; - -import com.google.android.exoplayer2.Format; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class a implements Comparator { - public static final /* synthetic */ a i = new a(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - return ((Format) obj2).p - ((Format) obj).p; - } -} diff --git a/app/src/main/java/c/i/a/c/f2/b.java b/app/src/main/java/c/i/a/c/f2/b.java deleted file mode 100644 index dfb7e8d0dd..0000000000 --- a/app/src/main/java/c/i/a/c/f2/b.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.f2; - -import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Comparator { - public static final /* synthetic */ b i = new b(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - Integer num = (Integer) obj; - Integer num2 = (Integer) obj2; - int[] iArr = DefaultTrackSelector.f2255c; - return 0; - } -} diff --git a/app/src/main/java/c/i/a/c/f2/c.java b/app/src/main/java/c/i/a/c/f2/c.java deleted file mode 100644 index 5cb50c46c4..0000000000 --- a/app/src/main/java/c/i/a/c/f2/c.java +++ /dev/null @@ -1,22 +0,0 @@ -package c.i.a.c.f2; - -import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class c implements Comparator { - public static final /* synthetic */ c i = new c(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - Integer num = (Integer) obj; - Integer num2 = (Integer) obj2; - int[] iArr = DefaultTrackSelector.f2255c; - if (num.intValue() == -1) { - return num2.intValue() == -1 ? 0 : -1; - } - if (num2.intValue() == -1) { - return 1; - } - return num.intValue() - num2.intValue(); - } -} diff --git a/app/src/main/java/c/i/a/c/f2/d.java b/app/src/main/java/c/i/a/c/f2/d.java deleted file mode 100644 index ef3711eea9..0000000000 --- a/app/src/main/java/c/i/a/c/f2/d.java +++ /dev/null @@ -1,84 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.CallSuper; -import androidx.annotation.Nullable; -import c.i.a.c.f2.g; -import c.i.a.c.i2.g; -import c.i.b.b.u; -import com.google.android.exoplayer2.source.TrackGroup; -import java.util.List; -/* compiled from: AdaptiveTrackSelection */ -public class d extends e { - public final c.i.a.c.h2.d f; - public final g g; - - /* compiled from: AdaptiveTrackSelection */ - public static final class a { - public final long a; - public final long b; - - public a(long j, long j2) { - this.a = j; - this.b = j2; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (!(obj instanceof a)) { - return false; - } - a aVar = (a) obj; - return this.a == aVar.a && this.b == aVar.b; - } - - public int hashCode() { - return (((int) this.a) * 31) + ((int) this.b); - } - } - - /* compiled from: AdaptiveTrackSelection */ - public static class b implements g.b { - public final c.i.a.c.i2.g a = c.i.a.c.i2.g.a; - } - - public d(TrackGroup trackGroup, int[] iArr, c.i.a.c.h2.d dVar, long j, long j2, long j3, float f, float f2, List
list, c.i.a.c.i2.g gVar) { - super(trackGroup, iArr); - this.f = dVar; - u.n(list); - this.g = gVar; - } - - public static void l(List> list, long[] jArr) { - long j = 0; - for (long j2 : jArr) { - j += j2; - } - for (int i = 0; i < list.size(); i++) { - u.a aVar = list.get(i); - if (aVar != null) { - aVar.b(new a(j, jArr[i])); - } - } - } - - @Override // c.i.a.c.f2.g - public int b() { - return 0; - } - - @Override // c.i.a.c.f2.e, c.i.a.c.f2.g - @CallSuper - public void e() { - } - - @Override // c.i.a.c.f2.e, c.i.a.c.f2.g - @CallSuper - public void g() { - } - - @Override // c.i.a.c.f2.e, c.i.a.c.f2.g - public void i(float f) { - } -} diff --git a/app/src/main/java/c/i/a/c/f2/e.java b/app/src/main/java/c/i/a/c/f2/e.java deleted file mode 100644 index b79112a94d..0000000000 --- a/app/src/main/java/c/i/a/c/f2/e.java +++ /dev/null @@ -1,127 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.source.TrackGroup; -import java.util.Arrays; -import java.util.Objects; -/* compiled from: BaseTrackSelection */ -public abstract class e implements g { - public final TrackGroup a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final int[] f860c; - public final Format[] d; - public int e; - - public e(TrackGroup trackGroup, int... iArr) { - AnimatableValueParser.D(iArr.length > 0); - Objects.requireNonNull(trackGroup); - this.a = trackGroup; - int length = iArr.length; - this.b = length; - this.d = new Format[length]; - for (int i = 0; i < iArr.length; i++) { - this.d[i] = trackGroup.j[iArr[i]]; - } - Arrays.sort(this.d, a.i); - this.f860c = new int[this.b]; - int i2 = 0; - while (true) { - int i3 = this.b; - if (i2 < i3) { - int[] iArr2 = this.f860c; - Format format = this.d[i2]; - int i4 = 0; - while (true) { - Format[] formatArr = trackGroup.j; - if (i4 >= formatArr.length) { - i4 = -1; - break; - } else if (format == formatArr[i4]) { - break; - } else { - i4++; - } - } - iArr2[i2] = i4; - i2++; - } else { - long[] jArr = new long[i3]; - return; - } - } - } - - @Override // c.i.a.c.f2.j - public final TrackGroup a() { - return this.a; - } - - @Override // c.i.a.c.f2.g - public /* synthetic */ void c(boolean z2) { - f.b(this, z2); - } - - @Override // c.i.a.c.f2.j - public final Format d(int i) { - return this.d[i]; - } - - @Override // c.i.a.c.f2.g - public void e() { - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - e eVar = (e) obj; - return this.a == eVar.a && Arrays.equals(this.f860c, eVar.f860c); - } - - @Override // c.i.a.c.f2.j - public final int f(int i) { - return this.f860c[i]; - } - - @Override // c.i.a.c.f2.g - public void g() { - } - - @Override // c.i.a.c.f2.g - public final Format h() { - return this.d[b()]; - } - - public int hashCode() { - if (this.e == 0) { - this.e = Arrays.hashCode(this.f860c) + (System.identityHashCode(this.a) * 31); - } - return this.e; - } - - @Override // c.i.a.c.f2.g - public void i(float f) { - } - - @Override // c.i.a.c.f2.g - public /* synthetic */ void j() { - f.a(this); - } - - @Override // c.i.a.c.f2.g - public /* synthetic */ void k() { - f.c(this); - } - - @Override // c.i.a.c.f2.j - public final int length() { - return this.f860c.length; - } -} diff --git a/app/src/main/java/c/i/a/c/f2/f.java b/app/src/main/java/c/i/a/c/f2/f.java deleted file mode 100644 index 9eaa854a55..0000000000 --- a/app/src/main/java/c/i/a/c/f2/f.java +++ /dev/null @@ -1,12 +0,0 @@ -package c.i.a.c.f2; -/* compiled from: ExoTrackSelection */ -public final /* synthetic */ class f { - public static void a(g gVar) { - } - - public static void b(g gVar, boolean z2) { - } - - public static void c(g gVar) { - } -} diff --git a/app/src/main/java/c/i/a/c/f2/g.java b/app/src/main/java/c/i/a/c/f2/g.java deleted file mode 100644 index 0e4fda4221..0000000000 --- a/app/src/main/java/c/i/a/c/f2/g.java +++ /dev/null @@ -1,53 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.source.TrackGroup; -/* compiled from: ExoTrackSelection */ -public interface g extends j { - - /* compiled from: ExoTrackSelection */ - public static final class a { - public final TrackGroup a; - public final int[] b; - - /* renamed from: c reason: collision with root package name */ - public final int f861c; - @Nullable - public final Object d; - - public a(TrackGroup trackGroup, int... iArr) { - this.a = trackGroup; - this.b = iArr; - this.f861c = 0; - this.d = null; - } - - public a(TrackGroup trackGroup, int[] iArr, int i, @Nullable Object obj) { - this.a = trackGroup; - this.b = iArr; - this.f861c = i; - this.d = obj; - } - } - - /* compiled from: ExoTrackSelection */ - public interface b { - } - - int b(); - - void c(boolean z2); - - void e(); - - void g(); - - Format h(); - - void i(float f); - - void j(); - - void k(); -} diff --git a/app/src/main/java/c/i/a/c/f2/h.java b/app/src/main/java/c/i/a/c/f2/h.java deleted file mode 100644 index c9deedd0e5..0000000000 --- a/app/src/main/java/c/i/a/c/f2/h.java +++ /dev/null @@ -1,19 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import com.google.android.exoplayer2.source.TrackGroup; -/* compiled from: FixedTrackSelection */ -public final class h extends e { - @Nullable - public final Object f; - - public h(TrackGroup trackGroup, int i, int i2, @Nullable Object obj) { - super(trackGroup, i); - this.f = obj; - } - - @Override // c.i.a.c.f2.g - public int b() { - return 0; - } -} diff --git a/app/src/main/java/c/i/a/c/f2/i.java b/app/src/main/java/c/i/a/c/f2/i.java deleted file mode 100644 index 1821b944a6..0000000000 --- a/app/src/main/java/c/i/a/c/f2/i.java +++ /dev/null @@ -1,889 +0,0 @@ -package c.i.a.c.f2; - -import android.text.TextUtils; -import android.util.Pair; -import androidx.annotation.Nullable; -import c.i.a.c.d2.y; -import c.i.a.c.f2.d; -import c.i.a.c.f2.g; -import c.i.a.c.g0; -import c.i.a.c.h2.d; -import c.i.a.c.i2.f0; -import c.i.a.c.i2.s; -import c.i.a.c.l1; -import c.i.a.c.m1; -import c.i.a.c.r1; -import c.i.a.f.e.o.c; -import c.i.b.b.f; -import c.i.b.b.l0; -import c.i.b.b.m0; -import c.i.b.b.o0; -import c.i.b.b.q0; -import c.i.b.b.s; -import c.i.b.b.u; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.source.TrackGroup; -import com.google.android.exoplayer2.source.TrackGroupArray; -import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.TreeMap; -/* compiled from: MappingTrackSelector */ -public abstract class i extends l { - @Nullable - public a b; - - /* compiled from: MappingTrackSelector */ - public static final class a { - public final int a; - public final int[] b; - - /* renamed from: c reason: collision with root package name */ - public final TrackGroupArray[] f862c; - public final int[] d; - public final int[][][] e; - - public a(String[] strArr, int[] iArr, TrackGroupArray[] trackGroupArrayArr, int[] iArr2, int[][][] iArr3, TrackGroupArray trackGroupArray) { - this.b = iArr; - this.f862c = trackGroupArrayArr; - this.e = iArr3; - this.d = iArr2; - this.a = iArr.length; - } - } - - @Override // c.i.a.c.f2.l - public final void a(@Nullable Object obj) { - this.b = (a) obj; - } - - /* JADX WARNING: Code restructure failed: missing block: B:435:0x0920, code lost: - if (r6 == 2) goto L_0x0926; - */ - /* JADX WARNING: Removed duplicated region for block: B:108:0x029a A[LOOP:8: B:65:0x0166->B:108:0x029a, LOOP_END] */ - /* JADX WARNING: Removed duplicated region for block: B:222:0x04c9 */ - /* JADX WARNING: Removed duplicated region for block: B:424:0x0902 */ - /* JADX WARNING: Removed duplicated region for block: B:425:0x0905 */ - /* JADX WARNING: Removed duplicated region for block: B:485:0x0294 A[SYNTHETIC] */ - @Override // c.i.a.c.f2.l - public final m b(l1[] l1VarArr, TrackGroupArray trackGroupArray, y.a aVar, r1 r1Var) throws ExoPlaybackException { - int i; - boolean z2; - boolean z3; - boolean z4; - g gVar; - int[] iArr; - int[] iArr2; - DefaultTrackSelector.Parameters parameters; - String str; - Pair pair; - TrackGroup trackGroup; - int[][] iArr3; - String str2; - int[][] iArr4; - DefaultTrackSelector.Parameters parameters2; - a aVar2; - int i2; - int i3; - String str3; - Pair pair2; - g.a aVar3; - int[] iArr5; - int i4; - int i5; - int i6; - String str4; - int i7; - TrackGroup trackGroup2; - int i8; - g.a[] aVarArr; - int i9; - int[][][] iArr6; - int[] iArr7; - DefaultTrackSelector defaultTrackSelector; - DefaultTrackSelector.Parameters parameters3; - boolean z5; - TrackGroupArray trackGroupArray2; - DefaultTrackSelector.Parameters parameters4; - int[][] iArr8; - a aVar4; - g.a aVar5; - boolean z6; - int[] iArr9; - ArrayList arrayList; - List list; - String str5; - ArrayList arrayList2; - int i10; - HashSet hashSet; - int[] iArr10; - TrackGroupArray trackGroupArray3 = trackGroupArray; - int[] iArr11 = new int[(l1VarArr.length + 1)]; - int length = l1VarArr.length + 1; - TrackGroup[][] trackGroupArr = new TrackGroup[length][]; - int[][][] iArr12 = new int[(l1VarArr.length + 1)][][]; - char c2 = 0; - for (int i11 = 0; i11 < length; i11++) { - int i12 = trackGroupArray3.j; - trackGroupArr[i11] = new TrackGroup[i12]; - iArr12[i11] = new int[i12][]; - } - int length2 = l1VarArr.length; - int[] iArr13 = new int[length2]; - for (int i13 = 0; i13 < length2; i13++) { - iArr13[i13] = l1VarArr[i13].p(); - } - int i14 = 0; - while (i14 < trackGroupArray3.j) { - TrackGroup trackGroup3 = trackGroupArray3.k[i14]; - boolean z7 = s.g(trackGroup3.j[c2].t) == 5; - int length3 = l1VarArr.length; - int i15 = 0; - boolean z8 = true; - for (int i16 = 0; i16 < l1VarArr.length; i16++) { - l1 l1Var = l1VarArr[i16]; - int i17 = 0; - for (int i18 = 0; i18 < trackGroup3.i; i18++) { - i17 = Math.max(i17, l1Var.a(trackGroup3.j[i18]) & 7); - } - boolean z9 = iArr11[i16] == 0; - if (i17 > i15 || (i17 == i15 && z7 && !z8 && z9)) { - i15 = i17; - z8 = z9; - length3 = i16; - } - } - if (length3 == l1VarArr.length) { - iArr10 = new int[trackGroup3.i]; - } else { - l1 l1Var2 = l1VarArr[length3]; - int[] iArr14 = new int[trackGroup3.i]; - for (int i19 = 0; i19 < trackGroup3.i; i19++) { - iArr14[i19] = l1Var2.a(trackGroup3.j[i19]); - } - iArr10 = iArr14; - } - int i20 = iArr11[length3]; - trackGroupArr[length3][i20] = trackGroup3; - iArr12[length3][i20] = iArr10; - iArr11[length3] = iArr11[length3] + 1; - i14++; - trackGroupArray3 = trackGroupArray; - c2 = 0; - } - TrackGroupArray[] trackGroupArrayArr = new TrackGroupArray[l1VarArr.length]; - String[] strArr = new String[l1VarArr.length]; - int[] iArr15 = new int[l1VarArr.length]; - for (int i21 = 0; i21 < l1VarArr.length; i21++) { - int i22 = iArr11[i21]; - trackGroupArrayArr[i21] = new TrackGroupArray((TrackGroup[]) f0.C(trackGroupArr[i21], i22)); - iArr12[i21] = (int[][]) f0.C(iArr12[i21], i22); - strArr[i21] = l1VarArr[i21].getName(); - iArr15[i21] = ((g0) l1VarArr[i21]).i; - } - a aVar6 = new a(strArr, iArr15, trackGroupArrayArr, iArr13, iArr12, new TrackGroupArray((TrackGroup[]) f0.C(trackGroupArr[l1VarArr.length], iArr11[l1VarArr.length]))); - DefaultTrackSelector defaultTrackSelector2 = (DefaultTrackSelector) this; - DefaultTrackSelector.Parameters parameters5 = defaultTrackSelector2.g.get(); - int i23 = aVar6.a; - g.a[] aVarArr2 = new g.a[i23]; - a aVar7 = aVar6; - DefaultTrackSelector.Parameters parameters6 = parameters5; - int i24 = 0; - boolean z10 = false; - boolean z11 = false; - while (i24 < i23) { - if (2 == aVar7.b[i24]) { - if (!z11) { - TrackGroupArray trackGroupArray4 = aVar7.f862c[i24]; - int[][] iArr16 = iArr12[i24]; - int i25 = iArr13[i24]; - if (!parameters6.N && !parameters6.M) { - int i26 = parameters6.A ? 24 : 16; - boolean z12 = parameters6.f2259z && (i25 & i26) != 0; - DefaultTrackSelector.Parameters parameters7 = parameters6; - int i27 = 0; - while (true) { - if (i27 >= trackGroupArray4.j) { - break; - } - TrackGroup trackGroup4 = trackGroupArray4.k[i27]; - int[] iArr17 = iArr16[i27]; - defaultTrackSelector = defaultTrackSelector2; - int i28 = parameters7.q; - iArr7 = iArr13; - int i29 = parameters7.r; - iArr6 = iArr12; - int i30 = parameters7.f2256s; - i9 = i23; - int i31 = parameters7.t; - z5 = z10; - int i32 = parameters7.u; - aVar4 = aVar6; - int i33 = parameters7.v; - aVarArr = aVarArr2; - int i34 = parameters7.w; - i8 = i24; - int i35 = parameters7.f2257x; - iArr8 = iArr16; - int i36 = parameters7.B; - parameters4 = parameters5; - int i37 = parameters7.C; - boolean z13 = parameters7.D; - trackGroupArray2 = trackGroupArray4; - if (trackGroup4.i < 2) { - iArr9 = DefaultTrackSelector.f2255c; - } else { - List d = DefaultTrackSelector.d(trackGroup4, i36, i37, z13); - ArrayList arrayList3 = (ArrayList) d; - if (arrayList3.size() < 2) { - iArr9 = DefaultTrackSelector.f2255c; - } else { - if (!z12) { - HashSet hashSet2 = new HashSet(); - z6 = z12; - int i38 = 0; - int i39 = 0; - str5 = null; - while (i39 < arrayList3.size()) { - String str6 = trackGroup4.j[((Integer) arrayList3.get(i39)).intValue()].t; - if (hashSet2.add(str6)) { - hashSet = hashSet2; - i10 = i39; - int i40 = 0; - int i41 = 0; - while (i41 < arrayList3.size()) { - int intValue = ((Integer) arrayList3.get(i41)).intValue(); - if (DefaultTrackSelector.f(trackGroup4.j[intValue], str6, iArr17[intValue], i26, i28, i29, i30, i31, i32, i33, i34, i35)) { - i40++; - } - i41++; - arrayList3 = arrayList3; - } - arrayList2 = arrayList3; - if (i40 > i38) { - str5 = str6; - i38 = i40; - } - } else { - arrayList2 = arrayList3; - hashSet = hashSet2; - i10 = i39; - } - i39 = i10 + 1; - d = d; - hashSet2 = hashSet; - arrayList3 = arrayList2; - } - list = d; - arrayList = arrayList3; - } else { - list = d; - arrayList = arrayList3; - z6 = z12; - str5 = null; - } - int size = arrayList.size(); - while (true) { - size--; - if (size < 0) { - break; - } - int intValue2 = ((Integer) arrayList.get(size)).intValue(); - if (!DefaultTrackSelector.f(trackGroup4.j[intValue2], str5, iArr17[intValue2], i26, i28, i29, i30, i31, i32, i33, i34, i35)) { - arrayList.remove(size); - } - arrayList = arrayList; - } - iArr9 = arrayList.size() < 2 ? DefaultTrackSelector.f2255c : c.k0(list); - if (iArr9.length <= 0) { - aVar5 = new g.a(trackGroup4, iArr9); - break; - } - i27++; - defaultTrackSelector2 = defaultTrackSelector; - iArr13 = iArr7; - iArr12 = iArr6; - i23 = i9; - z10 = z5; - aVar6 = aVar4; - aVarArr2 = aVarArr; - i24 = i8; - iArr16 = iArr8; - parameters5 = parameters4; - parameters7 = parameters5; - trackGroupArray4 = trackGroupArray2; - z12 = z6; - } - } - z6 = z12; - if (iArr9.length <= 0) { - } - } - } - aVar4 = aVar6; - trackGroupArray2 = trackGroupArray4; - defaultTrackSelector = defaultTrackSelector2; - parameters4 = parameters5; - i9 = i23; - aVarArr = aVarArr2; - iArr6 = iArr12; - i8 = i24; - z5 = z10; - iArr8 = iArr16; - iArr7 = iArr13; - aVar5 = null; - if (aVar5 == null) { - TrackGroup trackGroup5 = null; - DefaultTrackSelector.e eVar = null; - int i42 = 0; - int i43 = -1; - while (i42 < trackGroupArray2.j) { - TrackGroup trackGroup6 = trackGroupArray2.k[i42]; - List d2 = DefaultTrackSelector.d(trackGroup6, parameters4.B, parameters4.C, parameters4.D); - int[] iArr18 = iArr8[i42]; - DefaultTrackSelector.e eVar2 = eVar; - TrackGroup trackGroup7 = trackGroup5; - for (int i44 = 0; i44 < trackGroup6.i; i44++) { - Format format = trackGroup6.j[i44]; - if ((format.m & 16384) == 0 && DefaultTrackSelector.e(iArr18[i44], parameters4.O)) { - DefaultTrackSelector.e eVar3 = new DefaultTrackSelector.e(format, parameters4, iArr18[i44], ((ArrayList) d2).contains(Integer.valueOf(i44))); - if ((eVar3.i || parameters4.f2258y) && (eVar2 == null || eVar3.compareTo(eVar2) > 0)) { - i43 = i44; - trackGroup7 = trackGroup6; - eVar2 = eVar3; - } - } - } - i42++; - trackGroup5 = trackGroup7; - parameters4 = parameters4; - eVar = eVar2; - } - parameters3 = parameters4; - aVar5 = trackGroup5 == null ? null : new g.a(trackGroup5, i43); - } else { - parameters3 = parameters4; - } - aVarArr[i8] = aVar5; - z11 = aVarArr[i8] != null; - parameters6 = parameters3; - aVar6 = aVar4; - } else { - defaultTrackSelector = defaultTrackSelector2; - i9 = i23; - aVarArr = aVarArr2; - iArr6 = iArr12; - i8 = i24; - z5 = z10; - iArr7 = iArr13; - parameters3 = parameters5; - } - aVar7 = aVar6; - z10 = z5 | (aVar6.f862c[i8].j > 0); - } else { - defaultTrackSelector = defaultTrackSelector2; - i9 = i23; - aVarArr = aVarArr2; - iArr6 = iArr12; - i8 = i24; - iArr7 = iArr13; - parameters3 = parameters5; - } - i24 = i8 + 1; - parameters5 = parameters3; - defaultTrackSelector2 = defaultTrackSelector; - iArr13 = iArr7; - iArr12 = iArr6; - i23 = i9; - aVarArr2 = aVarArr; - } - DefaultTrackSelector.Parameters parameters8 = parameters5; - int i45 = i23; - String str7 = null; - DefaultTrackSelector.a aVar8 = null; - int i46 = -1; - int i47 = 0; - while (i47 < i45) { - if (1 == aVar7.b[i47]) { - boolean z14 = parameters6.Q || !z10; - TrackGroupArray trackGroupArray5 = aVar7.f862c[i47]; - int[][] iArr19 = iArr12[i47]; - int i48 = iArr13[i47]; - DefaultTrackSelector.a aVar9 = null; - int i49 = -1; - int i50 = -1; - int i51 = 0; - while (i51 < trackGroupArray5.j) { - TrackGroup trackGroup8 = trackGroupArray5.k[i51]; - int[] iArr20 = iArr19[i51]; - int i52 = i49; - int i53 = i50; - DefaultTrackSelector.a aVar10 = aVar9; - int i54 = 0; - while (i54 < trackGroup8.i) { - if (DefaultTrackSelector.e(iArr20[i54], parameters6.O)) { - trackGroup2 = trackGroup8; - DefaultTrackSelector.a aVar11 = new DefaultTrackSelector.a(trackGroup8.j[i54], parameters6, iArr20[i54]); - if ((aVar11.i || parameters6.H) && (aVar10 == null || aVar11.compareTo(aVar10) > 0)) { - i53 = i54; - aVar10 = aVar11; - i52 = i51; - } - } else { - trackGroup2 = trackGroup8; - } - i54++; - str7 = str7; - trackGroup8 = trackGroup2; - } - i51++; - aVar9 = aVar10; - i50 = i53; - i49 = i52; - } - str3 = str7; - if (i49 == -1) { - aVar2 = aVar6; - i3 = i47; - parameters2 = parameters8; - i2 = i45; - pair2 = null; - } else { - TrackGroup trackGroup9 = trackGroupArray5.k[i49]; - if (parameters6.N || parameters6.M || !z14) { - aVar2 = aVar6; - i3 = i47; - parameters2 = parameters8; - i2 = i45; - } else { - int[] iArr21 = iArr19[i49]; - int i55 = parameters6.G; - boolean z15 = parameters6.I; - boolean z16 = parameters6.J; - boolean z17 = parameters6.K; - Format format2 = trackGroup9.j[i50]; - int[] iArr22 = new int[trackGroup9.i]; - aVar2 = aVar6; - parameters2 = parameters8; - i2 = i45; - int i56 = 0; - int i57 = 0; - while (i57 < trackGroup9.i) { - if (i57 != i50) { - Format format3 = trackGroup9.j[i57]; - i4 = i47; - iArr5 = iArr21; - if (!(DefaultTrackSelector.e(iArr21[i57], false) && (i5 = format3.p) != -1 && i5 <= i55 && (z17 || ((i7 = format3.G) != -1 && i7 == format2.G)) && ((z15 || ((str4 = format3.t) != null && TextUtils.equals(str4, format2.t))) && (z16 || ((i6 = format3.H) != -1 && i6 == format2.H))))) { - i57++; - i47 = i4; - iArr21 = iArr5; - } - } else { - i4 = i47; - iArr5 = iArr21; - } - iArr22[i56] = i57; - i56++; - i57++; - i47 = i4; - iArr21 = iArr5; - } - i3 = i47; - int[] copyOf = Arrays.copyOf(iArr22, i56); - if (copyOf.length > 1) { - aVar3 = new g.a(trackGroup9, copyOf); - if (aVar3 == null) { - aVar3 = new g.a(trackGroup9, i50); - } - Objects.requireNonNull(aVar9); - pair2 = Pair.create(aVar3, aVar9); - } - } - aVar3 = null; - if (aVar3 == null) { - } - Objects.requireNonNull(aVar9); - pair2 = Pair.create(aVar3, aVar9); - } - if (pair2 != null && (aVar8 == null || ((DefaultTrackSelector.a) pair2.second).compareTo(aVar8) > 0)) { - if (i46 != -1) { - aVarArr2[i46] = null; - } - g.a aVar12 = (g.a) pair2.first; - aVarArr2[i3] = aVar12; - str7 = aVar12.a.j[aVar12.b[0]].k; - aVar8 = (DefaultTrackSelector.a) pair2.second; - i46 = i3; - i47 = i3 + 1; - i45 = i2; - aVar6 = aVar2; - aVar7 = aVar6; - parameters8 = parameters2; - parameters6 = parameters8; - } - } else { - aVar2 = aVar6; - str3 = str7; - i3 = i47; - parameters2 = parameters8; - i2 = i45; - } - str7 = str3; - i47 = i3 + 1; - i45 = i2; - aVar6 = aVar2; - aVar7 = aVar6; - parameters8 = parameters2; - parameters6 = parameters8; - } - a aVar13 = aVar6; - String str8 = str7; - DefaultTrackSelector.Parameters parameters9 = parameters8; - DefaultTrackSelector.d dVar = null; - int i58 = 0; - int i59 = -1; - while (i58 < i45) { - int i60 = aVar13.b[i58]; - if (i60 == 1 || i60 == 2) { - str = str8; - parameters = parameters9; - } else if (i60 != 3) { - TrackGroupArray trackGroupArray6 = aVar13.f862c[i58]; - int[][] iArr23 = iArr12[i58]; - TrackGroup trackGroup10 = null; - DefaultTrackSelector.b bVar = null; - int i61 = 0; - int i62 = 0; - while (i61 < trackGroupArray6.j) { - TrackGroup trackGroup11 = trackGroupArray6.k[i61]; - int[] iArr24 = iArr23[i61]; - int i63 = i62; - DefaultTrackSelector.b bVar2 = bVar; - TrackGroup trackGroup12 = trackGroup10; - int i64 = 0; - while (i64 < trackGroup11.i) { - if (DefaultTrackSelector.e(iArr24[i64], parameters9.O)) { - iArr4 = iArr23; - DefaultTrackSelector.b bVar3 = new DefaultTrackSelector.b(trackGroup11.j[i64], iArr24[i64]); - if (bVar2 == null || bVar3.compareTo(bVar2) > 0) { - i63 = i64; - trackGroup12 = trackGroup11; - bVar2 = bVar3; - } - } else { - iArr4 = iArr23; - } - i64++; - parameters9 = parameters9; - trackGroupArray6 = trackGroupArray6; - iArr23 = iArr4; - } - i61++; - trackGroup10 = trackGroup12; - bVar = bVar2; - i62 = i63; - } - parameters = parameters9; - aVarArr2[i58] = trackGroup10 == null ? null : new g.a(trackGroup10, i62); - str = str8; - } else { - parameters = parameters9; - TrackGroupArray trackGroupArray7 = aVar13.f862c[i58]; - int[][] iArr25 = iArr12[i58]; - TrackGroup trackGroup13 = null; - DefaultTrackSelector.d dVar2 = null; - int i65 = -1; - int i66 = 0; - while (i66 < trackGroupArray7.j) { - TrackGroup trackGroup14 = trackGroupArray7.k[i66]; - int[] iArr26 = iArr25[i66]; - int i67 = i65; - DefaultTrackSelector.d dVar3 = dVar2; - TrackGroup trackGroup15 = trackGroup13; - int i68 = 0; - while (i68 < trackGroup14.i) { - if (DefaultTrackSelector.e(iArr26[i68], parameters.O)) { - iArr3 = iArr25; - trackGroup = trackGroup14; - str2 = str8; - DefaultTrackSelector.d dVar4 = new DefaultTrackSelector.d(trackGroup14.j[i68], parameters, iArr26[i68], str2); - if (dVar4.i && (dVar3 == null || dVar4.compareTo(dVar3) > 0)) { - i67 = i68; - dVar3 = dVar4; - trackGroup15 = trackGroup; - } - } else { - iArr3 = iArr25; - trackGroup = trackGroup14; - str2 = str8; - } - i68++; - str8 = str2; - trackGroupArray7 = trackGroupArray7; - iArr25 = iArr3; - trackGroup14 = trackGroup; - } - i66++; - trackGroup13 = trackGroup15; - dVar2 = dVar3; - i65 = i67; - } - str = str8; - if (trackGroup13 == null) { - pair = null; - } else { - g.a aVar14 = new g.a(trackGroup13, i65); - Objects.requireNonNull(dVar2); - pair = Pair.create(aVar14, dVar2); - } - if (pair != null && (dVar == null || ((DefaultTrackSelector.d) pair.second).compareTo(dVar) > 0)) { - if (i59 != -1) { - aVarArr2[i59] = null; - } - aVarArr2[i58] = (g.a) pair.first; - dVar = (DefaultTrackSelector.d) pair.second; - i59 = i58; - } - } - i58++; - aVar13 = aVar13; - str8 = str; - parameters9 = parameters; - } - for (int i69 = 0; i69 < i45; i69++) { - if (parameters9.S.get(i69)) { - aVarArr2[i69] = null; - } else { - TrackGroupArray trackGroupArray8 = aVar13.f862c[i69]; - Map map = parameters9.R.get(i69); - if (map != null && map.containsKey(trackGroupArray8)) { - Map map2 = parameters9.R.get(i69); - DefaultTrackSelector.SelectionOverride selectionOverride = map2 != null ? map2.get(trackGroupArray8) : null; - aVarArr2[i69] = selectionOverride == null ? null : new g.a(trackGroupArray8.k[selectionOverride.i], selectionOverride.j, selectionOverride.l, Integer.valueOf(selectionOverride.m)); - } - } - } - g.b bVar4 = defaultTrackSelector2.f; - d dVar5 = defaultTrackSelector2.a; - Objects.requireNonNull(dVar5); - Objects.requireNonNull((d.b) bVar4); - ArrayList arrayList4 = new ArrayList(); - for (int i70 = 0; i70 < i45; i70++) { - if (aVarArr2[i70] == null || aVarArr2[i70].b.length <= 1) { - arrayList4.add(null); - } else { - c.i.b.b.a aVar15 = u.j; - u.a aVar16 = new u.a(); - aVar16.b(new d.a(0, 0)); - arrayList4.add(aVar16); - } - } - long[][] jArr = new long[i45][]; - for (int i71 = 0; i71 < i45; i71++) { - g.a aVar17 = aVarArr2[i71]; - if (aVar17 == null) { - jArr[i71] = new long[0]; - } else { - jArr[i71] = new long[aVar17.b.length]; - int i72 = 0; - while (true) { - int[] iArr27 = aVar17.b; - if (i72 >= iArr27.length) { - break; - } - jArr[i71][i72] = (long) aVar17.a.j[iArr27[i72]].p; - i72++; - } - Arrays.sort(jArr[i71]); - } - } - int[] iArr28 = new int[i45]; - long[] jArr2 = new long[i45]; - for (int i73 = 0; i73 < i45; i73++) { - jArr2[i73] = jArr[i73].length == 0 ? 0 : jArr[i73][0]; - } - d.l(arrayList4, jArr2); - o0 o0Var = o0.i; - c.n(2, "expectedValuesPerKey"); - m0 m0Var = new m0(new TreeMap(o0Var), new l0(2)); - int i74 = 0; - while (i74 < i45) { - if (jArr[i74].length <= 1) { - iArr = iArr28; - } else { - int length4 = jArr[i74].length; - double[] dArr = new double[length4]; - int i75 = 0; - while (true) { - double d3 = 0.0d; - if (i75 >= jArr[i74].length) { - break; - } - if (jArr[i74][i75] == -1) { - iArr2 = iArr28; - } else { - iArr2 = iArr28; - d3 = Math.log((double) jArr[i74][i75]); - } - dArr[i75] = d3; - i75++; - iArr28 = iArr2; - } - iArr = iArr28; - int i76 = length4 - 1; - double d4 = dArr[i76] - dArr[0]; - int i77 = 0; - while (i77 < i76) { - double d5 = dArr[i77]; - i77++; - Double valueOf = Double.valueOf(d4 == 0.0d ? 1.0d : (((d5 + dArr[i77]) * 0.5d) - dArr[0]) / d4); - Integer valueOf2 = Integer.valueOf(i74); - Collection collection = (Collection) m0Var.l.get(valueOf); - if (collection == null) { - Collection h = m0Var.h(); - if (h.add(valueOf2)) { - m0Var.m++; - m0Var.l.put(valueOf, h); - } else { - throw new AssertionError("New Collection violated the Collection spec"); - } - } else if (collection.add(valueOf2)) { - m0Var.m++; - } - i76 = i76; - d4 = d4; - } - continue; - } - i74++; - iArr28 = iArr; - } - Collection collection2 = m0Var.j; - if (collection2 == null) { - collection2 = new f.a(); - m0Var.j = collection2; - } - u n = u.n(collection2); - for (int i78 = 0; i78 < n.size(); i78++) { - int intValue3 = n.get(i78).intValue(); - int i79 = iArr28[intValue3] + 1; - iArr28[intValue3] = i79; - jArr2[intValue3] = jArr[intValue3][i79]; - d.l(arrayList4, jArr2); - } - for (int i80 = 0; i80 < i45; i80++) { - if (arrayList4.get(i80) != null) { - jArr2[i80] = jArr2[i80] * 2; - } - } - d.l(arrayList4, jArr2); - c.n(4, "initialCapacity"); - Object[] objArr = new Object[4]; - int i81 = 0; - int i82 = 0; - while (i81 < arrayList4.size()) { - u.a aVar18 = (u.a) arrayList4.get(i81); - u c3 = aVar18 == null ? q0.k : aVar18.c(); - Objects.requireNonNull(c3); - int i83 = i82 + 1; - if (objArr.length < i83) { - objArr = Arrays.copyOf(objArr, s.b.a(objArr.length, i83)); - } - objArr[i82] = c3; - i81++; - i82 = i83; - } - u l = u.l(objArr, i82); - g[] gVarArr = new g[i45]; - for (int i84 = 0; i84 < i45; i84++) { - g.a aVar19 = aVarArr2[i84]; - if (aVar19 != null) { - int[] iArr29 = aVar19.b; - if (iArr29.length != 0) { - if (iArr29.length == 1) { - gVar = new h(aVar19.a, iArr29[0], aVar19.f861c, aVar19.d); - } else { - long j = (long) 25000; - gVar = new d(aVar19.a, iArr29, dVar5, (long) 10000, j, j, 0.7f, 0.75f, l.get(i84), c.i.a.c.i2.g.a); - } - gVarArr[i84] = gVar; - } - } - } - m1[] m1VarArr = new m1[i45]; - for (int i85 = 0; i85 < i45; i85++) { - if (!parameters9.S.get(i85)) { - if (aVar13.b[i85] == 7 || gVarArr[i85] != null) { - z4 = true; - m1VarArr[i85] = !z4 ? m1.a : null; - } - } - z4 = false; - m1VarArr[i85] = !z4 ? m1.a : null; - } - if (parameters9.P) { - int i86 = 0; - int i87 = -1; - int i88 = -1; - while (true) { - if (i86 >= aVar13.a) { - i = -1; - z2 = true; - break; - } - int i89 = aVar13.b[i86]; - g gVar2 = gVarArr[i86]; - if (i89 == 1) { - if (gVar2 != null) { - int[][] iArr30 = iArr12[i86]; - int a2 = aVar13.f862c[i86].a(gVar2.a()); - int i90 = 0; - while (true) { - if (i90 >= gVar2.length()) { - z3 = true; - break; - } else if ((iArr30[a2][gVar2.f(i90)] & 32) != 32) { - z3 = false; - break; - } else { - i90++; - } - } - if (z3) { - if (i89 == 1) { - i = -1; - if (i88 != -1) { - break; - } - i88 = i86; - i86++; - } else { - i = -1; - if (i87 != -1) { - break; - } - i87 = i86; - i86++; - } - } - } - } - i86++; - } - z2 = false; - if (z2 && ((i88 == i || i87 == i) ? false : true)) { - m1 m1Var = new m1(true); - m1VarArr[i88] = m1Var; - m1VarArr[i87] = m1Var; - } - } - Pair create = Pair.create(m1VarArr, gVarArr); - return new m((m1[]) create.first, (g[]) create.second, aVar13); - } -} diff --git a/app/src/main/java/c/i/a/c/f2/j.java b/app/src/main/java/c/i/a/c/f2/j.java deleted file mode 100644 index 4886abd6c7..0000000000 --- a/app/src/main/java/c/i/a/c/f2/j.java +++ /dev/null @@ -1,14 +0,0 @@ -package c.i.a.c.f2; - -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.source.TrackGroup; -/* compiled from: TrackSelection */ -public interface j { - TrackGroup a(); - - Format d(int i); - - int f(int i); - - int length(); -} diff --git a/app/src/main/java/c/i/a/c/f2/k.java b/app/src/main/java/c/i/a/c/f2/k.java deleted file mode 100644 index e5793922b7..0000000000 --- a/app/src/main/java/c/i/a/c/f2/k.java +++ /dev/null @@ -1,34 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import java.util.Arrays; -/* compiled from: TrackSelectionArray */ -public final class k { - public final int a; - public final j[] b; - - /* renamed from: c reason: collision with root package name */ - public int f863c; - - public k(j... jVarArr) { - this.b = jVarArr; - this.a = jVarArr.length; - } - - public boolean equals(@Nullable Object obj) { - if (this == obj) { - return true; - } - if (obj == null || k.class != obj.getClass()) { - return false; - } - return Arrays.equals(this.b, ((k) obj).b); - } - - public int hashCode() { - if (this.f863c == 0) { - this.f863c = 527 + Arrays.hashCode(this.b); - } - return this.f863c; - } -} diff --git a/app/src/main/java/c/i/a/c/f2/l.java b/app/src/main/java/c/i/a/c/f2/l.java deleted file mode 100644 index d3509a3e60..0000000000 --- a/app/src/main/java/c/i/a/c/f2/l.java +++ /dev/null @@ -1,18 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import c.i.a.c.d2.y; -import c.i.a.c.h2.d; -import c.i.a.c.l1; -import c.i.a.c.r1; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.source.TrackGroupArray; -/* compiled from: TrackSelector */ -public abstract class l { - @Nullable - public d a; - - public abstract void a(@Nullable Object obj); - - public abstract m b(l1[] l1VarArr, TrackGroupArray trackGroupArray, y.a aVar, r1 r1Var) throws ExoPlaybackException; -} diff --git a/app/src/main/java/c/i/a/c/f2/m.java b/app/src/main/java/c/i/a/c/f2/m.java deleted file mode 100644 index ec3d804582..0000000000 --- a/app/src/main/java/c/i/a/c/f2/m.java +++ /dev/null @@ -1,30 +0,0 @@ -package c.i.a.c.f2; - -import androidx.annotation.Nullable; -import c.i.a.c.i2.f0; -import c.i.a.c.m1; -/* compiled from: TrackSelectorResult */ -public final class m { - public final int a; - public final m1[] b; - - /* renamed from: c reason: collision with root package name */ - public final g[] f864c; - @Nullable - public final Object d; - - public m(m1[] m1VarArr, g[] gVarArr, @Nullable Object obj) { - this.b = m1VarArr; - this.f864c = (g[]) gVarArr.clone(); - this.d = obj; - this.a = m1VarArr.length; - } - - public boolean a(@Nullable m mVar, int i) { - return mVar != null && f0.a(this.b[i], mVar.b[i]) && f0.a(this.f864c[i], mVar.f864c[i]); - } - - public boolean b(int i) { - return this.b[i] != null; - } -} diff --git a/app/src/main/java/c/i/a/c/g.java b/app/src/main/java/c/i/a/c/g.java deleted file mode 100644 index 3ee3158a23..0000000000 --- a/app/src/main/java/c/i/a/c/g.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class g implements o.a { - public final /* synthetic */ c1 a; - - public /* synthetic */ g(c1 c1Var) { - this.a = c1Var; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - ((g1.a) obj).S(this.a.o); - } -} diff --git a/app/src/main/java/c/i/a/c/g0.java b/app/src/main/java/c/i/a/c/g0.java deleted file mode 100644 index d9072c5d54..0000000000 --- a/app/src/main/java/c/i/a/c/g0.java +++ /dev/null @@ -1,244 +0,0 @@ -package c.i.a.c; - -import androidx.annotation.Nullable; -import c.i.a.c.d2.f0; -import c.i.a.c.i2.r; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.Format; -import com.google.android.exoplayer2.decoder.DecoderInputBuffer; -import java.io.IOException; -import java.util.Objects; -/* compiled from: BaseRenderer */ -public abstract class g0 implements k1, l1 { - public final int i; - public final s0 j = new s0(); - @Nullable - public m1 k; - public int l; - public int m; - @Nullable - public f0 n; - @Nullable - public Format[] o; - public long p; - public long q = Long.MIN_VALUE; - public boolean r; - - /* renamed from: s reason: collision with root package name */ - public boolean f865s; - - public g0(int i) { - this.i = i; - } - - public final s0 A() { - this.j.a(); - return this.j; - } - - public abstract void B(); - - public void C(boolean z2, boolean z3) throws ExoPlaybackException { - } - - public abstract void D(long j, boolean z2) throws ExoPlaybackException; - - public void E() { - } - - public void F() throws ExoPlaybackException { - } - - public void G() { - } - - public abstract void H(Format[] formatArr, long j, long j2) throws ExoPlaybackException; - - public final int I(s0 s0Var, DecoderInputBuffer decoderInputBuffer, boolean z2) { - f0 f0Var = this.n; - Objects.requireNonNull(f0Var); - int a = f0Var.a(s0Var, decoderInputBuffer, z2); - if (a == -4) { - if (decoderInputBuffer.n()) { - this.q = Long.MIN_VALUE; - return this.r ? -4 : -3; - } - long j = decoderInputBuffer.m + this.p; - decoderInputBuffer.m = j; - this.q = Math.max(this.q, j); - } else if (a == -5) { - Format format = s0Var.b; - Objects.requireNonNull(format); - if (format.f2213x != Long.MAX_VALUE) { - Format.b a2 = format.a(); - a2.o = format.f2213x + this.p; - s0Var.b = a2.a(); - } - } - return a; - } - - @Override // c.i.a.c.k1 - public final void f(int i) { - this.l = i; - } - - @Override // c.i.a.c.k1 - public final void g() { - boolean z2 = true; - if (this.m != 1) { - z2 = false; - } - AnimatableValueParser.D(z2); - this.j.a(); - this.m = 0; - this.n = null; - this.o = null; - this.r = false; - B(); - } - - @Override // c.i.a.c.k1 - public final int getState() { - return this.m; - } - - @Override // c.i.a.c.k1 - @Nullable - public final f0 h() { - return this.n; - } - - @Override // c.i.a.c.k1 - public final boolean i() { - return this.q == Long.MIN_VALUE; - } - - @Override // c.i.a.c.k1 - public final void j(Format[] formatArr, f0 f0Var, long j, long j2) throws ExoPlaybackException { - AnimatableValueParser.D(!this.r); - this.n = f0Var; - this.q = j2; - this.o = formatArr; - this.p = j2; - H(formatArr, j, j2); - } - - @Override // c.i.a.c.k1 - public final void k() { - this.r = true; - } - - @Override // c.i.a.c.k1 - public final l1 l() { - return this; - } - - @Override // c.i.a.c.k1 - public /* synthetic */ void n(float f, float f2) { - j1.a(this, f, f2); - } - - @Override // c.i.a.c.k1 - public final void o(m1 m1Var, Format[] formatArr, f0 f0Var, long j, boolean z2, boolean z3, long j2, long j3) throws ExoPlaybackException { - AnimatableValueParser.D(this.m == 0); - this.k = m1Var; - this.m = 1; - C(z2, z3); - j(formatArr, f0Var, j2, j3); - D(j, z2); - } - - @Override // c.i.a.c.l1 - public int p() throws ExoPlaybackException { - return 0; - } - - @Override // c.i.a.c.h1.b - public void r(int i, @Nullable Object obj) throws ExoPlaybackException { - } - - @Override // c.i.a.c.k1 - public final void reset() { - AnimatableValueParser.D(this.m == 0); - this.j.a(); - E(); - } - - @Override // c.i.a.c.k1 - public final void s() throws IOException { - f0 f0Var = this.n; - Objects.requireNonNull(f0Var); - f0Var.b(); - } - - @Override // c.i.a.c.k1 - public final void start() throws ExoPlaybackException { - boolean z2 = true; - if (this.m != 1) { - z2 = false; - } - AnimatableValueParser.D(z2); - this.m = 2; - F(); - } - - @Override // c.i.a.c.k1 - public final void stop() { - AnimatableValueParser.D(this.m == 2); - this.m = 1; - G(); - } - - @Override // c.i.a.c.k1 - public final long t() { - return this.q; - } - - @Override // c.i.a.c.k1 - public final void u(long j) throws ExoPlaybackException { - this.r = false; - this.q = j; - D(j, false); - } - - @Override // c.i.a.c.k1 - public final boolean v() { - return this.r; - } - - @Override // c.i.a.c.k1 - @Nullable - public r w() { - return null; - } - - @Override // c.i.a.c.k1 - public final int x() { - return this.i; - } - - public final ExoPlaybackException y(Throwable th, @Nullable Format format) { - return z(th, format, false); - } - - /* JADX WARNING: Removed duplicated region for block: B:16:0x0025 */ - /* JADX WARNING: Removed duplicated region for block: B:17:0x0027 */ - public final ExoPlaybackException z(Throwable th, @Nullable Format format, boolean z2) { - int i; - if (format != null && !this.f865s) { - this.f865s = true; - boolean z3 = false; - try { - i = a(format) & 7; - } catch (ExoPlaybackException unused) { - } finally { - this.f865s = z3; - } - return new ExoPlaybackException(1, th, null, getName(), this.l, format, format != null ? 4 : i, z2); - } - i = 4; - return new ExoPlaybackException(1, th, null, getName(), this.l, format, format != null ? 4 : i, z2); - } -} diff --git a/app/src/main/java/c/i/a/c/g1.java b/app/src/main/java/c/i/a/c/g1.java deleted file mode 100644 index 127ff0a4b1..0000000000 --- a/app/src/main/java/c/i/a/c/g1.java +++ /dev/null @@ -1,165 +0,0 @@ -package c.i.a.c; - -import android.os.Looper; -import androidx.annotation.Nullable; -import c.i.a.c.f2.k; -import c.i.a.c.i2.t; -import com.google.android.exoplayer2.ExoPlaybackException; -import com.google.android.exoplayer2.metadata.Metadata; -import com.google.android.exoplayer2.source.TrackGroupArray; -import java.util.List; -/* compiled from: Player */ -public interface g1 { - - /* compiled from: Player */ - public interface a { - @Deprecated - void C(r1 r1Var, @Nullable Object obj, int i); - - void D(int i); - - void E(@Nullable v0 v0Var, int i); - - void M(boolean z2, int i); - - void O(TrackGroupArray trackGroupArray, k kVar); - - void Q(d1 d1Var); - - void S(boolean z2); - - void X(boolean z2); - - @Deprecated - void a(); - - void d(int i); - - @Deprecated - void e(boolean z2); - - void f(int i); - - void i(List list); - - void k(ExoPlaybackException exoPlaybackException); - - void n(boolean z2); - - void p(r1 r1Var, int i); - - void r(int i); - - void v(boolean z2); - - void w(g1 g1Var, b bVar); - - void y(boolean z2); - - @Deprecated - void z(boolean z2, int i); - } - - /* compiled from: Player */ - public static final class b extends t { - public boolean a(int i) { - return this.a.get(i); - } - - public boolean b(int... iArr) { - for (int i : iArr) { - if (a(i)) { - return true; - } - } - return false; - } - } - - /* compiled from: Player */ - public interface c { - } - - /* compiled from: Player */ - public interface d { - } - - TrackGroupArray A(); - - int B(); - - long C(); - - r1 D(); - - Looper E(); - - boolean F(); - - long G(); - - k H(); - - int I(int i); - - long J(); - - @Nullable - c K(); - - void a(); - - d1 c(); - - boolean d(); - - long e(); - - void f(int i, long j); - - boolean g(); - - void h(boolean z2); - - boolean hasNext(); - - boolean hasPrevious(); - - List i(); - - int j(); - - boolean k(); - - void l(a aVar); - - int m(); - - void n(a aVar); - - int o(); - - @Nullable - ExoPlaybackException p(); - - void q(boolean z2); - - @Nullable - d r(); - - long s(); - - int t(); - - int u(); - - boolean v(); - - int w(); - - void x(int i); - - int y(); - - int z(); -} diff --git a/app/src/main/java/c/i/a/c/g2/a.java b/app/src/main/java/c/i/a/c/g2/a.java deleted file mode 100644 index df24969154..0000000000 --- a/app/src/main/java/c/i/a/c/g2/a.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.g2; - -import com.google.android.exoplayer2.ui.PlayerControlView; -/* compiled from: lambda */ -public final /* synthetic */ class a implements Runnable { - public final /* synthetic */ PlayerControlView i; - - public /* synthetic */ a(PlayerControlView playerControlView) { - this.i = playerControlView; - } - - @Override // java.lang.Runnable - public final void run() { - this.i.c(); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/b.java b/app/src/main/java/c/i/a/c/g2/b.java deleted file mode 100644 index 265b0b83c0..0000000000 --- a/app/src/main/java/c/i/a/c/g2/b.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.g2; - -import com.google.android.exoplayer2.ui.DefaultTimeBar; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Runnable { - public final /* synthetic */ DefaultTimeBar i; - - public /* synthetic */ b(DefaultTimeBar defaultTimeBar) { - this.i = defaultTimeBar; - } - - @Override // java.lang.Runnable - public final void run() { - this.i.g(false); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/c.java b/app/src/main/java/c/i/a/c/g2/c.java deleted file mode 100644 index 4b6c231402..0000000000 --- a/app/src/main/java/c/i/a/c/g2/c.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c.g2; - -import android.animation.ValueAnimator; -import com.google.android.exoplayer2.ui.DefaultTimeBar; -import java.util.Objects; -/* compiled from: lambda */ -public final /* synthetic */ class c implements ValueAnimator.AnimatorUpdateListener { - public final /* synthetic */ DefaultTimeBar a; - - public /* synthetic */ c(DefaultTimeBar defaultTimeBar) { - this.a = defaultTimeBar; - } - - @Override // android.animation.ValueAnimator.AnimatorUpdateListener - public final void onAnimationUpdate(ValueAnimator valueAnimator) { - DefaultTimeBar defaultTimeBar = this.a; - Objects.requireNonNull(defaultTimeBar); - defaultTimeBar.N = ((Float) valueAnimator.getAnimatedValue()).floatValue(); - defaultTimeBar.invalidate(defaultTimeBar.i); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/d.java b/app/src/main/java/c/i/a/c/g2/d.java deleted file mode 100644 index 091003a942..0000000000 --- a/app/src/main/java/c/i/a/c/g2/d.java +++ /dev/null @@ -1,18 +0,0 @@ -package c.i.a.c.g2; - -import com.google.android.exoplayer2.ui.PlayerControlView; -/* compiled from: lambda */ -public final /* synthetic */ class d implements Runnable { - public final /* synthetic */ PlayerControlView i; - - public /* synthetic */ d(PlayerControlView playerControlView) { - this.i = playerControlView; - } - - @Override // java.lang.Runnable - public final void run() { - PlayerControlView playerControlView = this.i; - int i = PlayerControlView.i; - playerControlView.m(); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/e.java b/app/src/main/java/c/i/a/c/g2/e.java deleted file mode 100644 index dd28e91f52..0000000000 --- a/app/src/main/java/c/i/a/c/g2/e.java +++ /dev/null @@ -1,20 +0,0 @@ -package c.i.a.c.g2; - -import c.i.a.c.g2.i; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class e implements Comparator { - public static final /* synthetic */ e i = new e(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - i.c cVar = (i.c) obj; - i.c cVar2 = (i.c) obj2; - int compare = Integer.compare(cVar2.b, cVar.b); - if (compare != 0) { - return compare; - } - int compareTo = cVar.f866c.compareTo(cVar2.f866c); - return compareTo != 0 ? compareTo : cVar.d.compareTo(cVar2.d); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/f.java b/app/src/main/java/c/i/a/c/g2/f.java deleted file mode 100644 index 2fa5b38da7..0000000000 --- a/app/src/main/java/c/i/a/c/g2/f.java +++ /dev/null @@ -1,20 +0,0 @@ -package c.i.a.c.g2; - -import c.i.a.c.g2.i; -import java.util.Comparator; -/* compiled from: lambda */ -public final /* synthetic */ class f implements Comparator { - public static final /* synthetic */ f i = new f(); - - @Override // java.util.Comparator - public final int compare(Object obj, Object obj2) { - i.c cVar = (i.c) obj; - i.c cVar2 = (i.c) obj2; - int compare = Integer.compare(cVar2.a, cVar.a); - if (compare != 0) { - return compare; - } - int compareTo = cVar2.f866c.compareTo(cVar.f866c); - return compareTo != 0 ? compareTo : cVar2.d.compareTo(cVar.d); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/g.java b/app/src/main/java/c/i/a/c/g2/g.java deleted file mode 100644 index 3aecc048c4..0000000000 --- a/app/src/main/java/c/i/a/c/g2/g.java +++ /dev/null @@ -1,476 +0,0 @@ -package c.i.a.c.g2; - -import android.content.Context; -import android.graphics.Bitmap; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.Rect; -import android.text.Layout; -import android.text.SpannableStringBuilder; -import android.text.StaticLayout; -import android.text.TextUtils; -import android.text.style.AbsoluteSizeSpan; -import android.text.style.BackgroundColorSpan; -import android.text.style.ForegroundColorSpan; -import android.util.AttributeSet; -import android.util.Log; -import android.view.View; -import androidx.annotation.Nullable; -import c.i.a.c.e2.b; -import c.i.a.c.e2.c; -import c.i.a.c.i2.f0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ui.SubtitleView; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -/* compiled from: CanvasSubtitleOutput */ -public final class g extends View implements SubtitleView.a { - public final List i = new ArrayList(); - public List j = Collections.emptyList(); - public int k = 0; - public float l = 0.0533f; - public b m = b.a; - public float n = 0.08f; - - public g(Context context, @Nullable AttributeSet attributeSet) { - super(context, attributeSet); - } - - @Override // com.google.android.exoplayer2.ui.SubtitleView.a - public void a(List list, b bVar, float f, int i, float f2) { - this.j = list; - this.m = bVar; - this.l = f; - this.k = i; - this.n = f2; - while (this.i.size() < list.size()) { - this.i.add(new j(getContext())); - } - invalidate(); - } - - /* JADX WARNING: Code restructure failed: missing block: B:166:0x03e8, code lost: - if (r3 < r6) goto L_0x03f8; - */ - /* JADX WARNING: Removed duplicated region for block: B:164:0x03e3 */ - /* JADX WARNING: Removed duplicated region for block: B:165:0x03e6 */ - /* JADX WARNING: Removed duplicated region for block: B:170:0x0437 */ - /* JADX WARNING: Removed duplicated region for block: B:183:0x04a7 */ - /* JADX WARNING: Removed duplicated region for block: B:184:0x04a9 */ - /* JADX WARNING: Removed duplicated region for block: B:95:0x01fc */ - @Override // android.view.View - public void dispatchDraw(Canvas canvas) { - int i; - float f; - int i2; - int i3; - int i4; - int i5; - int i6; - int i7; - Canvas canvas2; - int i8; - CharSequence charSequence; - CharSequence charSequence2; - boolean z2; - boolean z3; - int i9; - float f2; - float f3; - int i10; - int i11; - int i12; - int i13; - int i14; - int i15; - int i16; - g gVar = this; - Canvas canvas3 = canvas; - List list = gVar.j; - if (!list.isEmpty()) { - int height = getHeight(); - int paddingLeft = getPaddingLeft(); - int paddingTop = getPaddingTop(); - int width = getWidth() - getPaddingRight(); - int paddingBottom = height - getPaddingBottom(); - if (paddingBottom > paddingTop && width > paddingLeft) { - int i17 = paddingBottom - paddingTop; - float t2 = AnimatableValueParser.t2(gVar.k, gVar.l, height, i17); - if (t2 > 0.0f) { - int size = list.size(); - int i18 = 0; - while (i18 < size) { - c cVar = list.get(i18); - if (cVar.p != Integer.MIN_VALUE) { - c.b a = cVar.a(); - a.g = -3.4028235E38f; - a.h = Integer.MIN_VALUE; - a.f815c = null; - if (cVar.f == 0) { - a.d = 1.0f - cVar.e; - a.e = 0; - } else { - a.d = (-cVar.e) - 1.0f; - a.e = 1; - } - int i19 = cVar.g; - if (i19 == 0) { - a.f = 2; - } else if (i19 == 2) { - a.f = 0; - } - cVar = a.a(); - } - float t22 = AnimatableValueParser.t2(cVar.n, cVar.o, height, i17); - j jVar = gVar.i.get(i18); - b bVar = gVar.m; - float f4 = gVar.n; - Objects.requireNonNull(jVar); - boolean z4 = cVar.d == null; - if (!z4) { - i7 = i17; - i8 = -16777216; - charSequence = jVar.i; - i6 = size; - charSequence2 = cVar.b; - if (!(charSequence != charSequence2 || (charSequence != null && charSequence.equals(charSequence2)))) { - } - jVar.i = cVar.b; - jVar.j = cVar.f814c; - jVar.k = cVar.d; - jVar.l = cVar.e; - jVar.m = cVar.f; - jVar.n = cVar.g; - jVar.o = cVar.h; - jVar.p = cVar.i; - jVar.q = cVar.j; - jVar.r = cVar.k; - jVar.f868s = bVar.b; - jVar.t = bVar.f813c; - jVar.u = i8; - jVar.w = bVar.e; - jVar.v = bVar.f; - jVar.f.setTypeface(bVar.g); - jVar.f869x = t2; - jVar.f870y = t22; - jVar.f871z = f4; - jVar.A = paddingLeft; - jVar.B = paddingTop; - jVar.C = width; - jVar.D = paddingBottom; - if (!z4) { - } - canvas2 = canvas; - z2 = z3; - jVar.a(canvas2, z2); - i18 = i + 1; - canvas3 = canvas2; - list = list; - i17 = i7; - height = height; - size = i6; - paddingLeft = i5; - paddingTop = i4; - width = i3; - paddingBottom = i2; - t2 = f; - gVar = this; - } else if (TextUtils.isEmpty(cVar.b)) { - canvas2 = canvas3; - i5 = paddingLeft; - i4 = paddingTop; - i3 = width; - i2 = paddingBottom; - i7 = i17; - f = t2; - i6 = size; - } else { - i8 = cVar.l ? cVar.m : bVar.d; - i7 = i17; - charSequence = jVar.i; - i6 = size; - charSequence2 = cVar.b; - if (!(charSequence != charSequence2 || (charSequence != null && charSequence.equals(charSequence2))) && f0.a(jVar.j, cVar.f814c) && jVar.k == cVar.d && jVar.l == cVar.e && jVar.m == cVar.f && f0.a(Integer.valueOf(jVar.n), Integer.valueOf(cVar.g)) && jVar.o == cVar.h && f0.a(Integer.valueOf(jVar.p), Integer.valueOf(cVar.i)) && jVar.q == cVar.j && jVar.r == cVar.k && jVar.f868s == bVar.b && jVar.t == bVar.f813c && jVar.u == i8 && jVar.w == bVar.e && jVar.v == bVar.f && f0.a(jVar.f.getTypeface(), bVar.g) && jVar.f869x == t2 && jVar.f870y == t22 && jVar.f871z == f4 && jVar.A == paddingLeft && jVar.B == paddingTop && jVar.C == width && jVar.D == paddingBottom) { - jVar.a(canvas3, z4); - canvas2 = canvas3; - i5 = paddingLeft; - i4 = paddingTop; - i3 = width; - i2 = paddingBottom; - f = t2; - } else { - jVar.i = cVar.b; - jVar.j = cVar.f814c; - jVar.k = cVar.d; - jVar.l = cVar.e; - jVar.m = cVar.f; - jVar.n = cVar.g; - jVar.o = cVar.h; - jVar.p = cVar.i; - jVar.q = cVar.j; - jVar.r = cVar.k; - jVar.f868s = bVar.b; - jVar.t = bVar.f813c; - jVar.u = i8; - jVar.w = bVar.e; - jVar.v = bVar.f; - jVar.f.setTypeface(bVar.g); - jVar.f869x = t2; - jVar.f870y = t22; - jVar.f871z = f4; - jVar.A = paddingLeft; - jVar.B = paddingTop; - jVar.C = width; - jVar.D = paddingBottom; - if (!z4) { - Objects.requireNonNull(jVar.i); - CharSequence charSequence3 = jVar.i; - SpannableStringBuilder spannableStringBuilder = charSequence3 instanceof SpannableStringBuilder ? (SpannableStringBuilder) charSequence3 : new SpannableStringBuilder(jVar.i); - int i20 = jVar.C - jVar.A; - int i21 = jVar.D - jVar.B; - jVar.f.setTextSize(jVar.f869x); - int i22 = (int) ((jVar.f869x * 0.125f) + 0.5f); - int i23 = i22 * 2; - int i24 = i20 - i23; - float f5 = jVar.q; - if (f5 != -3.4028235E38f) { - i24 = (int) (((float) i24) * f5); - } - if (i24 <= 0) { - Log.w("SubtitlePainter", "Skipped drawing subtitle cue (insufficient space)"); - i5 = paddingLeft; - i4 = paddingTop; - i3 = width; - i2 = paddingBottom; - f = t2; - i = i18; - z2 = z4; - canvas2 = canvas3; - } else { - i5 = paddingLeft; - i4 = paddingTop; - if (jVar.f870y > 0.0f) { - i3 = width; - i2 = paddingBottom; - i10 = 0; - spannableStringBuilder.setSpan(new AbsoluteSizeSpan((int) jVar.f870y), 0, spannableStringBuilder.length(), 16711680); - } else { - i3 = width; - i2 = paddingBottom; - i10 = 0; - } - SpannableStringBuilder spannableStringBuilder2 = new SpannableStringBuilder(spannableStringBuilder); - if (jVar.w == 1) { - ForegroundColorSpan[] foregroundColorSpanArr = (ForegroundColorSpan[]) spannableStringBuilder2.getSpans(i10, spannableStringBuilder2.length(), ForegroundColorSpan.class); - int i25 = 0; - for (int length = foregroundColorSpanArr.length; i25 < length; length = length) { - spannableStringBuilder2.removeSpan(foregroundColorSpanArr[i25]); - i25++; - } - } - if (Color.alpha(jVar.t) > 0) { - int i26 = jVar.w; - if (i26 == 0 || i26 == 2) { - f = t2; - spannableStringBuilder.setSpan(new BackgroundColorSpan(jVar.t), 0, spannableStringBuilder.length(), 16711680); - } else { - f = t2; - spannableStringBuilder2.setSpan(new BackgroundColorSpan(jVar.t), 0, spannableStringBuilder2.length(), 16711680); - } - } else { - f = t2; - } - Layout.Alignment alignment = jVar.j; - if (alignment == null) { - alignment = Layout.Alignment.ALIGN_CENTER; - } - i = i18; - StaticLayout staticLayout = new StaticLayout(spannableStringBuilder, jVar.f, i24, alignment, jVar.d, jVar.e, true); - jVar.E = staticLayout; - int height2 = staticLayout.getHeight(); - int lineCount = jVar.E.getLineCount(); - int i27 = 0; - int i28 = 0; - while (i27 < lineCount) { - i28 = Math.max((int) Math.ceil((double) jVar.E.getLineWidth(i27)), i28); - i27++; - lineCount = lineCount; - z4 = z4; - } - z3 = z4; - if (jVar.q == -3.4028235E38f || i28 >= i24) { - i24 = i28; - } - int i29 = i24 + i23; - float f6 = jVar.o; - if (f6 != -3.4028235E38f) { - int round = Math.round(((float) i20) * f6); - int i30 = jVar.A; - int i31 = round + i30; - int i32 = jVar.p; - if (i32 == 1) { - i31 = ((i31 * 2) - i29) / 2; - } else if (i32 == 2) { - i31 -= i29; - } - i12 = Math.max(i31, i30); - i11 = Math.min(i29 + i12, jVar.C); - } else { - i12 = jVar.A + ((i20 - i29) / 2); - i11 = i12 + i29; - } - int i33 = i11 - i12; - if (i33 <= 0) { - Log.w("SubtitlePainter", "Skipped drawing subtitle cue (invalid horizontal positioning)"); - canvas2 = canvas; - z2 = z3; - } else { - float f7 = jVar.l; - if (f7 != -3.4028235E38f) { - if (jVar.m == 0) { - i14 = Math.round(((float) i21) * f7) + jVar.B; - int i34 = jVar.n; - if (i34 != 2) { - if (i34 == 1) { - i14 = ((i14 * 2) - height2) / 2; - } - i15 = i14 + height2; - i16 = jVar.D; - if (i15 > i16) { - i14 = i16 - height2; - } else { - i13 = jVar.B; - } - } - } else { - int lineBottom = jVar.E.getLineBottom(0) - jVar.E.getLineTop(0); - float f8 = jVar.l; - if (f8 >= 0.0f) { - i14 = Math.round(f8 * ((float) lineBottom)) + jVar.B; - i15 = i14 + height2; - i16 = jVar.D; - if (i15 > i16) { - } - } else { - i14 = Math.round((f8 + 1.0f) * ((float) lineBottom)) + jVar.D; - } - } - i14 -= height2; - i15 = i14 + height2; - i16 = jVar.D; - if (i15 > i16) { - } - } else { - i14 = (jVar.D - height2) - ((int) (((float) i21) * jVar.f871z)); - } - i13 = i14; - jVar.E = new StaticLayout(spannableStringBuilder, jVar.f, i33, alignment, jVar.d, jVar.e, true); - jVar.F = new StaticLayout(spannableStringBuilder2, jVar.f, i33, alignment, jVar.d, jVar.e, true); - jVar.G = i12; - jVar.H = i13; - jVar.I = i22; - } - } - jVar.a(canvas2, z2); - i18 = i + 1; - canvas3 = canvas2; - list = list; - i17 = i7; - height = height; - size = i6; - paddingLeft = i5; - paddingTop = i4; - width = i3; - paddingBottom = i2; - t2 = f; - gVar = this; - } else { - z3 = z4; - i5 = paddingLeft; - i4 = paddingTop; - i3 = width; - i2 = paddingBottom; - f = t2; - i = i18; - Objects.requireNonNull(jVar.k); - Bitmap bitmap = jVar.k; - int i35 = jVar.C; - int i36 = jVar.A; - int i37 = jVar.D; - int i38 = jVar.B; - float f9 = (float) (i35 - i36); - float f10 = (jVar.o * f9) + ((float) i36); - float f11 = (float) (i37 - i38); - float f12 = (jVar.l * f11) + ((float) i38); - int round2 = Math.round(f9 * jVar.q); - float f13 = jVar.r; - int round3 = f13 != -3.4028235E38f ? Math.round(f11 * f13) : Math.round((((float) bitmap.getHeight()) / ((float) bitmap.getWidth())) * ((float) round2)); - int i39 = jVar.p; - if (i39 == 2) { - f3 = (float) round2; - } else { - if (i39 == 1) { - f3 = (float) (round2 / 2); - } - int round4 = Math.round(f10); - i9 = jVar.n; - if (i9 != 2) { - f2 = (float) round3; - } else { - if (i9 == 1) { - f2 = (float) (round3 / 2); - } - int round5 = Math.round(f12); - jVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); - } - f12 -= f2; - int round5 = Math.round(f12); - jVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); - } - f10 -= f3; - int round4 = Math.round(f10); - i9 = jVar.n; - if (i9 != 2) { - } - f12 -= f2; - int round5 = Math.round(f12); - jVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); - } - canvas2 = canvas; - z2 = z3; - jVar.a(canvas2, z2); - i18 = i + 1; - canvas3 = canvas2; - list = list; - i17 = i7; - height = height; - size = i6; - paddingLeft = i5; - paddingTop = i4; - width = i3; - paddingBottom = i2; - t2 = f; - gVar = this; - } - } - i = i18; - i18 = i + 1; - canvas3 = canvas2; - list = list; - i17 = i7; - height = height; - size = i6; - paddingLeft = i5; - paddingTop = i4; - width = i3; - paddingBottom = i2; - t2 = f; - gVar = this; - } - } - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/h.java b/app/src/main/java/c/i/a/c/g2/h.java deleted file mode 100644 index 34144f3eed..0000000000 --- a/app/src/main/java/c/i/a/c/g2/h.java +++ /dev/null @@ -1,13 +0,0 @@ -package c.i.a.c.g2; - -import android.content.res.Resources; -import java.util.Objects; -/* compiled from: DefaultTrackNameProvider */ -public class h implements l { - public final Resources a; - - public h(Resources resources) { - Objects.requireNonNull(resources); - this.a = resources; - } -} diff --git a/app/src/main/java/c/i/a/c/g2/i.java b/app/src/main/java/c/i/a/c/g2/i.java deleted file mode 100644 index ea6dcb086d..0000000000 --- a/app/src/main/java/c/i/a/c/g2/i.java +++ /dev/null @@ -1,49 +0,0 @@ -package c.i.a.c.g2; - -import android.text.Html; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.regex.Pattern; -/* compiled from: SpannedToHtmlConverter */ -public final class i { - public static final Pattern a = Pattern.compile("( )? "); - - /* compiled from: SpannedToHtmlConverter */ - public static class b { - public final String a; - public final Map b; - - public b(String str, Map map, a aVar) { - this.a = str; - this.b = map; - } - } - - /* compiled from: SpannedToHtmlConverter */ - public static final class c { - public final int a; - public final int b; - - /* renamed from: c reason: collision with root package name */ - public final String f866c; - public final String d; - - public c(int i, int i2, String str, String str2, a aVar) { - this.a = i; - this.b = i2; - this.f866c = str; - this.d = str2; - } - } - - /* compiled from: SpannedToHtmlConverter */ - public static final class d { - public final List a = new ArrayList(); - public final List b = new ArrayList(); - } - - public static String a(CharSequence charSequence) { - return a.matcher(Html.escapeHtml(charSequence)).replaceAll("
"); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/j.java b/app/src/main/java/c/i/a/c/g2/j.java deleted file mode 100644 index 6d64d6cb74..0000000000 --- a/app/src/main/java/c/i/a/c/g2/j.java +++ /dev/null @@ -1,144 +0,0 @@ -package c.i.a.c.g2; - -import android.content.Context; -import android.content.res.TypedArray; -import android.graphics.Bitmap; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.Paint; -import android.graphics.Rect; -import android.text.Layout; -import android.text.StaticLayout; -import android.text.TextPaint; -import androidx.annotation.Nullable; -import java.util.Objects; -/* compiled from: SubtitlePainter */ -public final class j { - public int A; - public int B; - public int C; - public int D; - public StaticLayout E; - public StaticLayout F; - public int G; - public int H; - public int I; - public Rect J; - public final float a; - public final float b; - - /* renamed from: c reason: collision with root package name */ - public final float f867c; - public final float d; - public final float e; - public final TextPaint f; - public final Paint g; - public final Paint h; - @Nullable - public CharSequence i; - @Nullable - public Layout.Alignment j; - @Nullable - public Bitmap k; - public float l; - public int m; - public int n; - public float o; - public int p; - public float q; - public float r; - - /* renamed from: s reason: collision with root package name */ - public int f868s; - public int t; - public int u; - public int v; - public int w; - - /* renamed from: x reason: collision with root package name */ - public float f869x; - - /* renamed from: y reason: collision with root package name */ - public float f870y; - - /* renamed from: z reason: collision with root package name */ - public float f871z; - - public j(Context context) { - TypedArray obtainStyledAttributes = context.obtainStyledAttributes(null, new int[]{16843287, 16843288}, 0, 0); - this.e = (float) obtainStyledAttributes.getDimensionPixelSize(0, 0); - this.d = obtainStyledAttributes.getFloat(1, 1.0f); - obtainStyledAttributes.recycle(); - float round = (float) Math.round((((float) context.getResources().getDisplayMetrics().densityDpi) * 2.0f) / 160.0f); - this.a = round; - this.b = round; - this.f867c = round; - TextPaint textPaint = new TextPaint(); - this.f = textPaint; - textPaint.setAntiAlias(true); - textPaint.setSubpixelText(true); - Paint paint = new Paint(); - this.g = paint; - paint.setAntiAlias(true); - paint.setStyle(Paint.Style.FILL); - Paint paint2 = new Paint(); - this.h = paint2; - paint2.setAntiAlias(true); - paint2.setFilterBitmap(true); - } - - public final void a(Canvas canvas, boolean z2) { - if (z2) { - StaticLayout staticLayout = this.E; - StaticLayout staticLayout2 = this.F; - if (staticLayout != null && staticLayout2 != null) { - int save = canvas.save(); - canvas.translate((float) this.G, (float) this.H); - if (Color.alpha(this.u) > 0) { - this.g.setColor(this.u); - canvas.drawRect((float) (-this.I), 0.0f, (float) (staticLayout.getWidth() + this.I), (float) staticLayout.getHeight(), this.g); - } - int i = this.w; - boolean z3 = true; - if (i == 1) { - this.f.setStrokeJoin(Paint.Join.ROUND); - this.f.setStrokeWidth(this.a); - this.f.setColor(this.v); - this.f.setStyle(Paint.Style.FILL_AND_STROKE); - staticLayout2.draw(canvas); - } else if (i == 2) { - TextPaint textPaint = this.f; - float f = this.b; - float f2 = this.f867c; - textPaint.setShadowLayer(f, f2, f2, this.v); - } else if (i == 3 || i == 4) { - if (i != 3) { - z3 = false; - } - int i2 = -1; - int i3 = z3 ? -1 : this.v; - if (z3) { - i2 = this.v; - } - float f3 = this.b / 2.0f; - this.f.setColor(this.f868s); - this.f.setStyle(Paint.Style.FILL); - float f4 = -f3; - this.f.setShadowLayer(this.b, f4, f4, i3); - staticLayout2.draw(canvas); - this.f.setShadowLayer(this.b, f3, f3, i2); - } - this.f.setColor(this.f868s); - this.f.setStyle(Paint.Style.FILL); - staticLayout.draw(canvas); - this.f.setShadowLayer(0.0f, 0.0f, 0.0f, 0); - canvas.restoreToCount(save); - return; - } - return; - } - Objects.requireNonNull(this.J); - Objects.requireNonNull(this.k); - canvas.drawBitmap(this.k, (Rect) null, this.J, this.h); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/k.java b/app/src/main/java/c/i/a/c/g2/k.java deleted file mode 100644 index 4f7417dc3d..0000000000 --- a/app/src/main/java/c/i/a/c/g2/k.java +++ /dev/null @@ -1,30 +0,0 @@ -package c.i.a.c.g2; - -import androidx.annotation.Nullable; -/* compiled from: TimeBar */ -public interface k { - - /* compiled from: TimeBar */ - public interface a { - void b(k kVar, long j); - - void c(k kVar, long j, boolean z2); - - void g(k kVar, long j); - } - - void a(@Nullable long[] jArr, @Nullable boolean[] zArr, int i); - - void b(a aVar); - - long getPreferredUpdateDelay(); - - void setBufferedPosition(long j); - - void setDuration(long j); - - @Override // c.i.a.c.g2.k - void setEnabled(boolean z2); - - void setPosition(long j); -} diff --git a/app/src/main/java/c/i/a/c/g2/l.java b/app/src/main/java/c/i/a/c/g2/l.java deleted file mode 100644 index ac75414939..0000000000 --- a/app/src/main/java/c/i/a/c/g2/l.java +++ /dev/null @@ -1,4 +0,0 @@ -package c.i.a.c.g2; -/* compiled from: TrackNameProvider */ -public interface l { -} diff --git a/app/src/main/java/c/i/a/c/g2/m.java b/app/src/main/java/c/i/a/c/g2/m.java deleted file mode 100644 index 8562bfb4d1..0000000000 --- a/app/src/main/java/c/i/a/c/g2/m.java +++ /dev/null @@ -1,24 +0,0 @@ -package c.i.a.c.g2; - -import android.content.Context; -import android.util.AttributeSet; -import android.view.MotionEvent; -import android.webkit.WebView; -/* compiled from: WebViewSubtitleOutput */ -public class m extends WebView { - public m(n nVar, Context context, AttributeSet attributeSet) { - super(context, attributeSet); - } - - @Override // android.webkit.WebView, android.view.View - public boolean onTouchEvent(MotionEvent motionEvent) { - super.onTouchEvent(motionEvent); - return false; - } - - @Override // android.view.View - public boolean performClick() { - super.performClick(); - return false; - } -} diff --git a/app/src/main/java/c/i/a/c/g2/n.java b/app/src/main/java/c/i/a/c/g2/n.java deleted file mode 100644 index 942e8ac3c9..0000000000 --- a/app/src/main/java/c/i/a/c/g2/n.java +++ /dev/null @@ -1,670 +0,0 @@ -package c.i.a.c.g2; - -import android.content.Context; -import android.text.Layout; -import android.text.Spanned; -import android.text.style.AbsoluteSizeSpan; -import android.text.style.BackgroundColorSpan; -import android.text.style.ForegroundColorSpan; -import android.text.style.RelativeSizeSpan; -import android.text.style.StrikethroughSpan; -import android.text.style.StyleSpan; -import android.text.style.TypefaceSpan; -import android.text.style.UnderlineSpan; -import android.util.Base64; -import android.util.SparseArray; -import android.webkit.WebView; -import android.widget.FrameLayout; -import c.i.a.c.e2.b; -import c.i.a.c.e2.c; -import c.i.a.c.g2.i; -import c.i.a.c.i2.f0; -import c.i.b.b.r0; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.ui.SubtitleView; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Objects; -import java.util.regex.Pattern; -/* compiled from: WebViewSubtitleOutput */ -public final class n extends FrameLayout implements SubtitleView.a { - public final g i; - public final WebView j; - public List k = Collections.emptyList(); - public b l = b.a; - public float m = 0.0533f; - public int n = 0; - public float o = 0.08f; - - /* compiled from: WebViewSubtitleOutput */ - public static /* synthetic */ class a { - public static final /* synthetic */ int[] a; - - static { - int[] iArr = new int[Layout.Alignment.values().length]; - a = iArr; - try { - iArr[Layout.Alignment.ALIGN_NORMAL.ordinal()] = 1; - } catch (NoSuchFieldError unused) { - } - try { - a[Layout.Alignment.ALIGN_OPPOSITE.ordinal()] = 2; - } catch (NoSuchFieldError unused2) { - } - try { - a[Layout.Alignment.ALIGN_CENTER.ordinal()] = 3; - } catch (NoSuchFieldError unused3) { - } - } - } - - public n(Context context) { - super(context, null); - g gVar = new g(context, null); - this.i = gVar; - m mVar = new m(this, context, null); - this.j = mVar; - mVar.setBackgroundColor(0); - addView(gVar); - addView(mVar); - } - - public static int b(int i) { - if (i != 1) { - return i != 2 ? 0 : -100; - } - return -50; - } - - @Override // com.google.android.exoplayer2.ui.SubtitleView.a - public void a(List list, b bVar, float f, int i, float f2) { - this.l = bVar; - this.m = f; - this.n = i; - this.o = f2; - ArrayList arrayList = new ArrayList(); - ArrayList arrayList2 = new ArrayList(); - for (int i2 = 0; i2 < list.size(); i2++) { - c cVar = list.get(i2); - if (cVar.d != null) { - arrayList.add(cVar); - } else { - arrayList2.add(cVar); - } - } - if (!this.k.isEmpty() || !arrayList2.isEmpty()) { - this.k = arrayList2; - d(); - } - this.i.a(arrayList, bVar, f, i, f2); - invalidate(); - } - - public final String c(int i, float f) { - float t2 = AnimatableValueParser.t2(i, f, getHeight(), (getHeight() - getPaddingTop()) - getPaddingBottom()); - return t2 == -3.4028235E38f ? "unset" : f0.k("%.2fpx", Float.valueOf(t2 / getContext().getResources().getDisplayMetrics().density)); - } - - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x007e: APUT (r3v0 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r2v1 java.lang.String) */ - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0638: APUT (r1v9 java.lang.Object[]), (12 ??[int, float, short, byte, char]), (r3v20 java.lang.String) */ - /* JADX WARNING: Code restructure failed: missing block: B:184:0x0472, code lost: - if (((android.text.style.TypefaceSpan) r9).getFamily() != null) goto L_0x04be; - */ - /* JADX WARNING: Code restructure failed: missing block: B:62:0x01c6, code lost: - if (r5 != 0) goto L_0x01cd; - */ - /* JADX WARNING: Code restructure failed: missing block: B:63:0x01c9, code lost: - if (r5 != 0) goto L_0x01cb; - */ - /* JADX WARNING: Removed duplicated region for block: B:207:0x04ca */ - /* JADX WARNING: Removed duplicated region for block: B:231:0x05ad */ - /* JADX WARNING: Removed duplicated region for block: B:240:0x0615 */ - /* JADX WARNING: Removed duplicated region for block: B:246:0x0635 */ - /* JADX WARNING: Removed duplicated region for block: B:261:0x0504 A[SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:73:0x0202 */ - /* JADX WARNING: Removed duplicated region for block: B:74:0x020c */ - public final void d() { - int i; - char c2; - String str; - int i2; - String str2; - int i3; - int i4; - String str3; - CharSequence charSequence; - String str4; - String str5; - String str6; - String str7; - String str8; - String str9; - c cVar; - String str10; - i.b bVar; - float f; - int i5; - String str11; - String str12; - String str13; - float f2; - String str14; - String str15; - String str16; - String str17; - String str18; - int i6; - n nVar = this; - StringBuilder sb = new StringBuilder(); - Object[] objArr = new Object[4]; - char c3 = 0; - objArr[0] = AnimatableValueParser.F2(nVar.l.b); - int i7 = 1; - objArr[1] = nVar.c(nVar.n, nVar.m); - float f3 = 1.2f; - objArr[2] = Float.valueOf(1.2f); - b bVar2 = nVar.l; - int i8 = bVar2.e; - objArr[3] = i8 != 1 ? i8 != 2 ? i8 != 3 ? i8 != 4 ? "unset" : f0.k("-0.05em -0.05em 0.15em %s", AnimatableValueParser.F2(bVar2.f)) : f0.k("0.06em 0.08em 0.15em %s", AnimatableValueParser.F2(bVar2.f)) : f0.k("0.1em 0.12em 0.15em %s", AnimatableValueParser.F2(bVar2.f)) : f0.k("1px 1px 0 %1$s, 1px -1px 0 %1$s, -1px 1px 0 %1$s, -1px -1px 0 %1$s", AnimatableValueParser.F2(bVar2.f)); - sb.append(f0.k("
", objArr)); - HashMap hashMap = new HashMap(); - String str19 = "default_bg"; - String str20 = "background-color:%s;"; - hashMap.put(AnimatableValueParser.Y(str19), f0.k(str20, AnimatableValueParser.F2(nVar.l.f813c))); - int i9 = 0; - while (i9 < nVar.k.size()) { - c cVar2 = nVar.k.get(i9); - float f4 = cVar2.h; - float f5 = f4 != -3.4028235E38f ? f4 * 100.0f : 50.0f; - int b = b(cVar2.i); - float f6 = cVar2.e; - if (f6 == -3.4028235E38f) { - c2 = 0; - Object[] objArr2 = new Object[i7]; - objArr2[0] = Float.valueOf((1.0f - nVar.o) * 100.0f); - str = f0.k("%.2f%%", objArr2); - c3 = 0; - i = -100; - } else if (cVar2.f != i7) { - Object[] objArr3 = new Object[i7]; - objArr3[c3] = Float.valueOf(f6 * 100.0f); - str = f0.k("%.2f%%", objArr3); - c2 = 0; - i = cVar2.p == i7 ? -b(cVar2.g) : b(cVar2.g); - } else { - if (f6 >= 0.0f) { - Object[] objArr4 = new Object[i7]; - Float valueOf = Float.valueOf(f6 * f3); - c2 = 0; - objArr4[0] = valueOf; - str = f0.k("%.2fem", objArr4); - c3 = 0; - } else { - Object[] objArr5 = new Object[i7]; - Float valueOf2 = Float.valueOf(((-f6) - 1.0f) * f3); - c2 = 0; - objArr5[0] = valueOf2; - str = f0.k("%.2fem", objArr5); - c3 = 1; - } - i = 0; - } - float f7 = cVar2.j; - if (f7 != -3.4028235E38f) { - i2 = b; - Object[] objArr6 = new Object[i7]; - objArr6[c2] = Float.valueOf(f7 * 100.0f); - str2 = f0.k("%.2f%%", objArr6); - } else { - i2 = b; - str2 = "fit-content"; - } - Layout.Alignment alignment = cVar2.f814c; - String str21 = "center"; - if (alignment == null) { - i3 = 2; - } else { - int i10 = a.a[alignment.ordinal()]; - if (i10 != i7) { - i3 = 2; - if (i10 == 2) { - str21 = "end"; - } - } else { - i3 = 2; - str21 = "start"; - } - } - int i11 = cVar2.p; - String str22 = i11 != 1 ? i11 != i3 ? "horizontal-tb" : "vertical-lr" : "vertical-rl"; - String c4 = nVar.c(cVar2.n, cVar2.o); - String F2 = AnimatableValueParser.F2(cVar2.l ? cVar2.m : nVar.l.d); - int i12 = cVar2.p; - String str23 = "right"; - String str24 = "left"; - String str25 = "top"; - if (i12 != 1) { - if (i12 != 2) { - if (c3 != 0) { - str25 = "bottom"; - } - i4 = 2; - if (i12 != i4 || i12 == 1) { - str3 = "height"; - } else { - str3 = "width"; - i2 = i; - i = i2; - } - charSequence = cVar2.b; - float f8 = getContext().getResources().getDisplayMetrics().density; - Pattern pattern = i.a; - if (charSequence != null) { - bVar = new i.b("", r0.l, null); - str10 = ""; - } else if (!(charSequence instanceof Spanned)) { - str10 = ""; - bVar = new i.b(i.a(charSequence), r0.l, null); - } else { - str10 = ""; - Spanned spanned = (Spanned) charSequence; - HashSet hashSet = new HashSet(); - cVar = cVar2; - str9 = F2; - int i13 = 0; - BackgroundColorSpan[] backgroundColorSpanArr = (BackgroundColorSpan[]) spanned.getSpans(0, spanned.length(), BackgroundColorSpan.class); - int length = backgroundColorSpanArr.length; - while (i13 < length) { - hashSet.add(Integer.valueOf(backgroundColorSpanArr[i13].getBackgroundColor())); - i13++; - backgroundColorSpanArr = backgroundColorSpanArr; - } - HashMap hashMap2 = new HashMap(); - for (Iterator it = hashSet.iterator(); it.hasNext(); it = it) { - int intValue = ((Integer) it.next()).intValue(); - hashMap2.put(AnimatableValueParser.Y("bg_" + intValue), f0.k(str20, AnimatableValueParser.F2(intValue))); - } - SparseArray sparseArray = new SparseArray(); - str8 = str20; - Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); - int length2 = spans.length; - int i14 = 0; - while (i14 < length2) { - Object obj = spans[i14]; - boolean z2 = obj instanceof StrikethroughSpan; - if (z2) { - str14 = str22; - f2 = f8; - str12 = str2; - str13 = str21; - str16 = ""; - str15 = c4; - } else { - str15 = c4; - if (obj instanceof ForegroundColorSpan) { - str14 = str22; - str16 = f0.k("", AnimatableValueParser.F2(((ForegroundColorSpan) obj).getForegroundColor())); - } else { - str14 = str22; - if (obj instanceof BackgroundColorSpan) { - str16 = f0.k("", Integer.valueOf(((BackgroundColorSpan) obj).getBackgroundColor())); - } else if (obj instanceof c.i.a.c.e2.p.a) { - str16 = ""; - } else if (obj instanceof AbsoluteSizeSpan) { - AbsoluteSizeSpan absoluteSizeSpan = (AbsoluteSizeSpan) obj; - str16 = f0.k("", Float.valueOf(absoluteSizeSpan.getDip() ? (float) absoluteSizeSpan.getSize() : ((float) absoluteSizeSpan.getSize()) / f8)); - } else { - if (obj instanceof RelativeSizeSpan) { - str16 = f0.k("", Float.valueOf(((RelativeSizeSpan) obj).getSizeChange() * 100.0f)); - } else if (obj instanceof TypefaceSpan) { - String family = ((TypefaceSpan) obj).getFamily(); - str16 = family != null ? f0.k("", family) : null; - } else { - if (obj instanceof StyleSpan) { - int style = ((StyleSpan) obj).getStyle(); - if (style == 1) { - str16 = ""; - } else if (style == 2) { - str16 = ""; - } else if (style == 3) { - str16 = ""; - } - } else if (obj instanceof c.i.a.c.e2.p.b) { - int i15 = ((c.i.a.c.e2.p.b) obj).b; - if (i15 == -1) { - str16 = ""; - } else if (i15 == 1) { - str16 = ""; - } else if (i15 == 2) { - str16 = ""; - } - } else if (obj instanceof UnderlineSpan) { - str16 = ""; - } else if (obj instanceof c.i.a.c.e2.p.c) { - c.i.a.c.e2.p.c cVar3 = (c.i.a.c.e2.p.c) obj; - int i16 = cVar3.a; - f2 = f8; - int i17 = cVar3.b; - str13 = str21; - StringBuilder sb2 = new StringBuilder(); - str12 = str2; - if (i17 != 1) { - i6 = 2; - if (i17 == 2) { - sb2.append("open "); - } - } else { - i6 = 2; - sb2.append("filled "); - } - if (i16 == 0) { - sb2.append("none"); - } else if (i16 == 1) { - sb2.append("circle"); - } else if (i16 == i6) { - sb2.append("dot"); - } else if (i16 != 3) { - sb2.append("unset"); - } else { - sb2.append("sesame"); - } - str16 = f0.k("", sb2.toString(), cVar3.f840c != 2 ? "over right" : "under left"); - } - f2 = f8; - str12 = str2; - str13 = str21; - str16 = null; - } - f2 = f8; - str12 = str2; - str13 = str21; - } - } - f2 = f8; - str12 = str2; - str13 = str21; - } - if (!z2 && !(obj instanceof ForegroundColorSpan) && !(obj instanceof BackgroundColorSpan) && !(obj instanceof c.i.a.c.e2.p.a) && !(obj instanceof AbsoluteSizeSpan) && !(obj instanceof RelativeSizeSpan) && !(obj instanceof c.i.a.c.e2.p.c)) { - if (!(obj instanceof TypefaceSpan)) { - if (obj instanceof StyleSpan) { - int style2 = ((StyleSpan) obj).getStyle(); - if (style2 == 1) { - str18 = ""; - } else if (style2 == 2) { - str18 = ""; - } else if (style2 == 3) { - str18 = ""; - } - str17 = str18; - int spanStart = spanned.getSpanStart(obj); - int spanEnd = spanned.getSpanEnd(obj); - if (str16 == null) { - Objects.requireNonNull(str17); - i.c cVar4 = new i.c(spanStart, spanEnd, str16, str17, null); - i.d dVar = (i.d) sparseArray.get(spanStart); - if (dVar == null) { - dVar = new i.d(); - sparseArray.put(spanStart, dVar); - } - dVar.a.add(cVar4); - i.d dVar2 = (i.d) sparseArray.get(spanEnd); - if (dVar2 == null) { - dVar2 = new i.d(); - sparseArray.put(spanEnd, dVar2); - } - dVar2.b.add(cVar4); - } - i14++; - length2 = length2; - spans = spans; - c4 = str15; - str22 = str14; - f8 = f2; - str21 = str13; - str2 = str12; - } else { - if (obj instanceof c.i.a.c.e2.p.b) { - StringBuilder K = c.d.b.a.a.K(""); - K.append(i.a(((c.i.a.c.e2.p.b) obj).a)); - K.append(""); - str18 = K.toString(); - } else if (obj instanceof UnderlineSpan) { - str18 = ""; - } - str17 = str18; - int spanStart = spanned.getSpanStart(obj); - int spanEnd = spanned.getSpanEnd(obj); - if (str16 == null) { - } - i14++; - length2 = length2; - spans = spans; - c4 = str15; - str22 = str14; - f8 = f2; - str21 = str13; - str2 = str12; - } - } - str18 = null; - str17 = str18; - int spanStart = spanned.getSpanStart(obj); - int spanEnd = spanned.getSpanEnd(obj); - if (str16 == null) { - } - i14++; - length2 = length2; - spans = spans; - c4 = str15; - str22 = str14; - f8 = f2; - str21 = str13; - str2 = str12; - } - str17 = ""; - int spanStart = spanned.getSpanStart(obj); - int spanEnd = spanned.getSpanEnd(obj); - if (str16 == null) { - } - i14++; - length2 = length2; - spans = spans; - c4 = str15; - str22 = str14; - f8 = f2; - str21 = str13; - str2 = str12; - } - str6 = str22; - str4 = str2; - str7 = c4; - str5 = str21; - StringBuilder sb3 = new StringBuilder(spanned.length()); - int i18 = 0; - int i19 = 0; - while (i18 < sparseArray.size()) { - int keyAt = sparseArray.keyAt(i18); - sb3.append(i.a(spanned.subSequence(i19, keyAt))); - i.d dVar3 = (i.d) sparseArray.get(keyAt); - Collections.sort(dVar3.b, f.i); - for (i.c cVar5 : dVar3.b) { - sb3.append(cVar5.d); - } - Collections.sort(dVar3.a, e.i); - for (i.c cVar6 : dVar3.a) { - sb3.append(cVar6.f866c); - } - i18++; - i19 = keyAt; - } - sb3.append(i.a(spanned.subSequence(i19, spanned.length()))); - bVar = new i.b(sb3.toString(), hashMap2, null); - for (String str26 : hashMap.keySet()) { - String str27 = (String) hashMap.put(str26, (String) hashMap.get(str26)); - AnimatableValueParser.D(str27 == null || str27.equals(hashMap.get(str26))); - } - Object[] objArr7 = new Object[13]; - objArr7[0] = str24; - objArr7[1] = Float.valueOf(f5); - objArr7[2] = str25; - objArr7[3] = str; - objArr7[4] = str3; - objArr7[5] = str4; - objArr7[6] = str5; - objArr7[7] = str6; - objArr7[8] = str7; - objArr7[9] = str9; - objArr7[10] = Integer.valueOf(i); - objArr7[11] = Integer.valueOf(i2); - f = cVar.q; - if (f != 0.0f) { - int i20 = cVar.p; - i5 = 1; - str11 = f0.k("%s(%.2fdeg)", (i20 == 2 || i20 == 1) ? "skewY" : "skewX", Float.valueOf(f)); - } else { - i5 = 1; - str11 = str10; - } - objArr7[12] = str11; - String k = f0.k("
", objArr7); - sb = sb; - sb.append(k); - Object[] objArr8 = new Object[i5]; - objArr8[0] = str19; - sb.append(f0.k("", objArr8)); - sb.append(bVar.a); - sb.append(""); - sb.append("
"); - i9++; - f3 = 1.2f; - c3 = 0; - i7 = 1; - nVar = this; - str19 = str19; - str20 = str8; - } - str6 = str22; - cVar = cVar2; - str8 = str20; - str4 = str2; - str7 = c4; - str5 = str21; - str9 = F2; - while (r1.hasNext()) { - } - Object[] objArr7 = new Object[13]; - objArr7[0] = str24; - objArr7[1] = Float.valueOf(f5); - objArr7[2] = str25; - objArr7[3] = str; - objArr7[4] = str3; - objArr7[5] = str4; - objArr7[6] = str5; - objArr7[7] = str6; - objArr7[8] = str7; - objArr7[9] = str9; - objArr7[10] = Integer.valueOf(i); - objArr7[11] = Integer.valueOf(i2); - f = cVar.q; - if (f != 0.0f) { - } - objArr7[12] = str11; - String k = f0.k("
", objArr7); - sb = sb; - sb.append(k); - Object[] objArr8 = new Object[i5]; - objArr8[0] = str19; - sb.append(f0.k("", objArr8)); - sb.append(bVar.a); - sb.append(""); - sb.append("
"); - i9++; - f3 = 1.2f; - c3 = 0; - i7 = 1; - nVar = this; - str19 = str19; - str20 = str8; - } - } - str23 = str24; - i4 = 2; - str24 = str25; - str25 = str23; - if (i12 != i4) { - } - str3 = "height"; - charSequence = cVar2.b; - float f8 = getContext().getResources().getDisplayMetrics().density; - Pattern pattern = i.a; - if (charSequence != null) { - } - str6 = str22; - cVar = cVar2; - str8 = str20; - str4 = str2; - str7 = c4; - str5 = str21; - str9 = F2; - while (r1.hasNext()) { - } - Object[] objArr7 = new Object[13]; - objArr7[0] = str24; - objArr7[1] = Float.valueOf(f5); - objArr7[2] = str25; - objArr7[3] = str; - objArr7[4] = str3; - objArr7[5] = str4; - objArr7[6] = str5; - objArr7[7] = str6; - objArr7[8] = str7; - objArr7[9] = str9; - objArr7[10] = Integer.valueOf(i); - objArr7[11] = Integer.valueOf(i2); - f = cVar.q; - if (f != 0.0f) { - } - objArr7[12] = str11; - String k = f0.k("
", objArr7); - sb = sb; - sb.append(k); - Object[] objArr8 = new Object[i5]; - objArr8[0] = str19; - sb.append(f0.k("", objArr8)); - sb.append(bVar.a); - sb.append(""); - sb.append("
"); - i9++; - f3 = 1.2f; - c3 = 0; - i7 = 1; - nVar = this; - str19 = str19; - str20 = str8; - } - sb.append("
"); - StringBuilder sb4 = new StringBuilder(); - sb4.append(""); - sb.insert(0, sb4.toString()); - this.j.loadData(Base64.encodeToString(sb.toString().getBytes(c.i.b.a.c.f1266c), 1), "text/html", "base64"); - } - - @Override // android.widget.FrameLayout, android.view.View, android.view.ViewGroup - public void onLayout(boolean z2, int i, int i2, int i3, int i4) { - super.onLayout(z2, i, i2, i3, i4); - if (z2 && !this.k.isEmpty()) { - d(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/a.java b/app/src/main/java/c/i/a/c/g2/o/a.java deleted file mode 100644 index 3c8334d767..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/a.java +++ /dev/null @@ -1,16 +0,0 @@ -package c.i.a.c.g2.o; - -import android.graphics.SurfaceTexture; -/* compiled from: lambda */ -public final /* synthetic */ class a implements SurfaceTexture.OnFrameAvailableListener { - public final /* synthetic */ f i; - - public /* synthetic */ a(f fVar) { - this.i = fVar; - } - - @Override // android.graphics.SurfaceTexture.OnFrameAvailableListener - public final void onFrameAvailable(SurfaceTexture surfaceTexture) { - this.i.a.set(true); - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/b.java b/app/src/main/java/c/i/a/c/g2/o/b.java deleted file mode 100644 index ef84c3d5fc..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/b.java +++ /dev/null @@ -1,36 +0,0 @@ -package c.i.a.c.g2.o; - -import android.graphics.SurfaceTexture; -import android.view.Surface; -import c.i.a.c.g1; -import c.i.a.c.p1; -/* compiled from: lambda */ -public final /* synthetic */ class b implements Runnable { - public final /* synthetic */ h i; - - public /* synthetic */ b(h hVar) { - this.i = hVar; - } - - @Override // java.lang.Runnable - public final void run() { - h hVar = this.i; - Surface surface = hVar.p; - if (surface != null) { - g1.d dVar = hVar.q; - if (dVar != null) { - ((p1) dVar).L(surface); - } - SurfaceTexture surfaceTexture = hVar.o; - Surface surface2 = hVar.p; - if (surfaceTexture != null) { - surfaceTexture.release(); - } - if (surface2 != null) { - surface2.release(); - } - hVar.o = null; - hVar.p = null; - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/c.java b/app/src/main/java/c/i/a/c/g2/o/c.java deleted file mode 100644 index 9a58d3d29d..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/c.java +++ /dev/null @@ -1,37 +0,0 @@ -package c.i.a.c.g2.o; - -import android.graphics.SurfaceTexture; -import android.view.Surface; -import c.i.a.c.g1; -import c.i.a.c.p1; -/* compiled from: lambda */ -public final /* synthetic */ class c implements Runnable { - public final /* synthetic */ h i; - public final /* synthetic */ SurfaceTexture j; - - public /* synthetic */ c(h hVar, SurfaceTexture surfaceTexture) { - this.i = hVar; - this.j = surfaceTexture; - } - - @Override // java.lang.Runnable - public final void run() { - h hVar = this.i; - SurfaceTexture surfaceTexture = this.j; - SurfaceTexture surfaceTexture2 = hVar.o; - Surface surface = hVar.p; - hVar.o = surfaceTexture; - Surface surface2 = new Surface(surfaceTexture); - hVar.p = surface2; - g1.d dVar = hVar.q; - if (dVar != null) { - ((p1) dVar).T(surface2); - } - if (surfaceTexture2 != null) { - surfaceTexture2.release(); - } - if (surface != null) { - surface.release(); - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/d.java b/app/src/main/java/c/i/a/c/g2/o/d.java deleted file mode 100644 index 7377091b48..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/d.java +++ /dev/null @@ -1,78 +0,0 @@ -package c.i.a.c.g2.o; - -import android.hardware.Sensor; -import android.hardware.SensorEvent; -import android.hardware.SensorEventListener; -import android.hardware.SensorManager; -import android.opengl.Matrix; -import android.view.Display; -import androidx.annotation.BinderThread; -import c.i.a.c.j2.x.c; -/* compiled from: OrientationListener */ -public final class d implements SensorEventListener { - public final float[] a = new float[16]; - public final float[] b = new float[16]; - - /* renamed from: c reason: collision with root package name */ - public final float[] f872c = new float[16]; - public final float[] d = new float[3]; - public final Display e; - public final a[] f; - public boolean g; - - /* compiled from: OrientationListener */ - public interface a { - void a(float[] fArr, float f); - } - - public d(Display display, a... aVarArr) { - this.e = display; - this.f = aVarArr; - } - - @Override // android.hardware.SensorEventListener - public void onAccuracyChanged(Sensor sensor, int i) { - } - - @Override // android.hardware.SensorEventListener - @BinderThread - public void onSensorChanged(SensorEvent sensorEvent) { - SensorManager.getRotationMatrixFromVector(this.a, sensorEvent.values); - float[] fArr = this.a; - int rotation = this.e.getRotation(); - if (rotation != 0) { - int i = 129; - int i2 = 130; - if (rotation == 1) { - i = 2; - i2 = 129; - } else if (rotation != 2) { - if (rotation == 3) { - i = 130; - i2 = 1; - } else { - throw new IllegalStateException(); - } - } - float[] fArr2 = this.b; - System.arraycopy(fArr, 0, fArr2, 0, fArr2.length); - SensorManager.remapCoordinateSystem(this.b, i, i2, fArr); - } - SensorManager.remapCoordinateSystem(this.a, 1, 131, this.b); - SensorManager.getOrientation(this.b, this.d); - float f = this.d[2]; - Matrix.rotateM(this.a, 0, 90.0f, 1.0f, 0.0f, 0.0f); - float[] fArr3 = this.a; - if (!this.g) { - c.a(this.f872c, fArr3); - this.g = true; - } - float[] fArr4 = this.b; - System.arraycopy(fArr3, 0, fArr4, 0, fArr4.length); - Matrix.multiplyMM(fArr3, 0, this.b, 0, this.f872c, 0); - float[] fArr5 = this.a; - for (a aVar : this.f) { - aVar.a(fArr5, f); - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/e.java b/app/src/main/java/c/i/a/c/g2/o/e.java deleted file mode 100644 index ca989a1e25..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/e.java +++ /dev/null @@ -1,67 +0,0 @@ -package c.i.a.c.g2.o; - -import androidx.annotation.Nullable; -import c.i.a.c.j2.x.d; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.nio.FloatBuffer; -/* compiled from: ProjectionRenderer */ -public final class e { - public static final String[] a = {"uniform mat4 uMvpMatrix;", "uniform mat3 uTexMatrix;", "attribute vec4 aPosition;", "attribute vec2 aTexCoords;", "varying vec2 vTexCoords;", "void main() {", " gl_Position = uMvpMatrix * aPosition;", " vTexCoords = (uTexMatrix * vec3(aTexCoords, 1)).xy;", "}"}; - public static final String[] b = {"#extension GL_OES_EGL_image_external : require", "precision mediump float;", "uniform samplerExternalOES uTexture;", "varying vec2 vTexCoords;", "void main() {", " gl_FragColor = texture2D(uTexture, vTexCoords);", "}"}; - - /* renamed from: c reason: collision with root package name */ - public static final float[] f873c = {1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f}; - public static final float[] d = {1.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.0f, 0.0f, 0.5f, 1.0f}; - public static final float[] e = {1.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.0f, 0.0f, 1.0f, 1.0f}; - public static final float[] f = {0.5f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f}; - public static final float[] g = {0.5f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.5f, 1.0f, 1.0f}; - public int h; - @Nullable - public a i; - @Nullable - public a j; - public int k; - public int l; - public int m; - public int n; - public int o; - public int p; - - /* compiled from: ProjectionRenderer */ - public static class a { - public final int a; - public final FloatBuffer b; - - /* renamed from: c reason: collision with root package name */ - public final FloatBuffer f874c; - public final int d; - - public a(d.b bVar) { - float[] fArr = bVar.f928c; - this.a = fArr.length / 3; - this.b = AnimatableValueParser.O(fArr); - this.f874c = AnimatableValueParser.O(bVar.d); - int i = bVar.b; - if (i == 1) { - this.d = 5; - } else if (i != 2) { - this.d = 4; - } else { - this.d = 6; - } - } - } - - public static boolean a(d dVar) { - d.a aVar = dVar.a; - d.a aVar2 = dVar.b; - d.b[] bVarArr = aVar.a; - if (bVarArr.length == 1 && bVarArr[0].a == 0) { - d.b[] bVarArr2 = aVar2.a; - if (bVarArr2.length == 1 && bVarArr2[0].a == 0) { - return true; - } - } - return false; - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/f.java b/app/src/main/java/c/i/a/c/g2/o/f.java deleted file mode 100644 index 8206d75eeb..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/f.java +++ /dev/null @@ -1,271 +0,0 @@ -package c.i.a.c.g2.o; - -import android.graphics.SurfaceTexture; -import android.media.MediaFormat; -import android.opengl.GLES20; -import android.text.TextUtils; -import androidx.annotation.Nullable; -import c.i.a.c.i2.d0; -import c.i.a.c.i2.w; -import c.i.a.c.j2.s; -import c.i.a.c.j2.x.a; -import c.i.a.c.j2.x.c; -import c.i.a.c.j2.x.d; -import com.airbnb.lottie.parser.AnimatableValueParser; -import com.google.android.exoplayer2.Format; -import java.nio.IntBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Objects; -import java.util.concurrent.atomic.AtomicBoolean; -/* compiled from: SceneRenderer */ -public final class f implements s, a { - public final AtomicBoolean a = new AtomicBoolean(); - public final AtomicBoolean b = new AtomicBoolean(true); - - /* renamed from: c reason: collision with root package name */ - public final e f875c = new e(); - public final c d = new c(); - public final d0 e = new d0<>(); - public final d0 f = new d0<>(); - public final float[] g = new float[16]; - public final float[] h = new float[16]; - public int i; - public SurfaceTexture j; - public volatile int k = 0; - public int l = -1; - @Nullable - public byte[] m; - - @Override // c.i.a.c.j2.x.a - public void a(long j, float[] fArr) { - this.d.f926c.a(j, fArr); - } - - @Override // c.i.a.c.j2.x.a - public void b() { - this.e.b(); - c cVar = this.d; - cVar.f926c.b(); - cVar.d = false; - this.b.set(true); - } - - /* JADX WARNING: Removed duplicated region for block: B:33:0x008a */ - /* JADX WARNING: Removed duplicated region for block: B:43:0x00f4 */ - @Override // c.i.a.c.j2.s - public void c(long j, long j2, Format format, @Nullable MediaFormat mediaFormat) { - d dVar; - int i; - int i2; - float f; - float f2; - int i3; - int i4; - ArrayList arrayList; - int f3; - this.e.a(j2, Long.valueOf(j)); - byte[] bArr = format.D; - int i5 = format.E; - byte[] bArr2 = this.m; - int i6 = this.l; - this.m = bArr; - if (i5 == -1) { - i5 = this.k; - } - this.l = i5; - if (i6 != i5 || !Arrays.equals(bArr2, this.m)) { - byte[] bArr3 = this.m; - dVar = null; - if (bArr3 != null) { - int i7 = this.l; - w wVar = new w(bArr3); - try { - wVar.E(4); - int f4 = wVar.f(); - wVar.D(0); - if (f4 == 1886547818) { - wVar.E(8); - int i8 = wVar.b; - int i9 = wVar.f913c; - while (true) { - if (i8 >= i9) { - break; - } - f3 = wVar.f() + i8; - if (f3 <= i8) { - break; - } else if (f3 > i9) { - break; - } else { - int f5 = wVar.f(); - if (f5 == 2037673328) { - break; - } else if (f5 == 1836279920) { - break; - } else { - wVar.D(f3); - i8 = f3; - } - } - } - wVar.C(f3); - arrayList = AnimatableValueParser.U1(wVar); - } else { - arrayList = AnimatableValueParser.U1(wVar); - } - } catch (ArrayIndexOutOfBoundsException unused) { - } - if (arrayList != null) { - int size = arrayList.size(); - if (size == 1) { - dVar = new d(arrayList.get(0), i7); - } else if (size == 2) { - dVar = new d(arrayList.get(0), arrayList.get(1), i7); - } - } - } - if (dVar == null || !e.a(dVar)) { - int i10 = this.l; - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - float radians = (float) Math.toRadians((double) 180.0f); - float radians2 = (float) Math.toRadians((double) 360.0f); - float f6 = radians / ((float) 36); - float f7 = radians2 / ((float) 72); - float[] fArr = new float[15984]; - float[] fArr2 = new float[10656]; - i2 = 0; - int i11 = 0; - int i12 = 0; - for (i = 36; i2 < i; i = 36) { - float f8 = radians / 2.0f; - float f9 = (((float) i2) * f6) - f8; - int i13 = i2 + 1; - float f10 = (((float) i13) * f6) - f8; - int i14 = 0; - while (i14 < 73) { - int i15 = 0; - for (int i16 = 2; i15 < i16; i16 = 2) { - if (i15 == 0) { - f = f10; - f2 = f9; - } else { - f2 = f10; - f = f2; - } - float f11 = ((float) i14) * f7; - int i17 = i11 + 1; - double d = (double) 50.0f; - double d2 = (double) ((f11 + 3.1415927f) - (radians2 / 2.0f)); - double d3 = (double) f2; - fArr[i11] = -((float) (Math.cos(d3) * Math.sin(d2) * d)); - int i18 = i17 + 1; - fArr[i17] = (float) (Math.sin(d3) * d); - int i19 = i18 + 1; - fArr[i18] = (float) (Math.cos(d3) * Math.cos(d2) * d); - int i20 = i12 + 1; - fArr2[i12] = f11 / radians2; - int i21 = i20 + 1; - fArr2[i20] = (((float) (i2 + i15)) * f6) / radians; - if (i14 == 0 && i15 == 0) { - i3 = i15; - i4 = i14; - } else { - i4 = i14; - i3 = i15; - if (!(i4 == 72 && i3 == 1)) { - i12 = i21; - i11 = i19; - i15 = i3 + 1; - i14 = i4; - f10 = f; - f7 = f7; - f9 = f9; - radians = radians; - f6 = f6; - i10 = i10; - } - } - System.arraycopy(fArr, i19 - 3, fArr, i19, 3); - i19 += 3; - System.arraycopy(fArr2, i21 - 2, fArr2, i21, 2); - i21 += 2; - i12 = i21; - i11 = i19; - i15 = i3 + 1; - i14 = i4; - f10 = f; - f7 = f7; - f9 = f9; - radians = radians; - f6 = f6; - i10 = i10; - } - i14++; - i13 = i13; - f10 = f10; - i10 = i10; - } - i2 = i13; - } - dVar = new d(new d.a(new d.b(0, fArr, fArr2, 1)), i10); - } - this.f.a(j2, dVar); - } - return; - arrayList = null; - if (arrayList != null) { - } - int i10 = this.l; - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - AnimatableValueParser.k(true); - float radians = (float) Math.toRadians((double) 180.0f); - float radians2 = (float) Math.toRadians((double) 360.0f); - float f6 = radians / ((float) 36); - float f7 = radians2 / ((float) 72); - float[] fArr = new float[15984]; - float[] fArr2 = new float[10656]; - i2 = 0; - int i11 = 0; - int i12 = 0; - while (i2 < i) { - } - dVar = new d(new d.a(new d.b(0, fArr, fArr2, 1)), i10); - this.f.a(j2, dVar); - } - - public SurfaceTexture d() { - GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); - AnimatableValueParser.r(); - e eVar = this.f875c; - Objects.requireNonNull(eVar); - int K = AnimatableValueParser.K(TextUtils.join("\n", e.a), TextUtils.join("\n", e.b)); - eVar.k = K; - eVar.l = GLES20.glGetUniformLocation(K, "uMvpMatrix"); - eVar.m = GLES20.glGetUniformLocation(eVar.k, "uTexMatrix"); - eVar.n = GLES20.glGetAttribLocation(eVar.k, "aPosition"); - eVar.o = GLES20.glGetAttribLocation(eVar.k, "aTexCoords"); - eVar.p = GLES20.glGetUniformLocation(eVar.k, "uTexture"); - AnimatableValueParser.r(); - int[] iArr = new int[1]; - GLES20.glGenTextures(1, IntBuffer.wrap(iArr)); - GLES20.glBindTexture(36197, iArr[0]); - GLES20.glTexParameteri(36197, 10241, 9729); - GLES20.glTexParameteri(36197, 10240, 9729); - GLES20.glTexParameteri(36197, 10242, 33071); - GLES20.glTexParameteri(36197, 10243, 33071); - AnimatableValueParser.r(); - this.i = iArr[0]; - SurfaceTexture surfaceTexture = new SurfaceTexture(this.i); - this.j = surfaceTexture; - surfaceTexture.setOnFrameAvailableListener(new a(this)); - return this.j; - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/g.java b/app/src/main/java/c/i/a/c/g2/o/g.java deleted file mode 100644 index e0d3927b47..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/g.java +++ /dev/null @@ -1,4 +0,0 @@ -package c.i.a.c.g2.o; -/* compiled from: SingleTapListener */ -public interface g { -} diff --git a/app/src/main/java/c/i/a/c/g2/o/h.java b/app/src/main/java/c/i/a/c/g2/o/h.java deleted file mode 100644 index fa7d4cf9b5..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/h.java +++ /dev/null @@ -1,320 +0,0 @@ -package c.i.a.c.g2.o; - -import android.content.Context; -import android.graphics.SurfaceTexture; -import android.hardware.Sensor; -import android.hardware.SensorManager; -import android.opengl.GLES20; -import android.opengl.GLSurfaceView; -import android.opengl.Matrix; -import android.os.Handler; -import android.os.Looper; -import android.view.Surface; -import android.view.WindowManager; -import androidx.annotation.AnyThread; -import androidx.annotation.BinderThread; -import androidx.annotation.Nullable; -import androidx.annotation.VisibleForTesting; -import c.i.a.c.g1; -import c.i.a.c.g2.o.d; -import c.i.a.c.g2.o.e; -import c.i.a.c.g2.o.i; -import c.i.a.c.i2.d0; -import c.i.a.c.i2.f0; -import c.i.a.c.j2.x.c; -import c.i.a.c.p1; -import com.airbnb.lottie.parser.AnimatableValueParser; -import java.nio.Buffer; -import java.util.Objects; -import javax.microedition.khronos.egl.EGLConfig; -import javax.microedition.khronos.opengles.GL10; -/* compiled from: SphericalGLSurfaceView */ -public final class h extends GLSurfaceView { - public final SensorManager i; - @Nullable - public final Sensor j; - public final d k; - public final Handler l = new Handler(Looper.getMainLooper()); - public final i m; - public final f n; - @Nullable - public SurfaceTexture o; - @Nullable - public Surface p; - @Nullable - public g1.d q; - public boolean r; - - /* renamed from: s reason: collision with root package name */ - public boolean f876s; - public boolean t; - - /* compiled from: SphericalGLSurfaceView */ - @VisibleForTesting - public class a implements GLSurfaceView.Renderer, i.a, d.a { - public final f i; - public final float[] j = new float[16]; - public final float[] k = new float[16]; - public final float[] l; - public final float[] m; - public final float[] n; - public float o; - public float p; - public final float[] q; - public final float[] r; - - public a(f fVar) { - float[] fArr = new float[16]; - this.l = fArr; - float[] fArr2 = new float[16]; - this.m = fArr2; - float[] fArr3 = new float[16]; - this.n = fArr3; - this.q = new float[16]; - this.r = new float[16]; - this.i = fVar; - Matrix.setIdentityM(fArr, 0); - Matrix.setIdentityM(fArr2, 0); - Matrix.setIdentityM(fArr3, 0); - this.p = 3.1415927f; - } - - @Override // c.i.a.c.g2.o.d.a - @BinderThread - public synchronized void a(float[] fArr, float f) { - float[] fArr2 = this.l; - System.arraycopy(fArr, 0, fArr2, 0, fArr2.length); - this.p = -f; - b(); - } - - @AnyThread - public final void b() { - Matrix.setRotateM(this.m, 0, -this.o, (float) Math.cos((double) this.p), (float) Math.sin((double) this.p), 0.0f); - } - - @Override // android.opengl.GLSurfaceView.Renderer - public void onDrawFrame(GL10 gl10) { - Long d; - float[] fArr; - synchronized (this) { - Matrix.multiplyMM(this.r, 0, this.l, 0, this.n, 0); - Matrix.multiplyMM(this.q, 0, this.m, 0, this.r, 0); - } - Matrix.multiplyMM(this.k, 0, this.j, 0, this.q, 0); - f fVar = this.i; - float[] fArr2 = this.k; - Objects.requireNonNull(fVar); - GLES20.glClear(16384); - AnimatableValueParser.r(); - if (fVar.a.compareAndSet(true, false)) { - SurfaceTexture surfaceTexture = fVar.j; - Objects.requireNonNull(surfaceTexture); - surfaceTexture.updateTexImage(); - AnimatableValueParser.r(); - if (fVar.b.compareAndSet(true, false)) { - Matrix.setIdentityM(fVar.g, 0); - } - long timestamp = fVar.j.getTimestamp(); - d0 d0Var = fVar.e; - synchronized (d0Var) { - d = d0Var.d(timestamp, false); - } - Long l = d; - if (l != null) { - c cVar = fVar.d; - float[] fArr3 = fVar.g; - float[] e = cVar.f926c.e(l.longValue()); - if (e != null) { - float[] fArr4 = cVar.b; - float f = e[0]; - float f2 = -e[1]; - float f3 = -e[2]; - float length = Matrix.length(f, f2, f3); - if (length != 0.0f) { - fArr = fArr3; - Matrix.setRotateM(fArr4, 0, (float) Math.toDegrees((double) length), f / length, f2 / length, f3 / length); - } else { - fArr = fArr3; - Matrix.setIdentityM(fArr4, 0); - } - if (!cVar.d) { - c.a(cVar.a, cVar.b); - cVar.d = true; - } - Matrix.multiplyMM(fArr, 0, cVar.a, 0, cVar.b, 0); - } - } - c.i.a.c.j2.x.d e2 = fVar.f.e(timestamp); - if (e2 != null) { - e eVar = fVar.f875c; - Objects.requireNonNull(eVar); - if (e.a(e2)) { - eVar.h = e2.f927c; - e.a aVar = new e.a(e2.a.a[0]); - eVar.i = aVar; - if (!e2.d) { - aVar = new e.a(e2.b.a[0]); - } - eVar.j = aVar; - } - } - } - Matrix.multiplyMM(fVar.h, 0, fArr2, 0, fVar.g, 0); - e eVar2 = fVar.f875c; - int i = fVar.i; - float[] fArr5 = fVar.h; - e.a aVar2 = eVar2.i; - if (aVar2 != null) { - GLES20.glUseProgram(eVar2.k); - AnimatableValueParser.r(); - GLES20.glEnableVertexAttribArray(eVar2.n); - GLES20.glEnableVertexAttribArray(eVar2.o); - AnimatableValueParser.r(); - int i2 = eVar2.h; - GLES20.glUniformMatrix3fv(eVar2.m, 1, false, i2 == 1 ? e.d : i2 == 2 ? e.f : e.f873c, 0); - GLES20.glUniformMatrix4fv(eVar2.l, 1, false, fArr5, 0); - GLES20.glActiveTexture(33984); - GLES20.glBindTexture(36197, i); - GLES20.glUniform1i(eVar2.p, 0); - AnimatableValueParser.r(); - GLES20.glVertexAttribPointer(eVar2.n, 3, 5126, false, 12, (Buffer) aVar2.b); - AnimatableValueParser.r(); - GLES20.glVertexAttribPointer(eVar2.o, 2, 5126, false, 8, (Buffer) aVar2.f874c); - AnimatableValueParser.r(); - GLES20.glDrawArrays(aVar2.d, 0, aVar2.a); - AnimatableValueParser.r(); - GLES20.glDisableVertexAttribArray(eVar2.n); - GLES20.glDisableVertexAttribArray(eVar2.o); - } - } - - @Override // android.opengl.GLSurfaceView.Renderer - public void onSurfaceChanged(GL10 gl10, int i, int i2) { - boolean z2 = false; - GLES20.glViewport(0, 0, i, i2); - float f = ((float) i) / ((float) i2); - if (f > 1.0f) { - z2 = true; - } - Matrix.perspectiveM(this.j, 0, z2 ? (float) (Math.toDegrees(Math.atan(Math.tan(Math.toRadians(45.0d)) / ((double) f))) * 2.0d) : 90.0f, f, 0.1f, 100.0f); - } - - @Override // android.opengl.GLSurfaceView.Renderer - public synchronized void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) { - h hVar = h.this; - hVar.l.post(new c(hVar, this.i.d())); - } - } - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public h(Context context) { - super(context, null); - Sensor sensor = null; - Object systemService = context.getSystemService("sensor"); - Objects.requireNonNull(systemService); - SensorManager sensorManager = (SensorManager) systemService; - this.i = sensorManager; - sensor = f0.a >= 18 ? sensorManager.getDefaultSensor(15) : sensor; - this.j = sensor == null ? sensorManager.getDefaultSensor(11) : sensor; - f fVar = new f(); - this.n = fVar; - a aVar = new a(fVar); - i iVar = new i(context, aVar, 25.0f); - this.m = iVar; - WindowManager windowManager = (WindowManager) context.getSystemService("window"); - Objects.requireNonNull(windowManager); - this.k = new d(windowManager.getDefaultDisplay(), iVar, aVar); - this.r = true; - setEGLContextClientVersion(2); - setRenderer(aVar); - setOnTouchListener(iVar); - } - - public final void a() { - boolean z2 = this.r && this.f876s; - Sensor sensor = this.j; - if (sensor != null && z2 != this.t) { - if (z2) { - this.i.registerListener(this.k, sensor, 0); - } else { - this.i.unregisterListener(this.k); - } - this.t = z2; - } - } - - @Override // android.opengl.GLSurfaceView, android.view.SurfaceView, android.view.View - public void onDetachedFromWindow() { - super.onDetachedFromWindow(); - this.l.post(new b(this)); - } - - @Override // android.opengl.GLSurfaceView - public void onPause() { - this.f876s = false; - a(); - super.onPause(); - } - - @Override // android.opengl.GLSurfaceView - public void onResume() { - super.onResume(); - this.f876s = true; - a(); - } - - public void setDefaultStereoMode(int i) { - this.n.k = i; - } - - public void setSingleTapListener(@Nullable g gVar) { - this.m.o = gVar; - } - - public void setUseSensorRotation(boolean z2) { - this.r = z2; - a(); - } - - public void setVideoComponent(@Nullable g1.d dVar) { - g1.d dVar2 = this.q; - if (dVar != dVar2) { - if (dVar2 != null) { - Surface surface = this.p; - if (surface != null) { - ((p1) dVar2).L(surface); - } - g1.d dVar3 = this.q; - f fVar = this.n; - p1 p1Var = (p1) dVar3; - p1Var.Z(); - if (p1Var.E == fVar) { - p1Var.R(2, 6, null); - } - g1.d dVar4 = this.q; - f fVar2 = this.n; - p1 p1Var2 = (p1) dVar4; - p1Var2.Z(); - if (p1Var2.F == fVar2) { - p1Var2.R(6, 7, null); - } - } - this.q = dVar; - if (dVar != null) { - f fVar3 = this.n; - p1 p1Var3 = (p1) dVar; - p1Var3.Z(); - p1Var3.E = fVar3; - p1Var3.R(2, 6, fVar3); - g1.d dVar5 = this.q; - f fVar4 = this.n; - p1 p1Var4 = (p1) dVar5; - p1Var4.Z(); - p1Var4.F = fVar4; - p1Var4.R(6, 7, fVar4); - ((p1) this.q).T(this.p); - } - } - } -} diff --git a/app/src/main/java/c/i/a/c/g2/o/i.java b/app/src/main/java/c/i/a/c/g2/o/i.java deleted file mode 100644 index a2292c6e7a..0000000000 --- a/app/src/main/java/c/i/a/c/g2/o/i.java +++ /dev/null @@ -1,89 +0,0 @@ -package c.i.a.c.g2.o; - -import android.content.Context; -import android.graphics.PointF; -import android.opengl.Matrix; -import android.view.GestureDetector; -import android.view.MotionEvent; -import android.view.View; -import androidx.annotation.BinderThread; -import androidx.annotation.Nullable; -import c.i.a.c.g2.o.d; -import c.i.a.c.g2.o.h; -import com.google.android.exoplayer2.ui.PlayerView; -/* compiled from: TouchTracker */ -public class i extends GestureDetector.SimpleOnGestureListener implements View.OnTouchListener, d.a { - public final PointF i = new PointF(); - public final PointF j = new PointF(); - public final a k; - public final float l; - public final GestureDetector m; - public volatile float n; - @Nullable - public g o; - - /* compiled from: TouchTracker */ - public interface a { - } - - public i(Context context, a aVar, float f) { - this.k = aVar; - this.l = f; - this.m = new GestureDetector(context, this); - this.n = 3.1415927f; - } - - @Override // c.i.a.c.g2.o.d.a - @BinderThread - public void a(float[] fArr, float f) { - this.n = -f; - } - - @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener - public boolean onDown(MotionEvent motionEvent) { - this.i.set(motionEvent.getX(), motionEvent.getY()); - return true; - } - - @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener - public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) { - float x2 = (motionEvent2.getX() - this.i.x) / this.l; - float y2 = motionEvent2.getY(); - PointF pointF = this.i; - float f3 = (y2 - pointF.y) / this.l; - pointF.set(motionEvent2.getX(), motionEvent2.getY()); - double d = (double) this.n; - float cos = (float) Math.cos(d); - float sin = (float) Math.sin(d); - PointF pointF2 = this.j; - pointF2.x -= (cos * x2) - (sin * f3); - float f4 = (cos * f3) + (sin * x2) + pointF2.y; - pointF2.y = f4; - pointF2.y = Math.max(-45.0f, Math.min(45.0f, f4)); - a aVar = this.k; - PointF pointF3 = this.j; - h.a aVar2 = (h.a) aVar; - synchronized (aVar2) { - aVar2.o = pointF3.y; - aVar2.b(); - Matrix.setRotateM(aVar2.n, 0, -pointF3.x, 0.0f, 1.0f, 0.0f); - } - return true; - } - - @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener - public boolean onSingleTapUp(MotionEvent motionEvent) { - g gVar = this.o; - if (gVar == null) { - return false; - } - PlayerView playerView = PlayerView.this; - int i = PlayerView.i; - return playerView.j(); - } - - @Override // android.view.View.OnTouchListener - public boolean onTouch(View view, MotionEvent motionEvent) { - return this.m.onTouchEvent(motionEvent); - } -} diff --git a/app/src/main/java/c/i/a/c/h.java b/app/src/main/java/c/i/a/c/h.java deleted file mode 100644 index ba56fd0960..0000000000 --- a/app/src/main/java/c/i/a/c/h.java +++ /dev/null @@ -1,17 +0,0 @@ -package c.i.a.c; - -import c.i.a.c.g1; -import c.i.a.c.i2.o; -/* compiled from: lambda */ -public final /* synthetic */ class h implements o.a { - public final /* synthetic */ boolean a; - - public /* synthetic */ h(boolean z2) { - this.a = z2; - } - - @Override // c.i.a.c.i2.o.a - public final void invoke(Object obj) { - ((g1.a) obj).v(this.a); - } -} diff --git a/app/src/main/java/c/i/a/c/h0.java b/app/src/main/java/c/i/a/c/h0.java deleted file mode 100644 index 78e9e72104..0000000000 --- a/app/src/main/java/c/i/a/c/h0.java +++ /dev/null @@ -1,21 +0,0 @@ -package c.i.a.c; - -import java.util.UUID; -/* compiled from: C */ -public final class h0 { - public static final UUID a = new UUID(0, 0); - public static final UUID b = new UUID(1186680826959645954L, -5988876978535335093L); - - /* renamed from: c reason: collision with root package name */ - public static final UUID f878c = new UUID(-2129748144642739255L, 8654423357094679310L); - public static final UUID d = new UUID(-1301668207276963122L, -6645017420763422227L); - public static final UUID e = new UUID(-7348484286925749626L, -6083546864340672619L); - - public static long a(long j) { - return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j * 1000; - } - - public static long b(long j) { - return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j / 1000; - } -}