Implements Impala::Core::Trec::Thread. Definition at line 73 of file ThreadRank.h. References Impala::Core::Column::Find(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), Impala::Core::VideoSet::Keyframes::GetFrameId(), Impala::Core::VideoSet::Keyframes::GetQuidFrame(), Impala::Core::VideoSet::Segmentation::GetQuidShot(), Impala::Core::VideoSet::Segmentation::GetShotId(), Key2Shot(), mKeyframes, mRank, mSegmentation, mUseShotQuids, Impala::QUID_CLASS_SHOT, Impala::QuidClass(), Shot2Key(), and Impala::Core::Table::Table::Size(). 00074 { 00075 Quid quidf; 00076 if (mUseShotQuids) 00077 { 00078 quidf = mSegmentation->GetQuidShot(shot); 00079 } else { 00080 quidf = mKeyframes->GetQuidFrame(Shot2Key(shot)); 00081 } 00082 int r = Column::Find(mRank->GetColumn1(), quidf, 0, mRank->Size()); 00083 int dst = r + offset; 00084 if ((dst < 0) || (dst >= mRank->Size())) { 00085 //ILOG_DEBUG("GetShotAt(" << shot << " key=" << key << " offset=" << 00086 // offset << " quidf = " << 00087 // QuidObj(quidf) << "): failed, dst=" << dst); 00088 return -1; 00089 } 00090 Quid quid = mRank->Get1(dst); 00091 if (QuidClass(quid) == QUID_CLASS_SHOT) 00092 { 00093 return mSegmentation->GetShotId(quid); 00094 } else { 00095 return Key2Shot(mKeyframes->GetFrameId(quid)); 00096 } 00097 }
Here is the call graph for this function:
|