You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.0 KiB
107 lines
3.0 KiB
2 years ago
|
.class Lcom/via/gpuimage/GPUImageRenderer$2;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "GPUImageRenderer.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/lang/Runnable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/via/gpuimage/GPUImageRenderer;->setUpSurfaceTexture(Landroid/hardware/Camera;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/via/gpuimage/GPUImageRenderer;
|
||
|
|
||
|
.field final synthetic val$camera:Landroid/hardware/Camera;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/via/gpuimage/GPUImageRenderer;Landroid/hardware/Camera;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 158
|
||
|
iput-object p1, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->this$0:Lcom/via/gpuimage/GPUImageRenderer;
|
||
|
|
||
|
iput-object p2, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->val$camera:Landroid/hardware/Camera;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public run()V
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
.line 161
|
||
|
new-array v0, v1, [I
|
||
|
|
||
|
.line 162
|
||
|
invoke-static {v1, v0, v3}, Landroid/opengl/GLES20;->glGenTextures(I[II)V
|
||
|
|
||
|
.line 163
|
||
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->this$0:Lcom/via/gpuimage/GPUImageRenderer;
|
||
|
|
||
|
new-instance v2, Landroid/graphics/SurfaceTexture;
|
||
|
|
||
|
aget v0, v0, v3
|
||
|
|
||
|
invoke-direct {v2, v0}, Landroid/graphics/SurfaceTexture;-><init>(I)V
|
||
|
|
||
|
invoke-static {v1, v2}, Lcom/via/gpuimage/GPUImageRenderer;->access$502(Lcom/via/gpuimage/GPUImageRenderer;Landroid/graphics/SurfaceTexture;)Landroid/graphics/SurfaceTexture;
|
||
|
|
||
|
.line 165
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->val$camera:Landroid/hardware/Camera;
|
||
|
|
||
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->this$0:Lcom/via/gpuimage/GPUImageRenderer;
|
||
|
|
||
|
invoke-static {v1}, Lcom/via/gpuimage/GPUImageRenderer;->access$500(Lcom/via/gpuimage/GPUImageRenderer;)Landroid/graphics/SurfaceTexture;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setPreviewTexture(Landroid/graphics/SurfaceTexture;)V
|
||
|
|
||
|
.line 166
|
||
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->val$camera:Landroid/hardware/Camera;
|
||
|
|
||
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->this$0:Lcom/via/gpuimage/GPUImageRenderer;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/hardware/Camera;->setPreviewCallback(Landroid/hardware/Camera$PreviewCallback;)V
|
||
|
|
||
|
.line 167
|
||
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$2;->val$camera:Landroid/hardware/Camera;
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/hardware/Camera;->startPreview()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
.line 171
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 168
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 169
|
||
|
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|