Fawkes API
Fawkes Development Version
|
Implementation of the FreenectDevice interface of the driver. More...
#include <>>
Public Member Functions | |
FvFreenectDevice (freenect_context *ctx, int index) | |
Constructor. More... | |
~FvFreenectDevice () | |
Destructor. More... | |
void | RGBCallback (freenect_pixel *rgb, uint32_t timestamp) |
Callback function for the freenect driver. More... | |
void | DepthCallback (void *depth, uint32_t timestamp) |
Callback function for the freenect driver. More... | |
unsigned char * | rgb_buffer () |
Access the RGB buffer. More... | |
uint16_t * | depth_buffer () |
Access the depth buffer. More... | |
Implementation of the FreenectDevice interface of the driver.
firevision::FvFreenectDevice::FvFreenectDevice | ( | freenect_context * | ctx, |
int | index | ||
) |
Constructor.
ctx | the freenet context |
index | the index of the new device |
Definition at line 57 of file kinect.cpp.
firevision::FvFreenectDevice::~FvFreenectDevice | ( | ) |
Destructor.
Definition at line 65 of file kinect.cpp.
uint16_t * firevision::FvFreenectDevice::depth_buffer | ( | ) |
Access the depth buffer.
Definition at line 110 of file kinect.cpp.
Referenced by firevision::KinectCamera::capture().
void firevision::FvFreenectDevice::DepthCallback | ( | void * | depth, |
uint32_t | timestamp | ||
) |
Callback function for the freenect driver.
This function is called with a pointer to the depth image and the timestamp of the frame.
depth | pointer to the depth image |
timestamp | timestamp of the image |
Definition at line 91 of file kinect.cpp.
unsigned char * firevision::FvFreenectDevice::rgb_buffer | ( | ) |
Access the RGB buffer.
Definition at line 101 of file kinect.cpp.
Referenced by firevision::KinectCamera::set_image_number().
void firevision::FvFreenectDevice::RGBCallback | ( | freenect_pixel * | rgb, |
uint32_t | timestamp | ||
) |
Callback function for the freenect driver.
This function is called with a pointer to the RGB image and the timestamp of the frame.
rgb | pointer to the RGB image |
timestamp | timestamp of the image |
Definition at line 78 of file kinect.cpp.