Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class PrepT>
Impala::Core::Stream::RgbDataSrcWindow< PrepT >::RgbDataSrcWindow ( RgbDataSrc src,
int  windowSize,
PrepT *  prep = 0,
bool  controlSrc = false,
bool  centre = false 
) [inline]

Definition at line 109 of file RgbDataSrcWindow.h.

00111         : RgbDataSrc(src->GetType(), src->GetName())
00112     {
00113         // init base class
00114         mFrameWidth = src->FrameWidth();
00115         mFrameHeight = src->FrameHeight();
00116         mLastFrame = src->LastFrame();
00117 
00118         // init this class
00119         mSrc = src;
00120         mWindowSize = windowSize;
00121         mControlSrc = controlSrc;
00122         mCentre = centre;
00123         ILOG_DEBUG("window size " << mWindowSize << ", centre " << mCentre);
00124         mPrep = prep;
00125         mWindowStart = -1;
00126         mRgbBufSize = src->FrameWidth() * src->FrameHeight() * 3;
00127         mWindow = new unsigned char*[windowSize];
00128         mWindowAr = new ArrayT*[windowSize];
00129         for (int i=0 ; i<windowSize ; i++)
00130         {
00131             mWindow[i] = new unsigned char[mRgbBufSize];
00132             mWindowAr[i] = 0;
00133             if (mPrep)
00134                 mWindowAr[i] = Array::ArrayCreate<ArrayT>(src->FrameWidth(),
00135                                                           src->FrameHeight());
00136         }
00137     }


Generated on Fri Mar 19 11:18:06 2010 for ImpalaSrc by  doxygen 1.5.1