source: titan/titan/defaults.h @ 38580

Last change on this file since 38580 was 35794, checked in by gost, 8 years ago

[titan] min free after epgwrite set to 900kb

File size: 6.7 KB
Line 
1#ifndef DEFAULTS_H
2#define DEFAULTS_H
3
4void setdefaults()
5{
6        int i = 0;
7        char* tmpstr = NULL;
8
9        addconfigdef("vol", "30");
10        addconfigdef("dmxvideobuffersize", "1048576");
11        addconfigdef("dmxaudiobuffersize", "1048576");
12        addconfigdef("dmxepgbuffersize", "524288");
13        addconfigdef("dmxrecordbuffersize", "3145728");
14        addconfigdef("dmxtimeshiftbuffersize", "5242880");
15        addconfigdef("dmxstreambuffersize", "3145728");
16        addconfigdef("mediadbpath", "/media/hdd/.mediadb");
17        addconfigdef("mediadbfile", "/media/hdd/.mediadb/mediadb");
18        addconfigdef("rec_moviepath", "/media");
19        addconfigdef("rec_path", "/media/hdd/movie");
20        addconfigdef("rec_timeshiftpath", "/media/hdd/movie");
21        addconfigdef("rec_timerpath", "/media/hdd/movie");
22        addconfigdef("rec_streampath", "/media/hdd/movie");
23        addconfigdef("epg_path", "/media/hdd");
24        addconfigdef("epg_days", "14");
25        addconfigdef("epg_del", "0");
26        addconfigdef("tracelog", "/media/hdd");
27        addconfigdef("spinnerspeed", "12");
28        addconfigdef("spinnertime", "5");
29        addconfigdef("hangtime", "60");
30        addconfigdef("skinfbwidth", "1280");
31        addconfigdef("skinfbheight", "720");
32        addconfigdef("fbleftoffset", "0");
33        addconfigdef("fbrightoffset", "0");
34        addconfigdef("fbtopoffset", "0");
35        addconfigdef("fbbottomoffset", "0");
36        addconfigdef("infobartimeout", "4");
37        addconfigdef("infobarsleep", "0");
38        addconfigdef("volbartimeout", "1");
39        addconfigdef("mc_videoplayerpath", "/media");
40        addconfigdef("vfdbrightness", "3");
41        addconfigdef("vfdstandbybrightness", "3");
42        addconfigdef("vs_brightness", "128");
43        addconfigdef("vs_contrast", "128");
44        addconfigdef("vs_tint", "128");
45        addconfigdef("vs_saturation", "128");
46        addconfigdef("epgfreespace", "900");
47        addconfigdef("pincode", "0000");
48        addconfigdef("pincodemenu", "0000");
49        addconfigdef("httpdstart", "0");
50        addconfigdef("httpdport", "80");
51        addconfigdef("streamport", "22222");
52        addconfigdef("rguidport", "22233");
53        addconfigdef("recordfreespace", "1000");
54        addconfigdef("skip13", "120");
55        addconfigdef("skip46", "300");
56        addconfigdef("skip79", "900");
57        addconfigdef("gmultiepgzoom", "4");
58        addconfigdef("wakeuptimerdevdiff", "300");
59        addconfigdef("rectimer_timediff", "180");
60        addconfigdef("screenanimspeed", "1");
61        addconfigdef("blindminfrequency", "9500");
62        addconfigdef("blindmaxfrequency", "14500");
63        addconfigdef("blindstepfrequency", "20");
64        addconfigdef("blindminsignalrate", "20000");
65        addconfigdef("blindmaxsignalrate", "30000");
66        addconfigdef("blindstepsignalrate", "20");
67        addconfigdef("cblindminfrequency", "100000");
68        addconfigdef("cblindmaxfrequency", "900000");
69        addconfigdef("cblindstepfrequency", "20000");
70        addconfigdef("cblindminsignalrate", "20000");
71        addconfigdef("cblindmaxsignalrate", "30000");
72        addconfigdef("cblindstepsignalrate", "20");
73        addconfigdef("tblindminfrequency", "100000");
74        addconfigdef("tblindmaxfrequency", "900000");
75        addconfigdef("tblindstepfrequency", "20000");
76        addconfigdef("camwait", "25");
77        addconfigdef("newsletter", "1");
78        addconfigdef("showhiddenfiles", "1");
79        addconfigdef("playerbuffersize", "1048576");
80        addconfigdef("playerbufferseektime", "3");
81        addconfigdef("playerstart", "60");
82        addconfigdef("playerstop", "70");
83        addconfigdef("vmpegapplydev", "/proc/stb/vmpeg/%d/dst_apply");
84        addconfigdef("encoderdev", "/dev/encoder%d");
85        addconfigdef("enc_decoder", "/proc/stb/encoder/%d/decoder");
86        addconfigdef("enc_all", "/proc/stb/encoder/%d/%s");
87       
88        status.expertmodus = getconfigint("expertmodus", NULL);
89        status.pmtmode = getconfigint("pmtmode", NULL);
90        status.usedirectfb = getconfigint("usedirectfb", NULL);
91        status.servicetype = getconfigint("servicetype", NULL);
92        status.spinnertime = getconfigint("spinnertime", NULL);
93        status.spinnerspeed = getconfigint("spinnerspeed", NULL);
94        status.hangtime = getconfigint("hangtime", NULL);
95        status.epgdays = getconfigint("epg_days", NULL);
96        status.fasttextrender = getconfigint("fasttextrender", NULL);
97        status.recsplitsize = (off64_t)getconfigint("recsplitsize", NULL) * 1000 * 1000 * 1000;
98        status.epglistmode = getconfigint("epg_listmode", NULL);
99        status.listboxselecttype = getskinconfigint("listboxselecttype", NULL);
100        status.borderradius = getskinconfigint("borderradius", NULL);
101        status.httpauth = ostrcat(getconfig("httpauth", NULL), NULL, 0, 0);
102        status.showchanneltimeline = getconfigint("showchanneltimeline", NULL);
103        status.screenanim = getconfigint("screenanim", NULL);
104        status.screenanimspeed = getconfigint("screenanimspeed", NULL);
105        status.leftoffset = getconfigint("fbleftoffset", NULL);
106        status.rightoffset = getconfigint("fbrightoffset", NULL);
107        status.topoffset = getconfigint("fbtopoffset", NULL);
108        status.bottomoffset = getconfigint("fbbottomoffset", NULL);
109        status.markcol = convertcol("markcol");
110        status.listboxselectcol = convertcol("listboxselect");
111        status.filelistselectcol = convertcol("filelistselect");
112        status.selectpic = getskinconfig("selectpic", NULL);
113        status.volautochangevalue = getconfigint("volautochangevalue", NULL);
114        status.channellistview = getconfigint("channellistview", NULL);
115        status.caskipprivat = getconfigint("caskipprivat", NULL);
116        status.casendallcaids = getconfigint("casendallcaids", NULL);
117        status.showhiddenfiles = getconfigint("showhiddenfiles", NULL);
118        status.infobarprogram = getconfigint("infobarprogram", NULL);
119        status.autosubtitle = getconfigint("autosubtitle", NULL);
120        status.asktimeshift = getconfigint("asktimeshift", NULL);
121        status.crosscontrol = getconfigint("crosscontrol", NULL);
122        status.timeshifttype = getconfigint("timeshifttype", NULL);
123        status.autochangechannelname = getconfigint("autochangechannelname", NULL);
124        status.showrecfreesize = getconfigint("showrecfreesize", NULL);
125        status.defpicmemtimeout = getskinconfigint("defpicmemtimeout", NULL);
126        status.imdbfolderpath = getconfig("imdbfolderpath", NULL);
127        status.virtualzap = getconfigint("virtualzap", NULL);
128        status.fontsizeadjust = getskinconfigint("fontsizeadjust", NULL);
129        status.rcskipms = getconfigint("rcskipms", NULL);
130        status.pipzap = 0;
131       
132        if(checkbox("ATEMIO7600") == 1) delconfig("fastzap");
133        if(status.filelistselectcol == 0) status.filelistselectcol = status.listboxselectcol;
134       
135        status.bgpic = getskinconfig("bgpic", NULL);
136        if(status.bgpic != NULL)
137        {
138                unsigned long width = 0, height = 0, rowbytes = 0;
139                int channels = 0, memfd = -1, length = 0;
140                unsigned char* buf = NULL;
141               
142                status.bgpic = changepicpath(status.bgpic);
143               
144                length = strlen(status.bgpic);
145                if(status.bgpic[length - 1] == 'g' && status.bgpic[length - 2] == 'n' && status.bgpic[length - 3] == 'p')
146                {
147                        buf = readpng(status.bgpic, &width, &height, &rowbytes, &channels, 0, 0, 0, 0, 0, 0);
148                        addpic(status.bgpic, buf, memfd, width, height, rowbytes, channels, 0, 0, NULL);
149                }
150        }
151
152        for(i = 0; i < MAXLONGKEY; i++)
153        {
154                tmpstr = ostrcat("longkey", oitoa(i), 0, 1);
155                status.longkeycode[i] = getrcconfigint(tmpstr, NULL);
156                free(tmpstr); tmpstr = NULL;
157        }
158}
159
160#endif
Note: See TracBrowser for help on using the repository browser.