43 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 class MyFrameAllocator :
public openni::VideoStream::FrameAllocator {
50 MyFrameAllocator(T* buffer) : buffer_(buffer)
53 void* allocateFrameBuffer(
int)
57 void freeFrameBuffer(
void*)
65 std::unique_ptr<MyFrameAllocator<uint16_t>> depth_allocator_;
66 std::unique_ptr<MyFrameAllocator<uint8_t>> rgb_allocator_;
69 openni::Device device_;
70 openni::VideoStream depth_stream_;
71 openni::VideoStream rgb_stream_;
72 openni::VideoFrameRef depth_frame_;
73 openni::VideoFrameRef rgb_frame_;
74 std::unique_ptr<uint16_t> depth_image_;
75 std::unique_ptr<uint8_t> rgb_image_;