Reimplemented from OglGui::Window. Definition at line 321 of file VideoPlayer.h. References OglGui::Window::DisplayFunc(), Impala::Core::Stream::RgbDataSrc::FrameNr(), HandleMoveToFrame(), ILOG_ERROR, mIncrement, mLastTime, mListener, mListenerData, mMoveToFrameTarget, mNewFrame, mNormalSpeed, mOglView, OglGui::OglWindow::mOglWnd, mPlaying, mRgbDataSrc, mShowFrameNr, mTimer, Impala::Visualization::VideoPlayerListener::OnNewFrame(), ReadFrameIntoOglImage(), and Impala::Timer::SplitTime(). 00322 { 00323 00324 //SK 00325 try 00326 { 00327 double cpuTime = mTimer->SplitTime(); 00328 if (mRgbDataSrc && mPlaying && mOglView) 00329 { 00330 if (!mNormalSpeed || cpuTime-mLastTime >= 0.04) 00331 { 00332 mLastTime = cpuTime + (0.04-(cpuTime-mLastTime)); 00333 ReadFrameIntoOglImage(mRgbDataSrc, mOglView->im,mIncrement); 00334 } 00335 } 00336 else if (mMoveToFrameTarget != -1) 00337 HandleMoveToFrame(); 00338 Window::DisplayFunc(); 00339 if (mRgbDataSrc && mShowFrameNr) 00340 oglSys.ShadowPrintf(mOglWnd,8,8,oglLIGHTGREY,oglBLACK,"%d", 00341 mRgbDataSrc->FrameNr()); 00342 if (mRgbDataSrc && mNewFrame && mListener) 00343 mListener->OnNewFrame(this, mRgbDataSrc->FrameNr(), mListenerData); 00344 mNewFrame = false; 00345 } 00346 catch (std::exception e) 00347 { 00348 ILOG_ERROR("Video playback failure"); 00349 } 00350 //SK 00351 00352 }
Here is the call graph for this function:
|