GifDrawableEncoder.smali
.class public Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/bumptech/glide/load/o;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/o<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;"
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "GifEncoder"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public encode(Lcom/bumptech/glide/load/engine/w;Ljava/io/File;Lcom/bumptech/glide/load/l;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/w<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;",
"Ljava/io/File;",
"Lcom/bumptech/glide/load/l;",
")Z"
}
.end annotation
.line 2
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/w;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
.line 3
:try_start_6
invoke-virtual {p1}, Lcom/bumptech/glide/load/resource/gif/GifDrawable;->getBuffer()Ljava/nio/ByteBuffer;
move-result-object p1
invoke-static {p1, p2}, Lcom/bumptech/glide/util/a;->d(Ljava/nio/ByteBuffer;Ljava/io/File;)V
:try_end_d
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_d} :catch_f
const/4 p1, 0x1
goto :goto_10
:catch_f
const/4 p1, 0x0
:goto_10
return p1
.end method
.method public bridge synthetic encode(Ljava/lang/Object;Ljava/io/File;Lcom/bumptech/glide/load/l;)Z
.registers 4
.line 1
check-cast p1, Lcom/bumptech/glide/load/engine/w;
invoke-virtual {p0, p1, p2, p3}, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;->encode(Lcom/bumptech/glide/load/engine/w;Ljava/io/File;Lcom/bumptech/glide/load/l;)Z
move-result p1
return p1
.end method
.method public getEncodeStrategy(Lcom/bumptech/glide/load/l;)Lcom/bumptech/glide/load/c;
.registers 2
sget-object p1, Lcom/bumptech/glide/load/c;->SOURCE:Lcom/bumptech/glide/load/c;
return-object p1
.end method