Definition at line 1098 of file SegmentationDocumentGuiAnno.h. References CheckSaveMpeg7(), Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::Database::DataDocument::GetConcept(), Impala::Core::Database::DataDocument::GetConceptIdx(), Impala::Core::Database::RawDataSet::GetContainerFile(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::Database::RawDataSet::GetFilePathMpeg7Anno(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Core::VideoSet::Segmentation::GetNrFramesVideo(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), mConceptSet, mCurConcept, mCurFile, mCurMpeg7, mSegDoc, mVidSet, and Impala::Core::VideoSet::Mpeg7Doc::SetConceptSet(). Referenced by CheckLoadVideoAnnotations(), HandleNewConcept(), and HandleNewFile(). 01099 { 01100 if ((mCurFile == mSegDoc->CurFileId()) && 01101 (mCurConcept == mSegDoc->GetConceptIdx())) 01102 { 01103 return; 01104 } 01105 CheckSaveMpeg7(true); 01106 mCurFile = mSegDoc->CurFileId(); 01107 mCurConcept = mSegDoc->GetConceptIdx(); 01108 if ((mCurFile == -1) || (mCurConcept == -1)) 01109 return; 01110 String vidName = mVidSet->GetFile(mCurFile); 01111 String concept = mSegDoc->GetConcept(); 01112 // ILOG_INFO("Loading " << concept << " for " << vidName); 01113 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 01114 String fName = mVidSet->GetFilePathMpeg7Anno(mCurFile,mConceptSet, 01115 concept+".xml",false,true); 01116 if (fName.empty()) 01117 { 01118 int nrFr = mSegDoc->GetSegmentation()->GetNrFramesVideo(mCurFile); 01119 int fractions = 25; // todo: derive from video data 01120 mConceptSet; 01121 mCurMpeg7 = new Mpeg7Doc(vidName, vidName, nrFr, fractions, false, 01122 mConceptSet, concept); 01123 } 01124 else 01125 { 01126 mCurMpeg7 = new Mpeg7Doc(fName, mVidSet->GetDatabase()); 01127 mCurMpeg7->SetConceptSet(mConceptSet); 01128 } 01129 #else // REPOSITORY_USED 01130 String container = mConceptSet + "/" + mVidSet->GetContainerFile(mCurFile); 01131 typedef Persistency::Mpeg7DocLocator MP7Loc; 01132 MP7Loc loc(mVidSet->GetLocator(), MP7Loc::MPEG7_ANNOTATION, container, 01133 concept + ".xml"); 01134 if (!Persistency::Mpeg7DocRepository().Exists(loc)) 01135 { 01136 int nrFr = mSegDoc->GetSegmentation()->GetNrFramesVideo(mCurFile); 01137 int fractions = 25; // todo: derive from video data 01138 mConceptSet; 01139 mCurMpeg7 = new Mpeg7Doc(vidName, vidName, nrFr, fractions, false, 01140 mConceptSet, concept); 01141 } 01142 else 01143 { 01144 mCurMpeg7 = Persistency::Mpeg7DocRepository().Get(loc); 01145 mCurMpeg7->SetConceptSet(mConceptSet); 01146 } 01147 #endif // REPOSITORY_USED 01148 }
Here is the call graph for this function:
|