summaryrefslogtreecommitdiff
path: root/command/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'command/global.h')
-rw-r--r--command/global.h41
1 files changed, 27 insertions, 14 deletions
diff --git a/command/global.h b/command/global.h
index 2dcc9f1..e7cc76c 100644
--- a/command/global.h
+++ b/command/global.h
@@ -55,6 +55,31 @@ typedef unsigned char uchar;
#define MT_MOVED 0xE0
#define MT_ALL 0xFF
+typedef struct config
+{
+ char logoDirectory[1024];
+ char LogoDir[1024];
+ char markFileName[1024];
+ char svdrphost[1024];
+
+ int logoExtraction;
+ int logoWidth;
+ int logoHeight;
+ int ignoreInfo;
+ int svdrpport;
+ int threads;
+
+ bool DecodeVideo;
+ bool DecodeAudio;
+ bool BackupMarks;
+
+ bool NoPid;
+ bool OSD;
+ bool Before;
+ bool GenIndex;
+ bool AC3Always;
+} MarkAdConfig;
+
typedef struct MarkAdPos
{
int FrameNumberBefore;
@@ -89,15 +114,7 @@ typedef struct MarkAdPid
typedef struct MarkAdContext
{
- char *LogoDir; // Logo Directory, default /var/lib/markad
-
- struct Options
- {
- int LogoExtraction;
- int LogoWidth;
- int LogoHeight;
- bool ASD;
- } Options;
+ const MarkAdConfig *Config;
struct Info
{
@@ -138,13 +155,9 @@ typedef struct MarkAdContext
struct Audio
{
- struct Options
- {
- bool AudioSilenceDetection;
- } Options;
-
struct Info
{
+ bool DolbyDigital51;
int Channels; // number of audio channels
int SampleRate;
} Info;