openvideo::TestSrc Class Reference
[Node Classes]
TestSrc implements an 320x240 image with a white background where a red,blue and green square moves on.
More...
#include <TestSrc.h>
Inherits openvideo::Node.
Public Member Functions | |
| TestSrc () | |
| virtual | ~TestSrc () |
| virtual void | init () |
| virtual void | process () |
| virtual void | initPixelFormats () |
Protected Attributes | |
| int | width |
| int | height |
| int | posX |
| int | posY |
Detailed Description
TestSrc implements an 320x240 image with a white background where a red,blue and green square moves on.This node is used to test OpenVideo's environment with any input stream comming from a camera.
Definition at line 46 of file TestSrc.h.
Constructor & Destructor Documentation
|
|
constructor. creates a new context and allocates memory for the image. Definition at line 82 of file TestSrc.cxx. References height, openvideo::Node::name, openvideo::Node::state, openvideo::Node::typeName, and width. |
|
|
Definition at line 91 of file TestSrc.cxx. References openvideo::Node::state. |
Member Function Documentation
|
|
clears the image and sets the widht and height onto its context.
Reimplemented from openvideo::Node. Definition at line 106 of file TestSrc.cxx. References openvideo::State::clear(), openvideo::Manager::getInstance(), height, openvideo::State::height, posX, posY, 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 99 of file TestSrc.cxx. References openvideo::FORMAT_B8G8R8, openvideo::FORMAT_R8G8B8, and openvideo::Node::pixelFormats. |
|
|
updates the image by moving the three squares by one pixel.
Reimplemented from openvideo::Node. Definition at line 128 of file TestSrc.cxx. References openvideo::State::findFreeBuffer(), openvideo::Manager::getInstance(), openvideo::Buffer::getPixels(), height, openvideo::TestSrcBuffer::incUpdateCounter(), posX, posY, openvideo::Node::state, and width. |
Member Data Documentation
|
|
image widht and height
|
|
|
current square position.
|
|
|
current square position.
|
|
|
image widht and height
|
The documentation for this class was generated from the following files:
