////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// THIS IS AUTO-GENERATED CODE.  PLEASE DO NOT EDIT (File bug reports against tools).
///
/// Auto-generated by: Parameter Parser V5.5.1 (2411131018)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file  statsnnsaliency.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "statsnnsaliency.h"
#include "parametersetmanager.h"

STATSNNSALIENCY_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SaliencyROIParamsConfigType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "fovX") == 0)
    {
        ParameterUtils::DoubleToString((double)fovX, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "fovY") == 0)
    {
        ParameterUtils::DoubleToString((double)fovY, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "roiX") == 0)
    {
        ParameterUtils::DoubleToString((double)roiX, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "roiY") == 0)
    {
        ParameterUtils::DoubleToString((double)roiY, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stableEnergyTh") == 0)
    {
        ParameterUtils::DoubleToString((double)stableEnergyTh, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "prevROIPriorityFactor") == 0)
    {
        ParameterUtils::DoubleToString((double)prevROIPriorityFactor, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "centerROIPriorityFactor") == 0)
    {
        ParameterUtils::DoubleToString((double)centerROIPriorityFactor, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "highSaliencyTh") == 0)
    {
        ParameterUtils::DoubleToString((double)highSaliencyTh, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool SaliencyROIParamsConfigType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "fovX") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fovX = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "fovY") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            fovY = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "roiX") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            roiX = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "roiY") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            roiY = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stableEnergyTh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stableEnergyTh = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "prevROIPriorityFactor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            prevROIPriorityFactor = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "centerROIPriorityFactor") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            centerROIPriorityFactor = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "highSaliencyTh") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            highSaliencyTh = (INT32)dblValue; 
        }
    }

    return __result;
}

bool SaliencyROIParamsConfigType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // fovX
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("fovX", ParameterParserDataType::Float, (double)fovX));
    }
    else if (PARAMETER_STRCMP(__name, "fovX") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)fovX));
    }

    // fovY
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("fovY", ParameterParserDataType::Float, (double)fovY));
    }
    else if (PARAMETER_STRCMP(__name, "fovY") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)fovY));
    }

    // roiX
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("roiX", ParameterParserDataType::Float, (double)roiX));
    }
    else if (PARAMETER_STRCMP(__name, "roiX") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)roiX));
    }

    // roiY
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("roiY", ParameterParserDataType::Float, (double)roiY));
    }
    else if (PARAMETER_STRCMP(__name, "roiY") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)roiY));
    }

    // stableEnergyTh
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("stableEnergyTh", ParameterParserDataType::Float, (double)stableEnergyTh));
    }
    else if (PARAMETER_STRCMP(__name, "stableEnergyTh") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)stableEnergyTh));
    }

    // prevROIPriorityFactor
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("prevROIPriorityFactor", ParameterParserDataType::Float, (double)prevROIPriorityFactor));
    }
    else if (PARAMETER_STRCMP(__name, "prevROIPriorityFactor") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)prevROIPriorityFactor));
    }

    // centerROIPriorityFactor
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("centerROIPriorityFactor", ParameterParserDataType::Float, (double)centerROIPriorityFactor));
    }
    else if (PARAMETER_STRCMP(__name, "centerROIPriorityFactor") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)centerROIPriorityFactor));
    }

    // highSaliencyTh
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("highSaliencyTh", ParameterParserDataType::Int32, (double)highSaliencyTh, 0));
    }
    else if (PARAMETER_STRCMP(__name, "highSaliencyTh") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)highSaliencyTh, 0));
    }

    return __result;
}

