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

TaskTable* Impala::Application::VidSet::MakeVideoTaskTableByKeyframes ( VideoSet *  videoSet,
Walker *  walker 
)

Definition at line 118 of file mainVidSet.cpp.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::Core::VideoSet::Walker::GetKeyframes(), Impala::Core::VideoSet::Keyframes::GetNrKeyframesVideo(), ILOG_ERROR, ILOG_VAR, Impala::Core::Database::RawDataSet::NrFiles(), and Impala::Core::Table::Sort().

Referenced by MakeVideoTaskTable().

00119 {
00120     ILOG_VAR(Impala.Application.VidSet.MakeVideoTaskTableByKeyframes);
00121     CmdOptions& options = CmdOptions::GetInstance();
00122     int startFile = options.GetInt("startFile");
00123     int numberFiles = options.GetInt("numberFiles");
00124     Keyframes* keyframes = walker->GetKeyframes();
00125     if (keyframes == 0)
00126     {
00127         ILOG_ERROR("Need keyframes");
00128         return 0;
00129     }
00130     if (numberFiles == -1)
00131         numberFiles = videoSet->NrFiles();
00132     if (startFile + numberFiles >= videoSet->NrFiles())
00133         numberFiles = videoSet->NrFiles() - startFile;
00134     TaskTable* taskTable = new TaskTable();
00135     for (int i=startFile ; i<startFile+numberFiles ; i++)
00136         taskTable->Add(i, 1, keyframes->GetNrKeyframesVideo(i));
00137     Core::Table::Sort(taskTable, 3, false);
00138     for (int i=0 ; i<taskTable->Size() ; i++)
00139         taskTable->Set3(i, 0);
00140     return taskTable;
00141 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:56 2011 for ImpalaSrc by  doxygen 1.5.1