Definition at line 446 of file VideoPlayer.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CPB(), Impala::Core::Stream::RgbDataSrc::DataPtr(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameNr(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), Impala::Core::Stream::RgbDataSrc::GotoFrame(), mEndFrame, mLoopVideo, mNewFrame, mStartFrame, and Stop(). Referenced by DisplayFunc(), GotoFrame(), OglImageReadFrame(), and Reset(). 00447 { 00448 if (!src || !oglIm ) 00449 return; 00450 00451 int targetFrame = src->FrameNr() + incr; 00452 if (targetFrame < mStartFrame || targetFrame > mEndFrame) 00453 { 00454 if (mLoopVideo) 00455 targetFrame = targetFrame > mEndFrame ? mStartFrame : mEndFrame; 00456 else 00457 { 00458 Stop(); 00459 return; 00460 } 00461 } 00462 if (targetFrame != src->FrameNr()) 00463 src->GotoFrame(targetFrame); 00464 00465 int imW = src->FrameWidth(); 00466 int imH = src->FrameHeight(); 00467 Array2dVec3UInt8* ar = (Array2dVec3UInt8 *) oglIm->imageHandle; 00468 memcpy( (void *) ar->CPB(0, 0), src->DataPtr(), imW*imH*3 ); 00469 oglIm->changed = 1; 00470 mNewFrame = true; 00471 }
Here is the call graph for this function:
|