|
From: Yoda-JM <yo...@us...> - 2010-12-13 13:34:37
|
Module: performous
Branch: kinect
Commit: 418990b0207c6c5baeaa12bd5bee0b43f85336b8
Author: Vincent Le Ligeour <yo...@us...>
Date: Mon Dec 13 14:34:18 2010 +0100
Fixed compilation errors
---
game/kinect.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/game/kinect.cc b/game/kinect.cc
index cbc03ec..9554280 100644
--- a/game/kinect.cc
+++ b/game/kinect.cc
@@ -20,7 +20,7 @@ class MyFreenectDevice : public Freenect::FreenectDevice {
boost::mutex::scoped_lock l(m_mutex_depth);
m_depth_has_changed = true;
}
- bool getDepth(std::vector<boost::uint8_t> &_buffer) {
+ bool getDepth(std::vector<boost::uint16_t> &_buffer) {
if(m_depth_has_changed) {
// update buffer
boost::mutex::scoped_lock l(m_mutex_depth);
@@ -45,10 +45,10 @@ class MyFreenectDevice : public Freenect::FreenectDevice {
private:
boost::mutex m_mutex_depth;
boost::mutex m_mutex_video;
- std::vector<boost::uint16_t> m_buffer_depth;
- std::vector<boost::uint8_t> m_buffer_video;
volatile bool m_video_has_changed;
volatile bool m_depth_has_changed;
+ std::vector<boost::uint16_t> m_buffer_depth;
+ std::vector<boost::uint8_t> m_buffer_video;
};
// Screen positions:
@@ -92,7 +92,7 @@ class Kinect::Impl {
while (!m_quit) {
if (m_running) {
static std::vector<boost::uint16_t> m_buffer_depth;
- if(m_device.getVideo(m_buffer_depth)) {
+ if(m_device.getDepth(m_buffer_depth)) {
// compute stuff here
}
}
|