Enable screenshots; handle screenshot key in streaminfo

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2091 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 013ce5ce28
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-02-15 (Wed, 15 Feb 2012)
This commit is contained in:
[CST] Focus
2012-02-15 13:34:07 +00:00
parent d7cf8568d0
commit a46b44fba4
3 changed files with 6 additions and 1 deletions

View File

@@ -230,6 +230,7 @@ public:
int CloseVBI(void);
int StartVBI(unsigned short pid);
int StopVBI(void);
bool GetScreenImage(unsigned char * &data, int &xres, int &yres, bool get_video = true, bool get_osd = false, bool scale_to_video = false);
};
#endif // __VIDEO_CS_H_

View File

@@ -79,7 +79,7 @@ bool CScreenShot::GetData()
CFrameBuffer::getInstance()->setActive(false);
#endif
#if 0 // to enable after libcs/drivers update
#if 1 // to enable after libcs/drivers update
res = videoDecoder->GetScreenImage(pixel_data, xres, yres, get_video, get_osd, scale_to_video);
#endif

View File

@@ -246,6 +246,10 @@ int CStreamInfo2::doSignalStrengthLoop ()
res = menu_return::RETURN_EXIT_ALL;
break;
}
else if (msg == (neutrino_msg_t) g_settings.key_screenshot) {
CNeutrinoApp::getInstance ()->handleMsg (msg, data);
continue;
}
// -- any key --> abort
if (msg <= CRCInput::RC_MaxRC) {