mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-01 10:13:24 +01:00
99 lines
4.7 KiB
Java
99 lines
4.7 KiB
Java
package com.facebook.imageformat;
|
|
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.JvmField;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u0000 \u00142\u00020\u0001:\u0002\u0013\u0014B\u0019\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\n\u001a\u00020\u0003H\u0016J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\f\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u001f\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\b¨\u0006\u0015"}, d2 = {"Lcom/facebook/imageformat/ImageFormat;", "", "name", "", "fileExtension", "<init>", "(Ljava/lang/String;Ljava/lang/String;)V", "getName", "()Ljava/lang/String;", "getFileExtension", "toString", "component1", "component2", "copy", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "hashCode", "", "FormatChecker", "Companion", "imagepipeline-base_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes6.dex */
|
|
public final /* data */ class ImageFormat {
|
|
|
|
@JvmField
|
|
@NotNull
|
|
public static final ImageFormat UNKNOWN = new ImageFormat("UNKNOWN", null);
|
|
|
|
@Nullable
|
|
private final String fileExtension;
|
|
|
|
@NotNull
|
|
private final String name;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0000\bf\u0018\u00002\u00020\u0001J\u0018\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\u0002\u001a\u00020\u0003H&R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005¨\u0006\n"}, d2 = {"Lcom/facebook/imageformat/ImageFormat$FormatChecker;", "", "headerSize", "", "getHeaderSize", "()I", "determineFormat", "Lcom/facebook/imageformat/ImageFormat;", "headerBytes", "", "imagepipeline-base_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
public interface FormatChecker {
|
|
@NotNull
|
|
ImageFormat determineFormat(@NotNull byte[] headerBytes, int headerSize);
|
|
|
|
int getHeaderSize();
|
|
}
|
|
|
|
public ImageFormat(@NotNull String str, @Nullable String str2) {
|
|
str.getClass();
|
|
this.name = str;
|
|
this.fileExtension = str2;
|
|
}
|
|
|
|
public static /* synthetic */ ImageFormat copy$default(ImageFormat imageFormat, String str, String str2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = imageFormat.name;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = imageFormat.fileExtension;
|
|
}
|
|
return imageFormat.copy(str, str2);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: component1, reason: from getter */
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: component2, reason: from getter */
|
|
public final String getFileExtension() {
|
|
return this.fileExtension;
|
|
}
|
|
|
|
@NotNull
|
|
public final ImageFormat copy(@NotNull String name, @Nullable String fileExtension) {
|
|
name.getClass();
|
|
return new ImageFormat(name, fileExtension);
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof ImageFormat)) {
|
|
return false;
|
|
}
|
|
ImageFormat imageFormat = (ImageFormat) other;
|
|
return Intrinsics.areEqual(this.name, imageFormat.name) && Intrinsics.areEqual(this.fileExtension, imageFormat.fileExtension);
|
|
}
|
|
|
|
@Nullable
|
|
public final String getFileExtension() {
|
|
return this.fileExtension;
|
|
}
|
|
|
|
@NotNull
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int hashCode = this.name.hashCode() * 31;
|
|
String str = this.fileExtension;
|
|
return hashCode + (str == null ? 0 : str.hashCode());
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return this.name;
|
|
}
|
|
}
|