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

58 lines
1.7 KiB
Java

package com.kofax.kmc.ken.engines.gpu;
import com.kofax.kmc.ken.engines.data.DocumentDetectionSettings;
import o.InterfaceC13391fZD;
/* loaded from: classes3.dex */
public class GPUStrategyForcedEdgeDetection extends GPUStrategyEdgeDetection {
private f hd;
/* JADX INFO: Access modifiers changed from: package-private */
@InterfaceC13391fZD
public GPUStrategyForcedEdgeDetection(IGPUImageHolder iGPUImageHolder) {
super(iGPUImageHolder);
this.hd = null;
}
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
public void setRotation(Rotation rotation) {
super.setRotation(rotation);
f fVar = this.hd;
if (fVar != null) {
fVar.setRotation(rotation);
}
}
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
public void setScaleType(ScaleType scaleType) {
super.setScaleType(scaleType);
f fVar = this.hd;
if (fVar != null) {
fVar.setScaleType(scaleType);
}
}
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategyEdgeDetection
public float[] handleData(byte[] bArr, int i, int i2, DocumentDetectionSettings documentDetectionSettings) {
if (this.hd == null) {
f fVar = new f(new c());
this.hd = fVar;
fVar.setRotation(getRotation());
this.hd.setScaleType(getScaleType());
}
this.hd.setSettings(documentDetectionSettings);
super.handleData(bArr, i, i2, this.hd);
return this.hd.getBounds();
}
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
public void destroy() {
f fVar = this.hd;
if (fVar != null) {
fVar.destroy();
this.hd = null;
}
super.destroy();
}
}