CVD::V4L2Buffer_Base Class Reference
[Video buffers]

#include <v4l2buffer.h>

Inheritance diagram for CVD::V4L2Buffer_Base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool frame_pending ()
double frame_rate ()
V4L2FrameT< unsigned char > * get_frame ()
void put_frame (V4L2FrameT< unsigned char > *f)
 Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().
void put_frame (VideoFrame< unsigned char > *f)
 Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().
ImageRef size ()
 V4L2Buffer_Base (const char *devname, bool fields, V4L2BufferBlockMethod block, int input, int numbufs, unsigned long int pixtpe)
 ~V4L2Buffer_Base ()

Private Member Functions

int operator= (V4L2Buffer_Base &copyof)
 V4L2Buffer_Base (V4L2Buffer_Base &copyof)

Private Attributes

std::string device
bool i_am_using_fields
int m_nVideoFileDesc
void ** m_pvVideoBuffer
struct v4l2_buffer * m_sv4l2Buffer
V4L2BufferBlockMethod my_block_method
int my_dropped_frames
int my_fd
double my_frame_rate
ImageRef my_image_size
int my_prev_frame_no
int num_buffers

Detailed Description

A live video buffer from a the framegrabber (using the Video for Linux 2 API). This provides 8-bit greyscale video frames of type CVD::V4L2Frame and throws exceptions of type CVD::Exceptions::V4L2Buffer

Definition at line 96 of file v4l2buffer.h.


Constructor & Destructor Documentation

CVD::V4L2Buffer_Base::V4L2Buffer_Base ( const char *  devname,
bool  fields,
V4L2BufferBlockMethod  block,
int  input,
int  numbufs,
unsigned long int  pixtpe 
)

Construct a video buffer

Parameters:
devname The device name
fields 
block Which buffer block method to use
input Which card input?
numbufs How many buffers?
CVD::V4L2Buffer_Base::~V4L2Buffer_Base (  ) 
CVD::V4L2Buffer_Base::V4L2Buffer_Base ( V4L2Buffer_Base copyof  )  [private]

Member Function Documentation

bool CVD::V4L2Buffer_Base::frame_pending (  ) 

Reimplemented in CVD::V4L2BufferT< T >.

double CVD::V4L2Buffer_Base::frame_rate (  )  [inline]

Reimplemented in CVD::V4L2BufferT< T >.

Definition at line 120 of file v4l2buffer.h.

V4L2FrameT<unsigned char>* CVD::V4L2Buffer_Base::get_frame (  ) 

Reimplemented in CVD::V4L2BufferT< T >.

int CVD::V4L2Buffer_Base::operator= ( V4L2Buffer_Base copyof  )  [private]
void CVD::V4L2Buffer_Base::put_frame ( V4L2FrameT< unsigned char > *  f  ) 

Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().

void CVD::V4L2Buffer_Base::put_frame ( VideoFrame< unsigned char > *  f  ) 

Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().

ImageRef CVD::V4L2Buffer_Base::size (  )  [inline]

Reimplemented in CVD::V4L2BufferT< T >.

Definition at line 108 of file v4l2buffer.h.


Member Data Documentation

std::string CVD::V4L2Buffer_Base::device [private]

Definition at line 126 of file v4l2buffer.h.

Definition at line 130 of file v4l2buffer.h.

Definition at line 136 of file v4l2buffer.h.

Definition at line 135 of file v4l2buffer.h.

struct v4l2_buffer* CVD::V4L2Buffer_Base::m_sv4l2Buffer [private]

Definition at line 134 of file v4l2buffer.h.

Definition at line 133 of file v4l2buffer.h.

Definition at line 127 of file v4l2buffer.h.

Definition at line 139 of file v4l2buffer.h.

Definition at line 131 of file v4l2buffer.h.

Definition at line 132 of file v4l2buffer.h.

Definition at line 128 of file v4l2buffer.h.

Definition at line 129 of file v4l2buffer.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