31 lines
1.6 KiB
Java
31 lines
1.6 KiB
Java
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));
|
|
}
|
|
}
|