| 792 | } |
| 793 | |
| 794 | uint32_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 | |
| 807 | float Freenect2DeviceImpl::getColorSettingFloat(ColorSettingCommandType cmd) |
| 808 | { |
nothing calls this directly
no test coverage detected