package com.ss.android.ugc.aweme.utils;

import android.os.Parcel;
import android.os.Parcelable;
import android.view.View;
import com.bytedance.covode.number.Covode;

public final class ZoomAnimationUtils {
    static {
        Covode.recordClassIndex(122073);
    }

    public static class ZoomInfo implements Parcelable {
        public static final Parcelable.Creator<ZoomInfo> CREATOR = new Parcelable.Creator<ZoomInfo>() {
            static {
                Covode.recordClassIndex(122075);
            }

            public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
                return new ZoomInfo[i];
            }

            public final /* synthetic */ Object createFromParcel(Parcel parcel) {
                return new ZoomInfo(parcel);
            }
        };
        public int LIZ;
        public int LIZIZ;
        public int LIZJ;
        public int LIZLLL;

        public int describeContents() {
            return 0;
        }

        static {
            Covode.recordClassIndex(122074);
        }

        public ZoomInfo(Parcel parcel) {
            this.LIZ = parcel.readInt();
            this.LIZIZ = parcel.readInt();
            this.LIZJ = parcel.readInt();
            this.LIZLLL = parcel.readInt();
        }

        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeInt(this.LIZ);
            parcel.writeInt(this.LIZIZ);
            parcel.writeInt(this.LIZJ);
            parcel.writeInt(this.LIZLLL);
        }

        public ZoomInfo(int i, int i2, int i3, int i4) {
            this.LIZ = i;
            this.LIZIZ = i2;
            this.LIZJ = i3;
            this.LIZLLL = i4;
        }
    }

    public static ZoomInfo LIZ(View view) {
        int[] iArr = new int[2];
        view.getLocationOnScreen(iArr);
        return new ZoomInfo(iArr[0], iArr[1], view.getWidth(), view.getHeight());
    }
}
