what-the-bank/sources/com/kofax/kmc/ken/engines/gpu/c.java

202 lines
5.8 KiB
Java

package com.kofax.kmc.ken.engines.gpu;
import com.kofax.kmc.ken.engines.gpu.ImageProcessor;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class c extends com.kofax.kmc.ken.engines.gpu.e {
private final a[] gp = Q();
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public interface a {
ImageProcessor.Method R();
boolean S();
boolean T();
void c(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2);
boolean isEnabled();
}
@Override // com.kofax.kmc.ken.engines.gpu.ImageProcessor
public void processTexture(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2) {
this.gF = null;
for (a aVar : this.gp) {
if (aVar.isEnabled()) {
aVar.c(frameBufferTexture, frameBufferTexture2);
if (this.gF != null) {
return;
}
}
}
}
@Override // com.kofax.kmc.ken.engines.gpu.ImageProcessor
public boolean isRGBInputTextureRequired() {
for (a aVar : this.gp) {
if (aVar.isEnabled() && aVar.S()) {
return true;
}
}
return false;
}
@Override // com.kofax.kmc.ken.engines.gpu.ImageProcessor
public boolean isGrayScaleInputTextureRequired() {
for (a aVar : this.gp) {
if (aVar.isEnabled() && aVar.T()) {
return true;
}
}
return false;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class e implements a {
final c gq;
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean S() {
return true;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean T() {
return false;
}
private e(c cVar) {
this.gq = cVar;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public ImageProcessor.Method R() {
return ImageProcessor.Method.GPU_RgbSobel;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean isEnabled() {
return GPUSettings.getSettings().enableRgbSobel;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public void c(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2) {
this.gq.a(frameBufferTexture2);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.kofax.kmc.ken.engines.gpu.c$c, reason: collision with other inner class name */
/* loaded from: classes3.dex */
public class C0052c implements a {
final c gq;
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean S() {
return false;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean T() {
return true;
}
private C0052c(c cVar) {
this.gq = cVar;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public ImageProcessor.Method R() {
return ImageProcessor.Method.GPU_GlobalAdaptiveThreshold;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean isEnabled() {
return GPUSettings.getSettings().enableGlobalAdaptiveThreshold;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public void c(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2) {
this.gq.b(frameBufferTexture);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class d implements a {
final c gq;
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean S() {
return false;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean T() {
return true;
}
private d(c cVar) {
this.gq = cVar;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public ImageProcessor.Method R() {
return ImageProcessor.Method.GPU_LocalAdaptiveThreshold;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean isEnabled() {
return GPUSettings.getSettings().enableLocalAdaptiveThreshold;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public void c(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2) {
this.gq.c(frameBufferTexture);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class b implements a {
final c gq;
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean S() {
return false;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean T() {
return true;
}
private b(c cVar) {
this.gq = cVar;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public ImageProcessor.Method R() {
return ImageProcessor.Method.GPU_Barnsen;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public boolean isEnabled() {
return GPUSettings.getSettings().enableBarnsen;
}
@Override // com.kofax.kmc.ken.engines.gpu.c.a
public void c(FrameBufferTexture frameBufferTexture, FrameBufferTexture frameBufferTexture2) {
this.gq.d(frameBufferTexture);
}
}
private a[] Q() {
return new a[]{new e(), new d(), new C0052c(), new b()};
}
}