openvideo::ImageSrc Class Reference
#include <ImageSrc.h>
Inherits openvideo::Node.
Public Member Functions | |
| ImageSrc () | |
| ~ImageSrc () | |
| virtual void | nextImage () |
| 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 | |
| int | numBuffers |
| unsigned int | updateCtr |
| size_t | curIdx |
| int | width |
| int | height |
| std::vector< std::string > | fileNames |
| float | delay |
| bool | manual |
| bool | doNextPic |
| ACE_Time_Value * | lastUpdate |
Constructor & Destructor Documentation
|
|
Definition at line 144 of file ImageSrc.cxx. References curIdx, delay, doNextPic, height, lastUpdate, manual, openvideo::Node::name, numBuffers, openvideo::Node::typeName, updateCtr, and width. |
|
|
Definition at line 158 of file ImageSrc.cxx. References lastUpdate, 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 177 of file ImageSrc.cxx. References openvideo::State::clear(), openvideo::convertRGB24toRGB565(), openvideo::Node::curPixelFormat, fileNames, openvideo::flipImage(), openvideo::State::format, openvideo::Manager::getInstance(), height, openvideo::State::height, lastUpdate, openvideo::Node::state, width, and openvideo::State::width. |
|
|
return value = the number of supported input formats. the formats are stored in 'pixelFormats'. Implements openvideo::Node. Definition at line 169 of file ImageSrc.cxx. References openvideo::FORMAT_R5G6B5, openvideo::FORMAT_R8G8B8, and openvideo::Node::pixelFormats. |
|
|
This method must be used to switch to the next image in manual mode. In delay mode it can be used to immediately switch to the next image. Delay restarts then. Definition at line 72 of file ImageSrc.h. |
|
|
releases the videoframe (which was previously locked by the process function.
Reimplemented from openvideo::Node. Definition at line 275 of file ImageSrc.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 248 of file ImageSrc.cxx. |
|
|
Updates the video frame at its context object.
Reimplemented from openvideo::Node. Definition at line 254 of file ImageSrc.cxx. References curIdx, delay, doNextPic, lastUpdate, manual, openvideo::ImageSrcBuffer::setUpdateCtr(), openvideo::Node::state, and updateCtr. |
|
||||||||||||
|
Sets all relevant parameters.
Reimplemented from openvideo::Node. Definition at line 281 of file ImageSrc.cxx. References delay, fileNames, height, manual, openvideo::Node::setParameter(), and width. |
Member Data Documentation
|
|
Definition at line 101 of file ImageSrc.h. Referenced by ImageSrc(), and process(). |
|
|
Definition at line 104 of file ImageSrc.h. Referenced by ImageSrc(), process(), and setParameter(). |
|
|
Definition at line 105 of file ImageSrc.h. Referenced by ImageSrc(), and process(). |
|
|
Definition at line 103 of file ImageSrc.h. Referenced by init(), and setParameter(). |
|
|
Definition at line 102 of file ImageSrc.h. Referenced by ImageSrc(), init(), and setParameter(). |
|
|
Definition at line 106 of file ImageSrc.h. Referenced by ImageSrc(), init(), process(), and ~ImageSrc(). |
|
|
Definition at line 105 of file ImageSrc.h. Referenced by ImageSrc(), process(), and setParameter(). |
|
|
Definition at line 99 of file ImageSrc.h. Referenced by ImageSrc(). |
|
|
Definition at line 100 of file ImageSrc.h. Referenced by ImageSrc(), and process(). |
|
|
Definition at line 102 of file ImageSrc.h. Referenced by ImageSrc(), init(), and setParameter(). |
The documentation for this class was generated from the following files:
