mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
update glcd
Conflicts: src/gui/movieplayer.h src/gui/weather_locations.h src/neutrino.cpp
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <cs_api.h>
|
||||
#include <gui/plugins.h>//for relodplugins
|
||||
#include <neutrino.h>
|
||||
#include <driver/display.h>
|
||||
#include <driver/screenshot.h>
|
||||
#include <gui/rc_lock.h>
|
||||
#include <rcsim.h>
|
||||
@@ -196,6 +197,9 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
||||
{"reloadchannels", &CControlAPI::ReloadChannelsCGI, ""},
|
||||
#ifdef SCREENSHOT
|
||||
{"screenshot", &CControlAPI::ScreenshotCGI, ""},
|
||||
#endif
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
{"glcdscreenshot", &CControlAPI::GlcdScreenshotCGI, ""},
|
||||
#endif
|
||||
// boxcontrol - devices
|
||||
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
||||
@@ -2168,6 +2172,23 @@ void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
void CControlAPI::GlcdScreenshotCGI(CyhookHandler *hh)
|
||||
{
|
||||
std::string filename = "/tmp/glcdscreenshot.png";
|
||||
|
||||
if(!hh->ParamList["name"].empty())
|
||||
filename = hh->ParamList["name"];
|
||||
|
||||
cGLCD *cglcd = cGLCD::getInstance();
|
||||
if (cglcd) {
|
||||
if (cglcd->dumpBuffer((uint32_t*)cglcd->bitmap->Data(), cGLCD::PNG, filename.c_str()))
|
||||
hh->SendOk();
|
||||
else
|
||||
hh->SendError();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void CControlAPI::ZaptoCGI(CyhookHandler *hh)
|
||||
|
@@ -105,6 +105,7 @@ private:
|
||||
void ReloadPluginsCGI(CyhookHandler *hh);
|
||||
void ReloadChannelsCGI(CyhookHandler *hh);
|
||||
void ScreenshotCGI(CyhookHandler *hh);
|
||||
void GlcdScreenshotCGI(CyhookHandler *hh);
|
||||
void ZaptoCGI(CyhookHandler *hh);
|
||||
void StartPluginCGI(CyhookHandler *hh);
|
||||
void LCDAction(CyhookHandler *hh);
|
||||
|
Reference in New Issue
Block a user