2019-10-03 02:31:26 +00:00
|
|
|
.class public final Lcom/camerakit/preview/CameraSurfaceTexture;
|
|
|
|
.super Landroid/graphics/SurfaceTexture;
|
|
|
|
.source "CameraSurfaceTexture.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public a:Le/g/j/c;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public b:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final c:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final d:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final e:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public nativeHandle:J
|
|
|
|
.annotation build Landroidx/annotation/Keep;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-12-06 01:29:57 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
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-12-06 03:29:40 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->e:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance p2, Le/g/j/c;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {p2, v0, v0}, Le/g/j/c;-><init>(II)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Le/g/j/c;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
const/16 p2, 0x10
|
|
|
|
|
|
|
|
new-array v1, p2, [F
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
new-array p2, p2, [F
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput-object p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget p2, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->e:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeInit(II)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[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
|
2019-12-06 03:29:40 +00:00
|
|
|
.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(Le/g/j/c;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Le/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"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b()Le/g/j/c;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Le/g/j/c;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public finalize()V
|
2019-10-03 02:31:26 +00:00
|
|
|
.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
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public release()V
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeRelease()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public updateTexImage()V
|
2019-10-03 02:31:26 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->b:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->a:Le/g/j/c;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v0, Le/g/j/c;->d:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v0, v0, Le/g/j/c;->e:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {p0, v1, v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->nativeSetSize(II)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iput-boolean v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->b:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-super {p0}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v0}, Landroid/graphics/SurfaceTexture;->getTransformMatrix([F)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->c:[F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v1, p0, Lcom/camerakit/preview/CameraSurfaceTexture;->d:[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
|