package com.kofax.mobile.sdk.af; import com.google.common.primitives.UnsignedBytes; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class j implements com.kofax.mobile.sdk.aj.b { @InterfaceC13391fZD public j() { } @Override // com.kofax.mobile.sdk.aj.b public int d(byte[] bArr, int i, int i2) { int i3 = i * i2; long j = 0; for (int i4 = 0; i4 < i3; i4++) { j += bArr[i4] & UnsignedBytes.MAX_VALUE; } return (int) (j / i3); } }