discord-jadx/app/src/main/java/c/o/a/v/g.java

85 lines
2.2 KiB
Java

package c.o.a.v;
import android.annotation.TargetApi;
import android.graphics.Rect;
import android.graphics.SurfaceTexture;
import android.opengl.EGL14;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import c.o.a.l;
import c.o.a.r.c;
import c.o.a.u.a;
import c.o.a.u.b;
import c.o.a.v.d;
import c.o.a.w.e;
import c.o.a.w.f;
import java.util.Objects;
/* compiled from: SnapshotGlPictureRecorder */
public class g extends i {
public e m;
public c.o.a.x.a n;
public c.o.a.u.a o;
public boolean p;
public b q;
public c r;
/* compiled from: SnapshotGlPictureRecorder */
public class a implements f {
public a() {
}
@Override // c.o.a.w.f
public void a(@NonNull SurfaceTexture surfaceTexture, int i, float f, float f2) {
g.this.m.d(this);
g gVar = g.this;
Objects.requireNonNull(gVar);
c.o.a.r.g.a(new h(gVar, surfaceTexture, i, f, f2, EGL14.eglGetCurrentContext()));
}
@Override // c.o.a.w.f
public void b(int i) {
g gVar = g.this;
Objects.requireNonNull(gVar);
gVar.r = new c(new c.o.b.f.b(33984, 36197, Integer.valueOf(i)));
Rect v = c.i.a.f.e.o.c.v(gVar.i.d, gVar.n);
gVar.i.d = new c.o.a.x.b(v.width(), v.height());
if (gVar.p) {
gVar.q = new b(gVar.o, gVar.i.d);
}
}
@Override // c.o.a.w.f
public void c(@NonNull c.o.a.o.b bVar) {
g.this.r.d = bVar.a();
}
}
public g(@NonNull l.a aVar, @Nullable d.a aVar2, @NonNull e eVar, @NonNull c.o.a.x.a aVar3, @Nullable c.o.a.u.a aVar4) {
super(aVar, aVar2);
boolean z2;
this.m = eVar;
this.n = aVar3;
this.o = aVar4;
if (aVar4 != null) {
if (((c.o.a.u.c) aVar4).b(a.EnumC0167a.PICTURE_SNAPSHOT)) {
z2 = true;
this.p = z2;
}
}
z2 = false;
this.p = z2;
}
@Override // c.o.a.v.d
public void b() {
this.n = null;
super.b();
}
@Override // c.o.a.v.d
@TargetApi(19)
public void c() {
this.m.b(new a());
}
}