what-the-bank/sources/com/kofax/mobile/sdk/ae/d.java

26 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.ae;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.kmc.ken.engines.processing.DocumentDimensions;
import com.kofax.kmc.ken.engines.processing.ImageProcessorConfiguration;
import com.kofax.kmc.kut.utilities.error.ErrorInfo;
import com.kofax.kmc.kut.utilities.error.KmcRuntimeException;
/* loaded from: classes3.dex */
public class d {
public static void b(ImageProcessorConfiguration imageProcessorConfiguration) {
if (imageProcessorConfiguration == null) {
throw new KmcRuntimeException(ErrorInfo.KMC_IP_NO_CONFIGURATION);
}
if (imageProcessorConfiguration.documentDimensions != null) {
DocumentDimensions documentDimensions = imageProcessorConfiguration.documentDimensions;
if ((documentDimensions.getShortEdge() != null && documentDimensions.getShortEdge().floatValue() < BitmapDescriptorFactory.HUE_RED) || (documentDimensions.getLongEdge() != null && documentDimensions.getLongEdge().floatValue() < BitmapDescriptorFactory.HUE_RED)) {
throw new KmcRuntimeException(ErrorInfo.KMC_ED_INVALID_DOCUMENT_DIMENSIONS);
}
}
if (imageProcessorConfiguration.outputDPI != null && imageProcessorConfiguration.outputDPI.intValue() < 0) {
throw new KmcRuntimeException(ErrorInfo.KMC_ED_INVALID_DPI);
}
}
}