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

55 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.xvrs;
import android.graphics.Rect;
import java.util.ArrayList;
/* loaded from: classes3.dex */
public class XVrsRedact {
private long m_impl = nativeCreate();
public static native boolean nativeStaticInitializer();
public native long nativeCreate();
public native void nativeDispose();
public native XVrsImage nativeGetProcessedImage();
public native void nativeInitializeFromFile(String str, String str2);
public native void nativeInitializeFromString(String str, String str2);
public native void nativeProcess(long j, ArrayList<Rect> arrayList);
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.xvrs.XVrsRedact: Static initializer failed.");
}
}
public void dispose() {
nativeDispose();
this.m_impl = 0L;
}
public void loadConfigurationFile(String str, String str2) {
nativeInitializeFromFile(str, str2);
}
public void loadConfigurationString(String str, String str2) {
nativeInitializeFromString(str, str2);
}
public void process(XVrsImage xVrsImage, ArrayList<Rect> arrayList) {
nativeProcess(xVrsImage.getPtr(), arrayList);
}
public XVrsImage getProcessedImage() {
return nativeGetProcessedImage();
}
public long getPtr() {
return this.m_impl;
}
}