Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

V4LCapability Class Reference

Wrapping for the V4L capabilities structure. More...

#include <v4l.h>

Inheritance diagram for V4LCapability:

Inheritance graph
[legend]
Collaboration diagram for V4LCapability:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 V4LCapability (V4LDevice *device)
virtual ~V4LCapability ()
void * getStruct ()
char * getName ()
int getNumberOfChannels ()
int getNumberOfAudioDevices ()
int getMinWidth ()
int getMinHeight ()
int getMaxWidth ()
int getMaxHeight ()
bool canCapture ()
bool hasTuner ()
bool hasChromakey ()
bool hasClipping ()
bool hasOverwrite ()
bool hasScaling ()
bool isMonochrome ()
bool canSubCapture ()
void report ()

Private Attributes

video_capability capability

Detailed Description

Wrapping for the V4L capabilities structure.

Definition at line 72 of file v4l.h.


Constructor & Destructor Documentation

V4LCapability::V4LCapability V4LDevice device  ) 
 

Definition at line 76 of file v4l.cc.

References V4LDevice::request().

00077 {
00078     device->request( VIDIOCGCAP, this );
00079 }

V4LCapability::~V4LCapability  )  [virtual]
 

Definition at line 81 of file v4l.cc.

00082 {
00083     cout << "Closing Capability" << endl;
00084 }


Member Function Documentation

bool V4LCapability::canCapture  ) 
 

Definition at line 126 of file v4l.cc.

References capability.

00127 {
00128     return capability.type & VID_TYPE_CAPTURE;
00129 }

bool V4LCapability::canSubCapture  ) 
 

Definition at line 161 of file v4l.cc.

References capability.

00162 {
00163     return capability.type & VID_TYPE_SUBCAPTURE;
00164 }

int V4LCapability::getMaxHeight  ) 
 

Definition at line 121 of file v4l.cc.

References capability.

Referenced by report(), and V4L::setCaptureResolution().

00122 {
00123     return capability.maxheight;
00124 }

int V4LCapability::getMaxWidth  ) 
 

Definition at line 116 of file v4l.cc.

References capability.

Referenced by report(), and V4L::setCaptureResolution().

00117 {
00118     return capability.maxwidth;
00119 }

int V4LCapability::getMinHeight  ) 
 

Definition at line 111 of file v4l.cc.

References capability.

Referenced by report(), and V4L::setCaptureResolution().

00112 {
00113     return capability.minheight;
00114 }

int V4LCapability::getMinWidth  ) 
 

Definition at line 106 of file v4l.cc.

References capability.

Referenced by report(), and V4L::setCaptureResolution().

00107 {
00108     return capability.minwidth;
00109 }

char * V4LCapability::getName  ) 
 

Definition at line 91 of file v4l.cc.

References capability.

Referenced by report().

00092 {
00093     return capability.name;
00094 }

int V4LCapability::getNumberOfAudioDevices  ) 
 

Definition at line 101 of file v4l.cc.

References capability.

Referenced by report().

00102 {
00103     return capability.audios;
00104 }

int V4LCapability::getNumberOfChannels  ) 
 

Definition at line 96 of file v4l.cc.

References capability.

Referenced by report().

00097 {
00098     return capability.channels;
00099 }

void * V4LCapability::getStruct  )  [virtual]
 

Implements V4LStruct.

Definition at line 86 of file v4l.cc.

References capability.

00087 {
00088     return & capability;
00089 }

bool V4LCapability::hasChromakey  ) 
 

Definition at line 136 of file v4l.cc.

References capability.

00137 {
00138     return capability.type & VID_TYPE_CHROMAKEY;
00139 }

bool V4LCapability::hasClipping  ) 
 

Definition at line 141 of file v4l.cc.

References capability.

00142 {
00143     return capability.type & VID_TYPE_CLIPPING;
00144 }

bool V4LCapability::hasOverwrite  ) 
 

Definition at line 146 of file v4l.cc.

References capability.

00147 {
00148     return capability.type & VID_TYPE_FRAMERAM;
00149 }

bool V4LCapability::hasScaling  ) 
 

Definition at line 151 of file v4l.cc.

References capability.

Referenced by V4L::setCaptureResolution().

00152 {
00153     return capability.type & VID_TYPE_SCALES;
00154 }

bool V4LCapability::hasTuner  ) 
 

Definition at line 131 of file v4l.cc.

References capability.

00132 {
00133     return capability.type & VID_TYPE_TUNER;
00134 }

bool V4LCapability::isMonochrome  ) 
 

Definition at line 156 of file v4l.cc.

References capability.

00157 {
00158     return capability.type & VID_TYPE_MONOCHROME;
00159 }

void V4LCapability::report  ) 
 

Definition at line 166 of file v4l.cc.

References getMaxHeight(), getMaxWidth(), getMinHeight(), getMinWidth(), getName(), getNumberOfAudioDevices(), and getNumberOfChannels().

Referenced by V4L::report().

00167 {
00168     cout << ">>> Name     : " << this->getName() << endl;
00169     cout << ">>> Channels : " << this->getNumberOfChannels() << endl;
00170     cout << ">>> Audio    : " << this->getNumberOfAudioDevices() << endl;
00171     cout << ">>> Min Size : " << this->getMinWidth() << "," << this->getMinHeight() << endl;
00172     cout << ">>> Max Size : " << this->getMaxWidth() << "," << this->getMaxHeight() << endl;
00173     cout << ">>> Functions: " << endl;
00174     if ( this->canCapture() )
00175         cout << "     + Can capture to memory" << endl;
00176     if ( this->hasTuner() )
00177         cout << "     + Has a Tuner" << endl;
00178     if ( this->hasChromakey() )
00179         cout << "       with Chromakey" << endl;
00180     if ( this->hasClipping() )
00181         cout << "       with Clipping" << endl;
00182     if ( this->hasOverwrite() )
00183         cout << "       overwrites buffer memory" << endl;
00184     if ( this->hasScaling() )
00185         cout << "     + Has hardware support for image scaling" << endl;
00186     if ( this->isMonochrome() )
00187         cout << "     - Monochrome only" << endl;
00188     if ( this->canSubCapture() )
00189         cout << "     + Can capture part of the image" << endl;
00190 }


Member Data Documentation

struct video_capability V4LCapability::capability [private]
 

Definition at line 75 of file v4l.h.

Referenced by canCapture(), canSubCapture(), getMaxHeight(), getMaxWidth(), getMinHeight(), getMinWidth(), getName(), getNumberOfAudioDevices(), getNumberOfChannels(), getStruct(), hasChromakey(), hasClipping(), hasOverwrite(), hasScaling(), hasTuner(), and isMonochrome().


The documentation for this class was generated from the following files:
Generated on Sun Mar 11 22:13:27 2007 for Kino by  doxygen 1.4.2