package com.netsdk.lib.enumeration;


/** 
* @author 291189
* @description 絮鋓��倶��
* @date 2022/03/29 13:59:54
*/
public enum EM_VIDEO_ABNORMAL_DETECT_TYPE {
/**
���ョ�倶��
*/
EM_VIDEO_ABNORMAL_DETECT_UNKNOWN(0,"���ョ�倶��"),
/**
茹�蘂�筝√け
*/
EM_VIDEO_ABNORMAL_DETECT_LOSS(1,"茹�蘂�筝√け"),
/**
茹�蘂�����
*/
EM_VIDEO_ABNORMAL_DETECT_COVER(2,"茹�蘂�����"),
/**
�脂�√�紫�
*/
EM_VIDEO_ABNORMAL_DETECT_FROZEN(3,"�脂�√�紫�"),
/**
菴�篋�
*/
EM_VIDEO_ABNORMAL_DETECT_LIGHT(4,"菴�篋�"),
/**
菴���
*/
EM_VIDEO_ABNORMAL_DETECT_DARK(5,"菴���"),
/**
�堺�����
*/
EM_VIDEO_ABNORMAL_DETECT_SCENECHANGE(6,"�堺�����"),
/**
�∞差罍�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_STRIATION(7,"�∞差罍�羌�"),
/**
��0罍�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_NOISE(8,"��0罍�羌�"),
/**
��兊�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_UNBALANCE(9,"��兊�羌�"),
/**
茹�蘂�罔∞�罍�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_BLUR(10,"茹�蘂�罔∞�罍�羌�"),
/**
絲号�綺��絽御�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_CONTRAST(11,"絲号�綺��絽御�羌�"),
/**
茹�蘂�菴���
*/
EM_VIDEO_ABNORMAL_DETECT_MOTION(12,"茹�蘂�菴���"),
/**
茹�蘂�����
*/
EM_VIDEO_ABNORMAL_DETECT_FILCKERING(13,"茹�蘂�����"),
/**
茹�蘂�蘂���-13
*/
EM_VIDEO_ABNORMAL_DETECT_COLOR(14,"茹�蘂�蘂���-13"),
/**
�����羌�
*/
EM_VIDEO_ABNORMAL_DETECT_UNFOCUS(15,"�����羌�"),
/**
菴���罍�羌�
*/
EM_VIDEO_ABNORMAL_DETECT_OVEREXPOSURE(16,"菴���罍�羌�"),
/**
�堺���у�
*/
EM_VIDEO_ABNORMAL_DETECT_DRAMATICCHANGE(17,"�堺���у�"),
/**
藥��遵�上��
*/
EM_VIDEO_ABNORMAL_DETECT_BLACKWHITE(18,"藥��遵�上��"),
/**
���怨��0
*/
EM_VIDEO_ABNORMAL_DETECT_SNOWNOISE(19,"���怨��0");

private int value;

private String note;

public String getNote() {
        return note;
    }

public int getValue() {
        return value;
    }

EM_VIDEO_ABNORMAL_DETECT_TYPE(int givenValue, String note) {
        this.value = givenValue;
        this.note = note;
    }

public static String getNoteByValue(int givenValue) {
        for (EM_VIDEO_ABNORMAL_DETECT_TYPE enumType : EM_VIDEO_ABNORMAL_DETECT_TYPE.values()) {
            if (givenValue == enumType.getValue()) {
                return enumType.getNote();
            }
        }
        return null;
    }

public static int getValueByNote(String givenNote) {
        for (EM_VIDEO_ABNORMAL_DETECT_TYPE enumType : EM_VIDEO_ABNORMAL_DETECT_TYPE.values()) {
            if (givenNote.equals(enumType.getNote())) {
                return enumType.getValue();
            }
        }
        return -1;
    }

public static EM_VIDEO_ABNORMAL_DETECT_TYPE getEnum(int value) {
        for (EM_VIDEO_ABNORMAL_DETECT_TYPE e : EM_VIDEO_ABNORMAL_DETECT_TYPE.values()) {
            if (e.getValue() == value)
                return e;
        }
        return EM_VIDEO_ABNORMAL_DETECT_TYPE.EM_VIDEO_ABNORMAL_DETECT_UNKNOWN;
    }

}