#define PQ_GRULE_NR_ENABLE 1
#define PQ_GRULE_OSD_BW_ENABLE 1
#define PQ_GRULE_MPEG_NR_ENABLE 1
#define PQ_GRULE_FILM_MODE_ENABLE 1
#define PQ_GRULE_DYNAMIC_CONTRAST_ENABLE 1
#define PQ_GRULE_ULTRAT_CLEAR_ENABLE 1
#define PQ_GRULE_PTP_ENABLE 1
#define PQ_GRULE_GAME_MODE_ENABLE 1
#define PQ_GRULE_HDR_ENABLE 1
#define PQ_GRULE_DS_PARAMETERS_ENABLE 1
#define PQ_GRULE_DYNAMIC_SCBW_ENABLE 1
#define PQ_GRULE_BWLE_ENABLE 1
#define PQ_GRULE_EDGE_ENHANCER_ENABLE 1
#define PQ_GRULE_DEFINE_AUTO_GEN 1
#define PQ_GRule_NR_OFF_MAIN 1
#define PQ_GRule_NR_LOW_MAIN 1
#define PQ_GRule_NR_MIDDLE_MAIN 1
#define PQ_GRule_NR_HIGH_MAIN 1
#define PQ_GRule_NR_LOW_3D_MAIN 1
#define PQ_GRule_NR_MIDDLE_3D_MAIN 1
#define PQ_GRule_NR_HIGH_3D_MAIN 1
#define PQ_GRule_NR_AUTO_LOW_L_MAIN 1
#define PQ_GRule_NR_AUTO_LOW_M_MAIN 1
#define PQ_GRule_NR_AUTO_LOW_H_MAIN 1
#define PQ_GRule_NR_AUTO_MIDDLE_L_MAIN 1
#define PQ_GRule_NR_AUTO_MIDDLE_M_MAIN 1
#define PQ_GRule_NR_AUTO_MIDDLE_H_MAIN 1
#define PQ_GRule_NR_AUTO_HIGH_L_MAIN 1
#define PQ_GRule_NR_AUTO_HIGH_M_MAIN 1
#define PQ_GRule_NR_AUTO_HIGH_H_MAIN 1
#define PQ_GRule_NR_LOW_PIP_MAIN 1
#define PQ_GRule_NR_MIDDLE_PIP_MAIN 1
#define PQ_GRule_NR_HIGH_PIP_MAIN 1
#define PQ_GRule_NR_LOW_4K2K_MAIN 1
#define PQ_GRule_NR_MIDDLE_4K2K_MAIN 1
#define PQ_GRule_NR_HIGH_4K2K_MAIN 1
#define PQ_GRule_OSD_BW_ON_1920_MAIN 1
#define PQ_GRule_OSD_BW_ON_1920_PIP_MAIN 1
#define PQ_GRule_OSD_BW_ON_1920_POP_MAIN 1
#define PQ_GRule_OSD_BW_ON_1366_MAIN 1
#define PQ_GRule_OSD_BW_ON_1366_PIP_MAIN 1
#define PQ_GRule_OSD_BW_ON_1366_POP_MAIN 1
#define PQ_GRule_OSD_BW_ON_4K2K_MAIN 1
#define PQ_GRule_OSD_BW_ON_4K2K_PIP_MAIN 1
#define PQ_GRule_OSD_BW_ON_4K2K_POP_MAIN 1
#define PQ_GRule_MPEG_NR_OFF_MAIN 1
#define PQ_GRule_MPEG_NR_LOW_MAIN 1
#define PQ_GRule_MPEG_NR_MIDDLE_MAIN 1
#define PQ_GRule_MPEG_NR_HIGH_MAIN 1
#define PQ_GRule_FILM_MODE_OFF_MAIN 1
#define PQ_GRule_FILM_MODE_ON_MAIN 1
#define PQ_GRule_DYNAMIC_CONTRAST_OFF_MAIN 1
#define PQ_GRule_DYNAMIC_CONTRAST_ON_MAIN 1
#define PQ_GRule_ULTRAT_CLEAR_OFF_MAIN 1
#define PQ_GRule_ULTRAT_CLEAR_ON_MAIN 1
#define PQ_GRule_ULTRAT_CLEAR_ON_4K2K_MAIN 1
#define PQ_GRule_PTP_ON_PTP_MAIN 1
#define PQ_GRule_GAME_MODE_ON_MAIN 1
#define PQ_GRule_HDR_ON_MAIN 1
#define PQ_GRule_HDR_REF_MAIN 1
#define PQ_GRule_HDR_SDR_1920_MAIN 1
#define PQ_GRule_HDR_SDR_1366_MAIN 1
#define PQ_GRule_HDR_SDR_4K_MAIN 1
#define PQ_GRule_HDR_HDR_OFF_1920_MAIN 1
#define PQ_GRule_HDR_HDR_OFF_1366_MAIN 1
#define PQ_GRule_HDR_HDR_OFF_4K_MAIN 1
#define PQ_GRule_HDR_DOLBY_ON_MAIN 1
#define PQ_GRule_HDR_DOLBY_USER_MAIN 1
#define PQ_GRule_DS_PARAMETERS_L_SD_MAIN 1
#define PQ_GRule_DS_PARAMETERS_SD_MAIN 1
#define PQ_GRule_DS_PARAMETERS_H_SD_MAIN 1
#define PQ_GRule_DS_PARAMETERS_FHD_MAIN 1
#define PQ_GRule_DS_PARAMETERS_H_FHD_MAIN 1
#define PQ_GRule_DS_PARAMETERS_4K1K_MAIN 1
#define PQ_GRule_DS_PARAMETERS_4K_MAIN 1
#define PQ_GRule_DYNAMIC_SCBW_OFF_MAIN 1
#define PQ_GRule_DYNAMIC_SCBW_LOW_MAIN 1
#define PQ_GRule_DYNAMIC_SCBW_MIDDLE_MAIN 1
#define PQ_GRule_DYNAMIC_SCBW_HIGH_MAIN 1
#define PQ_GRule_BWLE_OFF_MAIN 1
#define PQ_GRule_BWLE_LOW_MAIN 1
#define PQ_GRule_BWLE_MIDDLE_MAIN 1
#define PQ_GRule_BWLE_HIGH_MAIN 1
#define PQ_GRule_EDGE_ENHANCER_OFF_MAIN 1
#define PQ_GRule_EDGE_ENHANCER_LOW_MAIN 1
#define PQ_GRule_EDGE_ENHANCER_MIDDLE_MAIN 1
#define PQ_GRule_EDGE_ENHANCER_HIGH_MAIN 1
#if (PQ_GRULE_NR_ENABLE) || (PQ_GRULE_OSD_BW_ENABLE) || (PQ_GRULE_MPEG_NR_ENABLE) || (PQ_GRULE_FILM_MODE_ENABLE) || (PQ_GRULE_DYNAMIC_CONTRAST_ENABLE) || (PQ_GRULE_ULTRAT_CLEAR_ENABLE) || (PQ_GRULE_PTP_ENABLE) || (PQ_GRULE_GAME_MODE_ENABLE) || (PQ_GRULE_HDR_ENABLE) || (PQ_GRULE_DS_PARAMETERS_ENABLE) || (PQ_GRULE_DYNAMIC_SCBW_ENABLE) || (PQ_GRULE_BWLE_ENABLE) || (PQ_GRULE_EDGE_ENHANCER_ENABLE)
typedef enum
{
#if PQ_GRULE_NR_ENABLE
    PQ_GRule_NR_Main,
#endif

#if PQ_GRULE_OSD_BW_ENABLE
    PQ_GRule_OSD_BW_Main,
#endif

#if PQ_GRULE_MPEG_NR_ENABLE
    PQ_GRule_MPEG_NR_Main,
#endif

#if PQ_GRULE_FILM_MODE_ENABLE
    PQ_GRule_FILM_MODE_Main,
#endif

#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
    PQ_GRule_DYNAMIC_CONTRAST_Main,
#endif

#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
    PQ_GRule_ULTRAT_CLEAR_Main,
#endif

#if PQ_GRULE_PTP_ENABLE
    PQ_GRule_PTP_Main,
#endif

#if PQ_GRULE_GAME_MODE_ENABLE
    PQ_GRule_GAME_MODE_Main,
#endif

#if PQ_GRULE_HDR_ENABLE
    PQ_GRule_HDR_Main,
#endif

#if PQ_GRULE_DS_PARAMETERS_ENABLE
    PQ_GRule_DS_PARAMETERS_Main,
#endif

#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
    PQ_GRule_DYNAMIC_SCBW_Main,
#endif

#if PQ_GRULE_BWLE_ENABLE
    PQ_GRule_BWLE_Main,
#endif

#if PQ_GRULE_EDGE_ENHANCER_ENABLE
    PQ_GRule_EDGE_ENHANCER_Main,
#endif

}
MST_GRule_Index_Main;
#endif

