Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -1,58 +1,18 @@
|
|||
.class Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
|
||||
.class public Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
|
||||
.super Ljava/lang/Object;
|
||||
.source "HeifExifUtil.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/facebook/imageutils/HeifExifUtil;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x8
|
||||
name = "HeifExifUtilAndroidN"
|
||||
.annotation build Le/j/m/d;
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static j(Ljava/io/InputStream;)I
|
||||
.locals 2
|
||||
|
||||
:try_start_0
|
||||
new-instance v0, Landroid/media/ExifInterface;
|
||||
|
||||
invoke-direct {v0, p0}, Landroid/media/ExifInterface;-><init>(Ljava/io/InputStream;)V
|
||||
|
||||
const-string p0, "Orientation"
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {v0, p0, v1}, Landroid/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I
|
||||
|
||||
move-result p0
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return p0
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
||||
const-string v0, "HeifExifUtil"
|
||||
|
||||
const-string v1, "Failed reading Heif Exif orientation -> ignoring"
|
||||
|
||||
invoke-static {v0, v1, p0}, Lcom/facebook/common/e/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
.class public final Lcom/facebook/imageutils/HeifExifUtil;
|
||||
.super Ljava/lang/Object;
|
||||
.source "HeifExifUtil.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static j(Ljava/io/InputStream;)I
|
||||
.locals 2
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;->j(Ljava/io/InputStream;)I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_0
|
||||
const-string p0, "HeifExifUtil"
|
||||
|
||||
const-string v0, "Trying to read Heif Exif information before Android N -> ignoring"
|
||||
|
||||
invoke-static {p0, v0}, Lcom/facebook/common/e/a;->d(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
.end method
|
|
@ -1,116 +0,0 @@
|
|||
.class final synthetic Lcom/facebook/imageutils/a$1;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BitmapUtil.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/facebook/imageutils/a;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x1008
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field static final synthetic aaJ:[I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 3
|
||||
|
||||
invoke-static {}, Landroid/graphics/Bitmap$Config;->values()[Landroid/graphics/Bitmap$Config;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
array-length v0, v0
|
||||
|
||||
new-array v0, v0, [I
|
||||
|
||||
sput-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
:try_start_0
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
|
||||
|
||||
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
aput v2, v0, v1
|
||||
:try_end_0
|
||||
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
:catch_0
|
||||
:try_start_1
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
sget-object v1, Landroid/graphics/Bitmap$Config;->ALPHA_8:Landroid/graphics/Bitmap$Config;
|
||||
|
||||
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x2
|
||||
|
||||
aput v2, v0, v1
|
||||
:try_end_1
|
||||
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
|
||||
|
||||
:catch_1
|
||||
:try_start_2
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_4444:Landroid/graphics/Bitmap$Config;
|
||||
|
||||
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x3
|
||||
|
||||
aput v2, v0, v1
|
||||
:try_end_2
|
||||
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
|
||||
|
||||
:catch_2
|
||||
:try_start_3
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;
|
||||
|
||||
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x4
|
||||
|
||||
aput v2, v0, v1
|
||||
:try_end_3
|
||||
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
|
||||
|
||||
:catch_3
|
||||
:try_start_4
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
sget-object v1, Landroid/graphics/Bitmap$Config;->RGBA_F16:Landroid/graphics/Bitmap$Config;
|
||||
|
||||
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x5
|
||||
|
||||
aput v2, v0, v1
|
||||
:try_end_4
|
||||
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
|
||||
|
||||
:catch_4
|
||||
return-void
|
||||
.end method
|
|
@ -1,338 +0,0 @@
|
|||
.class public final Lcom/facebook/imageutils/a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "BitmapUtil.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/core/util/Pools$SynchronizedPool<",
|
||||
"Ljava/nio/ByteBuffer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
const/16 v1, 0xc
|
||||
|
||||
invoke-direct {v0, v1}, Landroidx/core/util/Pools$SynchronizedPool;-><init>(I)V
|
||||
|
||||
sput-object v0, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static c(Landroid/graphics/Bitmap$Config;)I
|
||||
.locals 3
|
||||
|
||||
sget-object v0, Lcom/facebook/imageutils/a$1;->aaJ:[I
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap$Config;->ordinal()I
|
||||
|
||||
move-result p0
|
||||
|
||||
aget p0, v0, p0
|
||||
|
||||
const/4 v0, 0x4
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-eq p0, v1, :cond_3
|
||||
|
||||
const/4 v2, 0x2
|
||||
|
||||
if-eq p0, v2, :cond_2
|
||||
|
||||
const/4 v1, 0x3
|
||||
|
||||
if-eq p0, v1, :cond_1
|
||||
|
||||
if-eq p0, v0, :cond_1
|
||||
|
||||
const/4 v0, 0x5
|
||||
|
||||
if-ne p0, v0, :cond_0
|
||||
|
||||
const/16 p0, 0x8
|
||||
|
||||
return p0
|
||||
|
||||
:cond_0
|
||||
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
const-string v0, "The provided Bitmap.Config is not supported"
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
|
||||
:cond_1
|
||||
return v2
|
||||
|
||||
:cond_2
|
||||
return v1
|
||||
|
||||
:cond_3
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static e(IILandroid/graphics/Bitmap$Config;)I
|
||||
.locals 0
|
||||
|
||||
mul-int p0, p0, p1
|
||||
|
||||
invoke-static {p2}, Lcom/facebook/imageutils/a;->c(Landroid/graphics/Bitmap$Config;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
mul-int p0, p0, p1
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static g(Landroid/graphics/Bitmap;)I
|
||||
.locals 2
|
||||
.param p0 # Landroid/graphics/Bitmap;
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
if-nez p0, :cond_0
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_0
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-le v0, v1, :cond_1
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getAllocationByteCount()I
|
||||
|
||||
move-result p0
|
||||
:try_end_0
|
||||
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return p0
|
||||
|
||||
:catch_0
|
||||
nop
|
||||
|
||||
:cond_1
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0xc
|
||||
|
||||
if-lt v0, v1, :cond_2
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getByteCount()I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getRowBytes()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
|
||||
|
||||
move-result p0
|
||||
|
||||
mul-int v0, v0, p0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static h(Ljava/io/InputStream;)Landroid/util/Pair;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/io/InputStream;",
|
||||
")",
|
||||
"Landroid/util/Pair<",
|
||||
"Ljava/lang/Integer;",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
sget-object v0, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/util/Pools$SynchronizedPool;->acquire()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/nio/ByteBuffer;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/16 v0, 0x4000
|
||||
|
||||
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:cond_0
|
||||
new-instance v1, Landroid/graphics/BitmapFactory$Options;
|
||||
|
||||
invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
|
||||
|
||||
move-result-object v2
|
||||
|
||||
iput-object v2, v1, Landroid/graphics/BitmapFactory$Options;->inTempStorage:[B
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-static {p0, v2, v1}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
|
||||
|
||||
iget p0, v1, Landroid/graphics/BitmapFactory$Options;->outWidth:I
|
||||
|
||||
const/4 v3, -0x1
|
||||
|
||||
if-eq p0, v3, :cond_2
|
||||
|
||||
iget p0, v1, Landroid/graphics/BitmapFactory$Options;->outHeight:I
|
||||
|
||||
if-ne p0, v3, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
new-instance v2, Landroid/util/Pair;
|
||||
|
||||
iget p0, v1, Landroid/graphics/BitmapFactory$Options;->outWidth:I
|
||||
|
||||
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
iget v1, v1, Landroid/graphics/BitmapFactory$Options;->outHeight:I
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v2, p0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
sget-object p0, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/core/util/Pools$SynchronizedPool;->release(Ljava/lang/Object;)Z
|
||||
|
||||
return-object v2
|
||||
|
||||
:catchall_0
|
||||
move-exception p0
|
||||
|
||||
sget-object v1, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/core/util/Pools$SynchronizedPool;->release(Ljava/lang/Object;)Z
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static i(Ljava/io/InputStream;)Lcom/facebook/imageutils/b;
|
||||
.locals 4
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
sget-object v0, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/core/util/Pools$SynchronizedPool;->acquire()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/nio/ByteBuffer;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/16 v0, 0x4000
|
||||
|
||||
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:cond_0
|
||||
new-instance v1, Landroid/graphics/BitmapFactory$Options;
|
||||
|
||||
invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
|
||||
|
||||
move-result-object v2
|
||||
|
||||
iput-object v2, v1, Landroid/graphics/BitmapFactory$Options;->inTempStorage:[B
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-static {p0, v2, v1}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
|
||||
|
||||
sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v3, 0x1a
|
||||
|
||||
if-lt p0, v3, :cond_1
|
||||
|
||||
iget-object v2, v1, Landroid/graphics/BitmapFactory$Options;->outColorSpace:Landroid/graphics/ColorSpace;
|
||||
|
||||
:cond_1
|
||||
new-instance p0, Lcom/facebook/imageutils/b;
|
||||
|
||||
iget v3, v1, Landroid/graphics/BitmapFactory$Options;->outWidth:I
|
||||
|
||||
iget v1, v1, Landroid/graphics/BitmapFactory$Options;->outHeight:I
|
||||
|
||||
invoke-direct {p0, v3, v1, v2}, Lcom/facebook/imageutils/b;-><init>(IILandroid/graphics/ColorSpace;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
sget-object v1, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/core/util/Pools$SynchronizedPool;->release(Ljava/lang/Object;)Z
|
||||
|
||||
return-object p0
|
||||
|
||||
:catchall_0
|
||||
move-exception p0
|
||||
|
||||
sget-object v1, Lcom/facebook/imageutils/a;->aaI:Landroidx/core/util/Pools$SynchronizedPool;
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/core/util/Pools$SynchronizedPool;->release(Ljava/lang/Object;)Z
|
||||
|
||||
throw p0
|
||||
.end method
|
|
@ -1,70 +0,0 @@
|
|||
.class public final Lcom/facebook/imageutils/b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ImageMetaData.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final TP:Landroid/graphics/ColorSpace;
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public final aaK:Landroid/util/Pair;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroid/util/Pair<",
|
||||
"Ljava/lang/Integer;",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(IILandroid/graphics/ColorSpace;)V
|
||||
.locals 1
|
||||
.param p3 # Landroid/graphics/ColorSpace;
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
if-eq p1, v0, :cond_1
|
||||
|
||||
if-ne p2, v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Landroid/util/Pair;
|
||||
|
||||
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-direct {v0, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
iput-object v0, p0, Lcom/facebook/imageutils/b;->aaK:Landroid/util/Pair;
|
||||
|
||||
iput-object p3, p0, Lcom/facebook/imageutils/b;->TP:Landroid/graphics/ColorSpace;
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,135 +0,0 @@
|
|||
.class public final Lcom/facebook/imageutils/c;
|
||||
.super Ljava/lang/Object;
|
||||
.source "JfifUtil.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static j(Ljava/io/InputStream;)I
|
||||
.locals 5
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:try_start_0
|
||||
invoke-static {p0}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-static {p0, v1, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v2
|
||||
|
||||
const/16 v3, 0xff
|
||||
|
||||
const/4 v4, 0x2
|
||||
|
||||
if-ne v2, v3, :cond_4
|
||||
|
||||
const/16 v2, 0xff
|
||||
|
||||
:goto_1
|
||||
if-ne v2, v3, :cond_1
|
||||
|
||||
invoke-static {p0, v1, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/16 v3, 0xe1
|
||||
|
||||
if-ne v2, v3, :cond_2
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
const/16 v3, 0xd8
|
||||
|
||||
if-eq v2, v3, :cond_0
|
||||
|
||||
if-eq v2, v1, :cond_0
|
||||
|
||||
const/16 v1, 0xd9
|
||||
|
||||
if-eq v2, v1, :cond_4
|
||||
|
||||
const/16 v1, 0xda
|
||||
|
||||
if-ne v2, v1, :cond_3
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_3
|
||||
invoke-static {p0, v4, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v1
|
||||
|
||||
sub-int/2addr v1, v4
|
||||
|
||||
int-to-long v1, v1
|
||||
|
||||
invoke-virtual {p0, v1, v2}, Ljava/io/InputStream;->skip(J)J
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_4
|
||||
:goto_2
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_3
|
||||
if-eqz v1, :cond_5
|
||||
|
||||
invoke-static {p0, v4, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v1
|
||||
|
||||
sub-int/2addr v1, v4
|
||||
|
||||
const/4 v2, 0x6
|
||||
|
||||
if-le v1, v2, :cond_5
|
||||
|
||||
const/4 v2, 0x4
|
||||
|
||||
invoke-static {p0, v2, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v2
|
||||
|
||||
add-int/lit8 v1, v1, -0x4
|
||||
|
||||
invoke-static {p0, v4, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v3
|
||||
|
||||
add-int/lit8 v1, v1, -0x2
|
||||
|
||||
const v4, 0x45786966
|
||||
|
||||
if-ne v2, v4, :cond_5
|
||||
|
||||
if-nez v3, :cond_5
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_5
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_4
|
||||
if-nez v1, :cond_6
|
||||
|
||||
return v0
|
||||
|
||||
:cond_6
|
||||
invoke-static {p0, v1}, Lcom/facebook/imageutils/e;->f(Ljava/io/InputStream;I)I
|
||||
|
||||
move-result p0
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
return p0
|
||||
|
||||
:catch_0
|
||||
return v0
|
||||
.end method
|
|
@ -1,63 +0,0 @@
|
|||
.class final Lcom/facebook/imageutils/d;
|
||||
.super Ljava/lang/Object;
|
||||
.source "StreamProcessor.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static a(Ljava/io/InputStream;IZ)I
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v0, p1, :cond_2
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v2
|
||||
|
||||
const/4 v3, -0x1
|
||||
|
||||
if-eq v2, v3, :cond_1
|
||||
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
and-int/lit16 v2, v2, 0xff
|
||||
|
||||
mul-int/lit8 v3, v0, 0x8
|
||||
|
||||
shl-int/2addr v2, v3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
shl-int/lit8 v1, v1, 0x8
|
||||
|
||||
and-int/lit16 v2, v2, 0xff
|
||||
|
||||
:goto_1
|
||||
or-int/2addr v1, v2
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
new-instance p0, Ljava/io/IOException;
|
||||
|
||||
const-string p1, "no more bytes"
|
||||
|
||||
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
|
||||
:cond_2
|
||||
return v1
|
||||
.end method
|
|
@ -1,40 +0,0 @@
|
|||
.class final Lcom/facebook/imageutils/e$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TiffUtil.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/facebook/imageutils/e;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x8
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field aaL:I
|
||||
|
||||
.field aaM:I
|
||||
|
||||
.field isLittleEndian:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method synthetic constructor <init>(B)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/imageutils/e$a;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -1,297 +0,0 @@
|
|||
.class public Lcom/facebook/imageutils/e;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TiffUtil.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lcom/facebook/imageutils/e$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final GS:Ljava/lang/Class;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Class<",
|
||||
"*>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
const-class v0, Lcom/facebook/imageutils/e;
|
||||
|
||||
sput-object v0, Lcom/facebook/imageutils/e;->GS:Ljava/lang/Class;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static aE(I)I
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
if-eqz p0, :cond_3
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
if-eq p0, v1, :cond_3
|
||||
|
||||
const/4 v1, 0x3
|
||||
|
||||
if-eq p0, v1, :cond_2
|
||||
|
||||
const/4 v1, 0x6
|
||||
|
||||
if-eq p0, v1, :cond_1
|
||||
|
||||
const/16 v1, 0x8
|
||||
|
||||
if-eq p0, v1, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
const/16 p0, 0x10e
|
||||
|
||||
return p0
|
||||
|
||||
:cond_1
|
||||
const/16 p0, 0x5a
|
||||
|
||||
return p0
|
||||
|
||||
:cond_2
|
||||
const/16 p0, 0xb4
|
||||
|
||||
return p0
|
||||
|
||||
:cond_3
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static f(Ljava/io/InputStream;I)I
|
||||
.locals 10
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Lcom/facebook/imageutils/e$a;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lcom/facebook/imageutils/e$a;-><init>(B)V
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
const/4 v3, 0x4
|
||||
|
||||
const/16 v4, 0x8
|
||||
|
||||
if-gt p1, v4, :cond_0
|
||||
|
||||
:goto_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0, v3, v1}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v5
|
||||
|
||||
iput v5, v0, Lcom/facebook/imageutils/e$a;->aaL:I
|
||||
|
||||
add-int/lit8 p1, p1, -0x4
|
||||
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaL:I
|
||||
|
||||
const v6, 0x49492a00 # 823968.0f
|
||||
|
||||
if-eq v5, v6, :cond_1
|
||||
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaL:I
|
||||
|
||||
const v7, 0x4d4d002a # 2.14958752E8f
|
||||
|
||||
if-eq v5, v7, :cond_1
|
||||
|
||||
sget-object p1, Lcom/facebook/imageutils/e;->GS:Ljava/lang/Class;
|
||||
|
||||
const-string v5, "Invalid TIFF header"
|
||||
|
||||
invoke-static {p1, v5}, Lcom/facebook/common/e/a;->c(Ljava/lang/Class;Ljava/lang/String;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaL:I
|
||||
|
||||
if-ne v5, v6, :cond_2
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_1
|
||||
iput-boolean v5, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
|
||||
|
||||
iget-boolean v5, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
|
||||
|
||||
invoke-static {p0, v3, v5}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v5
|
||||
|
||||
iput v5, v0, Lcom/facebook/imageutils/e$a;->aaM:I
|
||||
|
||||
add-int/lit8 p1, p1, -0x4
|
||||
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaM:I
|
||||
|
||||
if-lt v5, v4, :cond_3
|
||||
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaM:I
|
||||
|
||||
sub-int/2addr v5, v4
|
||||
|
||||
if-le v5, p1, :cond_4
|
||||
|
||||
:cond_3
|
||||
sget-object p1, Lcom/facebook/imageutils/e;->GS:Ljava/lang/Class;
|
||||
|
||||
const-string v5, "Invalid offset"
|
||||
|
||||
invoke-static {p1, v5}, Lcom/facebook/common/e/a;->c(Ljava/lang/Class;Ljava/lang/String;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_4
|
||||
:goto_2
|
||||
iget v5, v0, Lcom/facebook/imageutils/e$a;->aaM:I
|
||||
|
||||
sub-int/2addr v5, v4
|
||||
|
||||
if-eqz p1, :cond_b
|
||||
|
||||
if-le v5, p1, :cond_5
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_5
|
||||
int-to-long v6, v5
|
||||
|
||||
invoke-virtual {p0, v6, v7}, Ljava/io/InputStream;->skip(J)J
|
||||
|
||||
sub-int/2addr p1, v5
|
||||
|
||||
iget-boolean v4, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
|
||||
|
||||
const/16 v5, 0xe
|
||||
|
||||
const/4 v6, 0x2
|
||||
|
||||
if-lt p1, v5, :cond_7
|
||||
|
||||
invoke-static {p0, v6, v4}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v5
|
||||
|
||||
add-int/lit8 p1, p1, -0x2
|
||||
|
||||
:goto_3
|
||||
add-int/lit8 v7, v5, -0x1
|
||||
|
||||
if-lez v5, :cond_7
|
||||
|
||||
const/16 v5, 0xc
|
||||
|
||||
if-lt p1, v5, :cond_7
|
||||
|
||||
invoke-static {p0, v6, v4}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result v5
|
||||
|
||||
add-int/lit8 p1, p1, -0x2
|
||||
|
||||
const/16 v8, 0x112
|
||||
|
||||
if-ne v5, v8, :cond_6
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_6
|
||||
const-wide/16 v8, 0xa
|
||||
|
||||
invoke-virtual {p0, v8, v9}, Ljava/io/InputStream;->skip(J)J
|
||||
|
||||
add-int/lit8 p1, p1, -0xa
|
||||
|
||||
move v5, v7
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_7
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_4
|
||||
iget-boolean v0, v0, Lcom/facebook/imageutils/e$a;->isLittleEndian:Z
|
||||
|
||||
const/16 v4, 0xa
|
||||
|
||||
if-ge p1, v4, :cond_8
|
||||
|
||||
return v1
|
||||
|
||||
:cond_8
|
||||
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result p1
|
||||
|
||||
const/4 v4, 0x3
|
||||
|
||||
if-eq p1, v4, :cond_9
|
||||
|
||||
return v1
|
||||
|
||||
:cond_9
|
||||
invoke-static {p0, v3, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eq p1, v2, :cond_a
|
||||
|
||||
return v1
|
||||
|
||||
:cond_a
|
||||
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
move-result p1
|
||||
|
||||
invoke-static {p0, v6, v0}, Lcom/facebook/imageutils/d;->a(Ljava/io/InputStream;IZ)I
|
||||
|
||||
return p1
|
||||
|
||||
:cond_b
|
||||
:goto_5
|
||||
return v1
|
||||
.end method
|
|
@ -1,660 +0,0 @@
|
|||
.class public final Lcom/facebook/imageutils/f;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WebpUtil.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private static a([BLjava/lang/String;)Z
|
||||
.locals 5
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x4
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-eq v1, v0, :cond_0
|
||||
|
||||
return v2
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v0, v1, :cond_2
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v3
|
||||
|
||||
aget-byte v4, p0, v0
|
||||
|
||||
if-eq v3, v4, :cond_1
|
||||
|
||||
return v2
|
||||
|
||||
:cond_1
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
const/4 p0, 0x1
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static k(Ljava/io/InputStream;)Landroid/util/Pair;
|
||||
.locals 7
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/io/InputStream;",
|
||||
")",
|
||||
"Landroid/util/Pair<",
|
||||
"Ljava/lang/Integer;",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljavax/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x4
|
||||
|
||||
new-array v1, v0, [B
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I
|
||||
|
||||
const-string v3, "RIFF"
|
||||
|
||||
invoke-static {v1, v3}, Lcom/facebook/imageutils/f;->a([BLjava/lang/String;)Z
|
||||
|
||||
move-result v3
|
||||
:try_end_0
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-nez v3, :cond_1
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
:try_start_1
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_1
|
||||
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-object v2
|
||||
|
||||
:cond_1
|
||||
:try_start_2
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->l(Ljava/io/InputStream;)I
|
||||
|
||||
invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I
|
||||
|
||||
const-string v3, "WEBP"
|
||||
|
||||
invoke-static {v1, v3}, Lcom/facebook/imageutils/f;->a([BLjava/lang/String;)Z
|
||||
|
||||
move-result v3
|
||||
:try_end_2
|
||||
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
if-nez v3, :cond_3
|
||||
|
||||
if-eqz p0, :cond_2
|
||||
|
||||
:try_start_3
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_3
|
||||
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_1
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-object v2
|
||||
|
||||
:cond_3
|
||||
:try_start_4
|
||||
invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I
|
||||
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_2
|
||||
if-ge v4, v0, :cond_4
|
||||
|
||||
aget-byte v5, v1, v4
|
||||
|
||||
int-to-char v5, v5
|
||||
|
||||
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
add-int/lit8 v4, v4, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "VP8 "
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
if-eqz v1, :cond_8
|
||||
|
||||
const-wide/16 v0, 0x7
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Ljava/io/InputStream;->skip(J)J
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->o(Ljava/io/InputStream;)S
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->o(Ljava/io/InputStream;)S
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->o(Ljava/io/InputStream;)S
|
||||
|
||||
move-result v4
|
||||
|
||||
const/16 v5, 0x9d
|
||||
|
||||
if-ne v0, v5, :cond_6
|
||||
|
||||
if-ne v1, v3, :cond_6
|
||||
|
||||
const/16 v0, 0x2a
|
||||
|
||||
if-eq v4, v0, :cond_5
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_5
|
||||
new-instance v0, Landroid/util/Pair;
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->m(Ljava/io/InputStream;)I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->m(Ljava/io/InputStream;)I
|
||||
|
||||
move-result v3
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-direct {v0, v1, v3}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
:try_end_4
|
||||
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_5
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_6
|
||||
:goto_3
|
||||
move-object v0, v2
|
||||
|
||||
:goto_4
|
||||
if-eqz p0, :cond_7
|
||||
|
||||
:try_start_5
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_5
|
||||
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:catch_2
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_7
|
||||
:goto_5
|
||||
return-object v0
|
||||
|
||||
:cond_8
|
||||
:try_start_6
|
||||
const-string v1, "VP8L"
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_b
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->l(Ljava/io/InputStream;)I
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->p(Ljava/io/InputStream;)B
|
||||
|
||||
move-result v0
|
||||
|
||||
const/16 v1, 0x2f
|
||||
|
||||
if-eq v0, v1, :cond_9
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_9
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v0
|
||||
|
||||
int-to-byte v0, v0
|
||||
|
||||
and-int/lit16 v0, v0, 0xff
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v1
|
||||
|
||||
int-to-byte v1, v1
|
||||
|
||||
and-int/lit16 v1, v1, 0xff
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v4
|
||||
|
||||
int-to-byte v4, v4
|
||||
|
||||
and-int/lit16 v4, v4, 0xff
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v5
|
||||
|
||||
int-to-byte v5, v5
|
||||
|
||||
and-int/lit16 v5, v5, 0xff
|
||||
|
||||
and-int/lit8 v6, v1, 0x3f
|
||||
|
||||
shl-int/lit8 v6, v6, 0x8
|
||||
|
||||
or-int/2addr v0, v6
|
||||
|
||||
add-int/2addr v0, v3
|
||||
|
||||
and-int/lit8 v5, v5, 0xf
|
||||
|
||||
shl-int/lit8 v5, v5, 0xa
|
||||
|
||||
shl-int/lit8 v4, v4, 0x2
|
||||
|
||||
or-int/2addr v4, v5
|
||||
|
||||
and-int/lit16 v1, v1, 0xc0
|
||||
|
||||
shr-int/lit8 v1, v1, 0x6
|
||||
|
||||
or-int/2addr v1, v4
|
||||
|
||||
add-int/2addr v1, v3
|
||||
|
||||
new-instance v3, Landroid/util/Pair;
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v3, v0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
:try_end_6
|
||||
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5
|
||||
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
||||
|
||||
move-object v2, v3
|
||||
|
||||
:goto_6
|
||||
if-eqz p0, :cond_a
|
||||
|
||||
:try_start_7
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_7
|
||||
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_3
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:catch_3
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_a
|
||||
:goto_7
|
||||
return-object v2
|
||||
|
||||
:cond_b
|
||||
:try_start_8
|
||||
const-string v1, "VP8X"
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_d
|
||||
|
||||
const-wide/16 v0, 0x8
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Ljava/io/InputStream;->skip(J)J
|
||||
|
||||
new-instance v0, Landroid/util/Pair;
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->n(Ljava/io/InputStream;)I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/2addr v1, v3
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->n(Ljava/io/InputStream;)I
|
||||
|
||||
move-result v4
|
||||
|
||||
add-int/2addr v4, v3
|
||||
|
||||
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-direct {v0, v1, v3}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
:try_end_8
|
||||
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5
|
||||
.catchall {:try_start_8 .. :try_end_8} :catchall_0
|
||||
|
||||
if-eqz p0, :cond_c
|
||||
|
||||
:try_start_9
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_9
|
||||
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_4
|
||||
|
||||
goto :goto_8
|
||||
|
||||
:catch_4
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_c
|
||||
:goto_8
|
||||
return-object v0
|
||||
|
||||
:cond_d
|
||||
if-eqz p0, :cond_e
|
||||
|
||||
:try_start_a
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_a
|
||||
.catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_6
|
||||
|
||||
goto :goto_9
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
goto :goto_a
|
||||
|
||||
:catch_5
|
||||
move-exception v0
|
||||
|
||||
:try_start_b
|
||||
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
|
||||
:try_end_b
|
||||
.catchall {:try_start_b .. :try_end_b} :catchall_0
|
||||
|
||||
if-eqz p0, :cond_e
|
||||
|
||||
:try_start_c
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_c
|
||||
.catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_6
|
||||
|
||||
goto :goto_9
|
||||
|
||||
:catch_6
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_e
|
||||
:goto_9
|
||||
return-object v2
|
||||
|
||||
:goto_a
|
||||
if-eqz p0, :cond_f
|
||||
|
||||
:try_start_d
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->close()V
|
||||
:try_end_d
|
||||
.catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_7
|
||||
|
||||
goto :goto_b
|
||||
|
||||
:catch_7
|
||||
move-exception p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
|
||||
|
||||
:cond_f
|
||||
:goto_b
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method private static l(Ljava/io/InputStream;)I
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v0
|
||||
|
||||
int-to-byte v0, v0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v1
|
||||
|
||||
int-to-byte v1, v1
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v2
|
||||
|
||||
int-to-byte v2, v2
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result p0
|
||||
|
||||
int-to-byte p0, p0
|
||||
|
||||
shl-int/lit8 p0, p0, 0x18
|
||||
|
||||
const/high16 v3, -0x1000000
|
||||
|
||||
and-int/2addr p0, v3
|
||||
|
||||
shl-int/lit8 v2, v2, 0x10
|
||||
|
||||
const/high16 v3, 0xff0000
|
||||
|
||||
and-int/2addr v2, v3
|
||||
|
||||
or-int/2addr p0, v2
|
||||
|
||||
shl-int/lit8 v1, v1, 0x8
|
||||
|
||||
const v2, 0xff00
|
||||
|
||||
and-int/2addr v1, v2
|
||||
|
||||
or-int/2addr p0, v1
|
||||
|
||||
and-int/lit16 v0, v0, 0xff
|
||||
|
||||
or-int/2addr p0, v0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method private static m(Ljava/io/InputStream;)I
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result v0
|
||||
|
||||
int-to-byte v0, v0
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result p0
|
||||
|
||||
int-to-byte p0, p0
|
||||
|
||||
shl-int/lit8 p0, p0, 0x8
|
||||
|
||||
const v1, 0xff00
|
||||
|
||||
and-int/2addr p0, v1
|
||||
|
||||
and-int/lit16 v0, v0, 0xff
|
||||
|
||||
or-int/2addr p0, v0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method private static n(Ljava/io/InputStream;)I
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->p(Ljava/io/InputStream;)B
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->p(Ljava/io/InputStream;)B
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-static {p0}, Lcom/facebook/imageutils/f;->p(Ljava/io/InputStream;)B
|
||||
|
||||
move-result p0
|
||||
|
||||
shl-int/lit8 p0, p0, 0x10
|
||||
|
||||
const/high16 v2, 0xff0000
|
||||
|
||||
and-int/2addr p0, v2
|
||||
|
||||
shl-int/lit8 v1, v1, 0x8
|
||||
|
||||
const v2, 0xff00
|
||||
|
||||
and-int/2addr v1, v2
|
||||
|
||||
or-int/2addr p0, v1
|
||||
|
||||
and-int/lit16 v0, v0, 0xff
|
||||
|
||||
or-int/2addr p0, v0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method private static o(Ljava/io/InputStream;)S
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result p0
|
||||
|
||||
and-int/lit16 p0, p0, 0xff
|
||||
|
||||
int-to-short p0, p0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method private static p(Ljava/io/InputStream;)B
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/InputStream;->read()I
|
||||
|
||||
move-result p0
|
||||
|
||||
and-int/lit16 p0, p0, 0xff
|
||||
|
||||
int-to-byte p0, p0
|
||||
|
||||
return p0
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue