119 lines
2.8 KiB
Smali
119 lines
2.8 KiB
Smali
.class public Lg5/a;
|
|
.super Ljava/lang/Object;
|
|
.source "BitmapBytesTranscoder.java"
|
|
|
|
# interfaces
|
|
.implements Lg5/e;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lg5/e<",
|
|
"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
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;
|
|
|
|
const/16 v1, 0x64
|
|
|
|
invoke-direct {p0, v0, v1}, Lg5/a;-><init>(Landroid/graphics/Bitmap$CompressFormat;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/graphics/Bitmap$CompressFormat;I)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/Bitmap$CompressFormat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lg5/a;->a:Landroid/graphics/Bitmap$CompressFormat;
|
|
|
|
.line 4
|
|
iput p2, p0, Lg5/a;->b:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/bumptech/glide/load/engine/s;Lu4/e;)Lcom/bumptech/glide/load/engine/s;
|
|
.locals 3
|
|
.param p1 # Lcom/bumptech/glide/load/engine/s;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lu4/e;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/s<",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;",
|
|
"Lu4/e;",
|
|
")",
|
|
"Lcom/bumptech/glide/load/engine/s<",
|
|
"[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/s;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Bitmap;
|
|
|
|
iget-object v1, p0, Lg5/a;->a:Landroid/graphics/Bitmap$CompressFormat;
|
|
|
|
iget v2, p0, Lg5/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/s;->a()V
|
|
|
|
.line 4
|
|
new-instance p1, Lc5/b;
|
|
|
|
invoke-virtual {p2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Lc5/b;-><init>([B)V
|
|
|
|
return-object p1
|
|
.end method
|