CVD 0.8
|
A frame from a LocalVideoBuffer, which manages its own data rather than wrapping data owned by the system. More...
#include <localvideoframe.h>
Public Member Functions | |
LocalVideoFrame (double time, CVD::Image< T > &local) | |
Image< T > & | image () |
const Image< T > & | image () const |
double & | timestamp () |
A frame from a LocalVideoBuffer, which manages its own data rather than wrapping data owned by the system.
The data is stored internally using Image, and programs which will only ever use LocalVideoBuffers can be optimized by using the image() method. Being Images, these can be deleted sensibly.
T | The pixel type of the video frames |
Definition at line 51 of file localvideoframe.h.
CVD::LocalVideoFrame< T >::LocalVideoFrame | ( | double | time, |
CVD::Image< T > & | local | ||
) | [inline] |
Construct a video frame from an Image and a timestamp.
time | The timestamp of this frame |
local | The Image to use for this frame |
Definition at line 63 of file localvideoframe.h.
Image<T>& CVD::LocalVideoFrame< T >::image | ( | ) | [inline] |
Returns the image.
A LocalVideoFrame can be treated just like any other Image (for example it can use optimised copying)
Definition at line 71 of file localvideoframe.h.