blob: b36f7a320661c3ad584eb8024d1804d7950292aa (
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
|
//////////////////////////////////////////////////////////////////////////////
/// ///
/// This file is part of the VDR mpv plugin and licensed under AGPLv3 ///
/// ///
/// See the README file for copyright information ///
/// ///
//////////////////////////////////////////////////////////////////////////////
#ifndef __MPV_CONFIG_H
#define __MPV_CONFIG_H
#include <string>
#include <vector>
#include "player.h"
using std::string;
using std::vector;
class cMpvPluginConfig
{
private:
string PlayListExtString; // list of playlist extensions, we will convert this into a vector
vector<string> ExplodeString(string Input); // creates a vector from the given string
public:
cMpvPluginConfig(); // define default values
int ProcessArgs(int argc, char *const argv[]); // parse command line arguments
const char *CommandLineHelp(); // return our command line help string
bool SetupParse(const char *name, const char *value); // parse setup.conf values
// plugin setup variables
int UsePassthrough; // enable passthrough
int UseDtsHdPassthrough; // enable DTS-HD passthrough
int StereoDownmix; // enable stereo downmix
int HideMainMenuEntry; // hide main menu entry
int PlaylistOnNextKey; // skip to next playlist item on next/previous keys
int PlaylistIfNoChapters; // skip to next playlist item if the file has no chapters
int ShowMediaTitle; // show title from media file instead of filename
// plugin parameter variables
string BrowserRoot; // start dir for filebrowser
int RefreshRate; // enable modeline switching
string VideoOut; // video out device
string HwDec; // hwdec codecs
string AudioOut; // audio out device
string DiscDevice; // optical disc device
string Languages; // language string for audio and subtitle TODO move to Setup menu
vector<string> PlaylistExtensions; // file extensions which are recognized as a playlist
string X11Display; // X11 display used for mpv
string TitleOverride; // title to display (ovveride used via service interface)
};
// only create one instance (done in mpv.c), all other calls will simply get the extern reference
#ifdef CREATE_CONFIG
cMpvPluginConfig *MpvPluginConfig; // create an instance of this class to have the config available if needed
#else
extern cMpvPluginConfig *MpvPluginConfig;
#endif
#endif
|