Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CVideoFrame Class Reference

#include <VideoFrame.h>

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

CVideoFrame holds a single image from a video stream. It can hold the RGB or YUV image (or both). It contains sequence number and timestamp fields.

The classes uses shared data, so passing copies of the class around does not incur a penalty. However, changes to the image data will be reflected by all shared objects!


Constructor & Destructor Documentation

CVideoFrame::CVideoFrame uint  number,
const QImage *  rgb,
const QImage *  y,
const QImage *  u,
const QImage *  v
[protected]
 

CVideoFrame::CVideoFrame const CVideoFrame  ) 
 

CVideoFrame::~CVideoFrame  )  [virtual]
 


Member Function Documentation

uint CVideoFrame::GetNumber  )  const
 

const QImage * CVideoFrame::GetRGB  )  const
 

unsigned long CVideoFrame::GetSequence  )  const
 

Get sequence number.

VideoFrames are sequentially numbered as they are fetches from videodevice or file. The sequence number is a monotonous increasing number.

Note: when fetching frames from a video device, sequence numbers are not contiguous in case frames are dropped by the capture process.

unsigned long CVideoFrame::GetTimeStamp  )  const
 

Get time stamp.

Returns:
Time in milliseconds
VideoFrames are time stamped, to make it easier to order/reference them. The timestamp is measured in milliseconds.

Note: The first video frame of a video sequence is not guaranteed to have a timestamp of 0! The only guarantee you have is that the timestamp is a monotonous increasing number.

const QImage * CVideoFrame::GetU  )  const
 

const QImage * CVideoFrame::GetV  )  const
 

const QImage * CVideoFrame::GetY  )  const
 

CVideoFrame & CVideoFrame::operator= const CVideoFrame  ) 
 

void CVideoFrame::SetSequence unsigned long  seq  ) 
 

void CVideoFrame::SetTimeStamp unsigned long  stamp  ) 
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7