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

virtual int Impala::Core::Trec::ThreadRank::GetShot ( int  position  )  [inline, virtual]

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

Definition at line 40 of file ThreadRank.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::VideoSet::Keyframes::GetFrameId(), Impala::Core::VideoSet::Segmentation::GetShotId(), Key2Shot(), mKeyframes, mRank, mSegmentation, Impala::QUID_CLASS_SHOT, Impala::QuidClass(), and Impala::Core::Table::Table::Size().

00041     {
00042         if ((position < 0) || (position >= mRank->Size())) {
00043             //ILOG_DEBUG("GetShot(" << position << "): fail, position " <<
00044             //           position << " out of bounds 0, " << mRank->Size());
00045             return -1;
00046         }
00047         Quid quid = mRank->Get1(position);
00048         if (QuidClass(quid) == QUID_CLASS_SHOT)
00049         {
00050             return mSegmentation->GetShotId(quid);
00051         } else {
00052             return Key2Shot(mKeyframes->GetFrameId(quid));
00053         }
00054     }

Here is the call graph for this function:


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