116 lines
4.0 KiB
Java
116 lines
4.0 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.npu, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class C16381npu {
|
||
|
public final int a;
|
||
|
public final float b;
|
||
|
public final List<LWm> c;
|
||
|
public final int d;
|
||
|
|
||
|
/* synthetic */ C16381npu(float f, List list, int i, int i2, byte b) {
|
||
|
this(f, list, i, i2);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public C16381npu(float f, List<LWm> list, int i, int i2) {
|
||
|
this.b = f;
|
||
|
this.c = Collections.unmodifiableList(list);
|
||
|
this.d = i;
|
||
|
this.a = i2;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.npu$RVV */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class RVV {
|
||
|
private final float a;
|
||
|
private LWm d;
|
||
|
private LWm h;
|
||
|
private final List<LWm> j = new ArrayList();
|
||
|
private int b = -1;
|
||
|
private int e = -1;
|
||
|
private float c = BitmapDescriptorFactory.HUE_RED;
|
||
|
|
||
|
public RVV(float f) {
|
||
|
this.a = f;
|
||
|
}
|
||
|
|
||
|
public final RVV b(float f, float f2, float f3, boolean z) {
|
||
|
if (f3 <= BitmapDescriptorFactory.HUE_RED) {
|
||
|
return this;
|
||
|
}
|
||
|
LWm lWm = new LWm(Float.MIN_VALUE, f, f2, f3);
|
||
|
if (z) {
|
||
|
if (this.d == null) {
|
||
|
this.d = lWm;
|
||
|
this.b = this.j.size();
|
||
|
}
|
||
|
if (this.e != -1 && this.j.size() - this.e > 1) {
|
||
|
throw new IllegalArgumentException("Keylines marked as focal must be placed next to each other. There cannot be non-focal keylines between focal keylines.");
|
||
|
}
|
||
|
if (f3 != this.d.d) {
|
||
|
throw new IllegalArgumentException("Keylines that are marked as focal must all have the same masked item size.");
|
||
|
}
|
||
|
this.h = lWm;
|
||
|
this.e = this.j.size();
|
||
|
} else {
|
||
|
if (this.d == null && lWm.d < this.c) {
|
||
|
throw new IllegalArgumentException("Keylines before the first focal keyline must be ordered by incrementing masked item size.");
|
||
|
}
|
||
|
if (this.h != null && lWm.d > this.c) {
|
||
|
throw new IllegalArgumentException("Keylines after the last focal keyline must be ordered by decreasing masked item size.");
|
||
|
}
|
||
|
}
|
||
|
this.c = lWm.d;
|
||
|
this.j.add(lWm);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final RVV b(float f, float f2, float f3, int i, boolean z) {
|
||
|
if (i > 0 && f3 > BitmapDescriptorFactory.HUE_RED) {
|
||
|
for (int i2 = 0; i2 < i; i2++) {
|
||
|
b((i2 * f3) + f, f2, f3, z);
|
||
|
}
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public final C16381npu c() {
|
||
|
if (this.d == null) {
|
||
|
throw new IllegalStateException("There must be a keyline marked as focal.");
|
||
|
}
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
for (int i = 0; i < this.j.size(); i++) {
|
||
|
LWm lWm = this.j.get(i);
|
||
|
float f = this.d.a;
|
||
|
float f2 = this.a;
|
||
|
arrayList.add(new LWm((f - (this.b * f2)) + (i * f2), lWm.a, lWm.e, lWm.d));
|
||
|
}
|
||
|
return new C16381npu(this.a, arrayList, this.b, this.e, (byte) 0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.npu$LWm */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class LWm {
|
||
|
public final float a;
|
||
|
public final float c;
|
||
|
public final float d;
|
||
|
public final float e;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public LWm(float f, float f2, float f3, float f4) {
|
||
|
this.c = f;
|
||
|
this.a = f2;
|
||
|
this.e = f3;
|
||
|
this.d = f4;
|
||
|
}
|
||
|
}
|
||
|
}
|