QCamV4L Class Reference

QCam implementation to acces a basic Video4Linux device. More...

#include <QCamV4L.hpp>

Inheritance diagram for QCamV4L:

Inheritance graph
[legend]
Collaboration diagram for QCamV4L:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QCamFrame yuvFrame () const
 return the frame in yuv 420P format.
const QSize & size () const
 return the size of the current frame.
void resize (const QSize &s)
 try to resize the current frame.
QWidget * buildGUI (QWidget *parent)
 build the GUI

Protected Member Functions

virtual void checkSize (int &x, int &y) const
 should be overloaded.
virtual const QSize * getAllowedSize () const
 should be overloaded.
virtual int getFrameRate () const
 return the frame rate of the camera.

Protected Attributes

video_mbuf mmap_mbuf_
 mmap stuf

Detailed Description

QCam implementation to acces a basic Video4Linux device.


Member Function Documentation

QCamFrame QCamV4L::yuvFrame (  )  const [inline, virtual]

return the frame in yuv 420P format.

it is the native format used by all algoithms.

Implements QCam.

void QCamV4L::resize ( const QSize &  s  )  [virtual]

try to resize the current frame.

it can failed. size() must be called to know the real new size.

Implements QCam.

void QCamV4L::checkSize ( int &  x,
int &  y 
) const [protected, virtual]

should be overloaded.

set x an y to allowed value.

Reimplemented in QCamOV511, and QCamVesta.

const QSize * QCamV4L::getAllowedSize (  )  const [protected, virtual]

should be overloaded.

return the avaibles capture size.

Implements QCam.

Reimplemented in QCamVesta.

virtual int QCamV4L::getFrameRate (  )  const [inline, protected, virtual]

return the frame rate of the camera.

is used if the select() system call is not avaible, by the timer used to probe the camera for a new frame

Reimplemented in QCamVesta.


The documentation for this class was generated from the following files:
Generated on Sat Oct 27 09:21:10 2007 for QastroCam by  doxygen 1.5.1