950 lines
22 KiB
Smali
950 lines
22 KiB
Smali
.class public final Lcom/facebook/imagepipeline/f/e;
|
|
.super Ljava/lang/Object;
|
|
.source "EncodedImage.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# annotations
|
|
.annotation build Ljavax/annotation/concurrent/Immutable;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public Id:I
|
|
|
|
.field public Ie:I
|
|
|
|
.field public final QE:Lcom/facebook/common/references/CloseableReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/common/g/f;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final QF:Lcom/facebook/common/d/k;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/facebook/common/d/k<",
|
|
"Ljava/io/FileInputStream;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public QG:Lcom/facebook/d/c;
|
|
|
|
.field public QH:I
|
|
|
|
.field private QI:I
|
|
|
|
.field public QJ:Lcom/facebook/imagepipeline/a/a;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private QK:Landroid/graphics/ColorSpace;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mHeight:I
|
|
|
|
.field public mWidth:I
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/facebook/common/d/k;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/common/d/k<",
|
|
"Ljava/io/FileInputStream;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sget-object v0, Lcom/facebook/d/c;->LP:Lcom/facebook/d/c;
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QG:Lcom/facebook/d/c;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->QH:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/f/e;->QF:Lcom/facebook/common/d/k;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Lcom/facebook/common/d/k;I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/common/d/k<",
|
|
"Ljava/io/FileInputStream;",
|
|
">;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/imagepipeline/f/e;-><init>(Lcom/facebook/common/d/k;)V
|
|
|
|
iput p2, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/facebook/common/references/CloseableReference;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/common/g/f;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sget-object v0, Lcom/facebook/d/c;->LP:Lcom/facebook/d/c;
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QG:Lcom/facebook/d/c;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->QH:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->a(Lcom/facebook/common/references/CloseableReference;)Z
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/d/i;->checkArgument(Z)V
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->fo()Lcom/facebook/common/references/CloseableReference;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/f/e;->QF:Lcom/facebook/common/d/k;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Lcom/facebook/imagepipeline/f/e;)Lcom/facebook/imagepipeline/f/e;
|
|
.locals 0
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ik()Lcom/facebook/imagepipeline/f/e;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static d(Lcom/facebook/imagepipeline/f/e;)Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
iget p0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static e(Lcom/facebook/imagepipeline/f/e;)V
|
|
.locals 0
|
|
.param p0 # Lcom/facebook/imagepipeline/f/e;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->close()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static f(Lcom/facebook/imagepipeline/f/e;)Z
|
|
.locals 0
|
|
.param p0 # Lcom/facebook/imagepipeline/f/e;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->isValid()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private getColorSpace()Landroid/graphics/ColorSpace;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QK:Landroid/graphics/ColorSpace;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private ik()Lcom/facebook/imagepipeline/f/e;
|
|
.locals 3
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QF:Lcom/facebook/common/d/k;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v1, Lcom/facebook/imagepipeline/f/e;
|
|
|
|
iget v2, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
invoke-direct {v1, v0, v2}, Lcom/facebook/imagepipeline/f/e;-><init>(Lcom/facebook/common/d/k;I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/common/references/CloseableReference;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:try_start_0
|
|
new-instance v1, Lcom/facebook/imagepipeline/f/e;
|
|
|
|
invoke-direct {v1, v0}, Lcom/facebook/imagepipeline/f/e;-><init>(Lcom/facebook/common/references/CloseableReference;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->c(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1, p0}, Lcom/facebook/imagepipeline/f/e;->c(Lcom/facebook/imagepipeline/f/e;)V
|
|
|
|
:cond_2
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->c(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private ip()V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->iq()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private ir()Landroid/util/Pair;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/imageutils/f;->k(Ljava/io/InputStream;)Landroid/util/Pair;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, v0, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
iget-object v1, v0, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private is()Lcom/facebook/imageutils/b;
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
invoke-static {v0}, Lcom/facebook/imageutils/a;->i(Ljava/io/InputStream;)Lcom/facebook/imageutils/b;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, v1, Lcom/facebook/imageutils/b;->QK:Landroid/graphics/ColorSpace;
|
|
|
|
iput-object v2, p0, Lcom/facebook/imagepipeline/f/e;->QK:Landroid/graphics/ColorSpace;
|
|
|
|
iget-object v2, v1, Lcom/facebook/imageutils/b;->Vb:Landroid/util/Pair;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v3, v2, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v3
|
|
|
|
iput v3, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v2, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
:try_start_2
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
:try_end_2
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
:catch_0
|
|
:cond_1
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
:try_start_3
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
:try_end_3
|
|
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
|
|
|
|
:catch_1
|
|
:cond_2
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final c(Lcom/facebook/imagepipeline/f/e;)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->il()Lcom/facebook/d/c;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QG:Lcom/facebook/d/c;
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->im()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->in()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
iget v0, p1, Lcom/facebook/imagepipeline/f/e;->QH:I
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->QH:I
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/f/e;->getSize()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
iget-object v0, p1, Lcom/facebook/imagepipeline/f/e;->QJ:Lcom/facebook/imagepipeline/a/a;
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QJ:Lcom/facebook/imagepipeline/a/a;
|
|
|
|
invoke-direct {p1}, Lcom/facebook/imagepipeline/f/e;->getColorSpace()Landroid/graphics/ColorSpace;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/f/e;->QK:Landroid/graphics/ColorSpace;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->c(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getHeight()I
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->mHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getInputStream()Ljava/io/InputStream;
|
|
.locals 3
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QF:Lcom/facebook/common/d/k;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/facebook/common/d/k;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/io/InputStream;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/common/references/CloseableReference;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:try_start_0
|
|
new-instance v1, Lcom/facebook/common/g/h;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/facebook/common/g/f;
|
|
|
|
invoke-direct {v1, v2}, Lcom/facebook/common/g/h;-><init>(Lcom/facebook/common/g/f;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->c(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->c(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getSize()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/facebook/common/g/f;
|
|
|
|
invoke-interface {v0}, Lcom/facebook/common/g/f;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->QI:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getWidth()I
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->mWidth:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final il()Lcom/facebook/d/c;
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QG:Lcom/facebook/d/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final im()I
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final in()I
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ip()V
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final io()Ljava/lang/String;
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/common/references/CloseableReference;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, ""
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getSize()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0xa
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
new-array v3, v2, [B
|
|
|
|
:try_start_0
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/facebook/common/g/f;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_1
|
|
invoke-interface {v4, v1, v3, v1, v2}, Lcom/facebook/common/g/f;->a(I[BII)I
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
mul-int/lit8 v4, v2, 0x2
|
|
|
|
invoke-direct {v0, v4}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v4, v2, :cond_2
|
|
|
|
aget-byte v5, v3, v4
|
|
|
|
const/4 v6, 0x1
|
|
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
invoke-static {v5}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v6, v1
|
|
|
|
const-string v5, "%02X"
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
throw v1
|
|
|
|
:goto_2
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method public final iq()V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/d/d;->d(Ljava/io/InputStream;)Lcom/facebook/d/c;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QG:Lcom/facebook/d/c;
|
|
|
|
invoke-static {v0}, Lcom/facebook/d/b;->a(Lcom/facebook/d/c;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->ir()Landroid/util/Pair;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/e;->is()Lcom/facebook/imageutils/b;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v1, v1, Lcom/facebook/imageutils/b;->Vb:Landroid/util/Pair;
|
|
|
|
:goto_0
|
|
sget-object v2, Lcom/facebook/d/b;->LE:Lcom/facebook/d/c;
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
iget v2, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/imageutils/c;->j(Ljava/io/InputStream;)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
invoke-static {v0}, Lcom/facebook/imageutils/e;->aD(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sget-object v1, Lcom/facebook/d/b;->LO:Lcom/facebook/d/c;
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
if-ne v0, v3, :cond_2
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/f/e;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/imageutils/HeifExifUtil;->j(Ljava/io/InputStream;)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
iget v0, p0, Lcom/facebook/imagepipeline/f/e;->Ie:I
|
|
|
|
invoke-static {v0}, Lcom/facebook/imageutils/e;->aD(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/facebook/imagepipeline/f/e;->Id:I
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final declared-synchronized isValid()Z
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QE:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->a(Lcom/facebook/common/references/CloseableReference;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/f/e;->QF:Lcom/facebook/common/d/k;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw v0
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|