Definition at line 75 of file AllFramesTLineVideo.h. References Impala::Core::Stream::RgbDataSrcFactory::Construct(), ConstructPositives(), Impala::Core::VideoSet::SegmentationDocument::CurFrame(), Impala::FileExists(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::DataDocument::GetDataSet(), Impala::Core::Database::RawDataSet::GetFilePathFrames(), Impala::Core::Database::RawDataSet::GetFilePathVideoData(), Impala::Core::Database::RawDataSet::GetLocator(), Impala::Visualization::VideoPlayer::GotoFrame(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrcFactory::Instance(), Impala::Visualization::TimeLineViewStrip::mBothMpg, mCurFile, mNeedleColor, mRgbDataSrcRaw, mSegDoc, mShowViewStrip, mSimTLV, mTimeLineVideoRaw, mTLVAxisY, mViewStripMinW, mViewStripStep, mViewStripUseMem, mViewStripVideoRaw, mViewStripY, Impala::Visualization::SimilarityTimeLineVideo::OpenVideo(), Impala::Visualization::SimilarityTimeLineVideo::Player(), OglGui::ZoomShiftRuler::SetAxisY(), OglGui::ZoomShiftRuler::SetNeedleColor(), Impala::Core::Stream::RgbDataSrcFactory::SRC_LAVC, Impala::Visualization::SimilarityTimeLineVideo::TimeLine(), Impala::Visualization::TimeLineViewStrip::ViewStripFrameStep(), Impala::Visualization::TimeLineViewStrip::ViewStripMinViewWidth(), Impala::Visualization::TimeLineViewStrip::ViewStripOpenRawFile(), Impala::Visualization::TimeLineViewStrip::ViewStripRgbDataSrc(), and Impala::Visualization::TimeLineViewStrip::ViewStripY(). Referenced by HandleNewSimSet(). 00076 { 00077 RawDataSet* dataSet = mSegDoc->GetDataSet(); 00078 //std::string dir = dataSet->GetFile(mCurFile); 00079 //std::string videoName = mTimeLineVideoDir+"/"+dir; 00080 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00081 std::string videoName = dataSet->GetFilePathVideoData(mCurFile, 00082 false, false); 00083 //std::string rawName = videoName+"/"+"images_jpg.raw"; 00084 std::string rawName = dataSet->GetFilePathFrames(mCurFile, 00085 "images_jpg.raw", 00086 false, false); 00087 //std::string rawStripName = mViewStripDir+"/"+dir+"/"+"images_jpg.raw"; 00088 #else // REPOSITORY_USED 00089 ILOG_ERROR("Todo : HandleNewVideo"); 00090 String videoName; 00091 String rawName; 00092 #endif // REPOSITORY_USED 00093 bool vidIsMpg, stripIsMpg; 00094 00095 //if (FileExists(rawName)) 00096 if (mTimeLineVideoRaw && !rawName.empty()) 00097 { 00098 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00099 mRgbDataSrcRaw = new RgbDataSrcRaw(rawName); 00100 #endif // REPOSITORY_USED 00101 mSimTLV->OpenVideo(mRgbDataSrcRaw,videoName); 00102 vidIsMpg = false; 00103 } 00104 else 00105 { 00106 if (FileExists(videoName + ".info")) 00107 mSimTLV->OpenVideo(videoName, "lavcwithidx"); 00108 else 00109 mSimTLV->OpenVideo(videoName, "lavcwriteidx"); 00110 vidIsMpg = true; 00111 } 00112 00113 SimilarityTimeLine* timeLine = mSimTLV->TimeLine(); 00114 if (mShowViewStrip) 00115 { 00116 timeLine->ViewStripRgbDataSrc((RgbDataSrc*)0); 00117 timeLine->SetAxisY(mTLVAxisY); 00118 timeLine->ViewStripY(mViewStripY); 00119 timeLine->ViewStripFrameStep(mViewStripStep); 00120 timeLine->ViewStripMinViewWidth(mViewStripMinW); 00121 timeLine->SetNeedleColor(mNeedleColor); 00122 } 00123 if (mShowViewStrip && mViewStripVideoRaw && !rawName.empty()) 00124 { 00125 timeLine->ViewStripOpenRawFile(rawName, mViewStripUseMem); 00126 stripIsMpg = false; 00127 } 00128 else if (mShowViewStrip) 00129 { 00130 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00131 RgbDataSrc* dataSrc = RgbDataSrcFactory::Instance().Construct 00132 (RgbDataSrcFactory::SRC_LAVC, videoName, dataSet->GetDatabase()); 00133 #else // REPOSITORY_USED 00134 Persistency::RgbDataSrcLocator loc(dataSet->GetLocator(), videoName); 00135 RgbDataSrc* dataSrc = RgbDataSrcFactory::Instance().Construct 00136 (RgbDataSrcFactory::SRC_LAVC, loc); 00137 #endif // REPOSITORY_USED 00138 timeLine->ViewStripRgbDataSrc(dataSrc); 00139 stripIsMpg = true; 00140 } 00141 /* 00142 if (mShowViewStrip && FileExists(rawStripName)) 00143 { 00144 timeLine->ViewStripOpenRawFile(rawStripName, mViewStripUseMem); 00145 stripIsMpg = false; 00146 } 00147 else if (mShowViewStrip) 00148 { 00149 RgbDataSrcLavc* dataSrc = new RgbDataSrcLavc(-1,videoName,READIDX); 00150 timeLine->ViewStripRgbDataSrc(dataSrc); 00151 stripIsMpg = true; 00152 } 00153 */ 00154 timeLine->mBothMpg = (stripIsMpg && vidIsMpg); 00155 00156 //mSimTLV->Player()->GotoFrame(mSegDoc->CurFrame()-mFrameError); 00157 mSimTLV->Player()->GotoFrame(mSegDoc->CurFrame()/*+15*/); 00158 ConstructPositives(); 00159 }
Here is the call graph for this function:
|