#if PQ_GRULE_NR_ENABLE
typedef enum
{
    PQ_GRule_NR_Off_Main,
    PQ_GRule_NR_Low_Main,
    PQ_GRule_NR_Middle_Main,
    PQ_GRule_NR_High_Main,
    PQ_GRule_NR_Low_3D_Main,
    PQ_GRule_NR_Middle_3D_Main,
    PQ_GRule_NR_High_3D_Main,
    PQ_GRule_NR_Auto_Low_L_Main,
    PQ_GRule_NR_Auto_Low_M_Main,
    PQ_GRule_NR_Auto_Low_H_Main,
    PQ_GRule_NR_Auto_Middle_L_Main,
    PQ_GRule_NR_Auto_Middle_M_Main,
    PQ_GRule_NR_Auto_Middle_H_Main,
    PQ_GRule_NR_Auto_High_L_Main,
    PQ_GRule_NR_Auto_High_M_Main,
    PQ_GRule_NR_Auto_High_H_Main,
    PQ_GRule_NR_Low_PIP_Main,
    PQ_GRule_NR_Middle_PIP_Main,
    PQ_GRule_NR_High_PIP_Main,
    PQ_GRule_NR_Low_4K2K_Main,
    PQ_GRule_NR_Middle_4K2K_Main,
    PQ_GRule_NR_High_4K2K_Main,
}
MST_GRule_NR_Index_Main;
#endif

