vdr
1.7.27
|
#include <time.h>
#include "channels.h"
#include "config.h"
#include "epg.h"
#include "thread.h"
#include "timers.h"
#include "tools.h"
Go to the source code of this file.
#define DEFAULTFRAMESPERSECOND 25.0 |
Definition at line 206 of file recording.h.
#define DEFAULTRECORDINGSIZE 100 |
Definition at line 273 of file recording.h.
#define FOLDERDELIMCHAR '~' |
Definition at line 21 of file recording.h.
#define MAXFRAMESIZE (KILOBYTE(1024) / TS_SIZE * TS_SIZE) |
Definition at line 259 of file recording.h.
#define MAXRECORDINGSIZE 500 |
Definition at line 272 of file recording.h.
Definition at line 269 of file recording.h.
#define MAXVIDEOFILESIZEPES 2000 |
Definition at line 267 of file recording.h.
#define MAXVIDEOFILESIZETS 1048570 |
Definition at line 266 of file recording.h.
#define MINRECORDINGSIZE 25 |
Definition at line 271 of file recording.h.
#define MINVIDEOFILESIZE 1 |
Definition at line 268 of file recording.h.
#define RUC_AFTERRECORDING "after" |
Definition at line 247 of file recording.h.
#define RUC_BEFORERECORDING "before" |
Definition at line 246 of file recording.h.
#define RUC_EDITEDRECORDING "edited" |
Definition at line 248 of file recording.h.
#define TIMERMACRO_EPISODE "EPISODE" |
Definition at line 23 of file recording.h.
#define TIMERMACRO_TITLE "TITLE" |
Definition at line 22 of file recording.h.
void AssertFreeDiskSpace | ( | int | Priority = 0 , |
bool | Force = false |
||
) |
The special Priority value -1 means that we shall get rid of any deleted recordings faster than normal (because we're cutting).
If Force is true, the check will be done even if the timeout hasn't expired yet.
Definition at line 134 of file recording.c.
References cListBase::Count(), cListBase::Del(), cRecording::Delete(), DeletedRecordings, DISKCHECKDELTA, cRecording::FileName(), cList< T >::First(), cRecording::IsEdited(), IsOnVideoDirectoryFileSystem(), isyslog, cRecording::Lifetime(), cLockFile::Lock(), MAXLIFETIME, MINDISKSPACE, mtWarning, cList< T >::Next(), cRecording::Priority(), cSkins::QueueMessage(), Recordings, cRecording::Remove(), REMOVELATENCY, SECSINDAY, Skins, cRecording::Start(), tr, cRecordings::Update(), VideoDirectory, and VideoFileSpaceAvailable().
char* ExchangeChars | ( | char * | s, |
bool | ToFileSystem | ||
) |
Definition at line 539 of file recording.c.
References tCharExchange::a, esyslog, FOLDERDELIMCHAR, and VfatFileSystem.
bool GenerateIndex | ( | const char * | FileName | ) |
Definition at line 1892 of file recording.c.
References cThread::Active(), AddDirectory(), DirectoryOk(), INDEXFILECHECKINTERVAL, INDEXFILESUFFIX, cRecording::IsPesRecording(), cRecording::Name(), and cCondWait::SleepMs().
int HMSFToIndex | ( | const char * | HMSF, |
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2114 of file recording.c.
cString IndexToHMSF | ( | int | Index, |
bool | WithFrame = false , |
||
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2098 of file recording.c.
References cString::sprintf().
int ReadFrame | ( | cUnbufferedFile * | f, |
uchar * | b, | ||
int | Length, | ||
int | Max | ||
) |
Definition at line 2132 of file recording.c.
References esyslog, LOG_ERROR, and cUnbufferedFile::Read().
void RemoveDeletedRecordings | ( | void | ) |
Definition at line 117 of file recording.c.
References cThread::Active(), DELETEDLIFETIME, DeletedRecordings, cList< T >::First(), cList< T >::Next(), REMOVECHECKDELTA, and cThread::Start().
int SecondsToFrames | ( | int | Seconds, |
double | FramesPerSecond = DEFAULTFRAMESPERSECOND |
||
) |
Definition at line 2125 of file recording.c.
int InstanceId |
Definition at line 70 of file recording.c.
Definition at line 1089 of file recording.c.
bool VfatFileSystem |
Definition at line 69 of file recording.c.