From 56ecb9dadf63f61d227c6b8acd05dcc1da17365f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Fri, 17 Jul 2009 00:58:49 +0200 Subject: Adapted to new recording format and variable frame rate (VDR >= 1.7.3) --- common.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index c5f0645..8cb0acd 100644 --- a/common.h +++ b/common.h @@ -11,9 +11,6 @@ #include #include -// from recording.h (VDR <= 1.7.2) -#define FRAMESPERSEC 25 - #if defined(DEBUG) || defined(BENCH) # ifdef DEBUG # define Dprintf(x...) fprintf(stderr, x) @@ -58,11 +55,12 @@ bool GetFrontendHasLock(void); bool GetFrontendHasSignal(void); std::string AddExtInfoToDescription(const char *Title, const char *ShortText, const char *Description, const char *Aux = NULL, bool StripAux = false); int GetRecordingSize(const char *FileName); // [MB] -int GetRecordingLength(const char *FileName); // [min] -int GetRecordingCuttedLength(const char *FileName); // [min] +int GetRecordingLength(const char *FileName, double FramesPerSecond, bool IsPesRecording); // [min] +int GetRecordingCuttedLength(const char *FileName, double FramesPerSecond, bool IsPesRecording); // [min] cxType TimeType(time_t Time, const std::string &Format); -cxType DurationType(uint Index, const std::string &Format); +cxType DurationType(uint Index, double FramesPerSecond, const std::string &Format); +cxType DurationType(int Seconds, const std::string &Format, int Frame = 0); bool ParseVar(const char *Text, const char *Name, std::string &Value); bool ParseVar(const char *Text, const char *Name, tColor *Value); -- cgit v1.2.3