openvideo::VideoSink Class Reference
[Node Classes]
This node implements an publish-subsribers pattern to pass the video to any number of registered consumers.
More...
#include <VideoSink.h>
Inherits openvideo::Node.
Public Member Functions | |
| VideoSink () | |
| ~VideoSink () | |
| virtual void | init () |
| virtual void | process () |
| virtual void | postProcess () |
| virtual void | initPixelFormats () |
| void | subscribe (VideoSinkSubscriber *aSubscriber) |
Public Attributes | |
| bool | isStarted |
Protected Attributes | |
| int | internalFormat |
| std::vector< VideoSinkSubscriber * > | subsrcibers |
| int | size_subscribers |
Detailed Description
This node implements an publish-subsribers pattern to pass the video to any number of registered consumers.The node can be used to integrate an OpenVideo sink into another programm.
Supported Pixel Formats:
- : R8G8B8
- : B8G8R8
- : R8G8B8X8
- : B8G8R8X8
- : L8
Definition at line 58 of file VideoSink.h.
Constructor & Destructor Documentation
|
|
constructor
Definition at line 47 of file VideoSink.cxx. References internalFormat, isStarted, openvideo::Node::name, size_subscribers, and openvideo::Node::typeName. |
|
|
destructor
Definition at line 71 of file VideoSink.cxx. |
Member Function Documentation
|
|
Is called once before the (process)traversal starts. Init should be used to implement any initializations a specific node needs. Reimplemented from openvideo::Node. Definition at line 78 of file VideoSink.cxx. References openvideo::Node::inputs, isStarted, and openvideo::Node::state. |
|
|
return value = the number of supported input formats. the formats are stored in 'pixelFormats'. Implements openvideo::Node. Definition at line 56 of file VideoSink.cxx. References openvideo::FORMAT_B8G8R8, openvideo::FORMAT_B8G8R8X8, openvideo::FORMAT_L8, openvideo::FORMAT_R5G6B5, openvideo::FORMAT_R8G8B8, openvideo::FORMAT_R8G8B8X8, and openvideo::Node::pixelFormats. |
|
|
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 97 of file VideoSink.cxx. |
|
|
This is the actual traversal fucntion. Process is called whenever a new traversal is invoked by the managers timer. A specific node implementation should do all its computations which need to be updated here. Reimplemented from openvideo::Node. Definition at line 88 of file VideoSink.cxx. References size_subscribers, openvideo::Node::state, and subsrcibers. |
|
|
Definition at line 109 of file VideoSink.cxx. References size_subscribers, and subsrcibers. Referenced by TestWinCE::OnInitialize(). |
Member Data Documentation
|
|
Internal texture format. defines the number of color components in the texture. valid values = 1,2,3, or 4. Definition at line 95 of file VideoSink.h. Referenced by VideoSink(). |
|
|
indicated whether the sink is started or not.
Definition at line 86 of file VideoSink.h. Referenced by init(), and VideoSink(). |
|
|
Definition at line 98 of file VideoSink.h. Referenced by process(), subscribe(), and VideoSink(). |
|
|
Definition at line 97 of file VideoSink.h. Referenced by process(), and subscribe(). |
The documentation for this class was generated from the following files:
