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

PlayShot.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_VideoSet_PlayShot_h
00002 #define Impala_Core_VideoSet_PlayShot_h
00003 
00004 #include "Core/VideoSet/Segmentation.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace VideoSet
00011 {
00012 
00013 
00014 inline void
00015 PlayShot(Segmentation* shots, int shot)
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 }
00042 
00043 } // namespace VideoSet
00044 } // namespace Core
00045 } // namespace Impala
00046 
00047 #endif

Generated on Fri Mar 19 09:31:31 2010 for ImpalaSrc by  doxygen 1.5.1