#if PQ_GRULE_OSD_BW_ENABLE
typedef enum
{
    PQ_GRule_OSD_BW_On_1920_Main,
    PQ_GRule_OSD_BW_On_1920_PIP_Main,
    PQ_GRule_OSD_BW_On_1920_POP_Main,
    PQ_GRule_OSD_BW_On_1366_Main,
    PQ_GRule_OSD_BW_On_1366_PIP_Main,
    PQ_GRule_OSD_BW_On_1366_POP_Main,
    PQ_GRule_OSD_BW_On_4K2K_Main,
    PQ_GRule_OSD_BW_On_4K2K_PIP_Main,
    PQ_GRule_OSD_BW_On_4K2K_POP_Main,
}
MST_GRule_OSD_BW_Index_Main;
#endif

#if PQ_GRULE_MPEG_NR_ENABLE
typedef enum
{
    PQ_GRule_MPEG_NR_Off_Main,
    PQ_GRule_MPEG_NR_Low_Main,
    PQ_GRule_MPEG_NR_Middle_Main,
    PQ_GRule_MPEG_NR_High_Main,
}
MST_GRule_MPEG_NR_Index_Main;
#endif

#if PQ_GRULE_FILM_MODE_ENABLE
typedef enum
{
    PQ_GRule_FILM_MODE_Off_Main,
    PQ_GRule_FILM_MODE_On_Main,
}
MST_GRule_FILM_MODE_Index_Main;
#endif

#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
typedef enum
{
    PQ_GRule_DYNAMIC_CONTRAST_Off_Main,
    PQ_GRule_DYNAMIC_CONTRAST_On_Main,
}
MST_GRule_DYNAMIC_CONTRAST_Index_Main;
#endif

#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
typedef enum
{
    PQ_GRule_ULTRAT_CLEAR_Off_Main,
    PQ_GRule_ULTRAT_CLEAR_On_Main,
    PQ_GRule_ULTRAT_CLEAR_On_4K2K_Main,
}
MST_GRule_ULTRAT_CLEAR_Index_Main;
#endif

#if PQ_GRULE_PTP_ENABLE
typedef enum
{
    PQ_GRule_PTP_On_PTP_Main,
}
MST_GRule_PTP_Index_Main;
#endif

#if PQ_GRULE_GAME_MODE_ENABLE
typedef enum
{
    PQ_GRule_GAME_MODE_On_Main,
}
MST_GRule_GAME_MODE_Index_Main;
#endif

#if PQ_GRULE_HDR_ENABLE
typedef enum
{
    PQ_GRule_HDR_On_Main,
    PQ_GRule_HDR_Ref_Main,
    PQ_GRule_HDR_SDR_1920_Main,
    PQ_GRule_HDR_SDR_1366_Main,
    PQ_GRule_HDR_SDR_4K_Main,
    PQ_GRule_HDR_HDR_OFF_1920_Main,
    PQ_GRule_HDR_HDR_OFF_1366_Main,
    PQ_GRule_HDR_HDR_OFF_4K_Main,
    PQ_GRule_HDR_Dolby_ON_Main,
    PQ_GRule_HDR_Dolby_User_Main,
}
MST_GRule_HDR_Index_Main;
#endif

#if PQ_GRULE_DS_PARAMETERS_ENABLE
typedef enum
{
    PQ_GRule_DS_PARAMETERS_L_SD_Main,
    PQ_GRule_DS_PARAMETERS_SD_Main,
    PQ_GRule_DS_PARAMETERS_H_SD_Main,
    PQ_GRule_DS_PARAMETERS_FHD_Main,
    PQ_GRule_DS_PARAMETERS_H_FHD_Main,
    PQ_GRule_DS_PARAMETERS_4K1K_Main,
    PQ_GRule_DS_PARAMETERS_4K_Main,
}
MST_GRule_DS_PARAMETERS_Index_Main;
#endif

