mimas::image_gstreamerinput< T > Class Template Reference
[Image Input]

Class for reading image from gstreamer-input. More...

#include <image_gstreamerinput.h>

Inheritance diagram for mimas::image_gstreamerinput< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::image_gstreamerinput< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 image_gstreamerinput (int _shmkey, int _semkey) throw (mimasexception)
 Constructor.
virtual ~image_gstreamerinput (void)
 Destructor.
virtual void read (image< T > &image) throw (mimasexception)
 Read image from shared memory.

Protected Attributes

int semkey
 Key to access semaphores.
int shmkey
 Key to access shared memory.
int semid
 Id of semaphores.
int shmid
 Id of shared memory.
void * shmem
 Pointer to shared memory.

Detailed Description

template<typename T>
class mimas::image_gstreamerinput< T >

Class for reading image from gstreamer-input.

gstreamer is an ongoing project, which will provide programmers with access to arbitrary video sources under GNU/Linux. mimas comes with a gstreamer-plugin (mimasimagesink) and this class, which provides shared memory access to video-frames obtained by gstreamer.

Run examples/gstreamer/runMe to test gstreamer-input.

Definition at line 25 of file image_gstreamerinput.h.


Constructor & Destructor Documentation

template<typename T>
mimas::image_gstreamerinput< T >::image_gstreamerinput ( int  _shmkey,
int  _semkey 
) throw (mimasexception)

Constructor.

The constructor requires a shared-memory-key and a semaphore-key to access the images provided by the plugin mimasimagesink. If the shared resources are not existing, an exception is issued.

Parameters:
_shmkey Key to access shared memory.
_semkey Key to access semaphores for synchronisation.

template<typename T>
virtual mimas::image_gstreamerinput< T >::~image_gstreamerinput ( void   )  [virtual]

Destructor.


Member Function Documentation

template<typename T>
virtual void mimas::image_gstreamerinput< T >::read ( image< T > &  image  )  throw (mimasexception) [virtual]

Read image from shared memory.

The image is read from shared memory. The semaphores are updated to allow the plugin to collect a new video-frame.

Parameters:
image Object to store image in.

Implements mimas::image_input< T >.


Member Data Documentation

template<typename T>
int mimas::image_gstreamerinput< T >::semkey [protected]

Key to access semaphores.

Definition at line 44 of file image_gstreamerinput.h.

template<typename T>
int mimas::image_gstreamerinput< T >::shmkey [protected]

Key to access shared memory.

Definition at line 46 of file image_gstreamerinput.h.

template<typename T>
int mimas::image_gstreamerinput< T >::semid [protected]

Id of semaphores.

Definition at line 48 of file image_gstreamerinput.h.

template<typename T>
int mimas::image_gstreamerinput< T >::shmid [protected]

Id of shared memory.

Definition at line 50 of file image_gstreamerinput.h.

template<typename T>
void* mimas::image_gstreamerinput< T >::shmem [protected]

Pointer to shared memory.

Definition at line 52 of file image_gstreamerinput.h.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:31 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...