Completed given DB_FILE in a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 48 of file IndexFeatures.h. References Impala::Core::Feature::FeatureTable::GetFeatureVectorLength(), Impala::Core::VideoSet::Keyframes::GetFirstKeyframeVideo(), mDef, mKeyframeMask, mKeyframes, mTable, mWalkType, Impala::Core::Table::Read(), and Impala::Core::Table::Select(). 00049 { 00050 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00051 String fName = vs->GetFilePathFeatureData(mWalkType, mDef, 00052 fileId, false, -1, false, 00053 false); 00054 if (fName.empty()) 00055 { 00056 return; 00057 } 00058 Feature::FeatureTable tmp(mDef); 00059 Table::Read(&tmp, fName, vs->GetDatabase()); 00060 if (mTable == 0) 00061 { 00062 mTable = new Feature::FeatureTable(mDef, 0, 00063 tmp.GetFeatureVectorLength()); 00064 } 00065 #else // REPOSITORY_USED 00066 Persistency::FeatureLocator loc(vs->GetLocator(), false, false, 00067 mWalkType, mDef.AsString(), 00068 vs->GetContainerFile(fileId)); 00069 FeatureTable* tmp = Persistency::FeatureTableRepository().Get(loc); 00070 if (mTable == 0) 00071 { 00072 mTable = new FeatureTable(mDef, 12000, 00073 tmp->GetFeatureVectorLength()); 00074 } 00075 #endif // REPOSITORY_USED 00076 bool* mask = mKeyframeMask; 00077 if (mask) 00078 mask = mKeyframeMask + mKeyframes->GetFirstKeyframeVideo(fileId); 00079 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00080 Table::Select(mTable, &tmp, mask, false); 00081 #else // REPOSITORY_USED 00082 Table::Select(mTable, tmp, mask, false); 00083 delete tmp; 00084 #endif // REPOSITORY_USED 00085 }
Here is the call graph for this function:
|