#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
typedef enum
{
    PQ_GRule_DYNAMIC_SCBW_Off_Main,
    PQ_GRule_DYNAMIC_SCBW_Low_Main,
    PQ_GRule_DYNAMIC_SCBW_Middle_Main,
    PQ_GRule_DYNAMIC_SCBW_High_Main,
}
MST_GRule_DYNAMIC_SCBW_Index_Main;
#endif

#if PQ_GRULE_BWLE_ENABLE
typedef enum
{
    PQ_GRule_BWLE_Off_Main,
    PQ_GRule_BWLE_Low_Main,
    PQ_GRule_BWLE_Middle_Main,
    PQ_GRule_BWLE_High_Main,
}
MST_GRule_BWLE_Index_Main;
#endif

#if PQ_GRULE_EDGE_ENHANCER_ENABLE
typedef enum
{
    PQ_GRule_EDGE_ENHANCER_Off_Main,
    PQ_GRule_EDGE_ENHANCER_Low_Main,
    PQ_GRule_EDGE_ENHANCER_Middle_Main,
    PQ_GRule_EDGE_ENHANCER_High_Main,
}
MST_GRule_EDGE_ENHANCER_Index_Main;
#endif

#if PQ_GRULE_NR_ENABLE
typedef enum
{
    PQ_GRule_Lvl_NR_Off_Main,
    PQ_GRule_Lvl_NR_Low_Main,
    PQ_GRule_Lvl_NR_Middle_Main,
    PQ_GRule_Lvl_NR_High_Main,
    PQ_GRule_Lvl_NR_Low_3D_Main,
    PQ_GRule_Lvl_NR_Middle_3D_Main,
    PQ_GRule_Lvl_NR_High_3D_Main,
    PQ_GRule_Lvl_NR_Auto_Low_L_Main,
    PQ_GRule_Lvl_NR_Auto_Low_M_Main,
    PQ_GRule_Lvl_NR_Auto_Low_H_Main,
    PQ_GRule_Lvl_NR_Auto_Middle_L_Main,
    PQ_GRule_Lvl_NR_Auto_Middle_M_Main,
    PQ_GRule_Lvl_NR_Auto_Middle_H_Main,
    PQ_GRule_Lvl_NR_Auto_High_L_Main,
    PQ_GRule_Lvl_NR_Auto_High_M_Main,
    PQ_GRule_Lvl_NR_Auto_High_H_Main,
}
MST_GRule_NR_LvL_Index_Main;
#endif

#if PQ_GRULE_OSD_BW_ENABLE
typedef enum
{
    PQ_GRule_Lvl_OSD_BW_On_Main,
}
MST_GRule_OSD_BW_LvL_Index_Main;
#endif

#if PQ_GRULE_MPEG_NR_ENABLE
typedef enum
{
    PQ_GRule_Lvl_MPEG_NR_Off_Main,
    PQ_GRule_Lvl_MPEG_NR_Low_Main,
    PQ_GRule_Lvl_MPEG_NR_Middle_Main,
    PQ_GRule_Lvl_MPEG_NR_High_Main,
}
MST_GRule_MPEG_NR_LvL_Index_Main;
#endif

#if PQ_GRULE_FILM_MODE_ENABLE
typedef enum
{
    PQ_GRule_Lvl_FILM_MODE_Off_Main,
    PQ_GRule_Lvl_FILM_MODE_On_Main,
}
MST_GRule_FILM_MODE_LvL_Index_Main;
#endif

#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
typedef enum
{
    PQ_GRule_Lvl_DYNAMIC_CONTRAST_Off_Main,
    PQ_GRule_Lvl_DYNAMIC_CONTRAST_On_Main,
}
MST_GRule_DYNAMIC_CONTRAST_LvL_Index_Main;
#endif

#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
typedef enum
{
    PQ_GRule_Lvl_ULTRAT_CLEAR_Off_Main,
    PQ_GRule_Lvl_ULTRAT_CLEAR_On_Main,
}
MST_GRule_ULTRAT_CLEAR_LvL_Index_Main;
#endif

#if PQ_GRULE_PTP_ENABLE
typedef enum
{
    PQ_GRule_Lvl_PTP_On_Main,
}
MST_GRule_PTP_LvL_Index_Main;
#endif

#if PQ_GRULE_GAME_MODE_ENABLE
typedef enum
{
    PQ_GRule_Lvl_GAME_MODE_On_Main,
}
MST_GRule_GAME_MODE_LvL_Index_Main;
#endif

