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

ShotResultList Impala::Core::Trec::IDashQueryEngine::ConvertToShotResult ( std::list< KeyframeResult keyframes  )  [inline, private]

Definition at line 334 of file IDashQueryEngine.h.

References Impala::Core::Trec::ThreadSet::GetKeyframes(), Impala::Core::VideoSet::Keyframes::GetShotId(), ILOG_WARN, and mThreadSet.

Referenced by AddShots(), and GenerateThreadFromQuery().

00335     {
00336         ShotResultList shots;
00337         std::list<KeyframeResult>::iterator i;
00338         for (i=keyframes.begin(); i != keyframes.end(); i++)
00339         {
00340             ShotResult r;
00341             int frameID = i->keyframeid;
00342             if (frameID == -1) {
00343                 ILOG_WARN("QueryGui::ConvertToShotResult: " <<
00344                           "WARNING: erroneous frame in set." );
00345                 continue;
00346             }
00347             int shotID = mThreadSet->GetKeyframes()->GetShotId(frameID);
00348             r.shotid = shotID;
00349             r.score = i->score;
00350             r.rank = i->rank;
00351             shots.push_back(r);
00352         }
00353         return shots;
00354     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:25 2011 for ImpalaSrc by  doxygen 1.5.1