VideoAdaptorChain Class Reference

<class description="" goes="" here=""> <short description=""> More...

#include <VideoAdaptorChain.hpp>

Inheritance diagram for VideoAdaptorChain:

AdaptorChain Adaptor ColorReductionAdaptor QualityReductionAdaptor SpatialReductionAdaptor List of all members.

Public Member Functions

 VideoAdaptorChain ()
 Constructor.
virtual ~VideoAdaptorChain ()
 Destructor.
virtual Adaptorclone ()
 Create a shallow copy of the Adaptor.
virtual void setESInfo (ESInfo *esi)
 Sets a reference to an ESInfo object.
virtual ESInfogetESInfo ()

Protected Attributes

VideoESInfo * es

Detailed Description

<class description="" goes="" here=""> <short description="">

Author:
Michael Kropfberger and Peter Schojer
Version:
Id
VideoAdaptorChain.hpp,v 1.5 2005/06/19 14:47:23 mkropfbe Exp

Definition at line 61 of file VideoAdaptorChain.hpp.


Constructor & Destructor Documentation

VideoAdaptorChain::VideoAdaptorChain  ) 
 

Constructor.

Definition at line 46 of file VideoAdaptorChain.cpp.

Referenced by clone().

00046 : AdaptorChain() 00047 { 00048 strcpy(name,"VideoAdaptorChain"); 00049 es=NULL; 00050 }

VideoAdaptorChain::~VideoAdaptorChain  )  [virtual]
 

Destructor.

Definition at line 52 of file VideoAdaptorChain.cpp.

00053 { 00054 dprintf_full("VideoAdaptorChain::~VideoAdaptorChain()\n"); 00055 }


Member Function Documentation

Adaptor * VideoAdaptorChain::clone  )  [virtual]
 

Create a shallow copy of the Adaptor.

Creates an Adaptor with the same setup (without copying the current status).

Returns:
An Adaptor object.

Implements Adaptor.

Reimplemented in ColorReductionAdaptor, QualityReductionAdaptor, and SpatialReductionAdaptor.

Definition at line 75 of file VideoAdaptorChain.cpp.

References AdaptorChain::addAdaptor(), and VideoAdaptorChain().

00076 { 00077 AdaptorChain *adapt = new VideoAdaptorChain(); 00078 00079 list < Adaptor * >::iterator adaptorIterator; 00080 for (adaptorIterator = mAdaptorList.begin(); 00081 adaptorIterator != mAdaptorList.end(); adaptorIterator++) { 00082 adapt->addAdaptor((*adaptorIterator)->clone()); 00083 } 00084 return adapt; 00085 }

void VideoAdaptorChain::setESInfo ESInfo esi  )  [virtual]
 

Sets a reference to an ESInfo object.

Adaptors are allowed to change ESInfo objects. If you don't want that, pass an es->clone(). NEVER delete this es in the destructor of your Adaptor!

Reimplemented from Adaptor.

Definition at line 57 of file VideoAdaptorChain.cpp.

00058 { 00059 es=(VideoESInfo*)esi; 00060 list < Adaptor * >::iterator adaptorIterator; 00061 00062 for (adaptorIterator = mAdaptorList.begin(); 00063 adaptorIterator != mAdaptorList.end(); adaptorIterator++) { 00064 (*adaptorIterator)->setESInfo(esi); 00065 } 00066 };


The documentation for this class was generated from the following files: