Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cIndexFile Class Reference

#include <recording.h>

Collaboration diagram for cIndexFile:

Collaboration graph
[legend]

Public Methods

 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)

Private Methods

bool CatchUp (int Index=-1)

Private Attributes

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

Constructor & Destructor Documentation

cIndexFile::cIndexFile const char *    FileName,
bool    Record
 

Definition at line 781 of file recording.c.

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

cIndexFile::~cIndexFile  
 

Definition at line 849 of file recording.c.

References f.


Member Function Documentation

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

Definition at line 857 of file recording.c.

References esyslog, f, index, last, LOG_ERROR_STR, MININDEXAGE, safe_read(), and size.

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

int cIndexFile::Get uchar    FileNumber,
int    FileOffset
 

Definition at line 985 of file recording.c.

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

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

Definition at line 924 of file recording.c.

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

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

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

Definition at line 947 of file recording.c.

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

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

int cIndexFile::GetResume void    [inline]
 

Definition at line 162 of file recording.h.

References cResumeFile::Read().

Referenced by cDvbPlayer::Resume().

int cIndexFile::Last void    [inline]
 

Definition at line 161 of file recording.h.

References CatchUp().

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

bool cIndexFile::Ok void    [inline]
 

Definition at line 156 of file recording.h.

Referenced by cDvbPlayer::cDvbPlayer().

bool cIndexFile::StoreResume int    Index [inline]
 

Definition at line 163 of file recording.h.

References cResumeFile::Save().

Referenced by cDvbPlayer::Save().

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

Definition at line 909 of file recording.c.

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

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


Field Documentation

int cIndexFile::f [private]
 

Definition at line 147 of file recording.h.

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

char* cIndexFile::fileName [private]
 

Definition at line 148 of file recording.h.

Referenced by cIndexFile().

tIndex* cIndexFile::index [private]
 

Definition at line 150 of file recording.h.

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

int cIndexFile::last [private]
 

Definition at line 149 of file recording.h.

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

cResumeFile cIndexFile::resumeFile [private]
 

Definition at line 151 of file recording.h.

int cIndexFile::size [private]
 

Definition at line 149 of file recording.h.

Referenced by CatchUp(), and cIndexFile().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:14 2003 for VDR by doxygen1.3-rc2