25#include <vdr/plugin.h>
42 return new cOsdItem(cString::sprintf(
"%s:", label), osUnknown,
false);
56 item =
new cMenuEditBoolItem(cString::sprintf(
"* %s", label), &flag,
57 msg ? msg : tr(
"show"), tr(
"hide"));
77 Add(
new cMenuEditBoolItem(tr(
"Hide main menu entry"), &
m_cHideMainMenuEntry, trVDR(
"no"), trVDR(
"yes")));
80 Add(
new cMenuEditIntItem(tr(
"GPU mem used for image caching (MB)"), &m_cMaxSizeGPUImageCache, 0, 4000));
96 Add(
new cOsdItem(cString::sprintf(tr(
" Frames duped(%d) dropped(%d) total(%d)"), duped, dropped, counter), osUnknown,
false));
98 Add(
new cOsdItem(cString::sprintf(tr(
" OSD: Using %s rendering"),
m_pConfig->ConfigDisableOglOsd ?
"software" :
"hardware"), osUnknown,
false));
100 Add(
new cOsdItem(cString::sprintf(tr(
" OSD: Using software rendering")), osUnknown,
false));
112 Add(
new cMenuEditBoolItem(tr(
"Write OSD to file"), &m_cWritePngs, trVDR(
"no"), trVDR(
"yes")));
123 Add(
new cMenuEditBoolItem(tr(
"Enable logging"), &
m_cLogDefault, trVDR(
"off"), trVDR(
"on")));
125 Add(
new cMenuEditBoolItem(tr(
"\040\040Standard debug logs"), &
m_cLogDebug_, trVDR(
"no"), trVDR(
"yes")));
126 Add(
new cMenuEditBoolItem(tr(
"\040\040AV Sync debug logs"), &
m_cLogAVSync, trVDR(
"no"), trVDR(
"yes")));
127 Add(
new cMenuEditBoolItem(tr(
"\040\040Sound debug logs"), &
m_cLogSound, trVDR(
"no"), trVDR(
"yes")));
128 Add(
new cMenuEditBoolItem(tr(
"\040\040OSD debug logs"), &
m_cLogOSD, trVDR(
"no"), trVDR(
"yes")));
129 Add(
new cMenuEditBoolItem(tr(
"\040\040DRM debug logs"), &
m_cLogDRM, trVDR(
"no"), trVDR(
"yes")));
130 Add(
new cMenuEditBoolItem(tr(
"\040\040Codec debug logs"), &
m_cLogCodec, trVDR(
"no"), trVDR(
"yes")));
131 Add(
new cMenuEditBoolItem(tr(
"\040\040Stillpicture debug logs"), &
m_cLogStill, trVDR(
"no"), trVDR(
"yes")));
132 Add(
new cMenuEditBoolItem(tr(
"\040\040Trickspeed debug logs"), &
m_cLogTrick, trVDR(
"no"), trVDR(
"yes")));
133 Add(
new cMenuEditBoolItem(tr(
"\040\040Mediaplayer debug logs"), &
m_cLogMedia, trVDR(
"no"), trVDR(
"yes")));
134 Add(
new cMenuEditBoolItem(tr(
"\040\040OpenGL OSD debug logs"), &
m_cLogGL, trVDR(
"no"), trVDR(
"yes")));
135 Add(
new cMenuEditBoolItem(tr(
"\040\040OpenGL OSD time measurement"), &
m_cLogGLTime, trVDR(
"no"), trVDR(
"yes")));
136 Add(
new cMenuEditBoolItem(tr(
"\040\040OpenGL OSD time measurement (extensive)"), &
m_cLogGLTimeAll, trVDR(
"no"), trVDR(
"yes")));
137 Add(
new cMenuEditBoolItem(tr(
"\040\040Packet tracking logs"), &
m_cLogPacket, trVDR(
"no"), trVDR(
"yes")));
138 Add(
new cMenuEditBoolItem(tr(
"\040\040Grabbing debug logs"), &
m_cLogGrab, trVDR(
"no"), trVDR(
"yes")));
147 Add(
new cMenuEditBoolItem(tr(
"Disable deinterlacer"), &
m_cDisableDeint, trVDR(
"no"), trVDR(
"yes")));
149 Add(
new cMenuEditIntItem(tr(
" video scaling factor (%)"), &
m_cPipScalePercent, 10, 100));
152 Add(
new cMenuEditBoolItem(tr(
" use alternative position as default"), &
m_cPipUseAlt, trVDR(
"no"), trVDR(
"yes")));
153 Add(
new cMenuEditIntItem(tr(
" alternative video scaling factor (%)"), &
m_cPipAltScalePercent, 10, 100));
163 Add(
new cMenuEditIntItem(tr(
"Audio/Video delay (ms)"), &
m_cAudioDelay, -1000, 1000));
164 Add(
new cMenuEditBoolItem(tr(
"Volume control"), &
m_cAudioSoftvol, tr(
"Hardware"), tr(
"Software")));
165 Add(
new cMenuEditBoolItem(tr(
"Enable normalize volume"), &
m_cAudioNormalize, trVDR(
"no"), trVDR(
"yes")));
167 Add(
new cMenuEditIntItem(tr(
" Max normalize factor (/1000)"), &
m_cAudioMaxNormalize, 0, 10000));
168 Add(
new cMenuEditBoolItem(tr(
"Enable volume compression"), &
m_cAudioCompression, trVDR(
"no"), trVDR(
"yes")));
172 Add(
new cMenuEditBoolItem(tr(
"Enable Stereo downmix"), &
m_cAudioDownmix, trVDR(
"no"), trVDR(
"yes")));
175 Add(
new cMenuEditBoolItem(tr(
"\040\040PCM pass-through"), &
m_cAudioPassthroughPCM, trVDR(
"no"), trVDR(
"yes")));
176 Add(
new cMenuEditBoolItem(tr(
"\040\040AC-3 pass-through"), &
m_cAudioPassthroughAC3, trVDR(
"no"), trVDR(
"yes")));
177 Add(
new cMenuEditBoolItem(tr(
"\040\040E-AC-3 pass-through"), &
m_cAudioPassthroughEAC3, trVDR(
"no"), trVDR(
"yes")));
178 Add(
new cMenuEditBoolItem(tr(
"\040\040DTS pass-through"), &
m_cAudioPassthroughDTS, trVDR(
"no"), trVDR(
"yes")));
179 Add(
new cMenuEditBoolItem(tr(
"Enable automatic AES"), &
m_cAudioAutoAES, trVDR(
"no"), trVDR(
"yes")));
188 Add(
new cMenuEditBoolItem(tr(
" Enable Audio Equalizer"), &
m_cAudioEq, trVDR(
"no"), trVDR(
"yes")));
190 Add(
new cMenuEditIntItem(tr(
" 60 Hz band gain"), &
m_cAudioEqBand[0], -15, 1));
191 Add(
new cMenuEditIntItem(tr(
" 72 Hz band gain"), &
m_cAudioEqBand[1], -15, 1));
192 Add(
new cMenuEditIntItem(tr(
" 107 Hz band gain"), &
m_cAudioEqBand[2], -15, 1));
193 Add(
new cMenuEditIntItem(tr(
" 150 Hz band gain"), &
m_cAudioEqBand[3], -15, 1));
194 Add(
new cMenuEditIntItem(tr(
" 220 Hz band gain"), &
m_cAudioEqBand[4], -15, 1));
195 Add(
new cMenuEditIntItem(tr(
" 310 Hz band gain"), &
m_cAudioEqBand[5], -15, 1));
196 Add(
new cMenuEditIntItem(tr(
" 430 Hz band gain"), &
m_cAudioEqBand[6], -15, 1));
197 Add(
new cMenuEditIntItem(tr(
" 620 Hz band gain"), &
m_cAudioEqBand[7], -15, 1));
198 Add(
new cMenuEditIntItem(tr(
" 860 Hz band gain"), &
m_cAudioEqBand[8], -15, 1));
199 Add(
new cMenuEditIntItem(tr(
" 1200 Hz band gain"), &
m_cAudioEqBand[9], -15, 1));
200 Add(
new cMenuEditIntItem(tr(
" 1700 Hz band gain"), &
m_cAudioEqBand[10], -15, 1));
201 Add(
new cMenuEditIntItem(tr(
" 2500 Hz band gain"), &
m_cAudioEqBand[11], -15, 1));
202 Add(
new cMenuEditIntItem(tr(
" 3500 Hz band gain"), &
m_cAudioEqBand[12], -15, 1));
203 Add(
new cMenuEditIntItem(tr(
" 4800 Hz band gain"), &
m_cAudioEqBand[13], -15, 1));
204 Add(
new cMenuEditIntItem(tr(
" 7000 Hz band gain"), &
m_cAudioEqBand[14], -15, 1));
205 Add(
new cMenuEditIntItem(tr(
" 9500 Hz band gain"), &
m_cAudioEqBand[15], -15, 1));
206 Add(
new cMenuEditIntItem(tr(
" 13500 Hz band gain"), &
m_cAudioEqBand[16], -15, 1));
207 Add(
new cMenuEditIntItem(tr(
" 17200 Hz band gain"), &
m_cAudioEqBand[17], -15, 1));
211 SetCurrent(Get(current));
225 int old_cDebugMenu = m_cDebugMenu;
239 eOSState state = cMenuSetupPage::ProcessKey(key);
247 old_cDebugMenu != m_cDebugMenu ||
285 m_cMaxSizeGPUImageCache =
m_pConfig->ConfigMaxSizeGPUImageCache;
295 m_cWritePngs =
m_pConfig->ConfigWritePngs;
361 for (
int i = 0; i < 18; i++) {
378 SetupStore(
"MaxSizeGPUImageCache",
m_pConfig->ConfigMaxSizeGPUImageCache = m_cMaxSizeGPUImageCache);
387 m_pConfig->ConfigWritePngs = m_cWritePngs;
388 SetupStore(
"WritePngs",
m_pConfig->ConfigWritePngs);
void SetStereoDescent(int)
Set stereo loudness descent.
void SetAutoAES(bool appendAes)
void SetCompression(bool, int)
Set volume compression parameters.
void SetSoftvol(bool softVolume)
void SetEq(int[18], int)
Set equalizer bands.
void SetDownmix(int downMix)
void SetNormalize(bool, int)
Set normalize volume parameters.
int ConfigVideoAudioDelayMs
config audio delay
bool ConfigLogState
flag logging on/off
bool ConfigAudioNormalize
config use normalize volume
int ConfigAudioAutoAES
config automatic AES handling
int ConfigAudioStereoDescent
config reduce stereo loudness
bool ConfigAudioCompression
config use volume compression
bool ConfigAudioPassthroughState
flag audio-passthrough on/off
bool ConfigAudioSoftvol
config use software volume
bool ConfigDisableDeint
disable deinterlacer
int ConfigPipAltTopPercent
0 = aligned to top, 100 = aligned to bottom
int ConfigAudioEqBand[18]
config equalizer filter bands
int ConfigPipLeftPercent
0 = aligned to left, 100 = aligned to right
int ConfigAdditionalBufferLengthMs
config size ms of a/v buffer
int ConfigAudioMaxCompression
config max volume compression
int ConfigPipAltLeftPercent
0 = aligned to left, 100 = aligned to right
int ConfigLogLevels
loglevel config
int ConfigPipAltScalePercent
alternative scale factor of pip video
int ConfigPipTopPercent
0 = aligned to top, 100 = aligned to bottom
int ConfigAudioEq
config equalizer filter
int ConfigPipScalePercent
scale factor of pip video
int ConfigAudioPassthroughMask
config audio pass-through mask
bool ConfigHideMainMenuEntry
config hide main menu entry
bool ConfigAudioDownmix
config ffmpeg audio downmix
int ConfigAudioMaxNormalize
config max normalize factor
void PipSetSize(void)
Set size and position for the pip window.
void GetStats(int *, int *, int *)
Get statistics from the renderer.
void ResetChannelId(void)
Reset the channel ID (restarts audio)
void SetPassthrough(int)
Set the passthrough mask (called from setup menu or conf)
cSoftHdConfig * Config(void)
void SetDisableDeint(void)
Disables deinterlacer (called from setup menu or conf)
cSoftHdAudio * Audio(void)
static std::shared_ptr< cSoftHdLogger > GetLogger()
Get an instance to the global logger.
#define CODEC_PCM
bits used for the passthrough mask
#define CODEC_EAC3
E-AC-3 bit mask.
#define CODEC_AC3
AC-3 bit mask.
#define CODEC_DTS
DTS bit mask.
Logger class header file.
#define L_OPENGL_TIME_ALL
#define L_DEBUG
Logger flags.
Device class header file.