bool SaliencyROIParamsTriggerConfigType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "AECTrigger") == 0)
    {
        __result = AECTrigger.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool SaliencyROIParamsTriggerConfigType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "AECTrigger") == 0)
    {
        __result = AECTrigger.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool SaliencyROIParamsTriggerConfigType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // AECTrigger
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("AECTrigger", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "AECTrigger") == 0)
    {
        __result = AECTrigger.GetInfo(&__path[__pos], __info);
    }

    // SaliencyROIConfig
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("SaliencyROIConfig", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool chromatixStatsNNSaliencyROIConfig::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "defaultConfig") == 0)
    {
        __result = defaultConfig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "enableTriggerBasedConfig") == 0)
    {
        ParameterUtils::DoubleToString((double)enableTriggerBasedConfig, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "triggerConfigSet") == 0)
    {
        if (__index < triggerConfigSetCount)
        {
            __result = triggerConfigSet[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyROIConfig::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "defaultConfig") == 0)
    {
        __result = defaultConfig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "enableTriggerBasedConfig") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enableTriggerBasedConfig = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "triggerConfigSet") == 0)
    {
        if (__index < triggerConfigSetCount)
        {
            __result = triggerConfigSet[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyROIConfig::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // defaultConfig
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("defaultConfig", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "defaultConfig") == 0)
    {
        __result = defaultConfig.GetInfo(&__path[__pos], __info);
    }

    // enableTriggerBasedConfig
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("enableTriggerBasedConfig", ParameterParserDataType::Int32, (double)enableTriggerBasedConfig, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enableTriggerBasedConfig") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enableTriggerBasedConfig, 0));
    }

    // triggerConfigSet
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("triggerConfigSet", ParameterParserDataType::Structure, true, false, triggerConfigSetCount));
    }
    else if (PARAMETER_STRCMP(__name, "triggerConfigSet") == 0)
    {
        if (__index < triggerConfigSetCount)
        {
            __result = triggerConfigSet[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, triggerConfigSetCount));
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "infProcessLevel") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)infProcessLevel, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "preProcessLevel") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)preProcessLevel, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "postProcessLevel") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)postProcessLevel, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "selectHW") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)selectHW, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "selectInfEngine") == 0)
    {
        ParameterUtils::DoubleToString((double)(UINT32)selectInfEngine, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "frameRateLevel") == 0)
    {
        ParameterUtils::DoubleToString((double)frameRateLevel, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "extensionParam") == 0)
    {
        if (__index < extensionParamCount)
        {
            __result = extensionParam[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "infProcessLevel") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            infProcessLevel = (statsnncommon::chromatixStatsNNInfProcessLevel)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "preProcessLevel") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            preProcessLevel = (statsnncommon::chromatixStatsNNPreProcessLevel)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "postProcessLevel") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            postProcessLevel = (statsnncommon::chromatixStatsNNPostProcessLevel)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "selectHW") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            selectHW = (statsnncommon::chromatixStatsNNHW)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "selectInfEngine") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            selectInfEngine = (statsnncommon::chromatixStatsNNInfEngine)(UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "frameRateLevel") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            frameRateLevel = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "extensionParam") == 0)
    {
        if (__index < extensionParamCount)
        {
            __result = extensionParam[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // module_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("module_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetInfo(&__path[__pos], __info);
    }

    // parameter_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("parameter_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetInfo(&__path[__pos], __info);
    }

    // enable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("enable", ParameterParserDataType::Int32, (double)enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)enable, 0));
    }

    // infProcessLevel
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("infProcessLevel", ParameterParserDataType::Enum, (double)(UINT32)infProcessLevel, 0));
    }
    else if (PARAMETER_STRCMP(__name, "infProcessLevel") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Enum, (double)(UINT32)infProcessLevel, 0));
    }

    // preProcessLevel
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("preProcessLevel", ParameterParserDataType::Enum, (double)(UINT32)preProcessLevel, 0));
    }
    else if (PARAMETER_STRCMP(__name, "preProcessLevel") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Enum, (double)(UINT32)preProcessLevel, 0));
    }

    // postProcessLevel
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("postProcessLevel", ParameterParserDataType::Enum, (double)(UINT32)postProcessLevel, 0));
    }
    else if (PARAMETER_STRCMP(__name, "postProcessLevel") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Enum, (double)(UINT32)postProcessLevel, 0));
    }

    // selectHW
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("selectHW", ParameterParserDataType::Enum, (double)(UINT32)selectHW, 0));
    }
    else if (PARAMETER_STRCMP(__name, "selectHW") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Enum, (double)(UINT32)selectHW, 0));
    }

    // selectInfEngine
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("selectInfEngine", ParameterParserDataType::Enum, (double)(UINT32)selectInfEngine, 0));
    }
    else if (PARAMETER_STRCMP(__name, "selectInfEngine") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Enum, (double)(UINT32)selectInfEngine, 0));
    }

    // frameRateLevel
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("frameRateLevel", ParameterParserDataType::Int32, (double)frameRateLevel, 0));
    }
    else if (PARAMETER_STRCMP(__name, "frameRateLevel") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)frameRateLevel, 0));
    }

    // SaliencyROIConfig
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("SaliencyROIConfig", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "SaliencyROIConfig") == 0)
    {
        __result = SaliencyROIConfig.GetInfo(&__path[__pos], __info);
    }

    // extensionParam
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("extensionParam", ParameterParserDataType::Structure, true, false, extensionParamCount));
    }
    else if (PARAMETER_STRCMP(__name, "extensionParam") == 0)
    {
        if (__index < extensionParamCount)
        {
            __result = extensionParam[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, extensionParamCount));
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::module_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)major_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)minor_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)incr_revision, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::module_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            major_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minor_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            incr_revision = (INT32)dblValue; 
        }
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::module_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // major_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("major_revision", ParameterParserDataType::Int32, (double)major_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)major_revision, 0));
    }

    // minor_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minor_revision", ParameterParserDataType::Int32, (double)minor_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)minor_revision, 0));
    }

    // incr_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("incr_revision", ParameterParserDataType::Int32, (double)incr_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)incr_revision, 0));
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::parameter_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        PARAMETER_STRCPY(__value, __size, revision);
        __result = true;
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::parameter_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const /*__value*/)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }

    return __result;
}

