CVD::V4L1Buffer< T > Class Template Reference
[Video buffers]

#include <v4l1buffer.h>

Inheritance diagram for CVD::V4L1Buffer< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool frame_pending ()
 Is there a frame waiting in the buffer? This function does not block.
virtual double frame_rate ()
 Get the camera frame rate.
virtual VideoFrame< T > * get_frame ()
virtual void put_frame (VideoFrame< T > *f)
virtual ImageRef size ()
 The size of the VideoFrames returned by this buffer.
 V4L1Buffer (const std::string &dev, ImageRef size)
 V4L1Buffer (const std::string &dev)
virtual ~V4L1Buffer ()

Private Member Functions

int operator= (V4L1Buffer &copyof)
 V4L1Buffer (V4L1Buffer &copyof)

Detailed Description

template<class T>
class CVD::V4L1Buffer< T >

A video buffer from a v4l1 video device.

Parameters:
T The pixel type of the frames. The supported type are <CVD::byte> which returns 8-bit grey scale and <CVD::bayer> which returns an 8-bit grey scale image containing the raw intensities of the sensor. You have to convert the returned image to a byte image or something else to use it in a meaningful way. <CVD::Rgb<CVD::byte> > should work to but crashes with my current driver ?! The pixel type used will automatically configure the underlying RawV4L1 object to use the right video palette.
Note:
The grey images are returned upside down unless the kernel module is loaded with the option flipvert.
frame_rate currently returns fixed 30 fps and frame_pending is untested.

Definition at line 184 of file v4l1buffer.h.


Constructor & Destructor Documentation

template<class T >
CVD::V4L1Buffer< T >::V4L1Buffer ( const std::string &  dev  )  [inline]

Construct a video buffer

Parameters:
dev file name of the device to use

Definition at line 189 of file v4l1buffer.h.

template<class T >
CVD::V4L1Buffer< T >::V4L1Buffer ( const std::string &  dev,
ImageRef  size 
) [inline]

Construct a video buffer

Parameters:
dev file name of the device to use
size Size of the video stream to grab

Definition at line 197 of file v4l1buffer.h.

template<class T >
virtual CVD::V4L1Buffer< T >::~V4L1Buffer (  )  [inline, virtual]

Definition at line 224 of file v4l1buffer.h.

template<class T >
CVD::V4L1Buffer< T >::V4L1Buffer ( V4L1Buffer< T > &  copyof  )  [private]

Member Function Documentation

template<class T >
virtual bool CVD::V4L1Buffer< T >::frame_pending (  )  [inline, virtual]

Is there a frame waiting in the buffer? This function does not block.

Reimplemented from CVD::V4L1::RawV4L1.

Definition at line 215 of file v4l1buffer.h.

template<class T >
virtual double CVD::V4L1Buffer< T >::frame_rate (  )  [inline, virtual]

Get the camera frame rate.

Reimplemented from CVD::V4L1::RawV4L1.

Definition at line 219 of file v4l1buffer.h.

template<class T >
virtual VideoFrame<T>* CVD::V4L1Buffer< T >::get_frame (  )  [inline, virtual]

returns the data of the next captured frame

Reimplemented from CVD::V4L1::RawV4L1.

Definition at line 206 of file v4l1buffer.h.

template<class T >
int CVD::V4L1Buffer< T >::operator= ( V4L1Buffer< T > &  copyof  )  [private]
template<class T >
virtual void CVD::V4L1Buffer< 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.

Parameters:
f The frame that you are finished with.

Implements CVD::VideoBuffer< T >.

Definition at line 210 of file v4l1buffer.h.

template<class T >
virtual ImageRef CVD::V4L1Buffer< T >::size (  )  [inline, virtual]

The size of the VideoFrames returned by this buffer.

Implements CVD::RawVideoBuffer.

Definition at line 202 of file v4l1buffer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:53 2013