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

template<class PrepT>
bool Impala::Core::Stream::RgbDataSrcWindow< PrepT >::GotoFrame ( int  frameNr  )  [inline]

Reimplemented from Impala::Core::Stream::RgbDataSrc.

Definition at line 244 of file RgbDataSrcWindow.h.

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

00245     {
00246         ILOG_DEBUG("  window goto frame " << frameNr);
00247 
00248         if (mSrc->TheEnd())
00249             return true;
00250 
00251         if (mCentre)
00252         {
00253             if (frameNr < mWindowSize/2)
00254                 frameNr = mWindowSize/2;
00255             if (frameNr >= mSrc->LastFrame() - mWindowSize/2)
00256                 frameNr = mSrc->LastFrame() - mWindowSize/2;
00257         }
00258         else
00259         {
00260             if (frameNr < mWindowSize - 1)
00261                 frameNr = mWindowSize - 1;
00262             if (frameNr >= mSrc->LastFrame() - 1)
00263                 frameNr = mSrc->LastFrame() - 1;
00264         }
00265 
00266         if (mCentre)
00267             return JumpStart(frameNr - mWindowSize/2);
00268         else
00269             return JumpStart(frameNr - (mWindowSize - 1));
00270     }


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