j.smali
.class public Lcom/bumptech/glide/load/resource/c/j;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/bumptech/glide/load/e;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/load/resource/c/j$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/e",
"<",
"Lcom/bumptech/glide/load/resource/c/b;",
">;"
}
.end annotation
# static fields
.field private static final a:Lcom/bumptech/glide/load/resource/c/j$a;
# instance fields
.field private final b:Lcom/bumptech/glide/b/a$a;
.field private final c:Lcom/bumptech/glide/load/engine/a/c;
.field private final d:Lcom/bumptech/glide/load/resource/c/j$a;
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Lcom/bumptech/glide/load/resource/c/j$a;
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/c/j$a;-><init>()V
sput-object v0, Lcom/bumptech/glide/load/resource/c/j;->a:Lcom/bumptech/glide/load/resource/c/j$a;
return-void
.end method
.method public constructor <init>(Lcom/bumptech/glide/load/engine/a/c;)V
.registers 3
sget-object v0, Lcom/bumptech/glide/load/resource/c/j;->a:Lcom/bumptech/glide/load/resource/c/j$a;
invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/load/resource/c/j;-><init>(Lcom/bumptech/glide/load/engine/a/c;Lcom/bumptech/glide/load/resource/c/j$a;)V
return-void
.end method
.method constructor <init>(Lcom/bumptech/glide/load/engine/a/c;Lcom/bumptech/glide/load/resource/c/j$a;)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/bumptech/glide/load/resource/c/j;->c:Lcom/bumptech/glide/load/engine/a/c;
new-instance v0, Lcom/bumptech/glide/load/resource/c/a;
invoke-direct {v0, p1}, Lcom/bumptech/glide/load/resource/c/a;-><init>(Lcom/bumptech/glide/load/engine/a/c;)V
iput-object v0, p0, Lcom/bumptech/glide/load/resource/c/j;->b:Lcom/bumptech/glide/b/a$a;
iput-object p2, p0, Lcom/bumptech/glide/load/resource/c/j;->d:Lcom/bumptech/glide/load/resource/c/j$a;
return-void
.end method
.method private a([B)Lcom/bumptech/glide/b/a;
.registers 5
iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/j;->d:Lcom/bumptech/glide/load/resource/c/j$a;
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/j$a;->a()Lcom/bumptech/glide/b/d;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/bumptech/glide/b/d;->a([B)Lcom/bumptech/glide/b/d;
invoke-virtual {v0}, Lcom/bumptech/glide/b/d;->b()Lcom/bumptech/glide/b/c;
move-result-object v0
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/j;->d:Lcom/bumptech/glide/load/resource/c/j$a;
iget-object v2, p0, Lcom/bumptech/glide/load/resource/c/j;->b:Lcom/bumptech/glide/b/a$a;
invoke-virtual {v1, v2}, Lcom/bumptech/glide/load/resource/c/j$a;->a(Lcom/bumptech/glide/b/a$a;)Lcom/bumptech/glide/b/a;
move-result-object v1
invoke-virtual {v1, v0, p1}, Lcom/bumptech/glide/b/a;->a(Lcom/bumptech/glide/b/c;[B)V
invoke-virtual {v1}, Lcom/bumptech/glide/b/a;->a()V
return-object v1
.end method
.method private a(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/f;Lcom/bumptech/glide/load/resource/c/b;)Lcom/bumptech/glide/load/engine/i;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/Bitmap;",
"Lcom/bumptech/glide/load/f",
"<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/bumptech/glide/load/resource/c/b;",
")",
"Lcom/bumptech/glide/load/engine/i",
"<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/j;->d:Lcom/bumptech/glide/load/resource/c/j$a;
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/j;->c:Lcom/bumptech/glide/load/engine/a/c;
invoke-virtual {v0, p1, v1}, Lcom/bumptech/glide/load/resource/c/j$a;->a(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/engine/a/c;)Lcom/bumptech/glide/load/engine/i;
move-result-object v0
invoke-virtual {p3}, Lcom/bumptech/glide/load/resource/c/b;->getIntrinsicWidth()I
move-result v1
invoke-virtual {p3}, Lcom/bumptech/glide/load/resource/c/b;->getIntrinsicHeight()I
move-result v2
invoke-interface {p2, v0, v1, v2}, Lcom/bumptech/glide/load/f;->transform(Lcom/bumptech/glide/load/engine/i;II)Lcom/bumptech/glide/load/engine/i;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_1d
invoke-interface {v0}, Lcom/bumptech/glide/load/engine/i;->d()V
:cond_1d
return-object v1
.end method
.method private a([BLjava/io/OutputStream;)Z
.registers 6
const/4 v0, 0x1
:try_start_1
invoke-virtual {p2, p1}, Ljava/io/OutputStream;->write([B)V
:try_end_4
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_4} :catch_5
:goto_4
return v0
:catch_5
move-exception v0
const-string/jumbo v1, "GifEncoder"
const/4 v2, 0x3
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_19
const-string/jumbo v1, "GifEncoder"
const-string/jumbo v2, "Failed to write data to output stream in GifResourceEncoder"
invoke-static {v1, v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_19
const/4 v0, 0x0
goto :goto_4
.end method
# virtual methods
.method public a()Ljava/lang/String;
.registers 2
const-string/jumbo v0, ""
return-object v0
.end method
.method public a(Lcom/bumptech/glide/load/engine/i;Ljava/io/OutputStream;)Z
.registers 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/i",
"<",
"Lcom/bumptech/glide/load/resource/c/b;",
">;",
"Ljava/io/OutputStream;",
")Z"
}
.end annotation
const/4 v3, 0x0
invoke-static {}, Lcom/bumptech/glide/g/d;->a()J
move-result-wide v4
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/i;->b()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/load/resource/c/b;
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/b;->c()Lcom/bumptech/glide/load/f;
move-result-object v6
instance-of v1, v6, Lcom/bumptech/glide/load/resource/d;
if-eqz v1, :cond_1c
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/b;->d()[B
move-result-object v0
invoke-direct {p0, v0, p2}, Lcom/bumptech/glide/load/resource/c/j;->a([BLjava/io/OutputStream;)Z
move-result v3
:cond_1b
:goto_1b
return v3
:cond_1c
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/b;->d()[B
move-result-object v1
invoke-direct {p0, v1}, Lcom/bumptech/glide/load/resource/c/j;->a([B)Lcom/bumptech/glide/b/a;
move-result-object v7
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/j;->d:Lcom/bumptech/glide/load/resource/c/j$a;
invoke-virtual {v1}, Lcom/bumptech/glide/load/resource/c/j$a;->b()Lcom/bumptech/glide/c/a;
move-result-object v8
invoke-virtual {v8, p2}, Lcom/bumptech/glide/c/a;->a(Ljava/io/OutputStream;)Z
move-result v1
if-eqz v1, :cond_1b
move v2, v3
:goto_31
invoke-virtual {v7}, Lcom/bumptech/glide/b/a;->c()I
move-result v1
if-ge v2, v1, :cond_69
invoke-virtual {v7}, Lcom/bumptech/glide/b/a;->f()Landroid/graphics/Bitmap;
move-result-object v1
invoke-direct {p0, v1, v6, v0}, Lcom/bumptech/glide/load/resource/c/j;->a(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/f;Lcom/bumptech/glide/load/resource/c/b;)Lcom/bumptech/glide/load/engine/i;
move-result-object v9
:try_start_3f
invoke-interface {v9}, Lcom/bumptech/glide/load/engine/i;->b()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/graphics/Bitmap;
invoke-virtual {v8, v1}, Lcom/bumptech/glide/c/a;->a(Landroid/graphics/Bitmap;)Z
:try_end_48
.catchall {:try_start_3f .. :try_end_48} :catchall_64
move-result v1
if-nez v1, :cond_4f
invoke-interface {v9}, Lcom/bumptech/glide/load/engine/i;->d()V
goto :goto_1b
:cond_4f
:try_start_4f
invoke-virtual {v7}, Lcom/bumptech/glide/b/a;->d()I
move-result v1
invoke-virtual {v7, v1}, Lcom/bumptech/glide/b/a;->a(I)I
move-result v1
invoke-virtual {v8, v1}, Lcom/bumptech/glide/c/a;->a(I)V
invoke-virtual {v7}, Lcom/bumptech/glide/b/a;->a()V
:try_end_5d
.catchall {:try_start_4f .. :try_end_5d} :catchall_64
invoke-interface {v9}, Lcom/bumptech/glide/load/engine/i;->d()V
add-int/lit8 v1, v2, 0x1
move v2, v1
goto :goto_31
:catchall_64
move-exception v0
invoke-interface {v9}, Lcom/bumptech/glide/load/engine/i;->d()V
throw v0
:cond_69
invoke-virtual {v8}, Lcom/bumptech/glide/c/a;->a()Z
move-result v3
const-string/jumbo v1, "GifEncoder"
const/4 v2, 0x2
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_1b
const-string/jumbo v1, "GifEncoder"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v6, "Encoded gif with "
invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v7}, Lcom/bumptech/glide/b/a;->c()I
move-result v6
invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string/jumbo v6, " frames and "
invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/b;->d()[B
move-result-object v0
array-length v0, v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string/jumbo v2, " bytes in "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {v4, v5}, Lcom/bumptech/glide/g/d;->a(J)D
move-result-wide v4
invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v0
const-string/jumbo v2, " ms"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
goto/16 :goto_1b
.end method
.method public bridge synthetic a(Ljava/lang/Object;Ljava/io/OutputStream;)Z
.registers 4
check-cast p1, Lcom/bumptech/glide/load/engine/i;
invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/load/resource/c/j;->a(Lcom/bumptech/glide/load/engine/i;Ljava/io/OutputStream;)Z
move-result v0
return v0
.end method