152 lines
3.6 KiB
Smali
152 lines
3.6 KiB
Smali
.class public final Lcom/discord/utilities/apng/ApngCloseableImage;
|
|
.super Lcom/facebook/imagepipeline/image/CloseableImage;
|
|
.source "ApngCloseableImage.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public closed:Z
|
|
|
|
.field public final encodedImage:Lcom/facebook/imagepipeline/image/EncodedImage;
|
|
|
|
.field public final imageHeight:I
|
|
|
|
.field public final imageSize:I
|
|
|
|
.field public final imageWidth:I
|
|
|
|
.field public final inputStream:Ljava/io/InputStream;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/facebook/imagepipeline/image/EncodedImage;IIILjava/io/InputStream;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/image/CloseableImage;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->encodedImage:Lcom/facebook/imagepipeline/image/EncodedImage;
|
|
|
|
iput p2, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageHeight:I
|
|
|
|
iput p3, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageWidth:I
|
|
|
|
iput p4, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageSize:I
|
|
|
|
iput-object p5, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->inputStream:Ljava/io/InputStream;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->encodedImage:Lcom/facebook/imagepipeline/image/EncodedImage;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/imagepipeline/image/EncodedImage;->close()V
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->inputStream:Ljava/io/InputStream;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->closed:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getClosed()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->closed:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getEncodedImage()Lcom/facebook/imagepipeline/image/EncodedImage;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->encodedImage:Lcom/facebook/imagepipeline/image/EncodedImage;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getHeight()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getImageHeight()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getImageSize()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageSize:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getImageWidth()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageWidth:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getInputStream()Ljava/io/InputStream;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->inputStream:Ljava/io/InputStream;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSizeInBytes()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageSize:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getWidth()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->imageWidth:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isClosed()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->closed:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final setClosed(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/discord/utilities/apng/ApngCloseableImage;->closed:Z
|
|
|
|
return-void
|
|
.end method
|