284 lines
9.7 KiB
Java
284 lines
9.7 KiB
Java
|
package com.kofax.mobile.sdk.ah;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Point;
|
||
|
import android.hardware.Camera;
|
||
|
import android.view.SurfaceView;
|
||
|
import com.kofax.kmc.ken.engines.DocumentDetector;
|
||
|
import com.kofax.kmc.ken.engines.IDocumentDetector;
|
||
|
import com.kofax.kmc.kui.uicontrols.ImageCaptureView;
|
||
|
import com.kofax.kmc.kui.uicontrols.captureanimations.ILicenseOverlayView;
|
||
|
import com.kofax.kmc.kui.uicontrols.captureanimations.LicenseOverlayView;
|
||
|
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
|
||
|
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
|
||
|
import com.kofax.mobile.sdk._internal.IImageToByteArray;
|
||
|
import com.kofax.mobile.sdk._internal.camera.CameraSourceParametersHolder;
|
||
|
import com.kofax.mobile.sdk._internal.camera.IVideoResourceProvider;
|
||
|
import com.kofax.mobile.sdk._internal.dagger.Injector;
|
||
|
import com.kofax.mobile.sdk._internal.extraction.IExtractionServer;
|
||
|
import com.kofax.mobile.sdk._internal.impl.IBase64ImageDecoder;
|
||
|
import com.kofax.mobile.sdk._internal.impl.camera.VideoPlayerCameraSourceType;
|
||
|
import com.kofax.mobile.sdk._internal.impl.extraction.kta.IKtaSessionIdProviderFactory;
|
||
|
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaServiceCaller;
|
||
|
import com.kofax.mobile.sdk._internal.view.IOverlayView;
|
||
|
import com.kofax.mobile.sdk.capture.parameter.ExtractionParameters;
|
||
|
import com.kofax.mobile.sdk.capture.processing.IImageProcessor;
|
||
|
import o.C13001fNn;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class o {
|
||
|
private final Context V;
|
||
|
|
||
|
public SurfaceView a(com.kofax.mobile.sdk._internal.impl.camera.l lVar) {
|
||
|
return lVar;
|
||
|
}
|
||
|
|
||
|
public IDocumentDetector a(DocumentDetector documentDetector) {
|
||
|
return documentDetector;
|
||
|
}
|
||
|
|
||
|
public IImageToByteArray a(com.kofax.mobile.sdk._internal.impl.w wVar) {
|
||
|
return wVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.b a(com.kofax.mobile.sdk._internal.impl.b bVar) {
|
||
|
return bVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.l a(com.kofax.mobile.sdk._internal.impl.camera.s sVar) {
|
||
|
return sVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.m a(com.kofax.mobile.sdk._internal.impl.camera.u uVar) {
|
||
|
return uVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.n a(a aVar) {
|
||
|
return aVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.r a(com.kofax.mobile.sdk._internal.impl.camera.w wVar) {
|
||
|
return wVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.v a(com.kofax.mobile.sdk._internal.impl.camera.as asVar) {
|
||
|
return asVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.capture.e a(com.kofax.mobile.sdk.k.e eVar) {
|
||
|
return eVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.e a(com.kofax.mobile.sdk._internal.impl.q qVar) {
|
||
|
return qVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.f a(com.kofax.mobile.sdk._internal.impl.s sVar) {
|
||
|
return sVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.g a(com.kofax.mobile.sdk._internal.impl.u uVar) {
|
||
|
return uVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.h a(com.kofax.mobile.sdk._internal.impl.ac acVar) {
|
||
|
return acVar;
|
||
|
}
|
||
|
|
||
|
public IBase64ImageDecoder a(com.kofax.mobile.sdk._internal.impl.d dVar) {
|
||
|
return dVar;
|
||
|
}
|
||
|
|
||
|
public IKtaSessionIdProviderFactory a(com.kofax.mobile.sdk._internal.impl.extraction.kta.j jVar) {
|
||
|
return jVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.impl.extraction.kta.a a(KtaServiceCaller ktaServiceCaller) {
|
||
|
return ktaServiceCaller;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.impl.extraction.rtti.a a(com.kofax.mobile.sdk._internal.impl.extraction.rtti.g gVar) {
|
||
|
return gVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.a a(com.kofax.mobile.sdk._internal.impl.view.a aVar) {
|
||
|
return aVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.d a(com.kofax.mobile.sdk._internal.impl.view.i iVar) {
|
||
|
return iVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.h a(com.kofax.mobile.sdk._internal.impl.view.t tVar) {
|
||
|
return tVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.j a(com.kofax.mobile.sdk._internal.impl.view.y yVar) {
|
||
|
return yVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.k a(com.kofax.mobile.sdk._internal.impl.view.ag agVar) {
|
||
|
return agVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk.ai.a a(com.kofax.mobile.sdk.ad.a aVar, com.kofax.mobile.sdk.ac.a aVar2) {
|
||
|
return aVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk.ai.b a(com.kofax.mobile.sdk.ab.a aVar) {
|
||
|
return aVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk.aj.b a(com.kofax.mobile.sdk.af.j jVar) {
|
||
|
return jVar;
|
||
|
}
|
||
|
|
||
|
public IImageProcessor a(com.kofax.mobile.sdk.ae.b bVar) {
|
||
|
return bVar;
|
||
|
}
|
||
|
|
||
|
public ILicenseOverlayView b(LicenseOverlayView licenseOverlayView) {
|
||
|
return licenseOverlayView;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.capture.g b(com.kofax.mobile.sdk.k.m mVar) {
|
||
|
return mVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.b b(com.kofax.mobile.sdk._internal.impl.view.c cVar) {
|
||
|
return cVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.f b(com.kofax.mobile.sdk._internal.impl.view.o oVar) {
|
||
|
return oVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.l b(com.kofax.mobile.sdk._internal.impl.view.ai aiVar) {
|
||
|
return aiVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk.aj.a b(com.kofax.mobile.sdk.af.a aVar) {
|
||
|
return aVar;
|
||
|
}
|
||
|
|
||
|
public C13001fNn b(com.kofax.mobile.sdk._internal.impl.j jVar) {
|
||
|
return jVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.c c(com.kofax.mobile.sdk._internal.impl.view.e eVar) {
|
||
|
return eVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.e c(com.kofax.mobile.sdk._internal.impl.view.l lVar) {
|
||
|
return lVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.g c(com.kofax.mobile.sdk._internal.impl.view.q qVar) {
|
||
|
return qVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.m c(com.kofax.mobile.sdk._internal.impl.view.ak akVar) {
|
||
|
return akVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.o c(com.kofax.mobile.sdk._internal.impl.view.ap apVar) {
|
||
|
return apVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.d d(com.kofax.mobile.sdk._internal.camera.e eVar) {
|
||
|
return eVar;
|
||
|
}
|
||
|
|
||
|
public IOverlayView e(com.kofax.mobile.sdk._internal.impl.view.aa aaVar) {
|
||
|
return aaVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.view.i e(com.kofax.mobile.sdk._internal.impl.y yVar) {
|
||
|
return yVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.capture.f j(com.kofax.mobile.sdk.k.h hVar) {
|
||
|
return hVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.capture.a m(com.kofax.mobile.sdk.k.b bVar) {
|
||
|
return bVar;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.f o(ImageCaptureView imageCaptureView) {
|
||
|
return imageCaptureView;
|
||
|
}
|
||
|
|
||
|
public o(Context context) {
|
||
|
this.V = context;
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.q a(com.kofax.mobile.sdk._internal.impl.camera.aa aaVar, com.kofax.mobile.sdk._internal.impl.camera.ak akVar) {
|
||
|
return (CameraSourceParametersHolder.isVideoPlayerCameraSourceProvider() && VideoPlayerCameraSourceType.VIDEO_PLAYER.equals(CameraSourceParametersHolder.getCameraSourceType())) ? akVar : aaVar;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static class a implements com.kofax.mobile.sdk._internal.camera.n {
|
||
|
@InterfaceC13391fZD
|
||
|
public a() {
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.camera.n
|
||
|
public Camera.Size e(Point point) {
|
||
|
try {
|
||
|
return (Camera.Size) Camera.Size.class.getConstructors()[0].newInstance(null, Integer.valueOf(point.x), Integer.valueOf(point.y));
|
||
|
} catch (Exception e) {
|
||
|
throw new KmcRuntimeException(ErrorInfo.KMC_GN_UNKNOWN_ERROR, e);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public com.kofax.mobile.sdk._internal.camera.e a(com.kofax.mobile.sdk._internal.impl.camera.j jVar, com.kofax.mobile.sdk._internal.impl.camera.ag agVar, IVideoResourceProvider iVideoResourceProvider) {
|
||
|
if (CameraSourceParametersHolder.isVideoPlayerCameraSourceProvider()) {
|
||
|
iVideoResourceProvider.setFileParameters(CameraSourceParametersHolder.getFilename(), CameraSourceParametersHolder.getStorageType());
|
||
|
agVar.a(CameraSourceParametersHolder.getCameraSourceType());
|
||
|
return agVar.get();
|
||
|
}
|
||
|
return jVar.get();
|
||
|
}
|
||
|
|
||
|
public IExtractionServer v(Context context) {
|
||
|
int i = AnonymousClass1.Yh[Injector.getInjector(context).getExtractionParameters().getExtractionType().ordinal()];
|
||
|
if (i == 2) {
|
||
|
throw new UnsupportedOperationException("KTA server not implemented");
|
||
|
}
|
||
|
if (i != 3) {
|
||
|
return Injector.getInjector(context).getRttiExtractor();
|
||
|
}
|
||
|
return Injector.getInjector(context).getOnDeviceExtractionServer();
|
||
|
}
|
||
|
|
||
|
/* renamed from: com.kofax.mobile.sdk.ah.o$1, reason: invalid class name */
|
||
|
/* loaded from: classes3.dex */
|
||
|
static /* synthetic */ class AnonymousClass1 {
|
||
|
static final int[] Yh;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[ExtractionParameters.ExtractionType.values().length];
|
||
|
Yh = iArr;
|
||
|
try {
|
||
|
iArr[ExtractionParameters.ExtractionType.RTTI.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
Yh[ExtractionParameters.ExtractionType.KTA.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
Yh[ExtractionParameters.ExtractionType.ON_DEVICE.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public Context sz() {
|
||
|
return this.V;
|
||
|
}
|
||
|
}
|