cIndexFile Class Reference

#include <recording.h>

Collaboration diagram for cIndexFile:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cIndexFile (const char *FileName, bool Record)
 ~cIndexFile ()
bool Ok (void)
bool Write (uchar PictureType, uchar FileNumber, int FileOffset)
bool Get (int Index, uchar *FileNumber, int *FileOffset, uchar *PictureType=NULL, int *Length=NULL)
int GetNextIFrame (int Index, bool Forward, uchar *FileNumber=NULL, int *FileOffset=NULL, int *Length=NULL, bool StayOffEnd=false)
int Get (uchar FileNumber, int FileOffset)
int Last (void)
int GetResume (void)
bool StoreResume (int Index)
bool IsStillRecording (void)

Private Member Functions

bool CatchUp (int Index=-1)

Private Attributes

int f
char * fileName
int size
int last
tIndexindex
cResumeFile resumeFile
cMutex mutex

Classes

struct  tIndex


Detailed Description

Definition at line 192 of file recording.h.


Constructor & Destructor Documentation

cIndexFile::cIndexFile ( const char *  FileName,
bool  Record 
)

Definition at line 1163 of file recording.c.

References esyslog, f, fileName, index, INDEXFILESUFFIX, isyslog, last, LOG_ERROR, LOG_ERROR_STR, MALLOC, safe_read(), size, and writechar().

Here is the call graph for this function:

cIndexFile::~cIndexFile (  ) 

Definition at line 1231 of file recording.c.

References f, fileName, and index.


Member Function Documentation

bool cIndexFile::CatchUp ( int  Index = -1  )  [private]

Definition at line 1239 of file recording.c.

References esyslog, f, fileName, index, INDEXSAFETYLIMIT, last, LOG_ERROR_STR, MININDEXAGE, mutex, safe_read(), size, and cCondWait::SleepMs().

Referenced by Get(), GetNextIFrame(), and Last().

Here is the call graph for this function:

bool cIndexFile::Ok ( void   )  [inline]

Definition at line 205 of file recording.h.

References index.

Referenced by cDvbPlayer::cDvbPlayer().

bool cIndexFile::Write ( uchar  PictureType,
uchar  FileNumber,
int  FileOffset 
)

Definition at line 1292 of file recording.c.

References f, fileName, last, LOG_ERROR_STR, and safe_write().

Referenced by cFileWriter::Action(), and cCuttingThread::Action().

Here is the call graph for this function:

bool cIndexFile::Get ( int  Index,
uchar FileNumber,
int *  FileOffset,
uchar PictureType = NULL,
int *  Length = NULL 
)

Definition at line 1307 of file recording.c.

References CatchUp(), index, last, cIndexFile::tIndex::number, cIndexFile::tIndex::offset, and cIndexFile::tIndex::type.

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

Here is the call graph for this function:

int cIndexFile::GetNextIFrame ( int  Index,
bool  Forward,
uchar FileNumber = NULL,
int *  FileOffset = NULL,
int *  Length = NULL,
bool  StayOffEnd = false 
)

Definition at line 1329 of file recording.c.

References CatchUp(), esyslog, I_FRAME, index, INDEXSAFETYLIMIT, last, cIndexFile::tIndex::number, and cIndexFile::tIndex::offset.

Referenced by cDvbPlayer::Action(), cDvbPlayer::GetIndex(), cDvbPlayer::Goto(), cDvbPlayer::Save(), cDvbPlayer::SkipFrames(), and cDvbPlayer::SkipSeconds().

Here is the call graph for this function:

int cIndexFile::Get ( uchar  FileNumber,
int  FileOffset 
)

Definition at line 1366 of file recording.c.

References CatchUp(), index, and last.

Here is the call graph for this function:

int cIndexFile::Last ( void   )  [inline]

Definition at line 210 of file recording.h.

References CatchUp(), and last.

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

Here is the call graph for this function:

int cIndexFile::GetResume ( void   )  [inline]

Definition at line 211 of file recording.h.

References cResumeFile::Read(), and resumeFile.

Referenced by cDvbPlayer::Resume().

Here is the call graph for this function:

bool cIndexFile::StoreResume ( int  Index  )  [inline]

Definition at line 212 of file recording.h.

References resumeFile, and cResumeFile::Save().

Referenced by cDvbPlayer::Save().

Here is the call graph for this function:

bool cIndexFile::IsStillRecording ( void   ) 

Definition at line 1380 of file recording.c.

References f.

Referenced by cDvbPlayer::Action().


Member Data Documentation

int cIndexFile::f [private]

Definition at line 195 of file recording.h.

Referenced by CatchUp(), cIndexFile(), IsStillRecording(), Write(), and ~cIndexFile().

char* cIndexFile::fileName [private]

Definition at line 196 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Write(), and ~cIndexFile().

int cIndexFile::size [private]

Definition at line 197 of file recording.h.

Referenced by CatchUp(), and cIndexFile().

int cIndexFile::last [private]

Definition at line 197 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Get(), GetNextIFrame(), Last(), and Write().

tIndex* cIndexFile::index [private]

Definition at line 198 of file recording.h.

Referenced by CatchUp(), cIndexFile(), Get(), GetNextIFrame(), Ok(), and ~cIndexFile().

cResumeFile cIndexFile::resumeFile [private]

Definition at line 199 of file recording.h.

Referenced by GetResume(), and StoreResume().

cMutex cIndexFile::mutex [private]

Definition at line 200 of file recording.h.

Referenced by CatchUp().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:12:44 2007 for VDR by  doxygen 1.5.3-20071008