cRecorder Class Reference

#include <recorder.h>

Inheritance diagram for cRecorder:

Inheritance graph
[legend]
Collaboration diagram for cRecorder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cRecorder (const char *FileName, tChannelID ChannelID, int Priority, int VPid, const int *APids, const int *DPids, const int *SPids)
virtual ~cRecorder ()

Protected Member Functions

virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)
virtual void Action (void)

Private Member Functions

bool RunningLowOnDiskSpace (void)
bool NextFile (void)

Private Attributes

cRingBufferLinearringBuffer
cFrameDetectorframeDetector
cPatPmtGenerator patPmtGenerator
cFileNamefileName
cIndexFileindex
cUnbufferedFilerecordFile
cRecordingInfo recordingInfo
off_t fileSize
time_t lastDiskSpaceCheck


Detailed Description

Definition at line 19 of file recorder.h.


Constructor & Destructor Documentation

cRecorder::cRecorder ( const char *  FileName,
tChannelID  ChannelID,
int  Priority,
int  VPid,
const int *  APids,
const int *  DPids,
const int *  SPids 
)

cRecorder::~cRecorder (  )  [virtual]

Definition at line 63 of file recorder.c.

References cReceiver::Detach(), fileName, frameDetector, index, and ringBuffer.

Here is the call graph for this function:


Member Function Documentation

bool cRecorder::RunningLowOnDiskSpace ( void   )  [private]

Definition at line 72 of file recorder.c.

References DISKCHECKINTERVAL, dsyslog, fileName, FreeDiskSpaceMB(), lastDiskSpaceCheck, MINFREEDISKSPACE, and cFileName::Name().

Referenced by NextFile().

Here is the call graph for this function:

bool cRecorder::NextFile ( void   )  [private]

Definition at line 85 of file recorder.c.

References fileName, fileSize, frameDetector, cFrameDetector::IndependentFrame(), cSetup::MaxVideoFileSize, MEGABYTE, cFileName::NextFile(), recordFile, RunningLowOnDiskSpace(), and Setup.

Referenced by Action().

Here is the call graph for this function:

void cRecorder::Activate ( bool  On  )  [protected, virtual]

This function is called just before the cReceiver gets attached to (On == true) or detached from (On == false) a cDevice. It can be used to do things like starting/stopping a thread. It is guaranteed that Receive() will not be called before Activate(true).

Reimplemented from cReceiver.

Definition at line 96 of file recorder.c.

References cThread::Cancel(), and cThread::Start().

Here is the call graph for this function:

void cRecorder::Receive ( uchar Data,
int  Length 
) [protected, virtual]

This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested. The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.

Implements cReceiver.

Definition at line 104 of file recorder.c.

References cRingBufferLinear::Put(), cRingBuffer::ReportOverflow(), ringBuffer, and cThread::Running().

Here is the call graph for this function:

void cRecorder::Action ( void   )  [protected, virtual]


Member Data Documentation

Definition at line 21 of file recorder.h.

Referenced by Action(), cRecorder(), Receive(), and ~cRecorder().

Definition at line 22 of file recorder.h.

Referenced by Action(), cRecorder(), NextFile(), and ~cRecorder().

Definition at line 23 of file recorder.h.

Referenced by Action(), and cRecorder().

Definition at line 24 of file recorder.h.

Referenced by Action(), cRecorder(), NextFile(), RunningLowOnDiskSpace(), and ~cRecorder().

Definition at line 25 of file recorder.h.

Referenced by Action(), cRecorder(), and ~cRecorder().

Definition at line 26 of file recorder.h.

Referenced by Action(), cRecorder(), and NextFile().

Definition at line 27 of file recorder.h.

Referenced by Action().

off_t cRecorder::fileSize [private]

Definition at line 28 of file recorder.h.

Referenced by Action(), cRecorder(), and NextFile().

Definition at line 29 of file recorder.h.

Referenced by cRecorder(), and RunningLowOnDiskSpace().


The documentation for this class was generated from the following files:

Generated on Tue Jan 13 14:31:26 2009 for VDR by  doxygen 1.5.6