apkfuckery/com.discord/smali/com/camerakit/preview/CameraSurfaceTexture.smali
2019-10-03 04:31:26 +02:00

161 lines
4.1 KiB
Smali

.class public final Lcom/camerakit/preview/CameraSurfaceTexture;
.super Landroid/graphics/SurfaceTexture;
.source "CameraSurfaceTexture.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/camerakit/preview/CameraSurfaceTexture$a;
}
.end annotation
# static fields
.field public static final qD:Lcom/camerakit/preview/CameraSurfaceTexture$a;
# instance fields
.field private nativeHandle:J
.field public qA:Z
.field public final qB:[F
.field final qC:I
.field public qz:Lcom/camerakit/b/c;
.field private final transformMatrix:[F
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lcom/camerakit/preview/CameraSurfaceTexture$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/camerakit/preview/CameraSurfaceTexture$a;-><init>(B)V
sput-object v0, Lcom/camerakit/preview/CameraSurfaceTexture;->qD:Lcom/camerakit/preview/CameraSurfaceTexture$a;
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;->qC:I
new-instance p2, Lcom/camerakit/b/c;
const/4 v0, 0x0
invoke-direct {p2, v0, v0}, Lcom/camerakit/b/c;-><init>(II)V
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qz:Lcom/camerakit/b/c;
const/16 p2, 0x10
new-array v1, p2, [F
iput-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
new-array p2, p2, [F
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qB:[F
iget p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qC:I
invoke-direct {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeInit(II)V
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qB:[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 protected final 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 final release()V
.locals 0
invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeRelease()V
return-void
.end method
.method public final updateTexImage()V
.locals 2
iget-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qA:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qz:Lcom/camerakit/b/c;
iget v0, v0, Lcom/camerakit/b/c;->width:I
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qz:Lcom/camerakit/b/c;
iget v1, v1, Lcom/camerakit/b/c;->height:I
invoke-direct {p0, v0, v1}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeSetSize(II)V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qA:Z
:cond_0
invoke-super {p0}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
invoke-virtual {p0, v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->getTransformMatrix([F)V
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->qB:[F
invoke-direct {p0, v0, v1}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeUpdateTexImage([F[F)V
return-void
.end method