OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

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.

List of all members.

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:

Definition at line 58 of file VideoSink.h.


Constructor & Destructor Documentation

VideoSink::VideoSink  ) 
 

constructor

Definition at line 47 of file VideoSink.cxx.

References internalFormat, isStarted, openvideo::Node::name, size_subscribers, and openvideo::Node::typeName.

VideoSink::~VideoSink  ) 
 

destructor

Definition at line 71 of file VideoSink.cxx.


Member Function Documentation

void VideoSink::init  )  [virtual]
 

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.

void VideoSink::initPixelFormats  )  [virtual]
 

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.

void VideoSink::postProcess  )  [virtual]
 

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.

void VideoSink::process  )  [virtual]
 

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.

void VideoSink::subscribe VideoSinkSubscriber aSubscriber  ) 
 

Definition at line 109 of file VideoSink.cxx.

References size_subscribers, and subsrcibers.

Referenced by TestWinCE::OnInitialize().


Member Data Documentation

int openvideo::VideoSink::internalFormat [protected]
 

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().

bool openvideo::VideoSink::isStarted
 

indicated whether the sink is started or not.

Definition at line 86 of file VideoSink.h.

Referenced by init(), and VideoSink().

int openvideo::VideoSink::size_subscribers [protected]
 

Definition at line 98 of file VideoSink.h.

Referenced by process(), subscribe(), and VideoSink().

std::vector<VideoSinkSubscriber*> openvideo::VideoSink::subsrcibers [protected]
 

Definition at line 97 of file VideoSink.h.

Referenced by process(), and subscribe().


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:18 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org