Definition at line 397 of file SegmentationDocumentGuiAnno.h. References Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), FindAdjacentAnnoShot(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::Segmentation::GetNrVideos(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), mCurFile, and mSegDoc. Referenced by CheckAnnoMax(), and GoToNextAnno(). 00398 { 00399 Segmentation* seg = mSegDoc->GetSegmentation(); 00400 int nrVideos = seg->GetNrVideos(); 00401 int curShot = mSegDoc->CurShot(); 00402 int curFile = mCurFile; 00403 curFile = mSegDoc->CurFileId(); 00404 int shot; 00405 00406 if ((shot=FindAdjacentAnnoShot(curFile,bit,curShot,next))!=-1) 00407 return curFile * 100000 + shot; 00408 if (stayInVideo) 00409 return -1; 00410 00411 if (next) while (++curFile < nrVideos) 00412 { 00413 int firstShot = seg->GetFirstShotVideo(curFile); 00414 if ((shot = FindAdjacentAnnoShot(curFile,bit,firstShot-1,true))!=-1) 00415 return curFile * 100000 + shot; 00416 } 00417 else while(--curFile >= 0) 00418 { 00419 int firstShot = seg->GetFirstShotVideo(curFile); 00420 int lastShot = firstShot+seg->GetNrShotsVideo(curFile); 00421 if ((shot = FindAdjacentAnnoShot(curFile,bit,lastShot,false))!=-1) 00422 return curFile * 100000 + shot; 00423 } 00424 return -1; 00425 }
Here is the call graph for this function:
|