Lines Matching refs:nodes
805 Json::Value nodes = root[kAtcProfileModesStr]; in parseAtcProfile() local
808 for (Json::Value::ArrayIndex i = 0; i < nodes.size(); ++i) { in parseAtcProfile()
809 std::string name = nodes[i][kAtcProfileModeNameStr].asString(); in parseAtcProfile()
811 if (nodes[i][kAtcProfileLuxMapStr].size() != nodes[i][kAtcProfileAlMapStr].size() && in parseAtcProfile()
812 nodes[i][kAtcProfileAlMapStr].size() != nodes[i][kAtcProfileStMapStr].size()) { in parseAtcProfile()
817 uint32_t map_cnt = nodes[i][kAtcProfileLuxMapStr].size(); in parseAtcProfile()
821 mode.lux_map.emplace_back(atc_lux_map{nodes[i][kAtcProfileLuxMapStr][index].asUInt(), in parseAtcProfile()
822 nodes[i][kAtcProfileAlMapStr][index].asUInt(), in parseAtcProfile()
823 nodes[i][kAtcProfileStMapStr][index].asUInt()}); in parseAtcProfile()
826 if (!nodes[i][kAtcProfileStUpStepStr].empty()) in parseAtcProfile()
827 mode.st_up_step = nodes[i][kAtcProfileStUpStepStr].asUInt(); in parseAtcProfile()
831 if (!nodes[i][kAtcProfileStDownStepStr].empty()) in parseAtcProfile()
832 mode.st_down_step = nodes[i][kAtcProfileStDownStepStr].asUInt(); in parseAtcProfile()
836 if (nodes[i][kAtcProfileSubSettingStr].size() != kAtcSubSetting.size()) return false; in parseAtcProfile()
840 nodes[i][kAtcProfileSubSettingStr][it->first.c_str()].asUInt(); in parseAtcProfile()