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

template<class PrepT>
bool Impala::Core::Stream::RgbDataSrcWindow< PrepT >::Advance (  )  [inline, private]

Definition at line 338 of file RgbDataSrcWindow.h.

Referenced by Impala::Core::Stream::RgbDataSrcWindow< Impala::Core::Stream::WindowPrepGaussDerivative >::FollowSrc(), Impala::Core::Stream::RgbDataSrcWindow< Impala::Core::Stream::WindowPrepGaussDerivative >::NextFrame(), and Impala::Core::Stream::RgbDataSrcWindow< Impala::Core::Stream::WindowPrepGaussDerivative >::ReadFrameData().

00339     {
00340         mWindowStart++;
00341         ILOG_DEBUG("  advance to window start " << mWindowStart);
00342         unsigned char* tmp = mWindow[0];
00343         ArrayT* tmpAr = mWindowAr[0];
00344         for (int i=0 ; i<mWindowSize-1 ; i++)
00345         {
00346             mWindow[i] = mWindow[i+1];
00347             mWindowAr[i] = mWindowAr[i+1];
00348         }
00349         mWindow[mWindowSize-1] = tmp;
00350         mWindowAr[mWindowSize-1] = tmpAr;
00351 
00352         memcpy(mWindow[mWindowSize-1], mSrc->DataPtr(), mRgbBufSize);
00353         if (mPrep)
00354         {
00355             Array2dVec3UInt8* srcWrap = Array::ArrayCreate<Array2dVec3UInt8>
00356                 (mSrc->FrameWidth(), mSrc->FrameHeight(), 0, 0, mSrc->DataPtr(),
00357                  true);
00358             mPrep->DoIt(mWindowAr[mWindowSize-1], srcWrap);
00359             delete srcWrap;
00360         }
00361 
00362         bool rc = true;
00363         if (mControlSrc)
00364         {
00365             ILOG_DEBUG("  advancing slave src");
00366             rc = mSrc->NextFrame();
00367         }
00368         return rc;
00369     }


Generated on Thu Jan 13 09:20:36 2011 for ImpalaSrc by  doxygen 1.5.1