2019-02-04 20:08:30 +00:00
|
|
|
.class Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "HeifExifUtil.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
2019-02-06 20:30:57 +00:00
|
|
|
.annotation build Lcom/facebook/soloader/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/facebook/imageutils/HeifExifUtil;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x8
|
|
|
|
name = "HeifExifUtilAndroidN"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method private 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
|
|
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
|
|
api = 0x18
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
: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
|