Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

recording.h File Reference

#include <time.h>
#include "config.h"
#include "timers.h"
#include "tools.h"

Include dependency graph for recording.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

class  cFileName
 File naming. More...

class  cIndexFile
class  cMark
 Set recording mark. More...

class  cMarks
 Configuration of recording mark. More...

class  cRecording
 Recording file handling. More...

class  cRecordings
 Configure recording list. More...

class  cRecordingUserCommand
 Recording commands. More...

class  cResumeFile
 File resume. More...

struct  tIndex

Defines

#define RUC_BEFORERECORDING   "before"
#define RUC_AFTERRECORDING   "after"
#define RUC_EDITEDRECORDING   "edited"
#define FRAMESPERSEC   25
#define MAXFRAMESIZE   KILOBYTE(192)
#define MAXVIDEOFILESIZE   2000
#define MINVIDEOFILESIZE   100

Functions

void RemoveDeletedRecordings (void)
void AssertFreeDiskSpace (int Priority=0)
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)
 Converts the given string (format: "hh:mm:ss.ff") to an index.

int SecondsToFrames (int Seconds)
int ReadFrame (int f, uchar *b, int Length, int Max)


Define Documentation

#define FRAMESPERSEC   25
 

XXX+

Definition at line 125 of file recording.h.

Referenced by HMSFToIndex(), IndexToHMSF(), SecondsToFrames(), and cReplayControl::TimeSearchProcess().

#define MAXFRAMESIZE   KILOBYTE(192)
 

The maximum size of a single frame:

Definition at line 130 of file recording.h.

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

#define MAXVIDEOFILESIZE   2000
 

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):

Definition at line 140 of file recording.h.

Referenced by cSetup::cSetup().

#define MINVIDEOFILESIZE   100
 

Definition at line 141 of file recording.h.

#define RUC_AFTERRECORDING   "after"
 

Definition at line 109 of file recording.h.

#define RUC_BEFORERECORDING   "before"
 

Definition at line 108 of file recording.h.

#define RUC_EDITEDRECORDING   "edited"
 

Definition at line 110 of file recording.h.


Function Documentation

void AssertFreeDiskSpace int    Priority
 

With every call to this function we try to actually remove a file, or mark a file for removal ("delete" it), so that it will get removed during the next call.

Definition at line 102 of file recording.c.

References cRecording::Delete(), DISKCHECKDELTA, cList< cRecording >::First(), isyslog, cRecording::lifetime, cRecordings::Load(), cLockFile::Lock(), MAXLIFETIME, cList< cRecording >::Next(), cRecording::priority, cRecording::Remove(), REMOVELATENCY, SECSINDAY, cRecording::start, tr, and VideoFileSpaceAvailable().

Referenced by cCuttingThread::Action(), and cRecordControl::Process().

int HMSFToIndex const char *    HMSF
 

Converts the given string (format: "hh:mm:ss.ff") to an index.

Definition at line 1113 of file recording.c.

References FRAMESPERSEC.

Referenced by cMark::Parse().

const char* IndexToHMSF int    Index,
bool    WithFrame = false
 

Converts the given index to a string, optionally containing the frame number.

Definition at line 1101 of file recording.c.

References FRAMESPERSEC.

Referenced by cDvbPlayer::Action(), cReplayControl::ShowProgress(), and cMark::ToText().

int ReadFrame int    f,
uchar   b,
int    Length,
int    Max
 

Definition at line 1128 of file recording.c.

References esyslog, LOG_ERROR, and safe_read().

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

void RemoveDeletedRecordings void   
 

recording.h: Recording file handling

See the main source file 'vdr.c' for copyright information and how to reach the author.

Id
recording.h 1.25 2002/10/19 15:48:52 kls Exp

Definition at line 73 of file recording.c.

References DELETEDLIFETIME, cList< cRecording >::First(), cRecordings::Load(), cLockFile::Lock(), cList< cRecording >::Next(), cRecording::Remove(), REMOVECHECKDELTA, RemoveEmptyVideoDirectories(), REMOVELATENCY, and cRecording::start.

Referenced by main().

int SecondsToFrames int    Seconds
 

Returns the number of frames corresponding to the given number of seconds. XXX+ ->player???

Definition at line 1121 of file recording.c.

References FRAMESPERSEC.


Generated on Wed Feb 5 23:30:43 2003 for VDR by doxygen1.3-rc2