Definition at line 226 of file RotorView.h. References Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), DisableVideoStills(), Impala::Core::VideoSet::Segmentation::GetEnd(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), Impala::Core::VideoSet::Segmentation::GetStart(), Impala::Core::VideoSet::VideoSet::GetVideo(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), Impala::Core::Stream::RgbDataSrc::GotoFrame(), Impala::Core::Stream::RgbDataSrc::HasIndex(), ILOG_DEBUG, ILOG_WARNING, mVideoEnd, mVideoSource, and mVideoStart. Referenced by Impala::Visualization::RotorBrowser::RotorBrowser::EnableCenterVideoStills(), and Impala::Visualization::RotorBrowser::RotorBrowser::ToggleEnableVideoStream(). 00227 { 00228 if (mVideoSource != NULL) 00229 return true; 00230 00231 int shot = doc->CurShot(); 00232 int vidId = doc->CurFileId(); 00233 Core::VideoSet::Segmentation* shots = doc->GetSegmentation(); 00234 ILOG_DEBUG("RotorView::EnableVideoStills: initializing video stream.."); 00235 mVideoSource = doc->GetVideoSet()->GetVideo(vidId); 00236 if (!mVideoSource) 00237 return false; 00238 00239 // RvB: Added to prevent crashes 00240 #ifdef AS_TODS_BROWSER 00241 if (!mVideoSource->HasIndex()) 00242 { 00243 ILOG_WARNING("Video [" << vidId << "] has no index: Not playing"); 00244 DisableVideoStills(); 00245 return false; 00246 } 00247 #endif 00248 mVideoStart = shots->GetStart(shot) + 1; 00249 mVideoEnd = shots->GetEnd(shot); 00250 00251 mVideoSource->GotoFrame(mVideoStart); 00252 ILOG_DEBUG( "RotorView::EnableVideoStills: video stream ready." ); 00253 00254 return true; 00255 }
Here is the call graph for this function:
|