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

void Impala::Application::Repository::DoDumpKeyframes (  ) 

Definition at line 717 of file mainRepository.cpp.

References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), GetKeyframesLocator(), GetVideoSet(), ILOG_INFO, and ILOG_VAR.

Referenced by mainRepository().

00718 {
00719     ILOG_VAR(Impala.Application.Repository.DoDumpKeyframes);
00720     CmdOptions& options = CmdOptions::GetInstance();
00721 
00722     KeyframesLocator loc = GetKeyframesLocator(options, true);
00723     VideoSet* vidSet = GetVideoSet(options, true);
00724     Keyframes* keys = KeyframesRepository().Get(loc, vidSet);
00725 
00726     ILOG_INFO("nrVideos = " << keys->GetNrVideos());
00727     ILOG_INFO("nrShots = " << keys->GetNrShots());
00728     ILOG_INFO("nrKeyframes = " << keys->GetNrKeyframes());
00729     if (options.GetInt("end") == 0)
00730         return;
00731     for (int i=0 ; i<keys->GetNrVideos() ; i++)
00732         std::cout << "  vid " << i << " has " << keys->GetNrKeyframesVideo(i)
00733                   << " keyframes" << std::endl;
00734     //keys.DumpGroups();
00735     keys->Dump(options.GetInt("start"), options.GetInt("end"));
00736     delete keys;
00737     delete vidSet;
00738 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:46 2011 for ImpalaSrc by  doxygen 1.5.1