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

50 lines
1.7 KiB
Java

package com.google.android.gms.internal.vision;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.vision.Frame;
/* loaded from: classes2.dex */
public final class zzn extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzn> CREATOR = new zzo();
public int height;
public int id;
public int rotation;
public int width;
public long zzat;
public zzn() {
}
public zzn(int i, int i2, int i3, long j, int i4) {
this.width = i;
this.height = i2;
this.id = i3;
this.zzat = j;
this.rotation = i4;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 2, this.width);
SafeParcelWriter.writeInt(parcel, 3, this.height);
SafeParcelWriter.writeInt(parcel, 4, this.id);
SafeParcelWriter.writeLong(parcel, 5, this.zzat);
SafeParcelWriter.writeInt(parcel, 6, this.rotation);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public static zzn zzc(Frame frame) {
zzn zznVar = new zzn();
zznVar.width = frame.getMetadata().getWidth();
zznVar.height = frame.getMetadata().getHeight();
zznVar.rotation = frame.getMetadata().getRotation();
zznVar.id = frame.getMetadata().getId();
zznVar.zzat = frame.getMetadata().getTimestampMillis();
return zznVar;
}
}