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.
187 lines
5.3 KiB
187 lines
5.3 KiB
.class Lcom/via/gpuimage/GPUImageRenderer$5; |
|
.super Ljava/lang/Object; |
|
.source "GPUImageRenderer.java" |
|
|
|
# interfaces |
|
.implements Ljava/lang/Runnable; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/via/gpuimage/GPUImageRenderer;->setImageBitmap(Landroid/graphics/Bitmap;Z)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$bitmap:Landroid/graphics/Bitmap; |
|
|
|
.field final synthetic val$recycle:Z |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/via/gpuimage/GPUImageRenderer;Landroid/graphics/Bitmap;Z)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 214 |
|
iput-object p1, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
iput-object p2, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
iput-boolean p3, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$recycle:Z |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public run()V |
|
.locals 7 |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
const/4 v6, 0x1 |
|
|
|
const/4 v5, 0x0 |
|
|
|
const/4 v4, 0x0 |
|
|
|
.line 218 |
|
.line 219 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I |
|
|
|
move-result v0 |
|
|
|
rem-int/lit8 v0, v0, 0x2 |
|
|
|
if-ne v0, v6, :cond_1 |
|
|
|
.line 220 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
iget-object v2, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I |
|
|
|
move-result v2 |
|
|
|
sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config; |
|
|
|
invoke-static {v0, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap; |
|
|
|
move-result-object v0 |
|
|
|
.line 222 |
|
new-instance v2, Landroid/graphics/Canvas; |
|
|
|
invoke-direct {v2, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V |
|
|
|
.line 223 |
|
invoke-virtual {v2, v4, v4, v4, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V |
|
|
|
.line 224 |
|
iget-object v3, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v2, v3, v5, v5, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V |
|
|
|
.line 225 |
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
invoke-static {v1, v6}, Lcom/via/gpuimage/GPUImageRenderer;->access$902(Lcom/via/gpuimage/GPUImageRenderer;I)I |
|
|
|
.line 230 |
|
:goto_0 |
|
iget-object v2, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
if-eqz v0, :cond_2 |
|
|
|
move-object v1, v0 |
|
|
|
:goto_1 |
|
iget-object v3, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
.line 231 |
|
invoke-static {v3}, Lcom/via/gpuimage/GPUImageRenderer;->access$100(Lcom/via/gpuimage/GPUImageRenderer;)I |
|
|
|
move-result v3 |
|
|
|
iget-boolean v4, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$recycle:Z |
|
|
|
.line 230 |
|
invoke-static {v1, v3, v4}, Lcom/via/gpuimage/OpenGlUtils;->loadTexture(Landroid/graphics/Bitmap;IZ)I |
|
|
|
move-result v1 |
|
|
|
invoke-static {v2, v1}, Lcom/via/gpuimage/GPUImageRenderer;->access$102(Lcom/via/gpuimage/GPUImageRenderer;I)I |
|
|
|
.line 232 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 233 |
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V |
|
|
|
.line 235 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v1}, Landroid/graphics/Bitmap;->getWidth()I |
|
|
|
move-result v1 |
|
|
|
invoke-static {v0, v1}, Lcom/via/gpuimage/GPUImageRenderer;->access$202(Lcom/via/gpuimage/GPUImageRenderer;I)I |
|
|
|
.line 236 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I |
|
|
|
move-result v1 |
|
|
|
invoke-static {v0, v1}, Lcom/via/gpuimage/GPUImageRenderer;->access$302(Lcom/via/gpuimage/GPUImageRenderer;I)I |
|
|
|
.line 237 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
invoke-static {v0}, Lcom/via/gpuimage/GPUImageRenderer;->access$400(Lcom/via/gpuimage/GPUImageRenderer;)V |
|
|
|
.line 238 |
|
return-void |
|
|
|
.line 227 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->this$0:Lcom/via/gpuimage/GPUImageRenderer; |
|
|
|
invoke-static {v0, v4}, Lcom/via/gpuimage/GPUImageRenderer;->access$902(Lcom/via/gpuimage/GPUImageRenderer;I)I |
|
|
|
move-object v0, v1 |
|
|
|
goto :goto_0 |
|
|
|
.line 230 |
|
:cond_2 |
|
iget-object v1, p0, Lcom/via/gpuimage/GPUImageRenderer$5;->val$bitmap:Landroid/graphics/Bitmap; |
|
|
|
goto :goto_1 |
|
.end method
|
|
|