Definition at line 512 of file mainMonetTest.cpp. References Impala::FileNameBase(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetAsPath(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetNrArg(), Impala::Core::VideoSet::VideoSet::GetQuidVideo(), Impala::Core::Database::RawDataSet::GetSetNameBase(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::MakeString(), Impala::Core::VideoSet::MakeVideoSet(), and Impala::Core::Database::RawDataSet::NrFiles(). Referenced by mainMonetTest(). 00513 { 00514 ILOG_VAR(Impala.Samples.MonetTest.DoInsertVideoSet); 00515 CmdOptions& options = CmdOptions::GetInstance(); 00516 if (options.GetNrArg() < 5) 00517 { 00518 ILOG_ERROR("Need more parameters"); 00519 return; 00520 } 00521 00522 String vidSetName = options.GetArg(4); 00523 VideoSet* vidSet = Core::VideoSet::MakeVideoSet(vidSetName); 00524 String vidSetBase = vidSet->GetSetNameBase(); 00525 00526 int startFile = options.GetInt("startFile"); 00527 for (int i=startFile ; i<vidSet->NrFiles() ; i++) 00528 { 00529 String file = vidSet->GetAsPath(i); 00530 Quid quid = vidSet->GetQuidVideo(i, true); 00531 // todo : get info from video 00532 //String q = "select i_add_video_file('" + vidSetBase + "', " 00533 // + MakeString(quid) + ", '" + file 00534 // + "', 352, 288, 25, -1, 'mpeg1', 'bitrate');"; 00535 bool uniqueEvent = false; 00536 String evName = (uniqueEvent) ? vidSetBase + "_" + MakeString(quid) 00537 : FileNameBase(file); 00538 String q = "select i_add_video_file_event('" + vidSetBase + "', '" 00539 + evName + "', 'no description', " + MakeString(quid) + ", '" 00540 + file + "', 352, 288, true, 25, -1, 'mpeg1', 'bitrate');"; 00541 ILOG_INFO("q = [" + q + "]"); 00542 conn->Query(q, false, false); 00543 } 00544 delete vidSet; 00545 }
Here is the call graph for this function:
|