OpenVideo Documentation

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

openvideo::Buffer Class Reference

#include <State.h>

Inherited by openvideo::DSVLSrcBuffer, openvideo::ImageSrcBuffer, openvideo::TestSrcBuffer, openvideo::V4L2SrcBuffer, and openvideo::VideoWrapperSrcBuffer.

List of all members.

Public Member Functions

 Buffer ()
virtual ~Buffer ()
virtual const unsigned char * getPixels () const
virtual int getWidth () const
virtual int getHeight () const
virtual PIXEL_FORMAT getFormat () const
virtual int getLockCounter () const
virtual void lock ()
virtual void unlock ()
virtual bool isLocked () const
virtual unsigned int getUpdateCounter () const

Protected Attributes

unsigned char * buffer
int lockCtr
unsigned int updateCtr
ACE_Thread_Mutex * mutex
int width
int height
PIXEL_FORMAT format


Constructor & Destructor Documentation

openvideo::Buffer::Buffer  ) 
 

Definition at line 41 of file State.cxx.

References format, openvideo::FORMAT_UNKNOWN, height, lockCtr, mutex, updateCtr, and width.

openvideo::Buffer::~Buffer  )  [virtual]
 

Definition at line 51 of file State.cxx.

References mutex.


Member Function Documentation

virtual PIXEL_FORMAT openvideo::Buffer::getFormat  )  const [inline, virtual]
 

Definition at line 68 of file State.h.

virtual int openvideo::Buffer::getHeight  )  const [inline, virtual]
 

Definition at line 66 of file State.h.

References height.

virtual int openvideo::Buffer::getLockCounter  )  const [inline, virtual]
 

Definition at line 70 of file State.h.

virtual const unsigned char* openvideo::Buffer::getPixels  )  const [inline, virtual]
 

Definition at line 62 of file State.h.

Referenced by openvideo::TestSrc::process(), openvideo::GL_TEXTURE_2D_Sink::process(), openvideo::DSVLSrc::process(), openvideo::V4L2Src::processImage(), and openvideo::GLUTSink::updateTexture().

virtual unsigned int openvideo::Buffer::getUpdateCounter  )  const [inline, virtual]
 

Definition at line 78 of file State.h.

Referenced by openvideo::GLUTSink::updateTexture().

virtual int openvideo::Buffer::getWidth  )  const [inline, virtual]
 

Definition at line 64 of file State.h.

References width.

virtual bool openvideo::Buffer::isLocked  )  const [inline, virtual]
 

Definition at line 76 of file State.h.

void openvideo::Buffer::lock  )  [virtual]
 

Definition at line 59 of file State.cxx.

References lockCtr, and mutex.

Referenced by openvideo::BufferSynchronizer::assign(), openvideo::BufferSynchronizer::getLocked(), and openvideo::GL_TEXTURE_2D_Sink::process().

void openvideo::Buffer::unlock  )  [virtual]
 

Definition at line 68 of file State.cxx.

References lockCtr, and mutex.

Referenced by openvideo::BufferSynchronizer::assign(), openvideo::GL_TEXTURE_2D_Sink::process(), openvideo::GLUTSink::updateTexture(), and openvideo::BufferSynchronizer::~BufferSynchronizer().


Member Data Documentation

unsigned char* openvideo::Buffer::buffer [protected]
 

Definition at line 81 of file State.h.

Referenced by openvideo::VideoWrapperSrcBuffer::getNewFrame(), openvideo::DSVLSrcBuffer::getNewFrame(), openvideo::ImageSrcBuffer::ImageSrcBuffer(), openvideo::TestSrcBuffer::TestSrcBuffer(), openvideo::V4L2SrcBuffer::V4L2SrcBuffer(), openvideo::VideoWrapperSrcBuffer::VideoWrapperSrcBuffer(), openvideo::ImageSrcBuffer::~ImageSrcBuffer(), openvideo::TestSrcBuffer::~TestSrcBuffer(), openvideo::V4L2SrcBuffer::~V4L2SrcBuffer(), and openvideo::VideoWrapperSrcBuffer::~VideoWrapperSrcBuffer().

PIXEL_FORMAT openvideo::Buffer::format [protected]
 

Definition at line 86 of file State.h.

Referenced by Buffer(), openvideo::DSVLSrcBuffer::copyImage(), openvideo::DSVLSrcBuffer::DSVLSrcBuffer(), openvideo::DSVLSrcBuffer::flipImage(), openvideo::ImageSrcBuffer::ImageSrcBuffer(), openvideo::TestSrcBuffer::TestSrcBuffer(), and openvideo::VideoWrapperSrcBuffer::VideoWrapperSrcBuffer().

int openvideo::Buffer::height [protected]
 

Definition at line 85 of file State.h.

Referenced by Buffer(), openvideo::DSVLSrcBuffer::copyImage(), openvideo::DSVLSrcBuffer::DSVLSrcBuffer(), openvideo::DSVLSrcBuffer::flipImage(), openvideo::ImageSrcBuffer::ImageSrcBuffer(), openvideo::TestSrcBuffer::TestSrcBuffer(), and openvideo::VideoWrapperSrcBuffer::VideoWrapperSrcBuffer().

int openvideo::Buffer::lockCtr [protected]
 

Definition at line 82 of file State.h.

Referenced by Buffer(), lock(), and unlock().

ACE_Thread_Mutex* openvideo::Buffer::mutex [protected]
 

Definition at line 84 of file State.h.

Referenced by Buffer(), lock(), unlock(), and ~Buffer().

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

Definition at line 83 of file State.h.

Referenced by Buffer(), openvideo::VideoWrapperSrcBuffer::getNewFrame(), openvideo::DSVLSrcBuffer::getNewFrame(), openvideo::V4L2SrcBuffer::incUpdateCounter(), openvideo::TestSrcBuffer::incUpdateCounter(), and openvideo::ImageSrcBuffer::setUpdateCtr().

int openvideo::Buffer::width [protected]
 

Definition at line 85 of file State.h.

Referenced by Buffer(), openvideo::DSVLSrcBuffer::copyImage(), openvideo::DSVLSrcBuffer::DSVLSrcBuffer(), openvideo::DSVLSrcBuffer::flipImage(), openvideo::ImageSrcBuffer::ImageSrcBuffer(), openvideo::TestSrcBuffer::TestSrcBuffer(), and openvideo::VideoWrapperSrcBuffer::VideoWrapperSrcBuffer().


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