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

void Impala::Visualization::RotorBrowser::RotorBrowser::UpdateViewedShotBookmarks (  )  [inline]

Definition at line 1610 of file RotorBrowser.h.

References Impala::Core::Trec::ThreadBookmarked::AddShot(), Impala::Core::Trec::Thread::Contains(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Trec::ThreadSet::GetKeyframes(), Impala::Core::Trec::ThreadSet::GetSegmentation(), GetThreadByName(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViewedShots(), ILOG_DEBUG, Impala::Core::Table::AnnotationTable::IsPositive(), mCache, mThreadSet, and Impala::Core::Table::Table::Size().

Referenced by UpdateViewsToContext().

01611     {
01612         Impala::Core::Table::AnnotationTable *t = mCache->GetViewedShots();
01613         ThreadBookmarked *positive =
01614             (ThreadBookmarked*)GetThreadByName("bookmarked");
01615         ThreadBookmarked *negative =
01616             (ThreadBookmarked*)GetThreadByName("bookmarked_negative");
01617         if (!positive || !negative) return;
01618 
01619         int ctr = 0, booked = 0;
01620         for (int i=0; i < t->Size(); i++)
01621         {
01622             if (!t->IsPositive(i))
01623                 continue;
01624             ctr++;
01625             int shot = mThreadSet->GetSegmentation()->GetShotId(t->Get1(i));
01626 
01627             if (!positive->Contains(shot) && !negative->Contains(shot))
01628             {
01629                 int keyframe = mThreadSet->GetKeyframes()->GetShotRKF(shot);
01630                 negative->AddShot(shot, keyframe);
01631                 booked ++;
01632             }
01633         }
01634         if (booked)
01635             ILOG_DEBUG("GetViewedShots(): " << ctr << " shots viewed, " <<
01636                        booked << " new bookmarks.");
01637     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:54:34 2010 for ImpalaSrc by  doxygen 1.5.1