Definition at line 105 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::Segmentation::GetNrFramesVideo(), Impala::Core::VideoSet::Walker::GetSegmentation(), ILOG_ERROR, ILOG_VAR, Impala::Core::Database::RawDataSet::NrFiles(), and Impala::Core::Table::Sort(). Referenced by MakeVideoTaskTable(). 00106 { 00107 ILOG_VAR(Impala.Application.VidSet.MakeVideoTaskTableByVideoSize); 00108 CmdOptions& options = CmdOptions::GetInstance(); 00109 int startFile = options.GetInt("startFile"); 00110 int numberFiles = options.GetInt("numberFiles"); 00111 Segmentation* segmentation = walker->GetSegmentation(); 00112 if (segmentation == 0) 00113 { 00114 ILOG_ERROR("Need segmentation"); 00115 return 0; 00116 } 00117 if (numberFiles == -1) 00118 numberFiles = videoSet->NrFiles(); 00119 if (startFile + numberFiles >= videoSet->NrFiles()) 00120 numberFiles = videoSet->NrFiles() - startFile; 00121 TaskTable* taskTable = new TaskTable(); 00122 for (int i=startFile ; i<startFile+numberFiles ; i++) 00123 taskTable->Add(i, 1, segmentation->GetNrFramesVideo(i)); 00124 Core::Table::Sort(taskTable, 3, false); 00125 for (int i=0 ; i<taskTable->Size() ; i++) 00126 taskTable->Set3(i, 0); 00127 return taskTable; 00128 }
Here is the call graph for this function:
|