InputStreamBitmapImageDecoderResourceDecoder.smali
.class public final Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;
.super Ljava/lang/Object;
.source "InputStreamBitmapImageDecoderResourceDecoder.java"
# interfaces
.implements Lcom/bumptech/glide/load/ResourceDecoder;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/ResourceDecoder<",
"Ljava/io/InputStream;",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
# instance fields
.field private final wrapped:Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 19
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 21
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;-><init>()V
iput-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;->wrapped:Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;
return-void
.end method
# virtual methods
.method public decode(Ljava/io/InputStream;IILcom/bumptech/glide/load/Options;)Lcom/bumptech/glide/load/engine/Resource;
.registers 8
.param p1, "stream" # Ljava/io/InputStream;
.param p2, "width" # I
.param p3, "height" # I
.param p4, "options" # Lcom/bumptech/glide/load/Options;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/InputStream;",
"II",
"Lcom/bumptech/glide/load/Options;",
")",
"Lcom/bumptech/glide/load/engine/Resource<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 33
invoke-static {p1}, Lcom/bumptech/glide/util/ByteBufferUtil;->fromStream(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 34
.local v0, "buffer":Ljava/nio/ByteBuffer;
invoke-static {v0}, Landroid/graphics/ImageDecoder;->createSource(Ljava/nio/ByteBuffer;)Landroid/graphics/ImageDecoder$Source;
move-result-object v1
.line 35
.local v1, "source":Landroid/graphics/ImageDecoder$Source;
iget-object v2, p0, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;->wrapped:Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;
invoke-virtual {v2, v1, p2, p3, p4}, Lcom/bumptech/glide/load/resource/bitmap/BitmapImageDecoderResourceDecoder;->decode(Landroid/graphics/ImageDecoder$Source;IILcom/bumptech/glide/load/Options;)Lcom/bumptech/glide/load/engine/Resource;
move-result-object v2
return-object v2
.end method
.method public bridge synthetic decode(Ljava/lang/Object;IILcom/bumptech/glide/load/Options;)Lcom/bumptech/glide/load/engine/Resource;
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 18
check-cast p1, Ljava/io/InputStream;
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;->decode(Ljava/io/InputStream;IILcom/bumptech/glide/load/Options;)Lcom/bumptech/glide/load/engine/Resource;
move-result-object p1
return-object p1
.end method
.method public handles(Ljava/io/InputStream;Lcom/bumptech/glide/load/Options;)Z
.registers 4
.param p1, "source" # Ljava/io/InputStream;
.param p2, "options" # Lcom/bumptech/glide/load/Options;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 25
const/4 v0, 0x1
return v0
.end method
.method public bridge synthetic handles(Ljava/lang/Object;Lcom/bumptech/glide/load/Options;)Z
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 18
check-cast p1, Ljava/io/InputStream;
invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;->handles(Ljava/io/InputStream;Lcom/bumptech/glide/load/Options;)Z
move-result p1
return p1
.end method