summaryrefslogtreecommitdiff
path: root/command/markad-standalone.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-02-09 21:33:37 +0100
committerJochen Dolze <vdr@dolze.de>2011-02-09 21:33:37 +0100
commit71a9b82061cc4420da2357ae99ecc701d7a6eedd (patch)
tree593d9ff7fc169e20cca0788cdaf8ca8e019325da /command/markad-standalone.h
parent44d861cb39b59700ea5b8bd79da088d0d5400a23 (diff)
downloadvdr-plugin-markad-71a9b82061cc4420da2357ae99ecc701d7a6eedd.tar.gz
vdr-plugin-markad-71a9b82061cc4420da2357ae99ecc701d7a6eedd.tar.bz2
Completed end mark detection
New option -I for correcting info file Better texts for options
Diffstat (limited to 'command/markad-standalone.h')
-rw-r--r--command/markad-standalone.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/command/markad-standalone.h b/command/markad-standalone.h
index 50e3b6a..960f7ee 100644
--- a/command/markad-standalone.h
+++ b/command/markad-standalone.h
@@ -24,7 +24,7 @@
#define DELTATIME 20000 /* equals to 222ms (base is 90kHz PTS) */
-#define MAXRANGE 420 /* range to search for start/stop marks in seconds */
+#define MAXRANGE 120 /* range to search for start/stop marks in seconds */
class cOSDMessage
{
@@ -207,7 +207,14 @@ unsigned Descriptor_Length:
time_t startTime; // starttime of broadcast
int length; // length of broadcast in seconds
int tStart; // pretimer in seconds
- int iStart; // pretimer in frames
+ int iStart; // pretimer in frames (negative if unset)
+ int iStop; // endposition in frames (negative if unset)
+
+ void CheckStop();
+ void CheckStart();
+ void CalculateCheckPositions(int startframe);
+ int chkSTART;
+ int chkSTOP;
int skipped; // skipped bytes in whole file
bool inBroadCast; // are we in a broadcast (or ad)?
@@ -219,11 +226,6 @@ unsigned Descriptor_Length:
bool setVideo169; // set video to 16:9 in info
#endif
- void CheckStart();
- void CalculateCheckPositions(int startframe, int delta);
- int chkLEFT;
- int chkRIGHT;
-
time_t GetBroadcastStart(time_t start, int fd);
void CheckIndexGrowing();
char *indexFile;
@@ -242,7 +244,7 @@ unsigned Descriptor_Length:
bool CheckPATPMT(off_t Offset=0);
bool CheckTS();
bool LoadInfo();
- //bool SaveInfo();
+ bool SaveInfo();
bool SetFileUID(char *File);
bool RegenerateIndex();
bool ProcessFile2ndPass(clMark **Mark1, clMark **Mark2, int Number, off_t Offset, int Frame, int Frames);