MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / getSensorInfoList

Method getSensorInfoList

src/openni2/DeviceDriver.cpp:232–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 OniBool isImageRegistrationModeSupported(OniImageRegistrationMode mode) { return depth->isImageRegistrationModeSupported(mode); }
231
232 OniStatus getSensorInfoList(OniSensorInfo** pSensors, int* numSensors)
233 {
234 *numSensors = 3;
235 OniSensorInfo * sensors = new OniSensorInfo[*numSensors];
236 sensors[0] = depth->getSensorInfo();
237 sensors[1] = color->getSensorInfo();
238 sensors[2] = ir->getSensorInfo();
239 *pSensors = sensors;
240 return ONI_STATUS_OK;
241 }
242
243 oni::driver::StreamBase* createStream(OniSensorType sensorType)
244 {

Callers

nothing calls this directly

Calls 1

getSensorInfoMethod · 0.80

Tested by

no test coverage detected