123 lines
3.3 KiB
Smali
123 lines
3.3 KiB
Smali
.class public final Lcom/camerakit/preview/CameraSurfaceView$a;
|
|
.super Lz/u/b/k;
|
|
.source "CameraSurfaceView.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/camerakit/preview/CameraSurfaceView;->onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lz/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/camerakit/preview/CameraSurfaceView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/camerakit/preview/CameraSurfaceView;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
|
|
|
|
const/4 p1, 0x2
|
|
|
|
invoke-direct {p0, p1}, Lz/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
check-cast p2, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/camerakit/preview/CameraSurfaceView$a;->invoke(II)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(II)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
|
|
|
|
new-instance v1, Lcom/camerakit/preview/CameraSurfaceTexture;
|
|
|
|
invoke-direct {v1, p1, p2}, Lcom/camerakit/preview/CameraSurfaceTexture;-><init>(II)V
|
|
|
|
new-instance p1, Lcom/camerakit/preview/CameraSurfaceView$a$a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/camerakit/preview/CameraSurfaceView$a$a;-><init>(Lcom/camerakit/preview/CameraSurfaceView$a;)V
|
|
|
|
invoke-virtual {v1, p1}, Landroid/graphics/SurfaceTexture;->setOnFrameAvailableListener(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V
|
|
|
|
iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView$a;->this$0:Lcom/camerakit/preview/CameraSurfaceView;
|
|
|
|
invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceView;->getCameraSurfaceTextureListener()Lf/g/i/a;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p1, Lf/g/d;
|
|
|
|
iget-object p2, p1, Lf/g/d;->a:Lf/g/e;
|
|
|
|
iput-object v1, p2, Lf/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture;
|
|
|
|
sget-object v2, Lf/g/e$e;->d:Lf/g/e$e;
|
|
|
|
invoke-virtual {p2, v2}, Lf/g/e;->setSurfaceState(Lf/g/e$e;)V
|
|
|
|
iget-object p2, p1, Lf/g/d;->a:Lf/g/e;
|
|
|
|
invoke-virtual {p2}, Lf/g/e;->getLifecycleState()Lf/g/e$b;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v2, Lf/g/e$b;->e:Lf/g/e$b;
|
|
|
|
if-ne p2, v2, :cond_0
|
|
|
|
iget-object p1, p1, Lf/g/d;->a:Lf/g/e;
|
|
|
|
invoke-virtual {p1}, Lf/g/e;->f()V
|
|
|
|
:cond_0
|
|
iput-object v1, v0, Lcom/camerakit/preview/CameraSurfaceView;->e:Lcom/camerakit/preview/CameraSurfaceTexture;
|
|
|
|
return-void
|
|
.end method
|