Definition at line 803 of file mainMonetTest.cpp. References Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathFrames(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetNrArg(), Impala::Core::VideoSet::VideoSet::GetQuidVideo(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::Core::Array::ImageArchiveDiff(), Impala::Core::VideoSet::MakeVideoSet(), Impala::Core::Database::RawDataSet::NrFiles(), and Impala::Timer::SplitTime(). Referenced by mainMonetTest(). 00804 { 00805 ILOG_VAR(Impala.Samples.MonetTest.DoCheckFrameArchive); 00806 CmdOptions& options = CmdOptions::GetInstance(); 00807 if (options.GetNrArg() < 5) 00808 { 00809 ILOG_ERROR("Need more parameters"); 00810 return; 00811 } 00812 00813 String vidSetName = options.GetArg(4); 00814 VideoSet* vidSet = Core::VideoSet::MakeVideoSet(vidSetName); 00815 00816 int startFile = options.GetInt("startFile"); 00817 Timer timer; 00818 for (int v=startFile ; v<vidSet->NrFiles() ; v++) 00819 { 00820 String path = vidSet->GetFilePathFrames(v, "images_jpg.raw", false, 00821 false); 00822 if (path.empty()) 00823 continue; 00824 ImageArchiveFile ar(path, false, vidSet->GetDatabase()); 00825 ILOG_INFO("video " << v << " has " << ar.NrImages() << " images"); 00826 00827 Quid vidQuid = vidSet->GetQuidVideo(v, true); 00828 00829 ImageArchiveMapi ar2(vidQuid, conn); 00830 Core::Array::ImageArchiveDiff(&ar, &ar2); 00831 ILOG_INFO("Did diff at " << timer.SplitTime()); 00832 } 00833 delete vidSet; 00834 }
Here is the call graph for this function:
|