Definition at line 100 of file VideoSet.h. References Impala::Core::Stream::RgbDataSrcFactory::ConstructWindow(), Impala::FileNameConcat(), Impala::Core::Database::RawDataSet::GetAsPath(), Impala::CmdOptions::GetInstance(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Persistency::File::GetPath(), Impala::CmdOptions::GetString(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrcFactory::Instance(), Impala::Core::Database::RawDataSet::mDb, and Impala::Core::Database::RawDataSet::NrFiles(). Referenced by Impala::Visualization::SegmentationDocumentGuiAnno::GetCurrentVideo(), and Impala::Visualization::AllFramesTLineVideo::HandleNewVideo(). 00101 { 00102 if ((fileId < 0) || (fileId >= NrFiles())) 00103 return 0; 00104 00105 String path = FileNameConcat("Frames", GetAsPath(fileId)) + 00106 "/" + "images_jpg.raw"; 00107 #ifdef USE_IFILE 00108 path = "localfile:" + path; 00109 #endif 00110 CmdOptions& options = CmdOptions::GetInstance(); 00111 String srcWndStr = options.GetString("srcWindow"); 00112 00113 Stream::RgbDataSrcFactory& factory = Stream::RgbDataSrcFactory::Instance(); 00114 00115 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00116 Stream::RgbDataSrc* src = 00117 factory.ConstructWindow(path, "raw", srcWndStr, mDb); 00118 #else // REPOSITORY_USED 00119 // need to resolve the path for LavcProtocol 00120 typedef Persistency::RepositoryInFileSystem FS; 00121 Persistency::File file = 00122 FS::GetInstance().GetFile(GetLocator(), "", path, false, silent); 00123 Persistency::RgbDataSrcLocator loc(GetLocator(), file.GetPath()); 00124 Stream::RgbDataSrc* src = factory.ConstructWindow(loc, "raw", srcWndStr); 00125 #endif // REPOSITORY_USED 00126 00127 if (!src || !src->Valid()) 00128 { 00129 if (!silent) 00130 ILOG_ERROR("Failed at initializing low res video data source"); 00131 if (src) 00132 delete src; 00133 return 0; 00134 } 00135 00136 return src; 00137 }
Here is the call graph for this function:
|