apkfuckery/com.discord/smali/com/camerakit/preview/CameraSurfaceTexture.smali
2020-05-11 21:22:21 +02:00

207 lines
4.6 KiB
Smali

.class public final Lcom/camerakit/preview/CameraSurfaceTexture;
.super Landroid/graphics/SurfaceTexture;
.source "CameraSurfaceTexture.kt"
# instance fields
.field public a:Lf/g/j/c;
.field public b:Z
.field public final c:[F
.field public final d:[F
.field public final e:I
.field public nativeHandle:J
.annotation build Landroidx/annotation/Keep;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "camerakit"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(II)V
.locals 2
invoke-direct {p0, p1}, Landroid/graphics/SurfaceTexture;-><init>(I)V
iput p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->e:I
new-instance p2, Lf/g/j/c;
const/4 v0, 0x0
invoke-direct {p2, v0, v0}, Lf/g/j/c;-><init>(II)V
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Lf/g/j/c;
const/16 p2, 0x10
new-array v1, p2, [F
iput-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
new-array p2, p2, [F
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
iget p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->e:I
invoke-direct {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeInit(II)V
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
invoke-static {p1, v0}, Landroid/opengl/Matrix;->setIdentityM([FI)V
return-void
.end method
.method private final native nativeFinalize()V
.end method
.method private final native nativeInit(II)V
.end method
.method private final native nativeRelease()V
.end method
.method private final native nativeSetSize(II)V
.end method
.method private final native nativeUpdateTexImage([F[F)V
.end method
# virtual methods
.method public final a()I
.locals 1
iget v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->e:I
return v0
.end method
.method public final a(I)V
.locals 8
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
const/4 v1, 0x0
invoke-static {v0, v1}, Landroid/opengl/Matrix;->setIdentityM([FI)V
iget-object v2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
int-to-float v4, p1
const/4 v3, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/high16 v7, 0x3f800000 # 1.0f
invoke-static/range {v2 .. v7}, Landroid/opengl/Matrix;->rotateM([FIFFFF)V
return-void
.end method
.method public final a(Lf/g/j/c;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Lf/g/j/c;
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->b:Z
return-void
:cond_0
const-string p1, "size"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final b()Lf/g/j/c;
.locals 1
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Lf/g/j/c;
return-object v0
.end method
.method public finalize()V
.locals 0
invoke-super {p0}, Landroid/graphics/SurfaceTexture;->finalize()V
:try_start_0
invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeFinalize()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
.end method
.method public release()V
.locals 0
invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeRelease()V
return-void
.end method
.method public updateTexImage()V
.locals 2
iget-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->b:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Lf/g/j/c;
iget v1, v0, Lf/g/j/c;->d:I
iget v0, v0, Lf/g/j/c;->e:I
invoke-direct {p0, v1, v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeSetSize(II)V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->b:Z
:cond_0
invoke-super {p0}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
invoke-virtual {p0, v0}, Landroid/graphics/SurfaceTexture;->getTransformMatrix([F)V
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
invoke-direct {p0, v0, v1}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeUpdateTexImage([F[F)V
return-void
.end method