package defpackage;

import java.util.Arrays;

/* renamed from: ˇˈʖ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0938 {

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static final C0938 f4236 = new C0938(1, 2, 3, null, -1, -1);

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f4237;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public int f4238;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final int f4239;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final int f4240;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int f4241;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int f4242;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final byte[] f4243;

    static {
        AbstractC1327.m4094(0, 1, 2, 3, 4);
        AbstractC3558.m8111(5);
    }

    public C0938(int i, int i2, int i3, byte[] bArr, int i4, int i5) {
        this.f4241 = i;
        this.f4242 = i2;
        this.f4240 = i3;
        this.f4243 = bArr;
        this.f4237 = i4;
        this.f4239 = i5;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static boolean m3187(C0938 c0938) {
        if (c0938 == null) {
            return true;
        }
        int i = c0938.f4241;
        if (i != -1 && i != 1 && i != 2) {
            return false;
        }
        int i2 = c0938.f4242;
        if (i2 != -1 && i2 != 2) {
            return false;
        }
        int i3 = c0938.f4240;
        if ((i3 != -1 && i3 != 3) || c0938.f4243 != null) {
            return false;
        }
        int i4 = c0938.f4239;
        if (i4 != -1 && i4 != 8) {
            return false;
        }
        int i5 = c0938.f4237;
        return i5 == -1 || i5 == 8;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public static int m3188(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;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static int m3189(int i) {
        if (i == 1) {
            return 1;
        }
        if (i != 9) {
            return (i == 4 || i == 5 || i == 6 || i == 7) ? 2 : -1;
        }
        return 6;
    }

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

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static String m3191(int i) {
        return i != -1 ? i != 1 ? i != 2 ? AbstractC2990.m7313(i, "Undefined color range ") : "Limited range" : "Full range" : "Unset color range";
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static String m3192(int i) {
        return i != -1 ? i != 6 ? i != 1 ? i != 2 ? AbstractC2990.m7313(i, "Undefined color space ") : "BT601" : "BT709" : "BT2020" : "Unset color space";
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && C0938.class == obj.getClass()) {
            C0938 c0938 = (C0938) obj;
            if (this.f4241 == c0938.f4241 && this.f4242 == c0938.f4242 && this.f4240 == c0938.f4240 && Arrays.equals(this.f4243, c0938.f4243) && this.f4237 == c0938.f4237 && this.f4239 == c0938.f4239) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        if (this.f4238 == 0) {
            this.f4238 = ((((Arrays.hashCode(this.f4243) + ((((((527 + this.f4241) * 31) + this.f4242) * 31) + this.f4240) * 31)) * 31) + this.f4237) * 31) + this.f4239;
        }
        return this.f4238;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("ColorInfo(");
        sb.append(m3192(this.f4241));
        sb.append(", ");
        sb.append(m3191(this.f4242));
        sb.append(", ");
        sb.append(m3190(this.f4240));
        sb.append(", ");
        sb.append(this.f4243 != null);
        sb.append(", ");
        String str2 = "NA";
        int i = this.f4237;
        if (i != -1) {
            str = i + "bit Luma";
        } else {
            str = "NA";
        }
        sb.append(str);
        sb.append(", ");
        int i2 = this.f4239;
        if (i2 != -1) {
            str2 = i2 + "bit Chroma";
        }
        return AbstractC1327.m4107(sb, str2, ")");
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final boolean m3193() {
        return (this.f4241 == -1 || this.f4242 == -1 || this.f4240 == -1) ? false : true;
    }
}