#if PQ_GRULE_HDR_ENABLE
typedef enum
{
    PQ_GRule_Lvl_HDR_Off_Main,
    PQ_GRule_Lvl_HDR_Open_Auto_Main,
    PQ_GRule_Lvl_HDR_Open_High_Main,
    PQ_GRule_Lvl_HDR_Open_Mid_Main,
    PQ_GRule_Lvl_HDR_Open_Low_Main,
    PQ_GRule_Lvl_HDR_Open_Ref_Main,
    PQ_GRule_Lvl_HDR_Dolby_Vivid_Main,
    PQ_GRule_Lvl_HDR_Dolby_User_Main,
    PQ_GRule_Lvl_HDR_Dolby_Brightness_Main,
    PQ_GRule_Lvl_HDR_Dolby_Dark_Main,
    PQ_GRule_Lvl_HDR_HLG_Auto_Main,
    PQ_GRule_Lvl_HDR_HLG_High_Main,
    PQ_GRule_Lvl_HDR_HLG_Mid_Main,
    PQ_GRule_Lvl_HDR_HLG_Low_Main,
    PQ_GRule_Lvl_HDR_SDR_Main,
}
MST_GRule_HDR_LvL_Index_Main;
#endif

#if PQ_GRULE_DS_PARAMETERS_ENABLE
typedef enum
{
    PQ_GRule_Lvl_DS_PARAMETERS_L_SD_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_SD_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_FHD_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_4K_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_H_SD_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_H_FHD_Main,
    PQ_GRule_Lvl_DS_PARAMETERS_4K1K_Main,
}
MST_GRule_DS_PARAMETERS_LvL_Index_Main;
#endif

#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
typedef enum
{
    PQ_GRule_Lvl_DYNAMIC_SCBW_Off_Main,
    PQ_GRule_Lvl_DYNAMIC_SCBW_Low_Main,
    PQ_GRule_Lvl_DYNAMIC_SCBW_Middle_Main,
    PQ_GRule_Lvl_DYNAMIC_SCBW_High_Main,
}
MST_GRule_DYNAMIC_SCBW_LvL_Index_Main;
#endif

#if PQ_GRULE_BWLE_ENABLE
typedef enum
{
    PQ_GRule_Lvl_BWLE_Off_Main,
    PQ_GRule_Lvl_BWLE_Low_Main,
    PQ_GRule_Lvl_BWLE_Middle_Main,
    PQ_GRule_Lvl_BWLE_High_Main,
}
MST_GRule_BWLE_LvL_Index_Main;
#endif

#if PQ_GRULE_EDGE_ENHANCER_ENABLE
typedef enum
{
    PQ_GRule_Lvl_EDGE_ENHANCER_Off_Main,
    PQ_GRule_Lvl_EDGE_ENHANCER_Low_Main,
    PQ_GRule_Lvl_EDGE_ENHANCER_Middle_Main,
    PQ_GRule_Lvl_EDGE_ENHANCER_High_Main,
}
MST_GRule_EDGE_ENHANCER_LvL_Index_Main;
#endif


#define PQ_GRULE_RULE_NUM_Main 13

#if PQ_GRULE_NR_ENABLE
#define PQ_GRULE_NR_IP_NUM_Main 8
#define PQ_GRULE_NR_NUM_Main 22
#define PQ_GRULE_NR_LVL_NUM_Main 16
#endif

#if PQ_GRULE_OSD_BW_ENABLE
#define PQ_GRULE_OSD_BW_IP_NUM_Main 3
#define PQ_GRULE_OSD_BW_NUM_Main 9
#define PQ_GRULE_OSD_BW_LVL_NUM_Main 1
#endif

#if PQ_GRULE_MPEG_NR_ENABLE
#define PQ_GRULE_MPEG_NR_IP_NUM_Main 11
#define PQ_GRULE_MPEG_NR_NUM_Main 4
#define PQ_GRULE_MPEG_NR_LVL_NUM_Main 4
#endif

#if PQ_GRULE_FILM_MODE_ENABLE
#define PQ_GRULE_FILM_MODE_IP_NUM_Main 7
#define PQ_GRULE_FILM_MODE_NUM_Main 2
#define PQ_GRULE_FILM_MODE_LVL_NUM_Main 2
#endif

#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
#define PQ_GRULE_DYNAMIC_CONTRAST_IP_NUM_Main 2
#define PQ_GRULE_DYNAMIC_CONTRAST_NUM_Main 2
#define PQ_GRULE_DYNAMIC_CONTRAST_LVL_NUM_Main 2
#endif

#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
#define PQ_GRULE_ULTRAT_CLEAR_IP_NUM_Main 2
#define PQ_GRULE_ULTRAT_CLEAR_NUM_Main 3
#define PQ_GRULE_ULTRAT_CLEAR_LVL_NUM_Main 2
#endif

