OpenVideo Documentation

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

openvideo::DSVLSrc Class Reference

#include <DSVLSrc.h>

Inherits openvideo::Node.

List of all members.

Public Types

enum  { MAX_BUFFERS = 10 }

Public Member Functions

 DSVLSrc ()
 ~DSVLSrc ()
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

std::string configFileName
DSVL_VideoSource * dsvlSource
bool flipV
int numBuffers
unsigned int updateCtr


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
MAX_BUFFERS 

Definition at line 56 of file DSVLSrc.h.


Constructor & Destructor Documentation

openvideo::DSVLSrc::DSVLSrc  ) 
 

Definition at line 232 of file DSVLSrc.cxx.

References dsvlSource, flipV, openvideo::Node::name, numBuffers, openvideo::Node::typeName, and updateCtr.

openvideo::DSVLSrc::~DSVLSrc  ) 
 

Definition at line 242 of file DSVLSrc.cxx.

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


Member Function Documentation

void openvideo::DSVLSrc::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 262 of file DSVLSrc.cxx.

References openvideo::State::clear(), configFileName, openvideo::Node::curPixelFormat, dsvlSource, flipV, openvideo::State::format, openvideo::FORMAT_B8G8R8, openvideo::PixelFormat::FormatToString(), openvideo::getDSVLPixelFormatString(), openvideo::Manager::getInstance(), openvideo::State::height, numBuffers, openvideo::Node::state, and openvideo::State::width.

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

return value = the number of supported input formats.

the formats are stored in 'pixelFormats'.

Implements openvideo::Node.

Definition at line 254 of file DSVLSrc.cxx.

References openvideo::FORMAT_B8G8R8, openvideo::FORMAT_R5G6B5, and openvideo::Node::pixelFormats.

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

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

Reimplemented from openvideo::Node.

Definition at line 370 of file DSVLSrc.cxx.

void openvideo::DSVLSrc::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 332 of file DSVLSrc.cxx.

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

Updates the video frame at its context object.

Reimplemented from openvideo::Node.

Definition at line 338 of file DSVLSrc.cxx.

References openvideo::State::findFreeBuffer(), openvideo::Manager::getInstance(), openvideo::DSVLSrcBuffer::getNewFrame(), openvideo::Buffer::getPixels(), openvideo::Node::state, and updateCtr.

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

Sets all relevant parameters.

Reimplemented from openvideo::Node.

Definition at line 376 of file DSVLSrc.cxx.

References configFileName, flipV, MAX_BUFFERS, numBuffers, and openvideo::Node::setParameter().


Member Data Documentation

std::string openvideo::DSVLSrc::configFileName [protected]
 

name of the DSVL config file

Definition at line 96 of file DSVLSrc.h.

Referenced by init(), and setParameter().

DSVL_VideoSource* openvideo::DSVLSrc::dsvlSource [protected]
 

Definition at line 99 of file DSVLSrc.h.

Referenced by DSVLSrc(), init(), and ~DSVLSrc().

bool openvideo::DSVLSrc::flipV [protected]
 

Definition at line 101 of file DSVLSrc.h.

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

int openvideo::DSVLSrc::numBuffers [protected]
 

Definition at line 102 of file DSVLSrc.h.

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

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

Definition at line 103 of file DSVLSrc.h.

Referenced by DSVLSrc(), and process().


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