diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-25 13:52:38 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-25 13:52:38 +0200 |
commit | 0525d1bb780981e63214973b9eb2d60bd84d1dca (patch) | |
tree | 09d763d2333643b6570b9f36450d5e9b22b55035 /dvbapi.h | |
parent | 14d3933d91af23a9d79c083163fe6f0281475001 (diff) | |
download | vdr-0525d1bb780981e63214973b9eb2d60bd84d1dca.tar.gz vdr-0525d1bb780981e63214973b9eb2d60bd84d1dca.tar.bz2 |
New Setup parameter MaxVideoFileSize
Diffstat (limited to 'dvbapi.h')
-rw-r--r-- | dvbapi.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.h 1.46 2001/08/11 12:22:01 kls Exp $ + * $Id: dvbapi.h 1.47 2001/08/25 13:37:00 kls Exp $ */ #ifndef __DVBAPI_H @@ -42,6 +42,15 @@ typedef struct CRect { #define FRAMESPERSEC 25 +// The maximum file size is limited by the range that can be covered +// with 'int'. 4GB might be possible (if the range is considered +// 'unsigned'), 2GB should be possible (even if the range is considered +// 'signed'), so let's use 2000MB for absolute safety (the actual file size +// may be slightly higher because we stop recording only before the next +// 'I' frame, to have a complete Group Of Pictures): +#define MAXVIDEOFILESIZE 2000 // MB +#define MINVIDEOFILESIZE 100 // MB + const char *IndexToHMSF(int Index, bool WithFrame = false); // Converts the given index to a string, optionally containing the frame number. int HMSFToIndex(const char *HMSF); |