#include <v4l.h>
Inheritance diagram for V4LCapability:


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 |
Definition at line 72 of file v4l.h.
|
|
Definition at line 76 of file v4l.cc. References V4LDevice::request(). 00077 {
00078 device->request( VIDIOCGCAP, this );
00079 }
|
|
|
Definition at line 81 of file v4l.cc. 00082 {
00083 cout << "Closing Capability" << endl;
00084 }
|
|
|
Definition at line 126 of file v4l.cc. References capability. 00127 {
00128 return capability.type & VID_TYPE_CAPTURE;
00129 }
|
|
|
Definition at line 161 of file v4l.cc. References capability. 00162 {
00163 return capability.type & VID_TYPE_SUBCAPTURE;
00164 }
|
|
|
Definition at line 121 of file v4l.cc. References capability. Referenced by report(), and V4L::setCaptureResolution(). 00122 {
00123 return capability.maxheight;
00124 }
|
|
|
Definition at line 116 of file v4l.cc. References capability. Referenced by report(), and V4L::setCaptureResolution(). 00117 {
00118 return capability.maxwidth;
00119 }
|
|
|
Definition at line 111 of file v4l.cc. References capability. Referenced by report(), and V4L::setCaptureResolution(). 00112 {
00113 return capability.minheight;
00114 }
|
|
|
Definition at line 106 of file v4l.cc. References capability. Referenced by report(), and V4L::setCaptureResolution(). 00107 {
00108 return capability.minwidth;
00109 }
|
|
|
Definition at line 91 of file v4l.cc. References capability. Referenced by report(). 00092 {
00093 return capability.name;
00094 }
|
|
|
Definition at line 101 of file v4l.cc. References capability. Referenced by report(). 00102 {
00103 return capability.audios;
00104 }
|
|
|
Definition at line 96 of file v4l.cc. References capability. Referenced by report(). 00097 {
00098 return capability.channels;
00099 }
|
|
|
Implements V4LStruct. Definition at line 86 of file v4l.cc. References capability. 00087 {
00088 return & capability;
00089 }
|
|
|
Definition at line 136 of file v4l.cc. References capability. 00137 {
00138 return capability.type & VID_TYPE_CHROMAKEY;
00139 }
|
|
|
Definition at line 141 of file v4l.cc. References capability. 00142 {
00143 return capability.type & VID_TYPE_CLIPPING;
00144 }
|
|
|
Definition at line 146 of file v4l.cc. References capability. 00147 {
00148 return capability.type & VID_TYPE_FRAMERAM;
00149 }
|
|
|
Definition at line 151 of file v4l.cc. References capability. Referenced by V4L::setCaptureResolution(). 00152 {
00153 return capability.type & VID_TYPE_SCALES;
00154 }
|
|
|
Definition at line 131 of file v4l.cc. References capability. 00132 {
00133 return capability.type & VID_TYPE_TUNER;
00134 }
|
|
|
Definition at line 156 of file v4l.cc. References capability. 00157 {
00158 return capability.type & VID_TYPE_MONOCHROME;
00159 }
|
|
|
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 }
|
|
|
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(). |
1.4.2