Definition at line 262 of file AllFramesTLineVideo.h. References Impala::Core::VideoSet::Keyframes::GetFirstKeyframeVideo(), Impala::Core::VideoSet::Keyframes::GetFrameNr(), Impala::Core::VideoSet::SegmentationDocument::GetKeyframes(), Impala::Core::VideoSet::Keyframes::GetNrKeyframesVideo(), mCurFile, and mSegDoc. Referenced by GoToAdjacentKeyFrame(). 00263 { 00264 Keyframes* keys = mSegDoc->GetKeyframes(); 00265 int firstKeyFr = keys->GetFirstKeyframeVideo(mCurFile); 00266 int lastKeyFr = firstKeyFr+keys->GetNrKeyframesVideo(mCurFile); 00267 int i, k, prevK; 00268 00269 //frame -= 15; // Compensate 15 for keyFrameError 00270 frame += next ? 1 : 0; 00271 for (i=firstKeyFr; i<lastKeyFr; i++) 00272 { 00273 if ((k=keys->GetFrameNr(i))<frame) 00274 prevK = k; 00275 else 00276 break; 00277 } 00278 return /* 15 + */ (next ? k : prevK); // Compensate 15 for keyFrameError 00279 }
Here is the call graph for this function:
|