libcvd
|
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) | |
(Used internally) Construct a VideoFrame around a block of memory. More... | |
VideoFrame (double t, const BasicImage< T > &im, VideoFrameFlags::FieldType f=VideoFrameFlags::Unknown) | |
(Used internally) Construct a VideoFrame from a BasicImage More... | |
double | timestamp () const |
What is the time (since boot) of this frame? | |
VideoFrameFlags::FieldType | field () const |
![]() | |
virtual | ~BasicImage () |
The image data is not destroyed when a BasicImage is destroyed. | |
ConstPointerType | data () const |
Returns the raw image data. | |
PointerType | data () |
Returns the raw image data. | |
void | copy_from (const BasicImage< T > &other) |
ImageRef | size () const |
What is the size of this image? | |
void | zero () |
Set image data to all zero bytes. More... | |
void | fill (const T d) |
Set all the pixels in the image to a value. More... | |
BasicImage (const BasicImage ©of)=default | |
Copy constructor. More... | |
BasicImage & | operator= (const BasicImage ©of)=default |
Assignment operator. More... | |
![]() | |
ImageData (const ImageData &)=default | |
ImageData (void *data, size_t len, ImageRef sz) | |
ImageData (void *data, ImageRef sz) | |
ImageData & | operator= (const ImageData &)=default |
size_t | datalength () const |
What is the row stride of the image? | |
Protected Member Functions | |
virtual | ~VideoFrame () |
We don't usually delete video frames. Some special destruction is usually needed. | |
Protected Attributes | |
VideoFrameFlags::FieldType | my_field |
double | my_timestamp |
Type of field in this frame. More... | |
![]() | |
void * | my_data |
ImageRef | my_size |
size_t | data_length |
Additional Inherited Members | |
![]() | |
using | PointerType = void * |
using | ConstPointerType = const void * |
A frame from a VideoBuffer.
T | The pixel type of the video frames |
|
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 |
|
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 |
|
protected |
Type of field in this frame.
No of seconds since boot of this frame