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

virtual int Impala::Core::Trec::ThreadRank::GetShotPosition ( int  shot  )  [inline, virtual]

Implements Impala::Core::Trec::Thread.

Definition at line 100 of file ThreadRank.h.

References Impala::Core::Column::Find(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), Impala::Core::VideoSet::Keyframes::GetQuidFrame(), Impala::Core::VideoSet::Segmentation::GetQuidShot(), mKeyframes, mRank, mSegmentation, mUseShotQuids, Shot2Key(), and Impala::Core::Table::Table::Size().

00101     {
00102         Quid quidf;
00103         if (mUseShotQuids)
00104         {
00105             quidf = mSegmentation->GetQuidShot(shot);
00106         } else {
00107             quidf = mKeyframes->GetQuidFrame(Shot2Key(shot));
00108         }
00109         int r = Column::Find(mRank->GetColumn1(), quidf, 0, mRank->Size());
00110         if (r == mRank->Size()) {
00111             //ILOG_DEBUG("GetShotPosition(" << shot << " quid=" <<
00112             //           quidf <<"): failed, r = " << r);
00113             return -1;
00114         }
00115         //ILOG_DEBUG("GetShotPosition(" << shot <<
00116         //           " quid=" << quidf <<"): r = " << r);
00117         return r;
00118     }

Here is the call graph for this function:


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