56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
package com.kofax.kmc.ken.engines.gpu;
|
|
|
|
import android.graphics.Rect;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class CaptureGuidance {
|
|
protected long m_rectangle;
|
|
|
|
public static native boolean nativeStaticInitializer();
|
|
|
|
public native long initRectangle(float[] fArr);
|
|
|
|
public native void nativeFinalize();
|
|
|
|
public native double nativeGetHorizontalMovementGuidance(int i, int i2, int i3, int i4, double d);
|
|
|
|
public native double nativeGetTurnGuidance(double d);
|
|
|
|
public native double nativeGetVerticalMovementGuidance(int i, int i2, int i3, int i4, double d);
|
|
|
|
public native double nativeGetZoomGuidance(int i, int i2, int i3, int i4, double d, double d2);
|
|
|
|
static {
|
|
System.loadLibrary("ee77d4");
|
|
System.loadLibrary("g22b61");
|
|
if (!nativeStaticInitializer()) {
|
|
throw new RuntimeException("com.kofax.kmc.ken.engines.gpu.CaptureGuidance: Static initializer failed.");
|
|
}
|
|
}
|
|
|
|
public CaptureGuidance(float[] fArr) {
|
|
this.m_rectangle = initRectangle(fArr);
|
|
}
|
|
|
|
public double getZoomGuidance(Rect rect, double d, double d2) {
|
|
return nativeGetZoomGuidance(rect.left, rect.top, rect.width(), rect.height(), d, d2);
|
|
}
|
|
|
|
public double getTurnGuidance(double d) {
|
|
return nativeGetTurnGuidance(d);
|
|
}
|
|
|
|
public double getHorizontalMovementGuidance(Rect rect, double d) {
|
|
return nativeGetHorizontalMovementGuidance(rect.left, rect.top, rect.width(), rect.height(), d);
|
|
}
|
|
|
|
public double getVerticalMovementGuidance(Rect rect, double d) {
|
|
return nativeGetVerticalMovementGuidance(rect.left, rect.top, rect.width(), rect.height(), d);
|
|
}
|
|
|
|
protected void finalize() throws Throwable {
|
|
nativeFinalize();
|
|
super.finalize();
|
|
}
|
|
}
|