Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Core::VideoSet::PlayShot ( Segmentation *  shots,
int  shot 
) [inline]

Definition at line 15 of file PlayShot.h.

References Impala::Core::VideoSet::Segmentation::GetEnd(), 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().

00016 {
00017     ILOG_VAR(Impala.Core.VideoSet.PlayShot);
00018 #ifdef DX_USED
00019     int vidId = shots->GetVideoId(shot);
00020 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00021     String fileName = shots->GetVideoSet()->GetFilePathVideoData(vidId, false, false);
00022 #else // REPOSITORY_USED
00023     ILOG_ERROR("Todo");
00024     String fileName;
00025 #endif // REPOSITORY_USED
00026     void* handle = HxDXOpenFullPlayer(fileName.c_str());
00027     if (! handle)
00028     {
00029         ILOG_ERROR("Unable to play " << fileName);
00030     }
00031     else
00032     {
00033         int startF = shots->GetStart(shot);
00034         int endF = shots->GetEnd(shot);
00035         HxDXShowSegmentPlayer(handle, startF, endF);
00036         HxDXClosePlayer(handle);
00037     }
00038 #else
00039     ILOG_ERROR("PlayShot not available.");
00040 #endif
00041 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:28:15 2010 for ImpalaSrc by  doxygen 1.5.1