blob: cb52d6fa9e605339b38bb6ff6ad8e573e711305a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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
|