mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
67 lines
2.3 KiB
Java
67 lines
2.3 KiB
Java
package androidx.media3.container;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.media3.common.Metadata;
|
|
import androidx.media3.common.util.Assertions;
|
|
import com.google.common.primitives.Floats;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class Mp4LocationData implements Metadata.Entry {
|
|
public static final Parcelable.Creator<Mp4LocationData> CREATOR = new Parcelable.Creator<Mp4LocationData>() { // from class: androidx.media3.container.Mp4LocationData.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public Mp4LocationData createFromParcel(Parcel parcel) {
|
|
return new Mp4LocationData(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public Mp4LocationData[] newArray(int i) {
|
|
return new Mp4LocationData[i];
|
|
}
|
|
};
|
|
public final float latitude;
|
|
public final float longitude;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public Mp4LocationData(float f, float f2) {
|
|
Assertions.checkArgument(f >= -90.0f && f <= 90.0f && f2 >= -180.0f && f2 <= 180.0f, "Invalid latitude or longitude");
|
|
this.latitude = f;
|
|
this.longitude = f2;
|
|
}
|
|
|
|
private Mp4LocationData(Parcel parcel) {
|
|
this.latitude = parcel.readFloat();
|
|
this.longitude = parcel.readFloat();
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || getClass() != obj.getClass()) {
|
|
return false;
|
|
}
|
|
Mp4LocationData mp4LocationData = (Mp4LocationData) obj;
|
|
return this.latitude == mp4LocationData.latitude && this.longitude == mp4LocationData.longitude;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return ((527 + Floats.hashCode(this.latitude)) * 31) + Floats.hashCode(this.longitude);
|
|
}
|
|
|
|
public String toString() {
|
|
return "xyz: latitude=" + this.latitude + ", longitude=" + this.longitude;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeFloat(this.latitude);
|
|
parcel.writeFloat(this.longitude);
|
|
}
|
|
}
|