what-the-bank/sources/com/kofax/mobile/sdk/l/m.java

31 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.l;
import com.kofax.kmc.ken.engines.data.DetectionResult;
import com.kofax.kmc.kui.uicontrols.PreviewFrameEvent;
import com.kofax.mobile.sdk._internal.impl.detection.data.FixedAspectRatioDetectionResult;
/* loaded from: classes3.dex */
public class m {
public static com.kofax.mobile.sdk._internal.capture.d a(PreviewFrameEvent previewFrameEvent, int i) {
return new l(previewFrameEvent.getWidth(), previewFrameEvent.getHeight(), i);
}
public static com.kofax.mobile.sdk._internal.capture.d e(PreviewFrameEvent previewFrameEvent) {
return new l(previewFrameEvent.getWidth(), previewFrameEvent.getHeight(), previewFrameEvent.getRotation());
}
public static com.kofax.mobile.sdk._internal.capture.d a(DetectionResult detectionResult, PreviewFrameEvent previewFrameEvent, int i) {
if (detectionResult == null) {
return a(previewFrameEvent, i);
}
return new k(detectionResult, new com.kofax.mobile.sdk.k.a(detectionResult.getBounds(), previewFrameEvent.getWidth(), previewFrameEvent.getHeight(), i));
}
public static com.kofax.mobile.sdk._internal.capture.d a(FixedAspectRatioDetectionResult fixedAspectRatioDetectionResult, PreviewFrameEvent previewFrameEvent, int i) {
if (fixedAspectRatioDetectionResult == null) {
return a(previewFrameEvent, i);
}
return new n(fixedAspectRatioDetectionResult, new com.kofax.mobile.sdk.k.a(fixedAspectRatioDetectionResult.getBounds(), previewFrameEvent.getWidth(), previewFrameEvent.getHeight(), i));
}
}