Image.smali

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


# instance fields
.field public a:J


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

    const-string v0, "zbar"

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

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

    return-void
.end method

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

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

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

    move-result-wide v0

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

    return-void
.end method

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

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

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

    invoke-virtual {p0, p3}, Lcom/yanzhenjie/zbar/Image;->setFormat(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 public static native init()V
.end method


# virtual methods
.method public declared-synchronized a()V
    .registers 6

    monitor-enter p0

    :try_start_1
    iget-wide v0, p0, Lcom/yanzhenjie/zbar/Image;->a:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-eqz v4, :cond_10

    iget-wide v0, p0, Lcom/yanzhenjie/zbar/Image;->a:J

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

    iput-wide v2, p0, Lcom/yanzhenjie/zbar/Image;->a:J
    :try_end_10
    .catchall {:try_start_1 .. :try_end_10} :catchall_12

    :cond_10
    monitor-exit p0

    return-void

    :catchall_12
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public finalize()V
    .registers 1

    invoke-virtual {p0}, Lcom/yanzhenjie/zbar/Image;->a()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 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