#if PQ_GRULE_PTP_ENABLE
#define PQ_GRULE_PTP_IP_NUM_Main 2
#define PQ_GRULE_PTP_NUM_Main 1
#define PQ_GRULE_PTP_LVL_NUM_Main 1
#endif

#if PQ_GRULE_GAME_MODE_ENABLE
#define PQ_GRULE_GAME_MODE_IP_NUM_Main 8
#define PQ_GRULE_GAME_MODE_NUM_Main 1
#define PQ_GRULE_GAME_MODE_LVL_NUM_Main 1
#endif

#if PQ_GRULE_HDR_ENABLE
#define PQ_GRULE_HDR_IP_NUM_Main 6
#define PQ_GRULE_HDR_NUM_Main 10
#define PQ_GRULE_HDR_LVL_NUM_Main 15
#endif

#if PQ_GRULE_DS_PARAMETERS_ENABLE
#define PQ_GRULE_DS_PARAMETERS_IP_NUM_Main 9
#define PQ_GRULE_DS_PARAMETERS_NUM_Main 7
#define PQ_GRULE_DS_PARAMETERS_LVL_NUM_Main 7
#endif

#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
#define PQ_GRULE_DYNAMIC_SCBW_IP_NUM_Main 1
#define PQ_GRULE_DYNAMIC_SCBW_NUM_Main 4
#define PQ_GRULE_DYNAMIC_SCBW_LVL_NUM_Main 4
#endif

#if PQ_GRULE_BWLE_ENABLE
#define PQ_GRULE_BWLE_IP_NUM_Main 4
#define PQ_GRULE_BWLE_NUM_Main 4
#define PQ_GRULE_BWLE_LVL_NUM_Main 4
#endif

#if PQ_GRULE_EDGE_ENHANCER_ENABLE
#define PQ_GRULE_EDGE_ENHANCER_IP_NUM_Main 2
#define PQ_GRULE_EDGE_ENHANCER_NUM_Main 4
#define PQ_GRULE_EDGE_ENHANCER_LVL_NUM_Main 4
#endif

#if PQ_GRULE_NR_ENABLE
extern U8 MST_GRule_NR_IP_Index_Main[PQ_GRULE_NR_IP_NUM_Main];
extern U8 MST_GRule_NR_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_NR_NUM_Main][PQ_GRULE_NR_IP_NUM_Main];
#endif

#if PQ_GRULE_OSD_BW_ENABLE
extern U8 MST_GRule_OSD_BW_IP_Index_Main[PQ_GRULE_OSD_BW_IP_NUM_Main];
extern U8 MST_GRule_OSD_BW_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_OSD_BW_NUM_Main][PQ_GRULE_OSD_BW_IP_NUM_Main];
#endif

#if PQ_GRULE_MPEG_NR_ENABLE
extern U8 MST_GRule_MPEG_NR_IP_Index_Main[PQ_GRULE_MPEG_NR_IP_NUM_Main];
extern U8 MST_GRule_MPEG_NR_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_MPEG_NR_NUM_Main][PQ_GRULE_MPEG_NR_IP_NUM_Main];
#endif

#if PQ_GRULE_FILM_MODE_ENABLE
extern U8 MST_GRule_FILM_MODE_IP_Index_Main[PQ_GRULE_FILM_MODE_IP_NUM_Main];
extern U8 MST_GRule_FILM_MODE_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_FILM_MODE_NUM_Main][PQ_GRULE_FILM_MODE_IP_NUM_Main];
#endif

#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
extern U8 MST_GRule_DYNAMIC_CONTRAST_IP_Index_Main[PQ_GRULE_DYNAMIC_CONTRAST_IP_NUM_Main];
extern U8 MST_GRule_DYNAMIC_CONTRAST_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_DYNAMIC_CONTRAST_NUM_Main][PQ_GRULE_DYNAMIC_CONTRAST_IP_NUM_Main];
#endif

#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
extern U8 MST_GRule_ULTRAT_CLEAR_IP_Index_Main[PQ_GRULE_ULTRAT_CLEAR_IP_NUM_Main];
extern U8 MST_GRule_ULTRAT_CLEAR_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_ULTRAT_CLEAR_NUM_Main][PQ_GRULE_ULTRAT_CLEAR_IP_NUM_Main];
#endif

#if PQ_GRULE_PTP_ENABLE
extern U8 MST_GRule_PTP_IP_Index_Main[PQ_GRULE_PTP_IP_NUM_Main];
extern U8 MST_GRule_PTP_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_PTP_NUM_Main][PQ_GRULE_PTP_IP_NUM_Main];
#endif

