Image.smali

.class public Lcom/yanzhenjie/zbar/Image;
.super Ljava/lang/Object;
.source "SourceFile"


# instance fields
.field private data:Ljava/lang/Object;

.field private peer:J


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    const-string v0, "zbar"

    .line 1
    invoke-static {v0}, Lcom/yanzhenjie/zbar/Image;->INVOKESTATIC_com_yanzhenjie_zbar_Image_com_shopee_app_asm_fix_loadlibrary_SoLoaderFixer_loadLibrary(Ljava/lang/String;)V

    .line 2
    invoke-static {}, Lcom/yanzhenjie/zbar/Image;->init()V

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-direct {p0}, Lcom/yanzhenjie/zbar/Image;->create()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/yanzhenjie/zbar/Image;->peer:J

    return-void
.end method

.method public constructor <init>(II)V
    .registers 3

    .line 3
    invoke-direct {p0}, Lcom/yanzhenjie/zbar/Image;-><init>()V

    .line 4
    invoke-virtual {p0, p1, p2}, Lcom/yanzhenjie/zbar/Image;->setSize(II)V

    return-void
.end method

.method public constructor <init>(IILjava/lang/String;)V
    .registers 4

    .line 5
    invoke-direct {p0}, Lcom/yanzhenjie/zbar/Image;-><init>()V

    .line 6
    invoke-virtual {p0, p1, p2}, Lcom/yanzhenjie/zbar/Image;->setSize(II)V

    .line 7
    invoke-virtual {p0, p3}, Lcom/yanzhenjie/zbar/Image;->setFormat(Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>(J)V
    .registers 3

    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 11
    iput-wide p1, p0, Lcom/yanzhenjie/zbar/Image;->peer:J

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .registers 2

    .line 8
    invoke-direct {p0}, Lcom/yanzhenjie/zbar/Image;-><init>()V

    .line 9
    invoke-virtual {p0, p1}, Lcom/yanzhenjie/zbar/Image;->setFormat(Ljava/lang/String;)V

    return-void
.end method

.method public static INVOKESTATIC_com_yanzhenjie_zbar_Image_com_shopee_app_asm_fix_loadlibrary_SoLoaderFixer_loadLibrary(Ljava/lang/String;)V
    .registers 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "LogNotTimber"
        }
    .end annotation

    .line 1
    :try_start_0
    # invokes: Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
    invoke-static {p0}, Lcom/yanzhenjie/zbar/Image;->access$000(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_0 .. :try_end_3} :catchall_4

    goto :goto_2b

    :catchall_4
    move-exception v0

    .line 2
    invoke-static {}, Lcom/shopee/app/asm/fix/loadlibrary/a;->a()Z

    move-result v1

    if-eqz v1, :cond_37

    .line 3
    sget-object v0, Lcom/shopee/app/asm/fix/loadlibrary/a;->a:Lcom/getkeepsafe/relinker/e;

    if-nez v0, :cond_15

    .line 4
    invoke-static {}, Lcom/getkeepsafe/relinker/c;->b()Lcom/getkeepsafe/relinker/e;

    move-result-object v0

    .line 5
    sput-object v0, Lcom/shopee/app/asm/fix/loadlibrary/a;->a:Lcom/getkeepsafe/relinker/e;

    .line 6
    :cond_15
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    .line 7
    invoke-static {v0}, Landroidx/appcompat/i;->O(Landroid/content/Context;)Landroid/content/Context;

    move-result-object v0

    if-nez v0, :cond_23

    .line 8
    invoke-static {}, Lcom/shopee/app/application/n2;->e()Lcom/shopee/app/application/n2;

    move-result-object v0

    .line 9
    :cond_23
    invoke-static {v0}, Lcom/shopee/app/asm/fix/loadlibrary/a;->b(Landroid/content/Context;)V

    .line 10
    :try_start_26
    sget-object v1, Lcom/shopee/app/asm/fix/loadlibrary/a;->a:Lcom/getkeepsafe/relinker/e;

    .line 11
    invoke-virtual {v1, v0, p0}, Lcom/getkeepsafe/relinker/e;->b(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_2b
    .catch Lcom/getkeepsafe/relinker/b; {:try_start_26 .. :try_end_2b} :catch_2c

    :goto_2b
    return-void

    :catch_2c
    move-exception p0

    .line 12
    new-instance v0, Ljava/lang/UnsatisfiedLinkError;

    invoke-virtual {p0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/lang/UnsatisfiedLinkError;-><init>(Ljava/lang/String;)V

    throw v0

    .line 13
    :cond_37
    throw v0
.end method

.method public static synthetic access$000(Ljava/lang/String;)V
    .registers 1

    invoke-static {p0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

    return-void
.end method

.method private native convert(JLjava/lang/String;)J
.end method

.method private native create()J
.end method

.method private native destroy(J)V
.end method

.method private native getSymbols(J)J
.end method

.method private static native init()V
.end method


# virtual methods
.method public convert(Ljava/lang/String;)Lcom/yanzhenjie/zbar/Image;
    .registers 6

    .line 1
    iget-wide v0, p0, Lcom/yanzhenjie/zbar/Image;->peer:J

    invoke-direct {p0, v0, v1, p1}, Lcom/yanzhenjie/zbar/Image;->convert(JLjava/lang/String;)J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long p1, v0, v2

    if-nez p1, :cond_e

    const/4 p1, 0x0

    return-object p1

    .line 2
    :cond_e
    new-instance p1, Lcom/yanzhenjie/zbar/Image;

    invoke-direct {p1, v0, v1}, Lcom/yanzhenjie/zbar/Image;-><init>(J)V

    return-object p1
.end method

.method public declared-synchronized destroy()V
    .registers 6

    monitor-enter p0

    .line 1
    :try_start_1
    iget-wide v0, p0, Lcom/yanzhenjie/zbar/Image;->peer:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-eqz v4, :cond_e

    .line 2
    invoke-direct {p0, v0, v1}, Lcom/yanzhenjie/zbar/Image;->destroy(J)V

    .line 3
    iput-wide v2, p0, Lcom/yanzhenjie/zbar/Image;->peer:J
    :try_end_e
    .catchall {:try_start_1 .. :try_end_e} :catchall_10

    .line 4
    :cond_e
    monitor-exit p0

    return-void

    :catchall_10
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public finalize()V
    .registers 1

    invoke-virtual {p0}, Lcom/yanzhenjie/zbar/Image;->destroy()V

    return-void
.end method

.method public native getCrop()[I
.end method

.method public native getData()[B
.end method

.method public native getFormat()Ljava/lang/String;
.end method

.method public native getHeight()I
.end method

.method public native getSequence()I
.end method

.method public native getSize()[I
.end method

.method public getSymbols()Lcom/yanzhenjie/zbar/SymbolSet;
    .registers 4

    new-instance v0, Lcom/yanzhenjie/zbar/SymbolSet;

    iget-wide v1, p0, Lcom/yanzhenjie/zbar/Image;->peer:J

    invoke-direct {p0, v1, v2}, Lcom/yanzhenjie/zbar/Image;->getSymbols(J)J

    move-result-wide v1

    invoke-direct {v0, v1, v2}, Lcom/yanzhenjie/zbar/SymbolSet;-><init>(J)V

    return-object v0
.end method

.method public native getWidth()I
.end method

.method public native setCrop(IIII)V
.end method

.method public native setCrop([I)V
.end method

.method public native setData([B)V
.end method

.method public native setData([I)V
.end method

.method public native setFormat(Ljava/lang/String;)V
.end method

.method public native setSequence(I)V
.end method

.method public native setSize(II)V
.end method

.method public native setSize([I)V
.end method