device_parameters.cpp
Go to the documentation of this file.
1 /********************************************************************************/
2 /* */
3 /* Copyright (c) 2020 Analog Devices, Inc. All Rights Reserved. */
4 /* This software is proprietary to Analog Devices, Inc. and its licensors. */
5 /* */
6 /********************************************************************************/
7 
8 #include "device_parameters.h"
9 
11  std::vector<iniFileStruct> &iniFileStructList,
12  std::vector<aditof::DepthSensorModeDetails> &modeDetailsList,
13  std::string imagerType, const uint16_t &chipID) {
14 
15  using namespace std;
16 
17  for (auto mode : modeDetailsList) {
18  iniFileStruct iniF;
19  iniF.imagerName = imagerType;
20  iniF.modeName = std::to_string(mode.modeNumber);
21 
22  if (mode.isPCM) {
23  iniF.iniKeyValPairs = adsd_PCM;
24  } else if (mode.baseResolutionWidth == 1024 &&
25  mode.baseResolutionHeight == 1024 &&
26  chipID == CHIP_ID_SINGLE) {
28  } else if (mode.baseResolutionWidth == 1024 &&
29  mode.baseResolutionHeight == 1024 &&
30  chipID != CHIP_ID_SINGLE) {
32  } else if (imagerType == "adsd3100") {
34  } else if (imagerType == "adsd3030") {
36  } else if (imagerType == "adtf3080") {
38  }
39 
40  iniFileStructList.emplace_back(iniF);
41  }
42 
43  return aditof::Status::OK;
44 }
CHIP_ID_SINGLE
#define CHIP_ID_SINGLE
Definition: buffer_processor.h:40
mode
GLenum mode
Definition: glcorearb.h:2764
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
adsd3100_fullDepth
static map< string, string > adsd3100_fullDepth
Definition: device_parameters.h:101
iniFileStruct
Definition: ini_file_definitions.h:39
adsd_PCM
static map< string, string > adsd_PCM
Definition: device_parameters.h:125
adsd3030_fullDepth
static map< string, string > adsd3030_fullDepth
Definition: device_parameters.h:149
adsd3100_dual_fullDepth
static map< string, string > adsd3100_dual_fullDepth
Definition: device_parameters.h:78
iniFileStruct::modeName
std::string modeName
Definition: ini_file_definitions.h:43
aditof::Status
Status
Status of any operation that the TOF sdk performs.
Definition: status_definitions.h:48
adsd3100_partialDepth
static map< string, string > adsd3100_partialDepth
Definition: device_parameters.h:53
aditof::Status::OK
@ OK
Success.
device_parameters.h
std
iniFileStruct::iniKeyValPairs
std::map< std::string, std::string > iniKeyValPairs
Definition: ini_file_definitions.h:44
DeviceParameters::createIniParams
static aditof::Status createIniParams(std::vector< iniFileStruct > &iniFileStructList, std::vector< aditof::DepthSensorModeDetails > &modeDetailsList, std::string imagerType, const uint16_t &chipID)
Definition: device_parameters.cpp:10
adtf3080_fullDepth
static map< string, string > adtf3080_fullDepth
Definition: device_parameters.h:173
iniFileStruct::imagerName
std::string imagerName
Definition: ini_file_definitions.h:42
aditof::imagerType
const std::map< ImagerType, std::string > imagerType
Types of imagers.
Definition: camera_definitions.h:218


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:50