#if PQ_GRULE_GAME_MODE_ENABLE
extern U8 MST_GRule_GAME_MODE_IP_Index_Main[PQ_GRULE_GAME_MODE_IP_NUM_Main];
extern U8 MST_GRule_GAME_MODE_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_GAME_MODE_NUM_Main][PQ_GRULE_GAME_MODE_IP_NUM_Main];
#endif

#if PQ_GRULE_HDR_ENABLE
extern U8 MST_GRule_HDR_IP_Index_Main[PQ_GRULE_HDR_IP_NUM_Main];
extern U8 MST_GRule_HDR_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_HDR_NUM_Main][PQ_GRULE_HDR_IP_NUM_Main];
#endif

#if PQ_GRULE_DS_PARAMETERS_ENABLE
extern U8 MST_GRule_DS_PARAMETERS_IP_Index_Main[PQ_GRULE_DS_PARAMETERS_IP_NUM_Main];
extern U8 MST_GRule_DS_PARAMETERS_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_DS_PARAMETERS_NUM_Main][PQ_GRULE_DS_PARAMETERS_IP_NUM_Main];
#endif

#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
extern U8 MST_GRule_DYNAMIC_SCBW_IP_Index_Main[PQ_GRULE_DYNAMIC_SCBW_IP_NUM_Main];
extern U8 MST_GRule_DYNAMIC_SCBW_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_DYNAMIC_SCBW_NUM_Main][PQ_GRULE_DYNAMIC_SCBW_IP_NUM_Main];
#endif

#if PQ_GRULE_BWLE_ENABLE
extern U8 MST_GRule_BWLE_IP_Index_Main[PQ_GRULE_BWLE_IP_NUM_Main];
extern U8 MST_GRule_BWLE_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_BWLE_NUM_Main][PQ_GRULE_BWLE_IP_NUM_Main];
#endif

#if PQ_GRULE_EDGE_ENHANCER_ENABLE
extern U8 MST_GRule_EDGE_ENHANCER_IP_Index_Main[PQ_GRULE_EDGE_ENHANCER_IP_NUM_Main];
extern U8 MST_GRule_EDGE_ENHANCER_Main[QM_INPUTTYPE_NUM_Main][PQ_GRULE_EDGE_ENHANCER_NUM_Main][PQ_GRULE_EDGE_ENHANCER_IP_NUM_Main];
#endif

