Start of a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 70 of file ExportStills.h. References Impala::Core::VideoSet::Stills::GetNrStills(), ILOG_INFO, ILOG_WARN, mDoData, mDoDef, mImSet, mImSetLoc, mSegmentation, mStills, mStillsLoc, mTimer, Impala::Core::Database::RawDataSet::NrDirs(), and Impala::Timer::Start(). 00071 { 00072 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00073 mSegmentation = new Segmentation(vs, "segmentation"); 00074 #else // REPOSITORY_USED 00075 Persistency::SegmentationLocator loc(vs->GetLocator(), "segmentation"); 00076 mSegmentation = Persistency::SegmentationRepository().Get(loc, vs); 00077 #endif // REPOSITORY_USED 00078 ILOG_INFO(mSegmentation->GetNrShots() << " shots"); 00079 String name("stills.txt"); 00080 mImSetLoc = Persistency::ImageSetLocator(vs->GetLocator(), name); 00081 mStillsLoc = Persistency::StillsLocator(vs->GetLocator(), "stills"); 00082 00083 if (mDoDef) 00084 { 00085 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00086 mImSet = new ImageSet::ImageSet(vs->GetDatabase(), name, false); 00087 #else // REPOSITORY_USED 00088 mImSet = new ImageSet::ImageSet(name); 00089 #endif // REPOSITORY_USED 00090 mStills = new Stills(vs, ""); 00091 } 00092 if (mDoData) 00093 { 00094 ILOG_INFO("reading image set " << name); 00095 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00096 mImSet = new ImageSet::ImageSet(vs->GetDatabase(), name, true); 00097 mStills = new Stills(vs, "stills"); 00098 #else // REPOSITORY_USED 00099 mImSet = Persistency::ImageSetRepository().Get(mImSetLoc); 00100 mStills = Persistency::StillsRepository().Get(mStillsLoc, vs); 00101 #endif // REPOSITORY_USED 00102 ILOG_INFO("reading stills"); 00103 ILOG_INFO(mStills->GetNrStills() << " stills"); 00104 if (mImSet->NrDirs() != vs->NrFiles()) 00105 { 00106 ILOG_WARN("Number of still dirs doesn't match number of videos: " 00107 << mImSet->NrDirs() << " vs. " << vs->NrFiles()); 00108 } 00109 } 00110 mTimer.Start(); 00111 }
Here is the call graph for this function:
|