i.smali
.class public Lcom/bumptech/glide/load/resource/c/i;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/bumptech/glide/load/d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/load/resource/c/i$b;,
Lcom/bumptech/glide/load/resource/c/i$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/d",
"<",
"Ljava/io/InputStream;",
"Lcom/bumptech/glide/load/resource/c/b;",
">;"
}
.end annotation
# static fields
.field private static final a:Lcom/bumptech/glide/load/resource/c/i$b;
.field private static final b:Lcom/bumptech/glide/load/resource/c/i$a;
# instance fields
.field private final c:Landroid/content/Context;
.field private final d:Lcom/bumptech/glide/load/resource/c/i$b;
.field private final e:Lcom/bumptech/glide/load/engine/a/c;
.field private final f:Lcom/bumptech/glide/load/resource/c/i$a;
.field private final g:Lcom/bumptech/glide/load/resource/c/a;
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Lcom/bumptech/glide/load/resource/c/i$b;
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/c/i$b;-><init>()V
sput-object v0, Lcom/bumptech/glide/load/resource/c/i;->a:Lcom/bumptech/glide/load/resource/c/i$b;
new-instance v0, Lcom/bumptech/glide/load/resource/c/i$a;
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/c/i$a;-><init>()V
sput-object v0, Lcom/bumptech/glide/load/resource/c/i;->b:Lcom/bumptech/glide/load/resource/c/i$a;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/a/c;)V
.registers 5
sget-object v0, Lcom/bumptech/glide/load/resource/c/i;->a:Lcom/bumptech/glide/load/resource/c/i$b;
sget-object v1, Lcom/bumptech/glide/load/resource/c/i;->b:Lcom/bumptech/glide/load/resource/c/i$a;
invoke-direct {p0, p1, p2, v0, v1}, Lcom/bumptech/glide/load/resource/c/i;-><init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/a/c;Lcom/bumptech/glide/load/resource/c/i$b;Lcom/bumptech/glide/load/resource/c/i$a;)V
return-void
.end method
.method constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/a/c;Lcom/bumptech/glide/load/resource/c/i$b;Lcom/bumptech/glide/load/resource/c/i$a;)V
.registers 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/load/resource/c/i;->c:Landroid/content/Context;
iput-object p2, p0, Lcom/bumptech/glide/load/resource/c/i;->e:Lcom/bumptech/glide/load/engine/a/c;
iput-object p4, p0, Lcom/bumptech/glide/load/resource/c/i;->f:Lcom/bumptech/glide/load/resource/c/i$a;
new-instance v0, Lcom/bumptech/glide/load/resource/c/a;
invoke-direct {v0, p2}, 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/i;->g:Lcom/bumptech/glide/load/resource/c/a;
iput-object p3, p0, Lcom/bumptech/glide/load/resource/c/i;->d:Lcom/bumptech/glide/load/resource/c/i$b;
return-void
.end method
.method private a(Lcom/bumptech/glide/b/a;Lcom/bumptech/glide/b/c;[B)Landroid/graphics/Bitmap;
.registers 5
invoke-virtual {p1, p2, p3}, Lcom/bumptech/glide/b/a;->a(Lcom/bumptech/glide/b/c;[B)V
invoke-virtual {p1}, Lcom/bumptech/glide/b/a;->a()V
invoke-virtual {p1}, Lcom/bumptech/glide/b/a;->f()Landroid/graphics/Bitmap;
move-result-object v0
return-object v0
.end method
.method private a([BIILcom/bumptech/glide/b/d;Lcom/bumptech/glide/b/a;)Lcom/bumptech/glide/load/resource/c/d;
.registers 16
const/4 v0, 0x0
invoke-virtual {p4}, Lcom/bumptech/glide/b/d;->b()Lcom/bumptech/glide/b/c;
move-result-object v7
invoke-virtual {v7}, Lcom/bumptech/glide/b/c;->a()I
move-result v1
if-lez v1, :cond_11
invoke-virtual {v7}, Lcom/bumptech/glide/b/c;->b()I
move-result v1
if-eqz v1, :cond_12
:cond_11
:goto_11
return-object v0
:cond_12
invoke-direct {p0, p5, v7, p1}, Lcom/bumptech/glide/load/resource/c/i;->a(Lcom/bumptech/glide/b/a;Lcom/bumptech/glide/b/c;[B)Landroid/graphics/Bitmap;
move-result-object v9
if-eqz v9, :cond_11
invoke-static {}, Lcom/bumptech/glide/load/resource/d;->a()Lcom/bumptech/glide/load/resource/d;
move-result-object v4
new-instance v0, Lcom/bumptech/glide/load/resource/c/b;
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/i;->c:Landroid/content/Context;
iget-object v2, p0, Lcom/bumptech/glide/load/resource/c/i;->g:Lcom/bumptech/glide/load/resource/c/a;
iget-object v3, p0, Lcom/bumptech/glide/load/resource/c/i;->e:Lcom/bumptech/glide/load/engine/a/c;
move v5, p2
move v6, p3
move-object v8, p1
invoke-direct/range {v0 .. v9}, Lcom/bumptech/glide/load/resource/c/b;-><init>(Landroid/content/Context;Lcom/bumptech/glide/b/a$a;Lcom/bumptech/glide/load/engine/a/c;Lcom/bumptech/glide/load/f;IILcom/bumptech/glide/b/c;[BLandroid/graphics/Bitmap;)V
new-instance v1, Lcom/bumptech/glide/load/resource/c/d;
invoke-direct {v1, v0}, Lcom/bumptech/glide/load/resource/c/d;-><init>(Lcom/bumptech/glide/load/resource/c/b;)V
move-object v0, v1
goto :goto_11
.end method
.method private static a(Ljava/io/InputStream;)[B
.registers 5
const/16 v0, 0x4000
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1, v0}, Ljava/io/ByteArrayOutputStream;-><init>(I)V
const/16 v0, 0x4000
:try_start_9
new-array v0, v0, [B
:goto_b
invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_26
const/4 v3, 0x0
invoke-virtual {v1, v0, v3, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V
:try_end_16
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_16} :catch_17
goto :goto_b
:catch_17
move-exception v0
const-string/jumbo v2, "GifResourceDecoder"
const-string/jumbo v3, "Error reading data from stream"
invoke-static {v2, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_21
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
return-object v0
:cond_26
:try_start_26
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->flush()V
:try_end_29
.catch Ljava/io/IOException; {:try_start_26 .. :try_end_29} :catch_17
goto :goto_21
.end method
# virtual methods
.method public bridge synthetic a(Ljava/lang/Object;II)Lcom/bumptech/glide/load/engine/i;
.registers 5
check-cast p1, Ljava/io/InputStream;
invoke-virtual {p0, p1, p2, p3}, Lcom/bumptech/glide/load/resource/c/i;->a(Ljava/io/InputStream;II)Lcom/bumptech/glide/load/resource/c/d;
move-result-object v0
return-object v0
.end method
.method public a(Ljava/io/InputStream;II)Lcom/bumptech/glide/load/resource/c/d;
.registers 10
invoke-static {p1}, Lcom/bumptech/glide/load/resource/c/i;->a(Ljava/io/InputStream;)[B
move-result-object v1
iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/i;->d:Lcom/bumptech/glide/load/resource/c/i$b;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/load/resource/c/i$b;->a([B)Lcom/bumptech/glide/b/d;
move-result-object v4
iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/i;->f:Lcom/bumptech/glide/load/resource/c/i$a;
iget-object v2, p0, Lcom/bumptech/glide/load/resource/c/i;->g:Lcom/bumptech/glide/load/resource/c/a;
invoke-virtual {v0, v2}, Lcom/bumptech/glide/load/resource/c/i$a;->a(Lcom/bumptech/glide/b/a$a;)Lcom/bumptech/glide/b/a;
move-result-object v5
move-object v0, p0
move v2, p2
move v3, p3
:try_start_15
invoke-direct/range {v0 .. v5}, Lcom/bumptech/glide/load/resource/c/i;->a([BIILcom/bumptech/glide/b/d;Lcom/bumptech/glide/b/a;)Lcom/bumptech/glide/load/resource/c/d;
:try_end_18
.catchall {:try_start_15 .. :try_end_18} :catchall_24
move-result-object v0
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/i;->d:Lcom/bumptech/glide/load/resource/c/i$b;
invoke-virtual {v1, v4}, Lcom/bumptech/glide/load/resource/c/i$b;->a(Lcom/bumptech/glide/b/d;)V
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/i;->f:Lcom/bumptech/glide/load/resource/c/i$a;
invoke-virtual {v1, v5}, Lcom/bumptech/glide/load/resource/c/i$a;->a(Lcom/bumptech/glide/b/a;)V
return-object v0
:catchall_24
move-exception v0
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/i;->d:Lcom/bumptech/glide/load/resource/c/i$b;
invoke-virtual {v1, v4}, Lcom/bumptech/glide/load/resource/c/i$b;->a(Lcom/bumptech/glide/b/d;)V
iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/i;->f:Lcom/bumptech/glide/load/resource/c/i$a;
invoke-virtual {v1, v5}, Lcom/bumptech/glide/load/resource/c/i$a;->a(Lcom/bumptech/glide/b/a;)V
throw v0
.end method
.method public a()Ljava/lang/String;
.registers 2
const-string/jumbo v0, ""
return-object v0
.end method