what-the-bank/sources/com/google/android/gms/internal/vision/zzl.java

51 lines
2.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.vision;
import com.google.android.gms.vision.clearcut.LogUtils;
import com.google.android.gms.vision.face.internal.client.FaceParcel;
/* loaded from: classes2.dex */
public final class zzl {
public static zzdu zza(zzn zznVar, FaceParcel[] faceParcelArr, String str, long j) {
zzdu zza = LogUtils.zza(j, faceParcelArr.length);
zza.zzqe.zzpi = new zzdq();
zza.zzqe.zzpi.zzpn = Long.valueOf(zznVar.height);
zza.zzqe.zzpi.zzpm = Long.valueOf(zznVar.width);
zza.zzqe.zzpi.zzpo = Long.valueOf(zznVar.id);
zza.zzqe.zzpi.zzpp = Long.valueOf(zznVar.zzat);
zzdm zzdmVar = zza.zzqe.zzpk[0];
zzdmVar.name = "face";
int length = faceParcelArr.length;
int i = 0;
int i2 = 0;
while (i < length) {
FaceParcel faceParcel = faceParcelArr[i];
zzdt zzdtVar = new zzdt();
zzdmVar.zzov[i2] = zzdtVar;
zzdtVar.zzpy = new zzdk();
zzdtVar.zzpy.zzoh = new zzds[4];
for (int i3 = 0; i3 < 4; i3++) {
zzdtVar.zzpy.zzoh[i3] = new zzds();
}
zzdtVar.zzpy.zzoh[0].zzpv = Integer.valueOf((int) (faceParcel.centerX - (faceParcel.width / 2.0f)));
zzdtVar.zzpy.zzoh[0].zzpw = Integer.valueOf((int) (faceParcel.centerY - (faceParcel.height / 2.0f)));
zzdtVar.zzpy.zzoh[1].zzpv = Integer.valueOf((int) (zzdtVar.zzpy.zzoh[0].zzpv.intValue() + faceParcel.width));
zzdtVar.zzpy.zzoh[1].zzpw = zzdtVar.zzpy.zzoh[0].zzpw;
zzdtVar.zzpy.zzoh[2].zzpv = Integer.valueOf((int) (zzdtVar.zzpy.zzoh[0].zzpv.intValue() + faceParcel.width));
zzdtVar.zzpy.zzoh[2].zzpw = Integer.valueOf((int) (zzdtVar.zzpy.zzoh[0].zzpw.intValue() + faceParcel.height));
zzdtVar.zzpy.zzoh[3].zzpv = zzdtVar.zzpy.zzoh[0].zzpv;
zzdtVar.zzpy.zzoh[3].zzpw = Integer.valueOf((int) (zzdtVar.zzpy.zzoh[0].zzpw.intValue() + faceParcel.height));
zzdtVar.zzpz = Integer.valueOf(faceParcel.id);
zzdtVar.zzqa = new zzdo();
zzdtVar.zzqa.zzpf = Float.valueOf(faceParcel.zzdb);
zzdtVar.zzqa.zzpg = Float.valueOf(faceParcel.zzdc);
zzdtVar.zzqa.zzph = Float.valueOf(faceParcel.zzdd);
zzdtVar.zzqa.zzpc = Float.valueOf(faceParcel.zzcg);
zzdtVar.zzqa.zzpd = Float.valueOf(faceParcel.zzch);
zzdtVar.zzqa.zzpe = Float.valueOf(faceParcel.zzci);
i++;
i2++;
}
return zza;
}
}