CVD 0.8
Public Member Functions
CVD::DVBuffer2< T > Class Template Reference

A video buffer from a Firewire (IEEE 1394) camera. More...

#include <dvbuffer.h>

Inheritance diagram for CVD::DVBuffer2< T >:
CVD::VideoBuffer< T > CVD::DC::RawDCVideo CVD::RawVideoBuffer

List of all members.

Public Member Functions

 DVBuffer2 (int cam_no, int num_dma_buffers, int bright=-1, int exposure=-1, double fps=DC::cam_type< T >::fps)
double frame_rate ()
virtual ImageRef size ()
virtual VideoFrame< T > * get_frame ()
virtual void put_frame (VideoFrame< T > *f)
virtual bool frame_pending ()
virtual void seek_to (double)

Detailed Description

template<class T>
class CVD::DVBuffer2< T >

A video buffer from a Firewire (IEEE 1394) camera.

The requested image format depends on the templated pixel type. Frames of size 640 by 480 pixels are requested, at 30fps (except for CVD::Rgb<CVD::byte>, which is 15fps).

TThe pixel type of the frames. Currently only <CVD::Rgb<CVD::byte> > CVD::yuv411> and CVD::byte> are supported.

Definition at line 244 of file dvbuffer.h.

Constructor & Destructor Documentation

template<class T >
CVD::DVBuffer2< T >::DVBuffer2 ( int  cam_no,
int  num_dma_buffers,
int  bright = -1,
int  exposure = -1,
double  fps = DC::cam_type<T>::fps 
) [inline]

Construct a video buffer.

cam_noThe camera number (the first camera is 0)
num_dma_buffersThe number of DMA buffers to use (at least 3 is recommended)
brightThe brightness correction (default = -1 = automatic)
exposureThe exposure correction (default = -1 = automatic)
fpsThe number of frames per second (default = 30fps)

Definition at line 253 of file dvbuffer.h.

Member Function Documentation

template<class T >
virtual void CVD::DVBuffer2< T >::put_frame ( VideoFrame< T > *  f) [inline, virtual]

Tell the buffer that you are finished with this frame.

Typically the VideoBuffer then destroys the frame.

fThe frame that you are finished with.

Implements CVD::VideoBuffer< T >.

Definition at line 279 of file dvbuffer.h.

template<class T >
virtual void CVD::DVBuffer2< T >::seek_to ( double  ) [inline, virtual]

Go to a particular point in the video buffer (only implemented in buffers of recorded video)

tThe frame time in seconds

Reimplemented from CVD::RawVideoBuffer.

Definition at line 289 of file dvbuffer.h.

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