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

void Impala::Application::Repository::DoDiffImageArchive (  ) 

Definition at line 499 of file mainRepository.cpp.

References Impala::Persistency::ImageArchiveLocator::GetContainer(), GetImageArchiveLocator(), Impala::CmdOptions::GetInstance(), GetVideoSet(), ILOG_INFO, ILOG_VAR, Impala::Persistency::ImageArchiveLocator::SetContainer(), and Impala::Persistency::ImageArchiveLocator::SetQuid().

Referenced by mainRepository().

00500 {
00501     ILOG_VAR(Impala.Application.Repository.DoDiffImageArchive);
00502     CmdOptions& options = CmdOptions::GetInstance();
00503 
00504     ImageArchiveLocator loc1 = GetImageArchiveLocator(options, true);
00505     ImageArchiveLocator loc2 = GetImageArchiveLocator(options, false);
00506     VideoSet* vidSet = GetVideoSet(options, true);
00507     String container = loc1.GetContainer();
00508     int nrArchives = (container == "ALL") ? vidSet->NrFiles() : 1;
00509     for (int i=0 ; i<nrArchives ; i++)
00510     {
00511         String cur = (container == "ALL") ? vidSet->GetFile(i) : container;
00512         ILOG_INFO("Checking " << i << " = " << cur);
00513         int v = vidSet->GetFileId(cur);
00514         Quid quid = (v != -1) ? vidSet->GetQuidVideo(v, false) : 0;
00515         loc1.SetContainer(cur);
00516         loc1.SetQuid(quid);
00517         ImageArchive* archive1 = ImageArchiveRepository().Get(loc1);
00518         loc2.SetContainer(cur);
00519         loc2.SetQuid(quid);
00520         ImageArchive* archive2 = ImageArchiveRepository().Get(loc2);
00521         archive1->Diff(archive2);
00522         delete archive2;
00523         delete archive1;
00524     }
00525     delete vidSet;
00526 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:47:57 2010 for ImpalaSrc by  doxygen 1.5.1