package defpackage;

import java.util.Arrays;

/* JADX INFO: renamed from: ᵢٴᵟᵗ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3281 {

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public static final C3281 f12573 = new C3281(1, 2, 3, null, -1, -1);

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final int f12574;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final int f12575;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final int f12576;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final int f12577;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public int f12578;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final byte[] f12579;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final int f12580;

    static {
        AbstractC3653.m8221(0, 1, 2, 3, 4);
        AbstractC0956.m3211(5);
    }

    public C3281(int i, int i2, int i3, byte[] bArr, int i4, int i5) {
        this.f12577 = i;
        this.f12574 = i2;
        this.f12575 = i3;
        this.f12579 = bArr;
        this.f12576 = i4;
        this.f12580 = i5;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static String m7513(int i) {
        return i != -1 ? i != 6 ? i != 1 ? i != 2 ? AbstractC2704.m6517(i, "Undefined color space ") : "BT601" : "BT709" : "BT2020" : "Unset color space";
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static String m7514(int i) {
        return i != -1 ? i != 10 ? i != 1 ? i != 2 ? i != 3 ? i != 6 ? i != 7 ? AbstractC2704.m6517(i, "Undefined color transfer ") : "HLG" : "ST2084 PQ" : "SDR SMPTE 170M" : "sRGB" : "Linear" : "Gamma 2.2" : "Unset color transfer";
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public static boolean m7515(C3281 c3281) {
        if (c3281 == null) {
            return true;
        }
        int i = c3281.f12577;
        if (i != -1 && i != 1 && i != 2) {
            return false;
        }
        int i2 = c3281.f12574;
        if (i2 != -1 && i2 != 2) {
            return false;
        }
        int i3 = c3281.f12575;
        if ((i3 != -1 && i3 != 3) || c3281.f12579 != null) {
            return false;
        }
        int i4 = c3281.f12580;
        if (i4 != -1 && i4 != 8) {
            return false;
        }
        int i5 = c3281.f12576;
        return i5 == -1 || i5 == 8;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static String m7516(int i) {
        return i != -1 ? i != 1 ? i != 2 ? AbstractC2704.m6517(i, "Undefined color range ") : "Limited range" : "Full range" : "Unset color range";
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public static int m7517(int i) {
        if (i == 1) {
            return 3;
        }
        if (i == 4) {
            return 10;
        }
        if (i == 13) {
            return 2;
        }
        if (i == 16) {
            return 6;
        }
        if (i != 18) {
            return (i == 6 || i == 7) ? 3 : -1;
        }
        return 7;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static int m7518(int i) {
        if (i == 1) {
            return 1;
        }
        if (i != 9) {
            return (i == 4 || i == 5 || i == 6 || i == 7) ? 2 : -1;
        }
        return 6;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && C3281.class == obj.getClass()) {
            C3281 c3281 = (C3281) obj;
            if (this.f12577 == c3281.f12577 && this.f12574 == c3281.f12574 && this.f12575 == c3281.f12575 && Arrays.equals(this.f12579, c3281.f12579) && this.f12576 == c3281.f12576 && this.f12580 == c3281.f12580) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        if (this.f12578 == 0) {
            this.f12578 = ((((Arrays.hashCode(this.f12579) + ((((((527 + this.f12577) * 31) + this.f12574) * 31) + this.f12575) * 31)) * 31) + this.f12576) * 31) + this.f12580;
        }
        return this.f12578;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("ColorInfo(");
        sb.append(m7513(this.f12577));
        sb.append(", ");
        sb.append(m7516(this.f12574));
        sb.append(", ");
        sb.append(m7514(this.f12575));
        sb.append(", ");
        sb.append(this.f12579 != null);
        sb.append(", ");
        String str2 = "NA";
        int i = this.f12576;
        if (i != -1) {
            str = i + "bit Luma";
        } else {
            str = "NA";
        }
        sb.append(str);
        sb.append(", ");
        int i2 = this.f12580;
        if (i2 != -1) {
            str2 = i2 + "bit Chroma";
        }
        return AbstractC3653.m8231(sb, str2, ")");
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final boolean m7519() {
        return (this.f12577 == -1 || this.f12574 == -1 || this.f12575 == -1) ? false : true;
    }
}
