diff options
author | Thomas Günther <tom@toms-cafe.de> | 2009-07-17 00:58:49 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-07-17 01:17:52 +0200 |
commit | 56ecb9dadf63f61d227c6b8acd05dcc1da17365f (patch) | |
tree | f1ff697bceb66877e08c18b55c897f875cc3e320 /common.h | |
parent | 97c5f35c27dc65f3bc2ee9fe338f7341d65f1446 (diff) | |
download | vdr-plugin-text2skin-56ecb9dadf63f61d227c6b8acd05dcc1da17365f.tar.gz vdr-plugin-text2skin-56ecb9dadf63f61d227c6b8acd05dcc1da17365f.tar.bz2 |
Adapted to new recording format and variable frame rate (VDR >= 1.7.3)
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -11,9 +11,6 @@ #include <vdr/config.h> #include <vdr/epg.h> -// 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); |