summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2012-11-28 09:17:32 +0100
committerhorchi <vdr@jwendel.de>2012-11-28 09:17:32 +0100
commit0197b5c98cdeec3740644655963e1f100d73998e (patch)
tree029168cfc6a31cb3bb6309f2b8ae577302307d8d /config.h
downloadvdr-plugin-seduatmo-0197b5c98cdeec3740644655963e1f100d73998e.tar.gz
vdr-plugin-seduatmo-0197b5c98cdeec3740644655963e1f100d73998e.tar.bz2
initial Release of vdr-plugin-seduatmo
Diffstat (limited to 'config.h')
-rw-r--r--config.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..a1fa19a
--- /dev/null
+++ b/config.h
@@ -0,0 +1,82 @@
+/*
+ * 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 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