|
CVD 0.8
|
A frame from a VideoBuffer. More...
#include <videoframe.h>
Public Member Functions | |
| VideoFrame (double t, T *data, const ImageRef &size, VideoFrameFlags::FieldType f=VideoFrameFlags::Unknown) | |
| VideoFrame (double t, const BasicImage< T > &im, VideoFrameFlags::FieldType f=VideoFrameFlags::Unknown) | |
| double | timestamp () const |
| VideoFrameFlags::FieldType | field () const |
Protected Member Functions | |
| virtual | ~VideoFrame () |
Protected Attributes | |
| VideoFrameFlags::FieldType | my_field |
| double | my_timestamp |
A frame from a VideoBuffer.
| T | The pixel type of the video frames |
Definition at line 53 of file videoframe.h.
| CVD::VideoFrame< T >::VideoFrame | ( | double | t, |
| T * | data, | ||
| const ImageRef & | size, | ||
| VideoFrameFlags::FieldType | f = VideoFrameFlags::Unknown |
||
| ) | [inline] |
(Used internally) Construct a VideoFrame around a block of memory.
The memory is not managed by the VideoFrame so must me managed seperately
| t | The time (in seconds) of this frame |
| data | The image data for this frame |
| size | The size of this video frame |
Definition at line 61 of file videoframe.h.
| CVD::VideoFrame< T >::VideoFrame | ( | double | t, |
| const BasicImage< T > & | im, | ||
| VideoFrameFlags::FieldType | f = VideoFrameFlags::Unknown |
||
| ) | [inline] |
(Used internally) Construct a VideoFrame from a BasicImage
| t | The time (in seconds) of this frame |
| im | The image data for this frame. BasicImages do not manage their own memory, so this must be managed externally |
Definition at line 70 of file videoframe.h.
double CVD::VideoFrame< T >::my_timestamp [protected] |
Type of field in this frame.
No of seconds since boot of this frame
Definition at line 93 of file videoframe.h.
Referenced by CVD::VideoFrame< Rgb8 >::timestamp(), and CVD::DiskBuffer2Frame< T >::timestamp().
1.7.4