Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
18 lines
512 B
C++
18 lines
512 B
C++
#ifndef NUI_CORE_SYNTH_H
|
|
#define NUI_CORE_SYNTH_H
|
|
|
|
#include <cstdint>
|
|
|
|
// Placeholder for the packed depth + player-index + color rasterizer (plan todo 7).
|
|
|
|
namespace nui::synth {
|
|
|
|
// Packs a depth value (mm) and player index into the Kinect v1 depth word layout:
|
|
// (mm & 0x1FFF) << 3 | (player & 0x7). Provided now so the library has a real symbol;
|
|
// the full rasterizer arrives in todo 7.
|
|
uint16_t pack_depth(uint16_t depth_mm, uint8_t player_index);
|
|
|
|
} // namespace nui::synth
|
|
|
|
#endif // NUI_CORE_SYNTH_H
|