57 lines
1.6 KiB
Java
57 lines
1.6 KiB
Java
|
package com.kofax.kmc.ken.engines.gpu;
|
||
|
|
||
|
import android.graphics.Rect;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class GPUStrategyFocusFactorDetection extends GPUStrategy {
|
||
|
private b hf;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@InterfaceC13391fZD
|
||
|
public GPUStrategyFocusFactorDetection(IGPUImageHolder iGPUImageHolder) {
|
||
|
super(iGPUImageHolder);
|
||
|
this.hf = null;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
|
||
|
public void setRotation(Rotation rotation) {
|
||
|
super.setRotation(rotation);
|
||
|
b bVar = this.hf;
|
||
|
if (bVar != null) {
|
||
|
bVar.setRotation(rotation);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
|
||
|
public void setScaleType(ScaleType scaleType) {
|
||
|
super.setScaleType(scaleType);
|
||
|
b bVar = this.hf;
|
||
|
if (bVar != null) {
|
||
|
bVar.setScaleType(scaleType);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int[] handleFocus(byte[] bArr, int i, int i2, Rect rect, boolean z, boolean z2) {
|
||
|
if (this.hf == null) {
|
||
|
b bVar = new b();
|
||
|
this.hf = bVar;
|
||
|
bVar.setRotation(getRotation());
|
||
|
this.hf.setScaleType(getScaleType());
|
||
|
}
|
||
|
this.hf.a(rect, z, z2);
|
||
|
super.handleData(bArr, i, i2, this.hf);
|
||
|
return this.hf.L();
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.ken.engines.gpu.GPUStrategy
|
||
|
public void destroy() {
|
||
|
b bVar = this.hf;
|
||
|
if (bVar != null) {
|
||
|
bVar.destroy();
|
||
|
this.hf = null;
|
||
|
}
|
||
|
super.destroy();
|
||
|
}
|
||
|
}
|