apkfuckery/com.discord/smali/com/camerakit/preview/CameraSurfaceTexture.smali

162 lines
4.1 KiB
Smali
Raw Normal View History

2019-10-03 02:31:26 +00:00
.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
2019-10-23 04:50:18 +00:00
.field public static final oX:Lcom/camerakit/preview/CameraSurfaceTexture$a;
2019-10-03 02:31:26 +00:00
# instance fields
.field private nativeHandle:J
2019-12-06 01:29:57 +00:00
.field public oT:Lcom/camerakit/b/c;
2019-10-03 02:31:26 +00:00
2019-12-06 01:29:57 +00:00
.field public oU:Z
2019-10-03 02:31:26 +00:00
2019-10-23 04:50:18 +00:00
.field public final oV:[F
2019-10-03 02:31:26 +00:00
2019-10-23 04:50:18 +00:00
.field final oW:I
2019-10-03 02:31:26 +00:00
2019-12-06 01:29:57 +00:00
.field private final transformMatrix:[F
2019-10-03 02:31:26 +00:00
# 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
2019-10-23 04:50:18 +00:00
sput-object v0, Lcom/camerakit/preview/CameraSurfaceTexture;->oX:Lcom/camerakit/preview/CameraSurfaceTexture$a;
2019-10-03 02:31:26 +00:00
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
2019-10-23 04:50:18 +00:00
iput p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oW:I
2019-10-03 02:31:26 +00:00
new-instance p2, Lcom/camerakit/b/c;
const/4 v0, 0x0
invoke-direct {p2, v0, v0}, Lcom/camerakit/b/c;-><init>(II)V
2019-12-06 01:29:57 +00:00
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oT:Lcom/camerakit/b/c;
2019-10-03 02:31:26 +00:00
const/16 p2, 0x10
new-array v1, p2, [F
2019-12-06 01:29:57 +00:00
iput-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
2019-10-03 02:31:26 +00:00
new-array p2, p2, [F
2019-10-23 04:50:18 +00:00
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oV:[F
2019-10-03 02:31:26 +00:00
2019-10-23 04:50:18 +00:00
iget p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oW:I
2019-10-03 02:31:26 +00:00
invoke-direct {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeInit(II)V
2019-10-23 04:50:18 +00:00
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oV:[F
2019-10-03 02:31:26 +00:00
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
2019-12-06 01:29:57 +00:00
iget-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oU:Z
2019-10-03 02:31:26 +00:00
if-eqz v0, :cond_0
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oT:Lcom/camerakit/b/c;
2019-10-03 02:31:26 +00:00
iget v0, v0, Lcom/camerakit/b/c;->width:I
2019-12-06 01:29:57 +00:00
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oT:Lcom/camerakit/b/c;
2019-10-03 02:31:26 +00:00
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
2019-12-06 01:29:57 +00:00
iput-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oU:Z
2019-10-03 02:31:26 +00:00
:cond_0
invoke-super {p0}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
2019-10-03 02:31:26 +00:00
invoke-virtual {p0, v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->getTransformMatrix([F)V
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->transformMatrix:[F
2019-10-03 02:31:26 +00:00
2019-10-23 04:50:18 +00:00
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->oV:[F
2019-10-03 02:31:26 +00:00
invoke-direct {p0, v0, v1}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeUpdateTexImage([F[F)V
return-void
.end method