mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
- screenshot: allow screenshots using external utility; most code is taken from TangoCash
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -23,6 +23,14 @@
|
||||
#ifndef __screenshot_h_
|
||||
#define __screenshot_h_
|
||||
|
||||
#ifdef SCREENSHOT
|
||||
#if BOXMODEL_VUPLUS
|
||||
#define SCREENSHOT_EXTERNAL 1
|
||||
#else
|
||||
#define SCREENSHOT_INTERNAL 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
class CScreenShot
|
||||
@@ -37,13 +45,15 @@ class CScreenShot
|
||||
private:
|
||||
screenshot_format_t format;
|
||||
std::string filename;
|
||||
unsigned char * pixel_data;
|
||||
int xres;
|
||||
int yres;
|
||||
bool extra_osd;
|
||||
bool get_osd;
|
||||
bool get_video;
|
||||
bool scale_to_video;
|
||||
|
||||
#if SCREENSHOT_INTERNAL
|
||||
unsigned char * pixel_data;
|
||||
FILE *fd;
|
||||
pthread_t scs_thread;
|
||||
pthread_mutex_t thread_mutex;
|
||||
@@ -65,6 +75,7 @@ class CScreenShot
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
bool mergeOsdScreen(uint32_t dx, uint32_t dy, fb_pixel_t* osdData);
|
||||
#endif
|
||||
#endif // SCREENSHOT_INTERNAL
|
||||
|
||||
public:
|
||||
CScreenShot(const std::string fname = "", screenshot_format_t fmt = CScreenShot::FORMAT_JPG);
|
||||
|
Reference in New Issue
Block a user