vdr  2.0.6
Classes | Macros | Enumerations | Functions | Variables
recording.h File Reference
#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.

Classes

class  cResumeFile
 
class  cRecordingInfo
 
class  cRecording
 
class  cRecordings
 
class  cMark
 
class  cMarks
 
class  cRecordingUserCommand
 
class  cIndexFile
 
class  cFileName
 

Macros

#define FOLDERDELIMCHAR   '~'
 
#define DEFAULTFRAMESPERSECOND   25.0
 
#define RUC_BEFORERECORDING   "before"
 
#define RUC_AFTERRECORDING   "after"
 
#define RUC_EDITEDRECORDING   "edited"
 
#define RUC_DELETERECORDING   "deleted"
 
#define MAXFRAMESIZE   (KILOBYTE(1024) / TS_SIZE * TS_SIZE)
 
#define MAXVIDEOFILESIZETS   1048570
 
#define MAXVIDEOFILESIZEPES   2000
 
#define MINVIDEOFILESIZE   100
 
#define MAXVIDEOFILESIZEDEFAULT   MAXVIDEOFILESIZEPES
 

Enumerations

enum  eRecordingsSortMode { rsmName, rsmTime }
 

Functions

void RemoveDeletedRecordings (void)
 
void ClearVanishedRecordings (void)
 
void AssertFreeDiskSpace (int Priority=0, bool Force=false)
 
cString IndexToHMSF (int Index, bool WithFrame=false, double FramesPerSecond=DEFAULTFRAMESPERSECOND)
 
int HMSFToIndex (const char *HMSF, double FramesPerSecond=DEFAULTFRAMESPERSECOND)
 
int SecondsToFrames (int Seconds, double FramesPerSecond=DEFAULTFRAMESPERSECOND)
 
int ReadFrame (cUnbufferedFile *f, uchar *b, int Length, int Max)
 
char * ExchangeChars (char *s, bool ToFileSystem)
 
bool GenerateIndex (const char *FileName)
 
bool HasRecordingsSortMode (const char *Directory)
 
void GetRecordingsSortMode (const char *Directory)
 
void SetRecordingsSortMode (const char *Directory, eRecordingsSortMode SortMode)
 
void IncRecordingsSortMode (const char *Directory)
 

Variables

int DirectoryPathMax
 
int DirectoryNameMax
 
bool DirectoryEncoding
 
int InstanceId
 
cRecordings Recordings
 
cRecordings DeletedRecordings
 
eRecordingsSortMode RecordingsSortMode
 

Macro Definition Documentation

#define DEFAULTFRAMESPERSECOND   25.0
#define FOLDERDELIMCHAR   '~'
#define MAXFRAMESIZE   (KILOBYTE(1024) / TS_SIZE * TS_SIZE)
#define MAXVIDEOFILESIZEDEFAULT   MAXVIDEOFILESIZEPES

Definition at line 288 of file recording.h.

Referenced by cSetup::cSetup(), and main().

#define MAXVIDEOFILESIZEPES   2000

Definition at line 286 of file recording.h.

Referenced by cCuttingThread::cCuttingThread().

#define MAXVIDEOFILESIZETS   1048570

Definition at line 285 of file recording.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), and main().

#define MINVIDEOFILESIZE   100

Definition at line 287 of file recording.h.

Referenced by cMenuSetupRecord::cMenuSetupRecord(), and main().

#define RUC_AFTERRECORDING   "after"

Definition at line 265 of file recording.h.

Referenced by cRecordControl::Stop().

#define RUC_BEFORERECORDING   "before"

Definition at line 264 of file recording.h.

Referenced by cRecordControl::cRecordControl().

#define RUC_DELETERECORDING   "deleted"

Definition at line 267 of file recording.h.

Referenced by cRecording::Delete().

#define RUC_EDITEDRECORDING   "edited"

Definition at line 266 of file recording.h.

Referenced by cCutter::Active().

Enumeration Type Documentation

Enumerator
rsmName 
rsmTime 

Definition at line 368 of file recording.h.

Function Documentation

void AssertFreeDiskSpace ( int  Priority = 0,
bool  Force = false 
)
void ClearVanishedRecordings ( void  )

Definition at line 222 of file recording.c.

References cListBase::Clear(), and Recordings.

Referenced by main().

char* ExchangeChars ( char *  s,
bool  ToFileSystem 
)
bool GenerateIndex ( const char *  FileName)
void GetRecordingsSortMode ( const char *  Directory)
bool HasRecordingsSortMode ( const char *  Directory)

Definition at line 2452 of file recording.c.

References AddDirectory(), and SORTMODEFILE.

Referenced by cRecordControl::cRecordControl().

int HMSFToIndex ( const char *  HMSF,
double  FramesPerSecond = DEFAULTFRAMESPERSECOND 
)

Definition at line 2416 of file recording.c.

Referenced by cSVDRP::CmdPLAY(), and cMark::Parse().

void IncRecordingsSortMode ( const char *  Directory)
cString IndexToHMSF ( int  Index,
bool  WithFrame = false,
double  FramesPerSecond = DEFAULTFRAMESPERSECOND 
)
int ReadFrame ( cUnbufferedFile f,
uchar b,
int  Length,
int  Max 
)

Definition at line 2434 of file recording.c.

References esyslog, LOG_ERROR, and cUnbufferedFile::Read().

Referenced by cDvbPlayer::Goto(), and cCuttingThread::LoadFrame().

void RemoveDeletedRecordings ( void  )
int SecondsToFrames ( int  Seconds,
double  FramesPerSecond = DEFAULTFRAMESPERSECOND 
)
void SetRecordingsSortMode ( const char *  Directory,
eRecordingsSortMode  SortMode 
)

Variable Documentation

cRecordings DeletedRecordings

Referenced by main(), and VideoDiskSpace().

bool DirectoryEncoding

Definition at line 71 of file recording.c.

Referenced by ExchangeChars(), main(), and NeedsConversion().

int DirectoryNameMax

Definition at line 70 of file recording.c.

Referenced by cRecording::FileName(), and main().

int DirectoryPathMax

Definition at line 69 of file recording.c.

Referenced by cRecording::FileName(), and main().

int InstanceId

Definition at line 72 of file recording.c.

Referenced by cRecording::cRecording(), and main().

cRecordings Recordings
eRecordingsSortMode RecordingsSortMode