package com.google.android.exoplayer2.metadata.flac; import android.os.Parcel; import android.os.Parcelable; import com.google.android.exoplayer2.metadata.Metadata; import com.google.android.exoplayer2.util.Util; import com.ironsource.mediationsdk.logger.IronSourceError; import java.util.Arrays; /* loaded from: classes2.dex */ public final class PictureFrame implements Metadata.Entry { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: com.google.android.exoplayer2.metadata.flac.PictureFrame.1 @Override // android.os.Parcelable.Creator public PictureFrame createFromParcel(Parcel parcel) { return new PictureFrame(parcel); } @Override // android.os.Parcelable.Creator public PictureFrame[] newArray(int i) { return new PictureFrame[i]; } }; public final int colors; public final int depth; public final String description; public final int height; public final String mimeType; public final byte[] pictureData; public final int pictureType; public final int width; @Override // android.os.Parcelable public int describeContents() { return 0; } public PictureFrame(Parcel parcel) { this.pictureType = parcel.readInt(); this.mimeType = (String) Util.castNonNull(parcel.readString()); this.description = (String) Util.castNonNull(parcel.readString()); this.width = parcel.readInt(); this.height = parcel.readInt(); this.depth = parcel.readInt(); this.colors = parcel.readInt(); this.pictureData = (byte[]) Util.castNonNull(parcel.createByteArray()); } public String toString() { String str = this.mimeType; String str2 = this.description; StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 32 + String.valueOf(str2).length()); sb.append("Picture: mimeType="); sb.append(str); sb.append(", description="); sb.append(str2); return sb.toString(); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || PictureFrame.class != obj.getClass()) { return false; } PictureFrame pictureFrame = (PictureFrame) obj; return this.pictureType == pictureFrame.pictureType && this.mimeType.equals(pictureFrame.mimeType) && this.description.equals(pictureFrame.description) && this.width == pictureFrame.width && this.height == pictureFrame.height && this.depth == pictureFrame.depth && this.colors == pictureFrame.colors && Arrays.equals(this.pictureData, pictureFrame.pictureData); } public int hashCode() { return ((((((((((((((IronSourceError.ERROR_NON_EXISTENT_INSTANCE + this.pictureType) * 31) + this.mimeType.hashCode()) * 31) + this.description.hashCode()) * 31) + this.width) * 31) + this.height) * 31) + this.depth) * 31) + this.colors) * 31) + Arrays.hashCode(this.pictureData); } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeInt(this.pictureType); parcel.writeString(this.mimeType); parcel.writeString(this.description); parcel.writeInt(this.width); parcel.writeInt(this.height); parcel.writeInt(this.depth); parcel.writeInt(this.colors); parcel.writeByteArray(this.pictureData); } }