what-the-bank/sources/com/kofax/android/abc/xvrs/XVrsImage.java

113 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.xvrs;
import android.graphics.Bitmap;
/* loaded from: classes3.dex */
public class XVrsImage {
private long m_impl;
private int m_rc;
private native int nativeFromBitmap(Bitmap bitmap);
public static native boolean nativeStaticInitializer();
public native int nativeChannels();
public native XVrsImage nativeClone();
public native long nativeCreate();
public native long nativeCreate(int i, int i2, int i3);
public native long nativeCreate(Bitmap bitmap);
public native long nativeCreate(String str);
public native long nativeCreate(byte[] bArr, int i, int i2);
public native void nativeDispose();
public native int nativeHeight();
public native Bitmap nativeToBitmap();
public native boolean nativeToFile(String str);
public native int nativeWidth();
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.xvrs.XvrsImage: Static initializer failed.");
}
}
public XVrsImage() {
this.m_impl = nativeCreate();
}
public XVrsImage(int i, int i2, int i3) {
this.m_impl = nativeCreate(i, i2, i3);
}
public XVrsImage(String str) {
this.m_impl = nativeCreate(str);
}
public XVrsImage(Bitmap bitmap) {
this.m_impl = nativeCreate(bitmap);
}
public XVrsImage(byte[] bArr, int i, int i2) {
this.m_impl = nativeCreate(bArr, i, i2);
}
public XVrsImage(long j) {
this.m_impl = j;
}
public void dispose() {
nativeDispose();
this.m_impl = 0L;
}
public XVrsImage copy() {
return nativeClone();
}
public boolean toFile(String str) {
return nativeToFile(str);
}
public int fromBitmap(Bitmap bitmap) {
return nativeFromBitmap(bitmap);
}
public Bitmap toBitmap() {
return nativeToBitmap();
}
public int channels() {
return nativeChannels();
}
public int width() {
return nativeWidth();
}
public int height() {
return nativeHeight();
}
public void setPtr(long j) {
this.m_impl = j;
}
public long getPtr() {
return this.m_impl;
}
public long getLastReturnCode() {
return this.m_rc;
}
}