libcvd
Public Member Functions | Public Attributes | List of all members
CVD::DVFrame Class Reference

A frame from a Firewire (IEEE 1394) camera via DVBuffer2. More...

#include <dvframe.h>

Inheritance diagram for CVD::DVFrame:
Inheritance graph
[legend]
Collaboration diagram for CVD::DVFrame:
Collaboration graph
[legend]

Public Member Functions

 DVFrame (ImageRef s, timeval t, int buff, byte *dptr)
 (Used internally) Construct a DVFrame. More...
 
- Public Member Functions inherited from CVD::VideoFrame< byte >
 VideoFrame (double t, byte *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< byte > &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
 
- Public Member Functions inherited from CVD::BasicImage< byte >
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< byte > &other)
 
ImageRef size () const
 What is the size of this image?
 
void zero ()
 Set image data to all zero bytes. More...
 
void fill (const byte d)
 Set all the pixels in the image to a value. More...
 
 BasicImage (const BasicImage &copyof)=default
 Copy constructor. More...
 
BasicImageoperator= (const BasicImage &copyof)=default
 Assignment operator. More...
 
- Public Member Functions inherited from CVD::Internal::ImageData< byte >
 ImageData (const ImageData &)=default
 
 ImageData (void *data, size_t len, ImageRef sz)
 
 ImageData (void *data, ImageRef sz)
 
ImageDataoperator= (const ImageData &)=default
 
size_t datalength () const
 What is the row stride of the image?
 

Public Attributes

int my_buffer
 The buffer number.
 

Additional Inherited Members

- Protected Types inherited from CVD::Internal::ImageData< byte >
using PointerType = void *
 
using ConstPointerType = const void *
 
- Protected Member Functions inherited from CVD::VideoFrame< byte >
virtual ~VideoFrame ()
 We don't usually delete video frames. Some special destruction is usually needed.
 
- Protected Attributes inherited from CVD::VideoFrame< byte >
VideoFrameFlags::FieldType my_field
 
double my_timestamp
 Type of field in this frame. More...
 
- Protected Attributes inherited from CVD::Internal::ImageData< byte >
void * my_data
 
ImageRef my_size
 
size_t data_length
 

Detailed Description

A frame from a Firewire (IEEE 1394) camera via DVBuffer2.

Frames are 8-bit greyscale, using the byte type.

Constructor & Destructor Documentation

◆ DVFrame()

CVD::DVFrame::DVFrame ( ImageRef  s,
timeval  t,
int  buff,
byte dptr 
)
inline

(Used internally) Construct a DVFrame.

Parameters
sThe image size
tThe time of this frame
buffThe buffer number
dptrThe image data

The documentation for this class was generated from the following file: