A class that extends Freenect::FreenectDevice by defining the VideoCallback function so we can be getting updates with the latest RGB frame.
More...
|
| | MyFreenectDevice (freenect_context *ctx, int idx) |
| |
| void | VideoCallback (void *rgb, uint32_t timestamp) |
| | Delivers the latest RGB frame. More...
|
| |
| void | DepthCallback (void *depth, uint32_t timestamp) |
| | Delivers the latest Depth frame. More...
|
| |
| bool | updateFrames (std::vector< uint8_t > &rgb, std::vector< uint16_t > &depth) |
| | Retrieves the most recently received RGB and Depth frames. More...
|
| |
A class that extends Freenect::FreenectDevice by defining the VideoCallback function so we can be getting updates with the latest RGB frame.
| MyFreenectDevice::MyFreenectDevice |
( |
freenect_context * |
ctx, |
|
|
int |
idx |
|
) |
| |
|
inline |
- Note
- The creation of the device is done through the Freenect class.
- Parameters
-
| [in] | ctx | context to open device through (handled by the library). |
| [in] | idx | index of the device on the bus. |
| void MyFreenectDevice::DepthCallback |
( |
void * |
depth, |
|
|
uint32_t |
timestamp |
|
) |
| |
|
inline |
Delivers the latest Depth frame.
- Note
- Do not call directly, it's only used by the library.
- Parameters
-
| [in] | depth | an array holding the depth frame. |
| [in] | timestamp | a time stamp. |
| bool MyFreenectDevice::updateFrames |
( |
std::vector< uint8_t > & |
rgb, |
|
|
std::vector< uint16_t > & |
depth |
|
) |
| |
|
inline |
Retrieves the most recently received RGB and Depth frames.
- Returns
- A flag to indicate whether new frames were present.
| void MyFreenectDevice::VideoCallback |
( |
void * |
rgb, |
|
|
uint32_t |
timestamp |
|
) |
| |
|
inline |
Delivers the latest RGB frame.
- Note
- Do not call directly, it's only used by the library.
- Parameters
-
| [in] | rgb | an array holding the rgb frame. |
| [in] | timestamp | a time stamp. |
The documentation for this class was generated from the following file: