502 lines
16 KiB
Java
502 lines
16 KiB
Java
|
package com.google.android.gms.internal.vision;
|
||
|
|
||
|
import com.google.android.gms.internal.vision.zzfy;
|
||
|
import java.io.IOException;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class zzfg implements zzjj {
|
||
|
private final zzfe zzsd;
|
||
|
|
||
|
public static zzfg zza(zzfe zzfeVar) {
|
||
|
if (zzfeVar.zzss != null) {
|
||
|
return zzfeVar.zzss;
|
||
|
}
|
||
|
return new zzfg(zzfeVar);
|
||
|
}
|
||
|
|
||
|
private zzfg(zzfe zzfeVar) {
|
||
|
zzfe zzfeVar2 = (zzfe) zzga.zza(zzfeVar, "output");
|
||
|
this.zzsd = zzfeVar2;
|
||
|
zzfeVar2.zzss = this;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final int zzed() {
|
||
|
return zzfy.zzg.zzxi;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzo(int i, int i2) throws IOException {
|
||
|
this.zzsd.zzh(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzi(int i, long j) throws IOException {
|
||
|
this.zzsd.zza(i, j);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzj(int i, long j) throws IOException {
|
||
|
this.zzsd.zzc(i, j);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, float f) throws IOException {
|
||
|
this.zzsd.zza(i, f);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, double d) throws IOException {
|
||
|
this.zzsd.zza(i, d);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzp(int i, int i2) throws IOException {
|
||
|
this.zzsd.zze(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, long j) throws IOException {
|
||
|
this.zzsd.zza(i, j);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zze(int i, int i2) throws IOException {
|
||
|
this.zzsd.zze(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzc(int i, long j) throws IOException {
|
||
|
this.zzsd.zzc(i, j);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzh(int i, int i2) throws IOException {
|
||
|
this.zzsd.zzh(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, boolean z) throws IOException {
|
||
|
this.zzsd.zzb(i, z);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, String str) throws IOException {
|
||
|
this.zzsd.zza(i, str);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, zzeo zzeoVar) throws IOException {
|
||
|
this.zzsd.zza(i, zzeoVar);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzf(int i, int i2) throws IOException {
|
||
|
this.zzsd.zzf(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzg(int i, int i2) throws IOException {
|
||
|
this.zzsd.zzg(i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, long j) throws IOException {
|
||
|
this.zzsd.zzb(i, j);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, Object obj, zzhw zzhwVar) throws IOException {
|
||
|
this.zzsd.zza(i, (zzhf) obj, zzhwVar);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, Object obj, zzhw zzhwVar) throws IOException {
|
||
|
zzfe zzfeVar = this.zzsd;
|
||
|
zzfeVar.zzd(i, 3);
|
||
|
zzhwVar.zza((zzhf) obj, zzfeVar.zzss);
|
||
|
zzfeVar.zzd(i, 4);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzbe(int i) throws IOException {
|
||
|
this.zzsd.zzd(i, 3);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzbf(int i) throws IOException {
|
||
|
this.zzsd.zzd(i, 4);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, Object obj) throws IOException {
|
||
|
if (obj instanceof zzeo) {
|
||
|
this.zzsd.zzb(i, (zzeo) obj);
|
||
|
} else {
|
||
|
this.zzsd.zzb(i, (zzhf) obj);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzaw(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzar(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zze(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzaz(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzau(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzh(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzc(int i, List<Long> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzh(list.get(i4).longValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zze(list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(i, list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzd(int i, List<Long> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzi(list.get(i4).longValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zze(list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(i, list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zze(int i, List<Long> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzk(list.get(i4).longValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzg(list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzc(i, list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzf(int i, List<Float> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzg(list.get(i4).floatValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzf(list.get(i2).floatValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(i, list.get(i2).floatValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzg(int i, List<Double> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzb(list.get(i4).doubleValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(list.get(i2).doubleValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(i, list.get(i2).doubleValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzh(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzbb(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzar(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zze(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzi(int i, List<Boolean> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzi(list.get(i4).booleanValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzh(list.get(i2).booleanValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzb(i, list.get(i2).booleanValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, List<String> list) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (list instanceof zzgo) {
|
||
|
zzgo zzgoVar = (zzgo) list;
|
||
|
while (i2 < list.size()) {
|
||
|
Object raw = zzgoVar.getRaw(i2);
|
||
|
if (raw instanceof String) {
|
||
|
this.zzsd.zza(i, (String) raw);
|
||
|
} else {
|
||
|
this.zzsd.zza(i, (zzeo) raw);
|
||
|
}
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zza(i, list.get(i2));
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, List<zzeo> list) throws IOException {
|
||
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
||
|
this.zzsd.zza(i, list.get(i2));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzj(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzax(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzas(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzf(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzk(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzba(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzau(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzh(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzl(int i, List<Long> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzl(list.get(i4).longValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzg(list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzc(i, list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzm(int i, List<Integer> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzay(list.get(i4).intValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzat(list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzg(i, list.get(i2).intValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzn(int i, List<Long> list, boolean z) throws IOException {
|
||
|
int i2 = 0;
|
||
|
if (z) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
int i3 = 0;
|
||
|
for (int i4 = 0; i4 < list.size(); i4++) {
|
||
|
i3 += zzfe.zzj(list.get(i4).longValue());
|
||
|
}
|
||
|
this.zzsd.zzas(i3);
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzf(list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
while (i2 < list.size()) {
|
||
|
this.zzsd.zzb(i, list.get(i2).longValue());
|
||
|
i2++;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zza(int i, List<?> list, zzhw zzhwVar) throws IOException {
|
||
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
||
|
zza(i, list.get(i2), zzhwVar);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final void zzb(int i, List<?> list, zzhw zzhwVar) throws IOException {
|
||
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
||
|
zzb(i, list.get(i2), zzhwVar);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.vision.zzjj
|
||
|
public final <K, V> void zza(int i, zzgy<K, V> zzgyVar, Map<K, V> map) throws IOException {
|
||
|
for (Map.Entry<K, V> entry : map.entrySet()) {
|
||
|
this.zzsd.zzd(i, 2);
|
||
|
this.zzsd.zzas(zzgx.zza(zzgyVar, entry.getKey(), entry.getValue()));
|
||
|
zzgx.zza(this.zzsd, zzgyVar, entry.getKey(), entry.getValue());
|
||
|
}
|
||
|
}
|
||
|
}
|