openvideo::DSVLSrc Class Reference
#include <DSVLSrc.h>
Inherits openvideo::Node.
Public Types | |
| enum | { MAX_BUFFERS = 10 } |
Public Member Functions | |
| DSVLSrc () | |
| ~DSVLSrc () | |
| virtual bool | setParameter (std::string key, std::string value) |
| virtual void | init () |
| virtual void | process () |
| virtual void | postProcess () |
| virtual void | preProcess () |
| virtual void | initPixelFormats () |
Protected Attributes | |
| std::string | configFileName |
| DSVL_VideoSource * | dsvlSource |
| bool | flipV |
| int | numBuffers |
| unsigned int | updateCtr |
Member Enumeration Documentation
|
|
|
Constructor & Destructor Documentation
|
|
Definition at line 232 of file DSVLSrc.cxx. References dsvlSource, flipV, openvideo::Node::name, numBuffers, openvideo::Node::typeName, and updateCtr. |
|
|
Definition at line 242 of file DSVLSrc.cxx. References dsvlSource, openvideo::Node::state, and openvideo::State::unlockAllBuffers(). |
Member Function Documentation
|
|
This function calls initializes the DSVL. it then opens and starts the video stream. Finally it creates a new context where it puts the video specific data on. Reimplemented from openvideo::Node. Definition at line 262 of file DSVLSrc.cxx. References openvideo::State::clear(), configFileName, openvideo::Node::curPixelFormat, dsvlSource, flipV, openvideo::State::format, openvideo::FORMAT_B8G8R8, openvideo::PixelFormat::FormatToString(), openvideo::getDSVLPixelFormatString(), openvideo::Manager::getInstance(), openvideo::State::height, numBuffers, openvideo::Node::state, and openvideo::State::width. |
|
|
return value = the number of supported input formats. the formats are stored in 'pixelFormats'. Implements openvideo::Node. Definition at line 254 of file DSVLSrc.cxx. References openvideo::FORMAT_B8G8R8, openvideo::FORMAT_R5G6B5, and openvideo::Node::pixelFormats. |
|
|
releases the videoframe (which was previously locked by the process function.
Reimplemented from openvideo::Node. Definition at line 370 of file DSVLSrc.cxx. |
|
|
This function is called after OpenVideo's graph is entirely traversed and before a new traversal is invoked. Here, a specific node implementation can reset some data before a new traversal will take place. Reimplemented from openvideo::Node. Definition at line 332 of file DSVLSrc.cxx. |
|
|
Updates the video frame at its context object.
Reimplemented from openvideo::Node. Definition at line 338 of file DSVLSrc.cxx. References openvideo::State::findFreeBuffer(), openvideo::Manager::getInstance(), openvideo::DSVLSrcBuffer::getNewFrame(), openvideo::Buffer::getPixels(), openvideo::Node::state, and updateCtr. |
|
||||||||||||
|
Sets all relevant parameters.
Reimplemented from openvideo::Node. Definition at line 376 of file DSVLSrc.cxx. References configFileName, flipV, MAX_BUFFERS, numBuffers, and openvideo::Node::setParameter(). |
Member Data Documentation
|
|
name of the DSVL config file
Definition at line 96 of file DSVLSrc.h. Referenced by init(), and setParameter(). |
|
|
Definition at line 99 of file DSVLSrc.h. Referenced by DSVLSrc(), init(), and ~DSVLSrc(). |
|
|
Definition at line 101 of file DSVLSrc.h. Referenced by DSVLSrc(), init(), and setParameter(). |
|
|
Definition at line 102 of file DSVLSrc.h. Referenced by DSVLSrc(), init(), and setParameter(). |
|
|
|
The documentation for this class was generated from the following files:
