package com.seewo.sdk.interfaces;

/* JADX INFO: compiled from: ISDKSourceHelper.java */
/* JADX INFO: loaded from: classes.dex */
public enum p {
    HDMI1,
    HDMI2,
    HDMI3,
    HDMI4,
    DP,
    PC,
    DVD,
    ANDROID_SLOT,
    VGA1,
    VGA2,
    YPbPr,
    AV,
    ATV,
    DTV,
    ANDROID,
    RECORD,
    TYPE_C1,
    TYPE_C2,
    NONE;

    public int getIndex() {
        String strName = name();
        try {
            return Integer.parseInt(strName.substring(strName.length() - 1));
        } catch (NumberFormatException unused) {
            return 1;
        }
    }

    public boolean isDp() {
        return name().startsWith("DP");
    }

    public boolean isHDMI() {
        return name().startsWith("HDMI");
    }

    public boolean isTV() {
        return this == ATV || this == DTV;
    }

    public boolean isTypeC() {
        return name().startsWith("TYPE_C");
    }

    public boolean isVGA() {
        return name().startsWith("VGA");
    }
}
