package com.kofax.android.abc.xvrs.Detection; import com.kofax.android.abc.xvrs.XVrsDocument; import com.kofax.android.abc.xvrs.XVrsImage; /* loaded from: classes3.dex */ public class XVrsPhaseDetector { private long m_impl = nativeCreate(); public static native boolean nativeStaticInitializer(); public native long nativeCreate(); public native void nativeDispose(); public native XVrsDocument nativeGetDocument(); public native XVrsImage nativeGetImage(); public native void nativeInitializeFromFile(String str, String str2); public native void nativeInitializeFromString(String str, String str2); public native void nativeProcess(long j); public native void nativeReset(); static { if (!nativeStaticInitializer()) { throw new RuntimeException("com.kofax.android.abc.xvrs.Detection.XVrsPhaseDetector: 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 reset() { nativeReset(); } public void process(XVrsImage xVrsImage) { nativeProcess(xVrsImage.getPtr()); } public XVrsImage getProcessedImage() { return nativeGetImage(); } public XVrsDocument getDocument() { return nativeGetDocument(); } public long getPtr() { return this.m_impl; } }