package com.kofax.mobile.sdk.l; import com.kofax.kmc.ken.engines.IPassportDetector; import com.kofax.kmc.ken.engines.data.PassportDetectionSettings; import com.kofax.kmc.kui.uicontrols.PreviewFrameEvent; import com.kofax.mobile.sdk.k.o; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class i extends c { @Override // com.kofax.mobile.sdk.l.c, com.kofax.mobile.sdk._internal.capture.c public /* bridge */ /* synthetic */ void a(com.kofax.mobile.sdk._internal.capture.a aVar) { super.a(aVar); } @InterfaceC13391fZD public i(IPassportDetector iPassportDetector) { super(iPassportDetector, new PassportDetectionSettings()); } /* JADX WARN: Multi-variable type inference failed */ @Override // com.kofax.mobile.sdk._internal.capture.c public com.kofax.mobile.sdk._internal.capture.d a(PreviewFrameEvent previewFrameEvent) { try { return m.a(((IPassportDetector) this.GV).detect((PassportDetectionSettings) this.GW, previewFrameEvent.getBitmapLandscape()), previewFrameEvent, previewFrameEvent.getRotation() - previewFrameEvent.getRotationLandscape()); } catch (IllegalArgumentException e) { com.kofax.mobile.sdk._internal.k.e("Detection failed", new RuntimeException(e)); return m.e(previewFrameEvent); } } @Override // com.kofax.mobile.sdk._internal.capture.c public void doCleanUp() { ((IPassportDetector) this.GV).destroy(); } /* JADX WARN: Multi-variable type inference failed */ @Override // com.kofax.mobile.sdk._internal.capture.c public double getMaxFillFraction() { return ((PassportDetectionSettings) this.GW).getMaxFillFraction(); } /* JADX WARN: Multi-variable type inference failed */ @Override // com.kofax.mobile.sdk._internal.capture.c public o bt() { return new o(((PassportDetectionSettings) this.GW).getTargetFrameAspectRatio(), ((PassportDetectionSettings) this.GW).getTargetFramePaddingPercent(), ((PassportDetectionSettings) this.GW).getCenterPoint()); } }