Definition at line 16 of file PlayShot.h. References Impala::Core::VideoSet::Segmentation::GetEnd(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::Database::RawDataSet::GetFilePathVideoData(), Impala::Core::VideoSet::Segmentation::GetStart(), Impala::Core::VideoSet::Segmentation::GetVideoId(), Impala::Core::VideoSet::Segmentation::GetVideoSet(), ILOG_ERROR, and ILOG_VAR. Referenced by Impala::Visualization::SegmentationDocumentGuiMain::ButtonSelectionEvent(), Impala::Visualization::SearchJudgeGui::ButtonSelectionEvent(), Impala::Application::WindowTrecResult::ButtonSelectionEvent(), and Impala::Visualization::SimilarityTableSetRank::HandleNewKey(). 00017 { 00018 ILOG_VAR(Impala.Core.VideoSet.PlayShot); 00019 #ifdef DX_USED 00020 int vidId = shots->GetVideoId(shot); 00021 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00022 String fileName = shots->GetVideoSet()->GetFilePathVideoData(vidId, false, 00023 false); 00024 #else // REPOSITORY_USED 00025 VideoSet* vidSet = shots->GetVideoSet(); 00026 using namespace Persistency; 00027 // We really need a file otherwise DX cannot handle it. 00028 Locator loc("file:", vidSet->GetSetName()); 00029 Persistency::File file = RepositoryInFileSystem::GetInstance().GetFile 00030 (loc, "VideoData", vidSet->GetAsPath(vidId), false, false); 00031 String fileName = file.GetPath(); 00032 #endif // REPOSITORY_USED 00033 void* handle = HxDXOpenFullPlayer(fileName.c_str()); 00034 if (! handle) 00035 { 00036 ILOG_ERROR("Unable to play " << fileName); 00037 } 00038 else 00039 { 00040 int startF = shots->GetStart(shot); 00041 int endF = shots->GetEnd(shot); 00042 HxDXShowSegmentPlayer(handle, startF, endF); 00043 HxDXClosePlayer(handle); 00044 } 00045 #else 00046 ILOG_ERROR("PlayShot not available."); 00047 #endif 00048 }
Here is the call graph for this function:
|