Definition at line 1267 of file SegmentationDocumentGuiAnno.h. References Impala::Core::Database::RawDataSet::GetDatabase(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrcFactory::Instance(), mVidSet, Impala::Core::Stream::RgbDataSrcFactory::SRC_LAVC_WITHIDX, and Impala::Core::Stream::RgbDataSrc::Valid(). Referenced by CheckNewVideo(). 01268 { 01269 RgbDataSrc *rgbDataSrc = 0; 01270 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 01271 if (!rawName.empty()) 01272 rgbDataSrc = new RgbDataSrcRaw(rawName); 01273 else if (!videoName.empty()) 01274 { 01275 RgbDataSrcFactory& f = RgbDataSrcFactory::Instance(); 01276 rgbDataSrc = f.Construct(RgbDataSrcFactory::SRC_LAVC_WITHIDX, 01277 videoName, mVidSet->GetDatabase()); 01278 } 01279 #else // REPOSITORY_USED 01280 ILOG_ERROR("Todo : OpenRgbDataSrc"); 01281 #endif // REPOSITORY_USED 01282 01283 if (!rgbDataSrc || !rgbDataSrc->Valid()) 01284 { 01285 ILOG_ERROR("Opening RgbDataSrc failed"); 01286 if (rgbDataSrc) 01287 delete rgbDataSrc; 01288 return 0; 01289 } 01290 return rgbDataSrc; 01291 }
Here is the call graph for this function:
|