CVD 0.8
|
A video buffer from a Firewire (IEEE 1394) camera. More...
#include <dvbuffer.h>
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) |
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).
T | The 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.
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_no | The camera number (the first camera is 0) |
num_dma_buffers | The number of DMA buffers to use (at least 3 is recommended) |
bright | The brightness correction (default = -1 = automatic) |
exposure | The exposure correction (default = -1 = automatic) |
fps | The number of frames per second (default = 30fps) |
Definition at line 253 of file dvbuffer.h.
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.
f | The frame that you are finished with. |
Implements CVD::VideoBuffer< T >.
Definition at line 279 of file dvbuffer.h.
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)
t | The frame time in seconds |
Reimplemented from CVD::RawVideoBuffer.
Definition at line 289 of file dvbuffer.h.