diff options
| author | horchi <vdr@jwendel.de> | 2017-03-05 16:49:27 +0100 |
|---|---|---|
| committer | horchi <vdr@jwendel.de> | 2017-03-05 16:49:27 +0100 |
| commit | 6965ee5e2570436648ecd9b50197c80fd3c28565 (patch) | |
| tree | bdd78eac61983d68a173f0b473f030be2b0c2ff7 /config.h | |
| download | vdr-plugin-seduatmo-0.0.3.tar.gz vdr-plugin-seduatmo-0.0.3.tar.bz2 | |
init git0.0.3
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..cb52d6f --- /dev/null +++ b/config.h @@ -0,0 +1,83 @@ +/* + * config.h: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id: config.h,v 1.28 2012/11/28 06:29:24 wendel Exp $ + */ + +#ifndef __SEDU_CONFIG_H +#define __SEDU_CONFIG_H + +#include "common.h" +#include "ledsconf.h" +#include "seduservice.h" + +//*************************************************************************** +// Configuration +//*************************************************************************** + +class cSeduConfig : public cSeduService +{ + public: + + cSeduConfig(); + ~cSeduConfig(); + + // geometry + + int grabWidth; + int grabHeight; + + // adjust + + int threshold; + int adjGreen; + int adjRed; + int adjBlue; + int frequence; + unsigned int average; + int gamma; + int xDeep; + int yDeep; + int black; + + // technical + + ViewMode viewMode; + int fixedR; + int fixedG; + int fixedB; + int effectSpeed; + + int showMainmenu; + char seduRGBOrder[4]; + SeduMode seduMode; + Cinebars detectCineBars; + + int loglevel; + + cLed* leds; + int ledCount; + + // functions + + cLed* createLeds(cLedConfs* conf); + void copyLeds(cSeduConfig* c) + { + ledCount = c->ledCount; + leds = new cLed[ledCount]; + memset(leds, 0, ledCount*sizeof(cLed)); + + for (int i = 0; i < ledCount; i++) + leds[i] = c->leds[i]; + } +}; + +//*************************************************************************** +// Global Configuration +//*************************************************************************** + +extern cSeduConfig cfg; + +#endif // __SEDU_CONFIG_H |
