85 lines
2.0 KiB
Java
85 lines
2.0 KiB
Java
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<a> 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<u.a<a>> list, long[] jArr) {
|
|
long j = 0;
|
|
for (long j2 : jArr) {
|
|
j += j2;
|
|
}
|
|
for (int i = 0; i < list.size(); i++) {
|
|
u.a<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) {
|
|
}
|
|
}
|