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

Method getColorSetting

src/libfreenect2.cpp:794–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794uint32_t Freenect2DeviceImpl::getColorSetting(ColorSettingCommandType cmd)
795{
796 CommandTransaction::Result result;
797 command_tx_.execute(ColorSettingCommand(cmd), result);
798 if (result.size() < sizeof(ColorSettingResponse))
799 {
800 LOG_WARNING << "failed to get color setting, response size " << result.size() << " too small, expected " << sizeof(ColorSettingResponse);
801 return 0u;
802 }
803 ColorSettingResponse const* data = reinterpret_cast<ColorSettingResponse const*>(&result[0]);
804 return data->Data;
805}
806
807float Freenect2DeviceImpl::getColorSettingFloat(ColorSettingCommandType cmd)
808{

Callers

nothing calls this directly

Calls 3

ColorSettingCommandClass · 0.85
executeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected