package com.kofax.android.abc.xvrs; /* loaded from: classes3.dex */ public class XVrsAutoCrop { 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); static { if (!nativeStaticInitializer()) { throw new RuntimeException("com.kofax.android.abc.xvrs.XVrsAutoOrientation: 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) { nativeProcess(xVrsImage.getPtr()); } public XVrsImage getProcessedImage() { return nativeGetProcessedImage(); } public long getPtr() { return this.m_impl; } }