#include <v4ldev.h>
Inheritance diagram for V4LDev::
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] |
|
Factory method that creates a V4LDev for the specified device file.
|
|
Returns true iff this device is a camera.
Reimplemented in V4LCamera. |
|
Returns true iff this device is a tuner.
Reimplemented in V4LTuner. |
|
h = -1 => use aspect ratio.
|