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

void Impala::Core::VideoSet::Walker::AddKeyframeMaskAnnoFile ( String  fileName  )  [inline]

Definition at line 176 of file Walker.h.

References Impala::FileNameBase(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::VideoSet::Keyframes::GetNrKeyframes(), Impala::Core::VideoSet::Keyframes::GetQuidFrame(), ILOG_ERROR, InitKeyframeMask(), mKeyframeMask, mKeyframes, mVideoSet, and Impala::StringToQuidClass().

Referenced by Impala::Application::VidSet::mainVidSet().

00177     {
00178         if (!InitKeyframeMask())
00179             return;
00180         StringList sList(fileName, '/');
00181         if (sList.size() != 4)
00182             ILOG_ERROR("AddKeyframeMaskAnnoFile: expected 4 elements in path");
00183         StringListCI it = sList.begin();
00184         it++; // Skip Annotations
00185         String quidStr = *it++;
00186         String conceptSet = *it++;
00187         String keyword = FileNameBase(*it);
00188         Persistency::AnnotationTableLocator loc(mVideoSet->GetLocator(),
00189                                                 StringToQuidClass(quidStr),
00190                                                 conceptSet, keyword);
00191         Table::AnnotationTable* annoTable = 
00192             Persistency::AnnotationTableRepository().Get(loc);
00193         int nrKey = mKeyframes->GetNrKeyframes();
00194         for (int i=0 ; i<nrKey ; i++)
00195         {
00196             Quid quid = mKeyframes->GetQuidFrame(i);
00197             bool present = annoTable->IsPositive(quid);
00198             mKeyframeMask[i] &= present;
00199         }
00200         delete annoTable;
00201     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:22:20 2011 for ImpalaSrc by  doxygen 1.5.1