#if PQ_GRULE_NR_ENABLE
extern U8 MST_GRule_1920_NR_Main[PQ_GRULE_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_OSD_BW_ENABLE
extern U8 MST_GRule_1920_OSD_BW_Main[PQ_GRULE_OSD_BW_LVL_NUM_Main];
#endif
#if PQ_GRULE_MPEG_NR_ENABLE
extern U8 MST_GRule_1920_MPEG_NR_Main[PQ_GRULE_MPEG_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_FILM_MODE_ENABLE
extern U8 MST_GRule_1920_FILM_MODE_Main[PQ_GRULE_FILM_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
extern U8 MST_GRule_1920_DYNAMIC_CONTRAST_Main[PQ_GRULE_DYNAMIC_CONTRAST_LVL_NUM_Main];
#endif
#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
extern U8 MST_GRule_1920_ULTRAT_CLEAR_Main[PQ_GRULE_ULTRAT_CLEAR_LVL_NUM_Main];
#endif
#if PQ_GRULE_PTP_ENABLE
extern U8 MST_GRule_1920_PTP_Main[PQ_GRULE_PTP_LVL_NUM_Main];
#endif
#if PQ_GRULE_GAME_MODE_ENABLE
extern U8 MST_GRule_1920_GAME_MODE_Main[PQ_GRULE_GAME_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_HDR_ENABLE
extern U8 MST_GRule_1920_HDR_Main[PQ_GRULE_HDR_LVL_NUM_Main];
#endif
#if PQ_GRULE_DS_PARAMETERS_ENABLE
extern U8 MST_GRule_1920_DS_PARAMETERS_Main[PQ_GRULE_DS_PARAMETERS_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
extern U8 MST_GRule_1920_DYNAMIC_SCBW_Main[PQ_GRULE_DYNAMIC_SCBW_LVL_NUM_Main];
#endif
#if PQ_GRULE_BWLE_ENABLE
extern U8 MST_GRule_1920_BWLE_Main[PQ_GRULE_BWLE_LVL_NUM_Main];
#endif
#if PQ_GRULE_EDGE_ENHANCER_ENABLE
extern U8 MST_GRule_1920_EDGE_ENHANCER_Main[PQ_GRULE_EDGE_ENHANCER_LVL_NUM_Main];
#endif

#if PQ_GRULE_NR_ENABLE
extern U8 MST_GRule_1366_NR_Main[PQ_GRULE_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_OSD_BW_ENABLE
extern U8 MST_GRule_1366_OSD_BW_Main[PQ_GRULE_OSD_BW_LVL_NUM_Main];
#endif
#if PQ_GRULE_MPEG_NR_ENABLE
extern U8 MST_GRule_1366_MPEG_NR_Main[PQ_GRULE_MPEG_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_FILM_MODE_ENABLE
extern U8 MST_GRule_1366_FILM_MODE_Main[PQ_GRULE_FILM_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
extern U8 MST_GRule_1366_DYNAMIC_CONTRAST_Main[PQ_GRULE_DYNAMIC_CONTRAST_LVL_NUM_Main];
#endif
#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
extern U8 MST_GRule_1366_ULTRAT_CLEAR_Main[PQ_GRULE_ULTRAT_CLEAR_LVL_NUM_Main];
#endif
#if PQ_GRULE_PTP_ENABLE
extern U8 MST_GRule_1366_PTP_Main[PQ_GRULE_PTP_LVL_NUM_Main];
#endif
#if PQ_GRULE_GAME_MODE_ENABLE
extern U8 MST_GRule_1366_GAME_MODE_Main[PQ_GRULE_GAME_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_HDR_ENABLE
extern U8 MST_GRule_1366_HDR_Main[PQ_GRULE_HDR_LVL_NUM_Main];
#endif
#if PQ_GRULE_DS_PARAMETERS_ENABLE
extern U8 MST_GRule_1366_DS_PARAMETERS_Main[PQ_GRULE_DS_PARAMETERS_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
extern U8 MST_GRule_1366_DYNAMIC_SCBW_Main[PQ_GRULE_DYNAMIC_SCBW_LVL_NUM_Main];
#endif
#if PQ_GRULE_BWLE_ENABLE
extern U8 MST_GRule_1366_BWLE_Main[PQ_GRULE_BWLE_LVL_NUM_Main];
#endif
#if PQ_GRULE_EDGE_ENHANCER_ENABLE
extern U8 MST_GRule_1366_EDGE_ENHANCER_Main[PQ_GRULE_EDGE_ENHANCER_LVL_NUM_Main];
#endif

#if PQ_GRULE_NR_ENABLE
extern U8 MST_GRule_4K2K_NR_Main[PQ_GRULE_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_OSD_BW_ENABLE
extern U8 MST_GRule_4K2K_OSD_BW_Main[PQ_GRULE_OSD_BW_LVL_NUM_Main];
#endif
#if PQ_GRULE_MPEG_NR_ENABLE
extern U8 MST_GRule_4K2K_MPEG_NR_Main[PQ_GRULE_MPEG_NR_LVL_NUM_Main];
#endif
#if PQ_GRULE_FILM_MODE_ENABLE
extern U8 MST_GRule_4K2K_FILM_MODE_Main[PQ_GRULE_FILM_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_CONTRAST_ENABLE
extern U8 MST_GRule_4K2K_DYNAMIC_CONTRAST_Main[PQ_GRULE_DYNAMIC_CONTRAST_LVL_NUM_Main];
#endif
#if PQ_GRULE_ULTRAT_CLEAR_ENABLE
extern U8 MST_GRule_4K2K_ULTRAT_CLEAR_Main[PQ_GRULE_ULTRAT_CLEAR_LVL_NUM_Main];
#endif
#if PQ_GRULE_PTP_ENABLE
extern U8 MST_GRule_4K2K_PTP_Main[PQ_GRULE_PTP_LVL_NUM_Main];
#endif
#if PQ_GRULE_GAME_MODE_ENABLE
extern U8 MST_GRule_4K2K_GAME_MODE_Main[PQ_GRULE_GAME_MODE_LVL_NUM_Main];
#endif
#if PQ_GRULE_HDR_ENABLE
extern U8 MST_GRule_4K2K_HDR_Main[PQ_GRULE_HDR_LVL_NUM_Main];
#endif
#if PQ_GRULE_DS_PARAMETERS_ENABLE
extern U8 MST_GRule_4K2K_DS_PARAMETERS_Main[PQ_GRULE_DS_PARAMETERS_LVL_NUM_Main];
#endif
#if PQ_GRULE_DYNAMIC_SCBW_ENABLE
extern U8 MST_GRule_4K2K_DYNAMIC_SCBW_Main[PQ_GRULE_DYNAMIC_SCBW_LVL_NUM_Main];
#endif
#if PQ_GRULE_BWLE_ENABLE
extern U8 MST_GRule_4K2K_BWLE_Main[PQ_GRULE_BWLE_LVL_NUM_Main];
#endif
#if PQ_GRULE_EDGE_ENHANCER_ENABLE
extern U8 MST_GRule_4K2K_EDGE_ENHANCER_Main[PQ_GRULE_EDGE_ENHANCER_LVL_NUM_Main];
#endif

