- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
266 lines
11 KiB
Java
266 lines
11 KiB
Java
package com.fyber.inneractive.sdk.player.exoplayer2;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.annotation.TargetApi;
|
|
import android.media.MediaFormat;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.fyber.inneractive.sdk.player.exoplayer2.util.s;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class j implements Parcelable {
|
|
public static final Parcelable.Creator<j> CREATOR = new a();
|
|
public int A;
|
|
public final String a;
|
|
public final int b;
|
|
public final String c;
|
|
public final com.fyber.inneractive.sdk.player.exoplayer2.metadata.a d;
|
|
public final String e;
|
|
public final String f;
|
|
public final int g;
|
|
public final List<byte[]> h;
|
|
public final com.fyber.inneractive.sdk.player.exoplayer2.drm.a i;
|
|
public final int j;
|
|
public final int k;
|
|
public final float l;
|
|
public final int m;
|
|
public final float n;
|
|
public final int o;
|
|
public final byte[] p;
|
|
public final com.fyber.inneractive.sdk.player.exoplayer2.video.b q;
|
|
public final int r;
|
|
public final int s;
|
|
public final int t;
|
|
public final int u;
|
|
public final int v;
|
|
public final long w;
|
|
public final int x;
|
|
public final String y;
|
|
public final int z;
|
|
|
|
public class a implements Parcelable.Creator<j> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final j createFromParcel(Parcel parcel) {
|
|
return new j(parcel);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final j[] newArray(int i) {
|
|
return new j[i];
|
|
}
|
|
}
|
|
|
|
public j(String str, String str2, String str3, String str4, int i, int i2, int i3, int i4, float f, int i5, float f2, byte[] bArr, int i6, com.fyber.inneractive.sdk.player.exoplayer2.video.b bVar, int i7, int i8, int i9, int i10, int i11, int i12, String str5, int i13, long j, List<byte[]> list, com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar, com.fyber.inneractive.sdk.player.exoplayer2.metadata.a aVar2) {
|
|
this.a = str;
|
|
this.e = str2;
|
|
this.f = str3;
|
|
this.c = str4;
|
|
this.b = i;
|
|
this.g = i2;
|
|
this.j = i3;
|
|
this.k = i4;
|
|
this.l = f;
|
|
this.m = i5;
|
|
this.n = f2;
|
|
this.p = bArr;
|
|
this.o = i6;
|
|
this.q = bVar;
|
|
this.r = i7;
|
|
this.s = i8;
|
|
this.t = i9;
|
|
this.u = i10;
|
|
this.v = i11;
|
|
this.x = i12;
|
|
this.y = str5;
|
|
this.z = i13;
|
|
this.w = j;
|
|
this.h = list == null ? Collections.emptyList() : list;
|
|
this.i = aVar;
|
|
this.d = aVar2;
|
|
}
|
|
|
|
public static j a(String str, String str2, int i, int i2, int i3, int i4, int i5, List list, com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar, int i6, String str3) {
|
|
return new j(str, null, str2, null, i, i2, -1, -1, -1.0f, -1, -1.0f, null, -1, null, i3, i4, i5, -1, -1, i6, str3, -1, Long.MAX_VALUE, list, aVar, null);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj != null && j.class == obj.getClass()) {
|
|
j jVar = (j) obj;
|
|
if (this.b == jVar.b && this.g == jVar.g && this.j == jVar.j && this.k == jVar.k && this.l == jVar.l && this.m == jVar.m && this.n == jVar.n && this.o == jVar.o && this.r == jVar.r && this.s == jVar.s && this.t == jVar.t && this.u == jVar.u && this.v == jVar.v && this.w == jVar.w && this.x == jVar.x && s.a(this.a, jVar.a) && s.a(this.y, jVar.y) && this.z == jVar.z && s.a(this.e, jVar.e) && s.a(this.f, jVar.f) && s.a(this.c, jVar.c) && s.a(this.i, jVar.i) && s.a(this.d, jVar.d) && s.a(this.q, jVar.q) && Arrays.equals(this.p, jVar.p) && this.h.size() == jVar.h.size()) {
|
|
for (int i = 0; i < this.h.size(); i++) {
|
|
if (!Arrays.equals(this.h.get(i), jVar.h.get(i))) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final String toString() {
|
|
return "Format(" + this.a + ", " + this.e + ", " + this.f + ", " + this.b + ", " + this.y + ", [" + this.j + ", " + this.k + ", " + this.l + "], [" + this.r + ", " + this.s + "])";
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.a);
|
|
parcel.writeString(this.e);
|
|
parcel.writeString(this.f);
|
|
parcel.writeString(this.c);
|
|
parcel.writeInt(this.b);
|
|
parcel.writeInt(this.g);
|
|
parcel.writeInt(this.j);
|
|
parcel.writeInt(this.k);
|
|
parcel.writeFloat(this.l);
|
|
parcel.writeInt(this.m);
|
|
parcel.writeFloat(this.n);
|
|
parcel.writeInt(this.p != null ? 1 : 0);
|
|
byte[] bArr = this.p;
|
|
if (bArr != null) {
|
|
parcel.writeByteArray(bArr);
|
|
}
|
|
parcel.writeInt(this.o);
|
|
parcel.writeParcelable(this.q, i);
|
|
parcel.writeInt(this.r);
|
|
parcel.writeInt(this.s);
|
|
parcel.writeInt(this.t);
|
|
parcel.writeInt(this.u);
|
|
parcel.writeInt(this.v);
|
|
parcel.writeInt(this.x);
|
|
parcel.writeString(this.y);
|
|
parcel.writeInt(this.z);
|
|
parcel.writeLong(this.w);
|
|
int size = this.h.size();
|
|
parcel.writeInt(size);
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
parcel.writeByteArray(this.h.get(i2));
|
|
}
|
|
parcel.writeParcelable(this.i, 0);
|
|
parcel.writeParcelable(this.d, 0);
|
|
}
|
|
|
|
public static j a(String str, String str2, int i, String str3, com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar) {
|
|
return a(str, str2, i, str3, -1, aVar, Long.MAX_VALUE, Collections.emptyList());
|
|
}
|
|
|
|
public final int hashCode() {
|
|
if (this.A == 0) {
|
|
String str = this.a;
|
|
int hashCode = ((str == null ? 0 : str.hashCode()) + IronSourceError.ERROR_NON_EXISTENT_INSTANCE) * 31;
|
|
String str2 = this.e;
|
|
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
|
|
String str3 = this.f;
|
|
int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
|
|
String str4 = this.c;
|
|
int hashCode4 = (((((((((((hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31) + this.b) * 31) + this.j) * 31) + this.k) * 31) + this.r) * 31) + this.s) * 31;
|
|
String str5 = this.y;
|
|
int hashCode5 = (((hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31) + this.z) * 31;
|
|
com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar = this.i;
|
|
int hashCode6 = (hashCode5 + (aVar == null ? 0 : aVar.hashCode())) * 31;
|
|
com.fyber.inneractive.sdk.player.exoplayer2.metadata.a aVar2 = this.d;
|
|
this.A = hashCode6 + (aVar2 != null ? Arrays.hashCode(aVar2.a) : 0);
|
|
}
|
|
return this.A;
|
|
}
|
|
|
|
public static j a(String str, String str2, int i, String str3, int i2, com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar, long j, List list) {
|
|
return new j(str, null, str2, null, -1, -1, -1, -1, -1.0f, -1, -1.0f, null, -1, null, -1, -1, -1, -1, -1, i, str3, i2, j, list, aVar, null);
|
|
}
|
|
|
|
public static j a(String str, String str2, com.fyber.inneractive.sdk.player.exoplayer2.drm.a aVar) {
|
|
return new j(str, null, str2, null, -1, -1, -1, -1, -1.0f, -1, -1.0f, null, -1, null, -1, -1, -1, -1, -1, 0, null, -1, Long.MAX_VALUE, null, aVar, null);
|
|
}
|
|
|
|
@SuppressLint({"InlinedApi"})
|
|
@TargetApi(16)
|
|
public final MediaFormat a() {
|
|
MediaFormat mediaFormat = new MediaFormat();
|
|
mediaFormat.setString("mime", this.f);
|
|
String str = this.y;
|
|
if (str != null) {
|
|
mediaFormat.setString("language", str);
|
|
}
|
|
a(mediaFormat, "max-input-size", this.g);
|
|
a(mediaFormat, "width", this.j);
|
|
a(mediaFormat, "height", this.k);
|
|
float f = this.l;
|
|
if (f != -1.0f) {
|
|
mediaFormat.setFloat("frame-rate", f);
|
|
}
|
|
a(mediaFormat, "rotation-degrees", this.m);
|
|
a(mediaFormat, "channel-count", this.r);
|
|
a(mediaFormat, "sample-rate", this.s);
|
|
a(mediaFormat, "encoder-delay", this.u);
|
|
a(mediaFormat, "encoder-padding", this.v);
|
|
for (int i = 0; i < this.h.size(); i++) {
|
|
mediaFormat.setByteBuffer(i.a("csd-", i), ByteBuffer.wrap(this.h.get(i)));
|
|
}
|
|
com.fyber.inneractive.sdk.player.exoplayer2.video.b bVar = this.q;
|
|
if (bVar != null) {
|
|
a(mediaFormat, "color-transfer", bVar.c);
|
|
a(mediaFormat, "color-standard", bVar.a);
|
|
a(mediaFormat, "color-range", bVar.b);
|
|
byte[] bArr = bVar.d;
|
|
if (bArr != null) {
|
|
mediaFormat.setByteBuffer("hdr-static-info", ByteBuffer.wrap(bArr));
|
|
}
|
|
}
|
|
return mediaFormat;
|
|
}
|
|
|
|
public j(Parcel parcel) {
|
|
this.a = parcel.readString();
|
|
this.e = parcel.readString();
|
|
this.f = parcel.readString();
|
|
this.c = parcel.readString();
|
|
this.b = parcel.readInt();
|
|
this.g = parcel.readInt();
|
|
this.j = parcel.readInt();
|
|
this.k = parcel.readInt();
|
|
this.l = parcel.readFloat();
|
|
this.m = parcel.readInt();
|
|
this.n = parcel.readFloat();
|
|
this.p = parcel.readInt() != 0 ? parcel.createByteArray() : null;
|
|
this.o = parcel.readInt();
|
|
this.q = (com.fyber.inneractive.sdk.player.exoplayer2.video.b) parcel.readParcelable(com.fyber.inneractive.sdk.player.exoplayer2.video.b.class.getClassLoader());
|
|
this.r = parcel.readInt();
|
|
this.s = parcel.readInt();
|
|
this.t = parcel.readInt();
|
|
this.u = parcel.readInt();
|
|
this.v = parcel.readInt();
|
|
this.x = parcel.readInt();
|
|
this.y = parcel.readString();
|
|
this.z = parcel.readInt();
|
|
this.w = parcel.readLong();
|
|
int readInt = parcel.readInt();
|
|
this.h = new ArrayList(readInt);
|
|
for (int i = 0; i < readInt; i++) {
|
|
this.h.add(parcel.createByteArray());
|
|
}
|
|
this.i = (com.fyber.inneractive.sdk.player.exoplayer2.drm.a) parcel.readParcelable(com.fyber.inneractive.sdk.player.exoplayer2.drm.a.class.getClassLoader());
|
|
this.d = (com.fyber.inneractive.sdk.player.exoplayer2.metadata.a) parcel.readParcelable(com.fyber.inneractive.sdk.player.exoplayer2.metadata.a.class.getClassLoader());
|
|
}
|
|
|
|
@TargetApi(16)
|
|
public static void a(MediaFormat mediaFormat, String str, int i) {
|
|
if (i != -1) {
|
|
mediaFormat.setInteger(str, i);
|
|
}
|
|
}
|
|
}
|