a.smali
.class public final Lcom/bumptech/glide/load/resource/transcode/a;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/bumptech/glide/load/resource/transcode/d;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/resource/transcode/d<",
"Landroid/graphics/Bitmap;",
"[B>;"
}
.end annotation
# instance fields
.field public final a:Landroid/graphics/Bitmap$CompressFormat;
.field public final b:I
# direct methods
.method public constructor <init>()V
.registers 2
.line 1
sget-object v0, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object v0, p0, Lcom/bumptech/glide/load/resource/transcode/a;->a:Landroid/graphics/Bitmap$CompressFormat;
const/16 v0, 0x64
.line 4
iput v0, p0, Lcom/bumptech/glide/load/resource/transcode/a;->b:I
return-void
.end method
# virtual methods
.method public final transcode(Lcom/bumptech/glide/load/engine/w;Lcom/bumptech/glide/load/l;)Lcom/bumptech/glide/load/engine/w;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/w<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/bumptech/glide/load/l;",
")",
"Lcom/bumptech/glide/load/engine/w<",
"[B>;"
}
.end annotation
.line 1
new-instance p2, Ljava/io/ByteArrayOutputStream;
invoke-direct {p2}, Ljava/io/ByteArrayOutputStream;-><init>()V
.line 2
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/w;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Bitmap;
iget-object v1, p0, Lcom/bumptech/glide/load/resource/transcode/a;->a:Landroid/graphics/Bitmap$CompressFormat;
iget v2, p0, Lcom/bumptech/glide/load/resource/transcode/a;->b:I
invoke-virtual {v0, v1, v2, p2}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z
.line 3
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/w;->recycle()V
.line 4
new-instance p1, Lcom/bumptech/glide/load/resource/bytes/b;
invoke-virtual {p2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p2
invoke-direct {p1, p2}, Lcom/bumptech/glide/load/resource/bytes/b;-><init>([B)V
return-object p1
.end method