Main Page   Class Hierarchy   Compound List   File List   Compound Members  

V4LDev Class Reference

Abstract interface to Video4Linux devices. More...

#include <v4ldev.h>

Inheritance diagram for V4LDev::

V4LCamera V4LTuner List of all members.

Public Methods

virtual ~V4LDev ()
virtual bool isCamera () const
virtual bool isTuner () const
virtual int startCapture (int x, int y)
virtual int stopCapture ()
virtual bool overlayOn () const
virtual int grab (V4LImage *buff, bool scale=true)
virtual int signal () const
virtual int setCaptureGeometry (const QRect &geom)
virtual int setImageSize (int w, int h=-1)
virtual QString name () const
virtual int setBrightness (int x)
virtual int brightness () const
virtual int setColour (int x)
virtual int colour () const
virtual int setHue (int x)
virtual int hue () const
virtual int setContrast (int x)
virtual int contrast () const
virtual int setWhiteness (int x)
virtual int whiteness () const
virtual int setColourKey (unsigned long x)
virtual unsigned long colourKey () const
virtual int setSource (const QString &source)
virtual const QString source () const
virtual QStringList sources () const
virtual float aspectRatio () const
virtual bool canOverlay () const
virtual bool canGrab () const
virtual bool hasAudio () const
virtual int enableAudio ()
virtual int disableAudio ()
virtual bool audioEnabled () const
virtual int setInputFormat (int fmt)
virtual int inputFormat () const
virtual void addClip (const QRect &clip)
virtual void clearClips ()
virtual void reClip ()

Static Public Methods

V4LDev * getDevice (const QString &dev)

Protected Methods

 V4LDev (int fd, const QString &name, int channels, int type, int minw, int minh, int maxw, int maxh)
int initGrabbing ()

Protected Attributes

int _fd
bool _valid
QString _name
bool _overlaid
video_channel * _channels
int _minWidth
int _minHeight
int _maxWidth
int _maxHeight
int _type
float _aspectRatio
int format
QStringList _sources
int _source
int _capW
int _capH
bool _hasAudio
bool _isTuner
video_mmap * _mmapData
video_mbuf _mbuf
int _mmapCurrentFrame
uchar * _mmapBuf
bool _grabNeedsInit
uchar * _grabBuf
uchar * _readBuf
int _grabW
int _grabH
int _fmt
int _bpp
QValueList< QRect > _clips
video_clip _cliprecs [MAX_CLIP_RECTS]

Detailed Description

Abstract interface to Video4Linux devices.

Version:
Id:
v4ldev.h,v 1.18 2002/11/13 22:16:44 staikos Exp


Member Function Documentation

V4LDev* V4LDev::getDevice const QString & dev [static]
 

Factory method that creates a V4LDev for the specified device file.

virtual bool V4LDev::isCamera const [virtual]
 

Returns true iff this device is a camera.

Reimplemented in V4LCamera.

virtual bool V4LDev::isTuner const [virtual]
 

Returns true iff this device is a tuner.

Reimplemented in V4LTuner.

virtual int V4LDev::startCapture int x,
int y
[virtual]
 

h = -1 => use aspect ratio.


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:04 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001