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

bool Impala::Application::IDash::NfiSixView::OpenVideo (  )  [inline]

Definition at line 38 of file NfiSixView.h.

References CheckRgbValidity(), ClearVideos(), Impala::Core::VideoSet::VideoSet::GetVideo(), ILOG_WARNING, Impala::Visualization::VideoPlayer::LastFrameNr(), mPlayers, mVideoID, mVideoSet, and Impala::Visualization::VideoPlayer::OpenVideo().

Referenced by ClearVideos(), Impala::Application::IDash::ScreenPlay::PlayFile(), and Impala::Application::IDash::ScreenPlay::PlayFileEvent().

00039     {
00040         int lastFrameNr = -1;
00041 
00042         ClearVideos();
00043 
00044         for (int i = 0; i < 6; i++)
00045         {
00046             int playerIndex = i + ((i>2) ? -3 : 3);
00047             VideoPlayer* player = mPlayers[playerIndex];
00048             RgbDataSrc* rgbDataSrc = mVideoSet->GetVideo(mVideoID);
00049             if (!CheckRgbValidity(rgbDataSrc))
00050                 return false;
00051             //SK
00052             try
00053             {
00054                 player->OpenVideo(rgbDataSrc,lastFrameNr,6,i);
00055             }
00056             catch (std::exception e)
00057             {
00058                 ILOG_WARNING("Reading from RgbDataSrc faltered: Can't play");
00059                 ClearVideos();
00060                 return false;
00061             }
00062             //SK
00063             if (lastFrameNr < 0)
00064                 lastFrameNr = player->LastFrameNr();
00065         }
00066         return true;
00067     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:39:57 2010 for ImpalaSrc by  doxygen 1.5.1