OpenVideo Documentation

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

openvideo::ImageSrc Class Reference

#include <ImageSrc.h>

Inherits openvideo::Node.

List of all members.

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

openvideo::ImageSrc::ImageSrc  ) 
 

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.

openvideo::ImageSrc::~ImageSrc  ) 
 

Definition at line 158 of file ImageSrc.cxx.

References lastUpdate, openvideo::Node::state, and openvideo::State::unlockAllBuffers().


Member Function Documentation

void openvideo::ImageSrc::init  )  [virtual]
 

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.

void openvideo::ImageSrc::initPixelFormats  )  [virtual]
 

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.

virtual void openvideo::ImageSrc::nextImage  )  [inline, virtual]
 

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.

void openvideo::ImageSrc::postProcess  )  [virtual]
 

releases the videoframe (which was previously locked by the process function.

Reimplemented from openvideo::Node.

Definition at line 275 of file ImageSrc.cxx.

void openvideo::ImageSrc::preProcess  )  [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 248 of file ImageSrc.cxx.

void openvideo::ImageSrc::process  )  [virtual]
 

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.

bool openvideo::ImageSrc::setParameter std::string  key,
std::string  value
[virtual]
 

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

size_t openvideo::ImageSrc::curIdx [protected]
 

Definition at line 101 of file ImageSrc.h.

Referenced by ImageSrc(), and process().

float openvideo::ImageSrc::delay [protected]
 

Definition at line 104 of file ImageSrc.h.

Referenced by ImageSrc(), process(), and setParameter().

bool openvideo::ImageSrc::doNextPic [protected]
 

Definition at line 105 of file ImageSrc.h.

Referenced by ImageSrc(), and process().

std::vector<std::string> openvideo::ImageSrc::fileNames [protected]
 

Definition at line 103 of file ImageSrc.h.

Referenced by init(), and setParameter().

int openvideo::ImageSrc::height [protected]
 

Definition at line 102 of file ImageSrc.h.

Referenced by ImageSrc(), init(), and setParameter().

ACE_Time_Value* openvideo::ImageSrc::lastUpdate [protected]
 

Definition at line 106 of file ImageSrc.h.

Referenced by ImageSrc(), init(), process(), and ~ImageSrc().

bool openvideo::ImageSrc::manual [protected]
 

Definition at line 105 of file ImageSrc.h.

Referenced by ImageSrc(), process(), and setParameter().

int openvideo::ImageSrc::numBuffers [protected]
 

Definition at line 99 of file ImageSrc.h.

Referenced by ImageSrc().

unsigned int openvideo::ImageSrc::updateCtr [protected]
 

Definition at line 100 of file ImageSrc.h.

Referenced by ImageSrc(), and process().

int openvideo::ImageSrc::width [protected]
 

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:
 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