framebuffer_ng: implement showFrame() und stopFrame()

Origin commit data
------------------
Branch: ni/coolstream
Commit: fa2acb0e44
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-13 (Sun, 13 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-12-13 18:23:28 +01:00
parent d1c820e0f3
commit 6eea7f9dd6
2 changed files with 19 additions and 0 deletions

View File

@@ -1366,3 +1366,21 @@ void CFrameBuffer::mark(int x, int y, int dx, int dy)
{
accel->mark(x, y, dx, dy);
};
/* argh. really not the right thing to do here... */
extern cVideo *videoDecoder;
void CFrameBuffer::showFrame(const std::string & filename)
{
std::string picture = ICONSDIR_VAR + filename;
if (access(picture.c_str(), F_OK))
picture = iconBasePath + filename;
if (filename.find("/", 0) != std::string::npos)
picture = filename;
videoDecoder->ShowPicture(picture.c_str());
}
void CFrameBuffer::stopFrame()
{
videoDecoder->StopPicture();
}

View File

@@ -246,6 +246,7 @@ class CFrameBuffer
void Clear();
void showFrame(const std::string & filename);
void stopFrame();
bool loadBackgroundPic(const std::string & filename, bool show = true);
bool Lock(void);
void Unlock(void);