bool chromatixStatsNNSaliencyType::parameter_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("revision", ParameterParserDataType::String, revision));
    }
    else if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::String, revision));
    }

    return __result;
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatixStatsNNSaliencyTypeClass::chromatixStatsNNSaliencyTypeClass(
    const CHAR* const name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(infProcessLevel);
    PARAMETER_INITIALIZE(preProcessLevel);
    PARAMETER_INITIALIZE(postProcessLevel);
    PARAMETER_INITIALIZE(selectHW);
    PARAMETER_INITIALIZE(selectInfEngine);
    PARAMETER_INITIALIZE(frameRateLevel);
    PARAMETER_INITIALIZE(SaliencyROIConfig);
    PARAMETER_INITIALIZE(extensionParamCount);
    PARAMETER_INITIALIZE(extensionParam);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatixStatsNNSaliencyTypeClass::chromatixStatsNNSaliencyTypeClass(
    const CHAR* const name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(infProcessLevel);
    PARAMETER_INITIALIZE(preProcessLevel);
    PARAMETER_INITIALIZE(postProcessLevel);
    PARAMETER_INITIALIZE(selectHW);
    PARAMETER_INITIALIZE(selectInfEngine);
    PARAMETER_INITIALIZE(frameRateLevel);
    PARAMETER_INITIALIZE(SaliencyROIConfig);
    PARAMETER_INITIALIZE(extensionParam);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Destructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatixStatsNNSaliencyTypeClass::~chromatixStatsNNSaliencyTypeClass()
{
    if (Loaded)
    {
        UnloadModule();
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetName
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CHAR* chromatixStatsNNSaliencyTypeClass::GetName(
    const CHAR* const type)
{
    const CHAR* name = type;
    CHAR temp[ParameterFileSymbolTableEntry::TYPE_LEN + 1];
    if (PARAMETER_STRCMP(type, ModuleData::GetType(temp, "chromatixStatsNNSaliency")) == 0)
    {
        name = "chromatixStatsNNSaliency";
    }
    return name;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SaliencyROIParamsConfigType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SaliencyROIParamsConfigType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(fovX);
    PARAMETER_INITIALIZE(fovY);
    PARAMETER_INITIALIZE(roiX);
    PARAMETER_INITIALIZE(roiY);
    PARAMETER_INITIALIZE(stableEnergyTh);
    PARAMETER_INITIALIZE(prevROIPriorityFactor);
    PARAMETER_INITIALIZE(centerROIPriorityFactor);
    PARAMETER_INITIALIZE(highSaliencyTh);

    SYMBOL_TABLE_ENTRY_READ(entry, result, fovX, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, fovY, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, roiX, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, roiY, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, stableEnergyTh, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, prevROIPriorityFactor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, centerROIPriorityFactor, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, highSaliencyTh, alignment)

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SaliencyROIParamsTriggerConfigType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool SaliencyROIParamsTriggerConfigType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(AECTrigger);
    PARAMETER_INITIALIZE(SaliencyROIConfig);

    result = AECTrigger.Load(entry, alignment);
    if (result)
    {
        result = SaliencyROIConfig.Load(entry, alignment);
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixStatsNNSaliencyROIConfig
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatixStatsNNSaliencyROIConfig::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(defaultConfig);
    PARAMETER_INITIALIZE(enableTriggerBasedConfig);
    PARAMETER_INITIALIZE(triggerConfigSet);

    result = defaultConfig.Load(entry, alignment);
    SYMBOL_TABLE_ENTRY_READ(entry, result, enableTriggerBasedConfig, alignment)

    // Reading Array triggerConfigSet from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        triggerConfigSetCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, triggerConfigSetCount, alignment)
        constexpr const CHAR* const file {__FILE__};
        constexpr INT32 line {LINE_CONST};
        ParameterFileSymbolTableEntry  pointerEntryCls;
        ParameterFileSymbolTableEntry* const pointerEntry = &pointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(pointerEntryCls, entry, alignment);
        }

        if (result)
        {
            triggerConfigSetID = pointerEntry->ID;
            DupObjInfo* triggerConfigSetDupInfo = pointerEntry->GetDupObject(triggerConfigSetCount, file, line);
            if (triggerConfigSetDupInfo != nullptr && triggerConfigSetDupInfo->Object != nullptr)
            {
                triggerConfigSet = (SaliencyROIParamsTriggerConfigType*)triggerConfigSetDupInfo->Object;
                if (triggerConfigSet == nullptr)
                {
                    if (triggerConfigSetDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "triggerConfigSet duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            triggerConfigSetDupInfo->File, triggerConfigSetDupInfo->Line, triggerConfigSetDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "triggerConfigSet duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            triggerConfigSetDupInfo->Line, triggerConfigSetDupInfo->RefCount);
                    }
                }
            }

            if (triggerConfigSet == nullptr)
            {
                if (result && triggerConfigSetCount > 0)
                {
                    triggerConfigSet = PARAMETER_NEW SaliencyROIParamsTriggerConfigType[triggerConfigSetCount];
                    (void)pointerEntry->SetDupObject(triggerConfigSet, triggerConfigSetCount, file, line);
                }
                if (!result || triggerConfigSet == nullptr)
                {
                    if (triggerConfigSetCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate triggerConfigSet\n");
                    }
                    triggerConfigSetCount = 0;
                }
                for (UINT32 i = 0; result && i < triggerConfigSetCount; i++)
                {
                    result = triggerConfigSet[i].Load(pointerEntry, alignment);
                }
            }
        }
        if (triggerConfigSet == nullptr)
        {
            triggerConfigSetCount = 0;
        }
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatixStatsNNSaliencyType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatixStatsNNSaliencyType::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(infProcessLevel);
    PARAMETER_INITIALIZE(preProcessLevel);
    PARAMETER_INITIALIZE(postProcessLevel);
    PARAMETER_INITIALIZE(selectHW);
    PARAMETER_INITIALIZE(selectInfEngine);
    PARAMETER_INITIALIZE(frameRateLevel);
    PARAMETER_INITIALIZE(SaliencyROIConfig);
    PARAMETER_INITIALIZE(extensionParam);

    result = module_version.Load(entry, alignment);
    if (result)
    {
        result = parameter_version.Load(entry, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, enable, alignment)
    if (result)
    {
        result = statsnncommon::ReadEnum_chromatixStatsNNInfProcessLevel(entry, infProcessLevel, alignment);
    }
    if (result)
    {
        result = statsnncommon::ReadEnum_chromatixStatsNNPreProcessLevel(entry, preProcessLevel, alignment);
    }
    if (result)
    {
        result = statsnncommon::ReadEnum_chromatixStatsNNPostProcessLevel(entry, postProcessLevel, alignment);
    }
    if (result)
    {
        result = statsnncommon::ReadEnum_chromatixStatsNNHW(entry, selectHW, alignment);
    }
    if (result)
    {
        result = statsnncommon::ReadEnum_chromatixStatsNNInfEngine(entry, selectInfEngine, alignment);
    }
    SYMBOL_TABLE_ENTRY_READ(entry, result, frameRateLevel, alignment)
    if (result)
    {
        result = SaliencyROIConfig.Load(entry, alignment);
    }

    // Reading Array extensionParam from symbol table
    // Do not check result value here because the count value needs to be initialized in this block
    {
        extensionParamCount = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, extensionParamCount, alignment)
        constexpr const CHAR* const file {__FILE__};
        constexpr INT32 line {LINE_CONST};
        ParameterFileSymbolTableEntry  pointerEntryCls;
        ParameterFileSymbolTableEntry* const pointerEntry = &pointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(pointerEntryCls, entry, alignment);
        }

        if (result)
        {
            extensionParamID = pointerEntry->ID;
            DupObjInfo* extensionParamDupInfo = pointerEntry->GetDupObject(extensionParamCount, file, line);
            if (extensionParamDupInfo != nullptr && extensionParamDupInfo->Object != nullptr)
            {
                extensionParam = (statsglobalelements::statsExtensionParamType*)extensionParamDupInfo->Object;
                if (extensionParam == nullptr)
                {
                    if (extensionParamDupInfo->File != nullptr)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "extensionParam duplicate found but object is nullptr: %s:%d, RefCount: %d\n",
                            extensionParamDupInfo->File, extensionParamDupInfo->Line, extensionParamDupInfo->RefCount);
                    }
                    else
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "extensionParam duplicate found but Object is nullptr: <nullptr file ptr>:%d, RefCount: %d\n",
                            extensionParamDupInfo->Line, extensionParamDupInfo->RefCount);
                    }
                }
            }

            if (extensionParam == nullptr)
            {
                if (result && extensionParamCount > 0)
                {
                    extensionParam = PARAMETER_NEW statsglobalelements::statsExtensionParamType[extensionParamCount];
                    (void)pointerEntry->SetDupObject(extensionParam, extensionParamCount, file, line);
                }
                if (!result || extensionParam == nullptr)
                {
                    if (extensionParamCount > 0)
                    {
                        PARAMETER_LOG_ERROR(entry->SetManager, "Failed to allocate extensionParam\n");
                    }
                    extensionParamCount = 0;
                }
                for (UINT32 i = 0; result && i < extensionParamCount; i++)
                {
                    result = extensionParam[i].Load(pointerEntry, alignment);
                }
            }
        }
        if (extensionParam == nullptr)
        {
            extensionParamCount = 0;
        }
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatixStatsNNSaliencyType::module_versionStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    SYMBOL_TABLE_ENTRY_READ(entry, result, major_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, minor_revision, alignment)
    SYMBOL_TABLE_ENTRY_READ(entry, result, incr_revision, alignment)

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatixStatsNNSaliencyType::parameter_versionStruct::Load(
    ParameterFileSymbolTableEntry* const entry,
    BYTE const alignment)
{
    bool result = true;

    PARAMETER_INITIALIZE(revision);


    // Reading String revision from symbol table
    {
        UINT32 count = 0;
        SYMBOL_TABLE_ENTRY_READ(entry, result, count, alignment)
        ParameterFileSymbolTableEntry stringPointerEntryCls;
        ParameterFileSymbolTableEntry* const stringPointerEntry = &stringPointerEntryCls;
        if (result)
        {
            result = entry->Table->ReadPointerEntry(stringPointerEntryCls, entry, alignment);
        }
        SYMBOL_TABLE_ENTRY_READ_STRING(stringPointerEntry, result, revision, count, alignment)
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixStatsNNSaliencyROIConfig
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyROIConfig::Unload(ParameterFileSymbolTable* const __table)
{
    if (__table != nullptr && __table->ReleaseDupObject(triggerConfigSet))
    {
        PARAMETER_DELETE[] triggerConfigSet;
    }
    triggerConfigSet = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatixStatsNNSaliencyType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    SaliencyROIConfig.Unload(__table);
    for (UINT32 i = 0; i < extensionParamCount; i++)
    {
        extensionParam[i].Unload(__table);
    }
    if (__table != nullptr && __table->ReleaseDupObject(extensionParam))
    {
        PARAMETER_DELETE[] extensionParam;
    }
    extensionParam = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyType::parameter_versionStruct::Unload(ParameterFileSymbolTable* const __table)
{
    if (__table != nullptr && __table->ReleaseDupObject(revision))
    {
        PARAMETER_DELETE[] revision;
    }
    revision = nullptr;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Release the ParameterModule object
/// Requires that this object was created via a ParameterSetManager::GetModule call
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyType::Release()
{
    ((chromatixStatsNNSaliencyTypeClass*)this)->Release();
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Returns the ParameterModule::Modified value
/// The Modified value is incremented when the module's data or pointer values change
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 chromatixStatsNNSaliencyType::GetModified()
{
    return ((chromatixStatsNNSaliencyTypeClass*)this)->Modified;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* chromatixStatsNNSaliencyTypeClass::Create(
    ModuleData*    moduleData,
    DefaultModule* const defModule) const
{
    chromatixStatsNNSaliencyTypeClass* cls = nullptr;

    if (PARAMETER_STRCMP(Type, moduleData->Type) == 0 && Version.Value == moduleData->Version.Value)
    {
        const UINT32 id = moduleData->DuplicateID > 0 ? moduleData->DuplicateID : moduleData->ID;

        ParameterModule* const module = defModule->Find(id);
        if (module != nullptr)
        {
            cls = (chromatixStatsNNSaliencyTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW chromatixStatsNNSaliencyTypeClass(GetName(moduleData->Type), moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create chromatixStatsNNSaliencyTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create chromatixStatsNNSaliencyTypeClass, binary name (%s) does not match source name (%s)\n",
            moduleData->Type, Type);
    }

    return (ParameterModule*)cls;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module data, return true is successful
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool chromatixStatsNNSaliencyTypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

    if (!Loaded)
    {
        BYTE const alignment = table->Alignment;
        chromatixStatsNNSaliencyTypeClass* const cls = this;

        ParameterFileSymbolTableEntry  entryObj;
        ParameterFileSymbolTableEntry* const entry = &entryObj;
        // With EzTune enabled, the unused upper byte of SymbolTableID value can change, so clear it
        result = table->Find(entryObj, SymbolTableID & 0x00ffffff);

        if (!result)
        {
            PARAMETER_LOG_ERROR(entry->SetManager, "chromatixStatsNNSaliencyTypeClass::LoadModule Failed to find module ID (%d) in Symbol Table\n", SymbolTableID);
        }

        if (result)
        {
            result = cls->Load(entry, alignment);
        }
        Modified++;
        Loaded = true;
    }

    if (!result)
    {
        /// Module failed to fully load, unload it
        UnloadModule();
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyTypeClass::UnloadModule()
{
    if (Loaded)
    {
        if (Data != nullptr && Data->SymbolTable != nullptr)
        {
            Unload(Data->SymbolTable);
        }
        else
        {
            PARAMETER_LOG_ERROR(Data != nullptr ? Data->SetManager : nullptr, "UnloadModule %s called with nullptr "
                "Data->SymbolTable object\n", Name);
            Unload(nullptr);
        }
        Loaded = false;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// /// Release the ParameterModule object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatixStatsNNSaliencyTypeClass::Release()
{
    ParameterModule::Release();
}

STATSNNSALIENCY_NAMESPACE_END
