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

virtual void Impala::Visualization::VideoPlayer::KeyboardFunc ( int  c,
int  state 
) [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 354 of file VideoPlayer.h.

References FBwd(), FFwd(), Impala::Core::Stream::RgbDataSrc::GetHour(), Impala::Core::Stream::RgbDataSrc::GetMinute(), Impala::Core::Stream::RgbDataSrc::GetName(), Impala::Core::Stream::RgbDataSrc::GetSecond(), ILOG_ERROR, ILOG_INFO, OglGui::Window::KeyboardFunc(), mFitViewToWindow, mListener, mListenerData, mRgbDataSrc, mScaleImageToView, NextFrame(), Impala::Visualization::VideoPlayerListener::OnKey(), Play(), Reset(), and Stop().

00355     {
00356         if (c == 'P')
00357         {
00358             char sysBuf[1024];
00359             sprintf(sysBuf, "mplayer -ss %d:%d:%d %s",
00360                     mRgbDataSrc->GetHour(), mRgbDataSrc->GetMinute(),
00361                     mRgbDataSrc->GetSecond(), mRgbDataSrc->GetName().c_str());
00362             ILOG_INFO("sysbuf = [" << sysBuf << "]");
00363             int sysRes = system(sysBuf);
00364             if (sysRes != 0)
00365             {
00366                 ILOG_ERROR("system ["  << sysBuf << "]");
00367                 return;
00368             }
00369         }
00370         if (c == 'p')
00371             Play();
00372         if (c == 's')
00373             Stop();
00374         if (c == oglHOME)
00375             Reset();
00376         if (c == '+')
00377             NextFrame(1);
00378         if (c == '-')
00379             NextFrame(-1);
00380         if (c == '<')
00381             NextFrame(-10);
00382         if (c == '>')
00383             NextFrame(10);
00384         if (c == 'S')
00385             mScaleImageToView = !mScaleImageToView;
00386         if (c == 'F')
00387             mFitViewToWindow = !mFitViewToWindow;
00388         if (c=='f') FFwd();
00389         if (c=='b') FBwd();
00390         Window::KeyboardFunc(c, state);
00391         if (mListener)
00392             mListener->OnKey(this, c, state, mListenerData);
00393     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:50:23 2010 for ImpalaSrc by  doxygen 1.5.1