Inheritance diagram for vetVideo4Linux:

Public Member Functions | |
| vetVideo4Linux (char *inputFile="/dev/video0") | |
| Default constructor initializes variables and connect. to device if asked. | |
| ~vetVideo4Linux () | |
| Default destructor, disconnect device and delete buffer. | |
| VETRESULT | connect (char *inputFile="/dev/video0") |
| Connect to device. | |
| VETRESULT | disconnect () |
| Disconnect from current device. | |
| bool | EoF () |
| Get the state of current data source. | |
| VETRESULT | reset () |
| Disconnect and reset the module. | |
| int | getColorDepth () |
| Read color depth for selected stream. | |
| int | getSize () |
| Read pixel count. | |
| unsigned int | getWidth () const |
| Read current image's width. | |
| unsigned int | getHeight () const |
| Read current image's height. | |
| int | getPalette () |
| Read color palette for current stream. | |
| int | getVideoChannelCount () |
| Get movie's video streams count. | |
| int | getAudioChannelCount () |
| Get movie's audio streams count. | |
| int | getBrightness () |
| Get current video brightness. | |
| void | setBrightness (int value) |
| Set current video brightness. | |
| int | getContrast () |
| Get current video contrast. | |
| void | setContrast (int value) |
| Set current video contrast. | |
| int | getHue () |
| Get current video hue. | |
| void | setHue (int value) |
| Set current video hue. | |
| int | getColour () |
| Get current video color. | |
| void | setColour (int value) |
| Set current video colour. | |
| int | getWhiteness () |
| Get current video whiteness. | |
| void | setWhiteness (int value) |
| Set current video whiteness. | |
| unsigned char * | dump_buffer () |
| Get video buffer address, deprecated. | |
| VETRESULT | extractTo (vetFrameYUV420 &img) |
| Grab a frame and copy to VETLib standard format. | |
| VETRESULT | extractTo (vetFrameRGB24 &img) |
| Grab a frame and copy to VETLib standard format. | |
| VETRESULT | extractTo (vetFrameT< unsigned char > &img) |
| Grab a frame and copy to VETLib standard format. | |
Protected Attributes | |
| unsigned char * | videoBuffer |
| single frame BGR buffer (24bpp) | |
| int | bpp |
| Bits per pixel value. | |
| int | fd |
| device state (disconnected = -1) | |
| unsigned int | src_depth |
| video depth | |
| video_capability | cap |
| Capture stream informations. | |
| video_window | win |
| Frame informations (width, height, ..). | |
| video_picture | vpic |
| Capture settings (contrast, brightness, ..). | |
Definition at line 44 of file vetVideo4Linux.h.
|
|
Default constructor initializes variables and connect. to device if asked.
Definition at line 35 of file vetVideo4Linux.cpp. References connect(), fd, reset(), and videoBuffer. |
|
|
Connect to device.
Definition at line 59 of file vetVideo4Linux.cpp. References bpp, cap, fd, VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, VETRET_OK, VETRET_PARAM_ERR, videoBuffer, vpic, and win. Referenced by vetVideo4Linux(). |
|
|
Disconnect from current device.
Definition at line 152 of file vetVideo4Linux.cpp. References fd, VETRET_ILLEGAL_USE, VETRET_OK, vpic, and win. Referenced by reset(), and ~vetVideo4Linux(). |
|
|
Get video buffer address, deprecated.
Definition at line 258 of file vetVideo4Linux.h. References videoBuffer. |
|
|
Get the state of current data source.
Implements vetInput. Definition at line 195 of file vetVideo4Linux.cpp. References fd. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 296 of file vetVideo4Linux.cpp. References vetUtility::conv_bgr_rgb(), vetFrameT< T >::data, fd, vetFrameT< T >::height, vetFrameT< T >::profile, vetFrameT< T >::reAllocCanvas(), VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, VETRET_NOT_IMPLEMENTED, VETRET_OK, videoBuffer, vpic, vetFrameT< T >::width, and win. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 254 of file vetVideo4Linux.cpp. References vetUtility::conv_bgr_rgb(), vetFrameRGB24::data, fd, vetFrame::height, vetFrameRGB24::reAllocCanvas(), VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, VETRET_NOT_IMPLEMENTED, VETRET_OK, videoBuffer, vpic, vetFrame::width, and win. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 216 of file vetVideo4Linux.cpp. References fd, vetFrame::height, vetFrameYUV420::reAllocCanvas(), VETRET_ILLEGAL_USE, VETRET_NOT_IMPLEMENTED, VETRET_OK, vpic, vetFrame::width, and win. |
|
|
Get movie's audio streams count.
Definition at line 178 of file vetVideo4Linux.h. |
|
|
Get current video brightness.
Definition at line 185 of file vetVideo4Linux.h. |
|
|
Read color depth for selected stream.
Definition at line 137 of file vetVideo4Linux.h. References bpp. |
|
|
Get current video color.
Definition at line 227 of file vetVideo4Linux.h. |
|
|
Get current video contrast.
Definition at line 199 of file vetVideo4Linux.h. |
|
|
Read current image's height.
Implements vetInput. Definition at line 157 of file vetVideo4Linux.h. |
|
|
Get current video hue.
Definition at line 213 of file vetVideo4Linux.h. |
|
|
Read color palette for current stream.
Definition at line 164 of file vetVideo4Linux.h. |
|
|
Read pixel count.
Definition at line 144 of file vetVideo4Linux.h. |
|
|
Get movie's video streams count.
Definition at line 171 of file vetVideo4Linux.h. |
|
|
Get current video whiteness.
Definition at line 241 of file vetVideo4Linux.h. |
|
|
Read current image's width.
Implements vetInput. Definition at line 151 of file vetVideo4Linux.h. |
|
|
Disconnect and reset the module.
Implements vetInput. Definition at line 172 of file vetVideo4Linux.cpp. References disconnect(), fd, VETRET_OK, videoBuffer, vpic, and win. Referenced by vetVideo4Linux(). |
|
|
Set current video brightness.
Definition at line 192 of file vetVideo4Linux.h. |
|
|
Set current video colour.
Definition at line 234 of file vetVideo4Linux.h. |
|
|
Set current video contrast.
Definition at line 206 of file vetVideo4Linux.h. |
|
|
Set current video hue.
Definition at line 220 of file vetVideo4Linux.h. |
|
|
Set current video whiteness.
Definition at line 248 of file vetVideo4Linux.h. |
1.4.4