35 Adsd3500ModeSelector::Adsd3500ModeSelector() : m_configuration(
"standard") {
67 std::vector<DepthSensorModeDetails> &m_depthSensorModeDetails) {
69 m_depthSensorModeDetails.clear();
93 if (
m_controls[
"mode"] == std::to_string(modes.modeNumber)) {
94 configurationTable = modes;
102 if (
m_controls[
"mode"] == std::to_string(modes.modeNumber)) {
103 configurationTable = modes;
111 if (
m_controls[
"mode"] == std::to_string(modes.modeNumber)) {
112 configurationTable = modes;
126 if (driverConf.baseWidth ==
128 driverConf.baseHeigth ==
130 std::stoi(driverConf.noOfPhases) ==
132 driverConf.depthBits ==
m_controls[
"depthBits"] &&
134 driverConf.confBits ==
m_controls[
"confBits"] &&
135 driverConf.pixelFormat ==
m_controls[
"inputFormat"]) {
144 int depth_i = std::stoi(
m_controls[
"depthBits"]);
146 int conf_i = std::stoi(
m_controls[
"confBits"]);
147 std::vector<int> depth_v = {16, 14, 12, 10, 8, 0};
148 std::vector<int> ab_v = {16, 14, 12, 10, 8, 0};
149 std::vector<int> conf_v = {8, 4, 0};
151 if (std::find(depth_v.begin(), depth_v.end(), depth_i) == depth_v.end()) {
154 if (std::find(ab_v.begin(), ab_v.end(), ab_i) == ab_v.end()) {
157 if (std::find(conf_v.begin(), conf_v.end(), conf_i) == conf_v.end()) {
161 int totalBits = depth_i + ab_i + conf_i;
166 if (configurationTable.
isPCM) {
197 }
else if ((configurationTable.
modeNumber == 0 ||
202 }
else if (configurationTable.
modeNumber == 7 &&
207 }
else if (configurationTable.
modeNumber >= 2 &&
214 }
else if ((configurationTable.
modeNumber < 0 ||
244 if (control ==
"imagerType") {