A class that extends Freenect::FreenectDevice by defining the VideoCallback function so we can be getting updates with the latest RGB frame.
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. |
| virtual MyFreenectDevice::~MyFreenectDevice |
( |
| ) |
|
|
inlinevirtual |
| 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. |
| virtual MyFreenectDevice::~MyFreenectDevice |
( |
| ) |
|
|
inlinevirtual |
| 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::updateFrame |
( |
| ) |
|
|
inline |
Processes the most recently received RGB frame.
- Note
- The frame is left on the GPU to be handled by OpenGL.
- Returns
- A flag to indicate whether a new frame was present.
| bool MyFreenectDevice::updateFrames |
( |
| ) |
|
|
inline |
Processes the most recently received RGB and Depth frames.
- Note
- The frames are left on the GPU to be handled by OpenGL.
- 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. |
| 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 files: