vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
config.h
Go to the documentation of this file.
1
21#ifndef __SOFTHDCONFIG_H
22#define __SOFTHDCONFIG_H
23
24#include <mutex>
25
26/*****************************************************************************
27 * Config
28 ****************************************************************************/
30{
31public:
32 cSoftHdConfig(void) = default;
33
34 bool SetupParse(const char *, const char *);
35
36 // setup conf parameters
37#ifdef USE_GLES
38 int ConfigMaxSizeGPUImageCache = 128;
39 int ConfigDisableOglOsd = 0;
40#endif
45 bool ConfigAudioDownmix = false;
46 bool ConfigAudioSoftvol = false;
47 bool ConfigAudioNormalize = false;
53 int ConfigAudioEq = 0;
55 { 0, 0, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0, 0 };
58 bool ConfigLogState = true;
60 bool ConfigDisableDeint = false;
65
66 // pip - default position at right top, 25% scaled
70
71 int ConfigPipUseAlt = false;
72 // alternative position at left top, 25% scaled
76
77 // command line parameters
78 const char *ConfigAudioPCMDevice = nullptr;
79 const char *ConfigAudioPassthroughDevice = nullptr;
80 const char *ConfigAudioMixerChannel = nullptr;
81 const char *ConfigDisplayResolution = nullptr;
82
83 // stats
84 const char *CurrentDecoderName = "unknown";
85 const char *CurrentDecoderType = "unknown";
86
87 void PrintLogLevel(int);
88
91
92private:
94 std::mutex m_mutex;
95};
96
97#endif
bool ConfigParseH264Dimensions
parse h264 stream for width and height for decoder init
Definition config.h:62
int ConfigVideoAudioDelayMs
config audio delay
Definition config.h:42
const char * ConfigDisplayResolution
display resolution (syntax: "1920x1080@50")
Definition config.h:81
void PrintLogLevel(int)
Definition config.cpp:105
bool ConfigLogState
flag logging on/off
Definition config.h:58
bool ConfigAudioNormalize
config use normalize volume
Definition config.h:47
int ConfigAudioAutoAES
config automatic AES handling
Definition config.h:52
int ConfigAudioStereoDescent
config reduce stereo loudness
Definition config.h:51
int m_decoderNeedsMaxPackets
Definition config.h:93
int ConfigDecoderFallbackToSwNumPkts
maximum number of packets sent before fallback to sw decoder
Definition config.h:64
void SetDecoderNeedsMaxPackets(int)
Definition config.cpp:143
bool ConfigAudioCompression
config use volume compression
Definition config.h:49
bool ConfigAudioPassthroughState
flag audio-passthrough on/off
Definition config.h:44
const char * ConfigAudioPCMDevice
audio PCM device
Definition config.h:78
bool ConfigAudioSoftvol
config use software volume
Definition config.h:46
bool ConfigDisableDeint
disable deinterlacer
Definition config.h:60
int ConfigPipAltTopPercent
0 = aligned to top, 100 = aligned to bottom
Definition config.h:75
const char * CurrentDecoderType
Definition config.h:85
int ConfigAudioEqBand[18]
config equalizer filter bands
Definition config.h:54
int ConfigPipLeftPercent
0 = aligned to left, 100 = aligned to right
Definition config.h:68
int ConfigAdditionalBufferLengthMs
config size ms of a/v buffer
Definition config.h:41
int ConfigAudioMaxCompression
config max volume compression
Definition config.h:50
cSoftHdConfig(void)=default
int ConfigPipAltLeftPercent
0 = aligned to left, 100 = aligned to right
Definition config.h:74
int ConfigLogLevels
loglevel config
Definition config.h:59
const char * ConfigAudioMixerChannel
audio mixer channel name
Definition config.h:80
int ConfigPipAltScalePercent
alternative scale factor of pip video
Definition config.h:73
bool SetupParse(const char *, const char *)
Parse setup parameters.
Definition config.cpp:45
int ConfigPipTopPercent
0 = aligned to top, 100 = aligned to bottom
Definition config.h:69
bool ConfigDecoderNeedsIFrame
start h264 decoder only when an I-Frame arrives
Definition config.h:61
const char * CurrentDecoderName
Definition config.h:84
bool ConfigDecoderFallbackToSw
fallback to software decoder if the hardware decoder fails
Definition config.h:63
int GetDecoderNeedsMaxPackets(void)
Definition config.cpp:149
int ConfigAudioEq
config equalizer filter
Definition config.h:53
int ConfigPipScalePercent
scale factor of pip video
Definition config.h:67
int ConfigPipUseAlt
Definition config.h:71
int ConfigAudioPassthroughMask
config audio pass-through mask
Definition config.h:43
std::mutex m_mutex
Definition config.h:94
bool ConfigHideMainMenuEntry
config hide main menu entry
Definition config.h:57
bool ConfigAudioDownmix
config ffmpeg audio downmix
Definition config.h:45
const char * ConfigAudioPassthroughDevice
audio passthrough device
Definition config.h:79
int ConfigAudioMaxNormalize
config max normalize factor
Definition config.h:48