vdr
2.2.0
|
#include <recording.h>
Public Member Functions | |
cFileName (const char *FileName, bool Record, bool Blocking=false, bool IsPesRecording=false) | |
~cFileName () | |
const char * | Name (void) |
uint16_t | Number (void) |
bool | GetLastPatPmtVersions (int &PatVersion, int &PmtVersion) |
cUnbufferedFile * | Open (void) |
void | Close (void) |
cUnbufferedFile * | SetOffset (int Number, off_t Offset=0) |
cUnbufferedFile * | NextFile (void) |
Private Attributes | |
cUnbufferedFile * | file |
uint16_t | fileNumber |
char * | fileName |
char * | pFileNumber |
bool | record |
bool | blocking |
bool | isPesRecording |
Definition at line 463 of file recording.h.
cFileName::cFileName | ( | const char * | FileName, |
bool | Record, | ||
bool | Blocking = false , |
||
bool | IsPesRecording = false |
||
) |
Definition at line 2813 of file recording.c.
References esyslog, cIndexFile::fileName, cIndexFile::isPesRecording, MALLOC, and RECORDFILESUFFIXLEN.
cFileName::~cFileName | ( | ) |
Definition at line 2831 of file recording.c.
References cIndexFile::fileName.
void cFileName::Close | ( | void | ) |
Definition at line 2912 of file recording.c.
References cIndexFile::fileName, and LOG_ERROR_STR.
bool cFileName::GetLastPatPmtVersions | ( | int & | PatVersion, |
int & | PmtVersion | ||
) |
Definition at line 2837 of file recording.c.
References cIndexFile::fileName, cPatPmtParser::GetVersions(), cIndexFile::isPesRecording, cPatPmtParser::IsPmtPid(), MAXFILESPERRECORDINGTS, cPatPmtParser::ParsePat(), cPatPmtParser::ParsePmt(), PATPID, RECORDFILESUFFIXTS, TS_SIZE, TS_SYNC_BYTE, and TsPid().
Referenced by cRecorder::cRecorder().
|
inline |
Definition at line 474 of file recording.h.
References cResumeFile::fileName.
Referenced by cRecorder::Action(), and cRecorder::RunningLowOnDiskSpace().
cUnbufferedFile * cFileName::NextFile | ( | void | ) |
Definition at line 2964 of file recording.c.
Referenced by cIndexFileGenerator::Action(), cRecorder::NextFile(), cDvbPlayer::NextFile(), and cCuttingThread::SwitchFile().
|
inline |
Definition at line 475 of file recording.h.
References DEFAULTFRAMESPERSECOND, ExchangeChars(), GenerateIndex(), HMSFToIndex(), IndexToHMSF(), ReadFrame(), and SecondsToFrames().
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and cCuttingThread::ProcessSequence().
cUnbufferedFile * cFileName::Open | ( | void | ) |
Definition at line 2888 of file recording.c.
References cUnbufferedFile::Create(), dsyslog, cIndexFile::fileName, LOG_ERROR_STR, and cVideoDirectory::OpenVideoFile().
Referenced by cCuttingThread::Action(), cIndexFileGenerator::Action(), cDvbPlayer::cDvbPlayer(), and cRecorder::cRecorder().
cUnbufferedFile * cFileName::SetOffset | ( | int | Number, |
off_t | Offset = 0 |
||
) |
Definition at line 2922 of file recording.c.
References dsyslog, esyslog, cIndexFile::fileName, cIndexFile::isPesRecording, LOG_ERROR_STR, MAXFILESPERRECORDINGPES, MAXFILESPERRECORDINGTS, RECORDFILESUFFIXPES, and RECORDFILESUFFIXTS.
Referenced by cIndexFileGenerator::Action(), cCuttingThread::LoadFrame(), and cDvbPlayer::NextFile().
|
private |
Definition at line 469 of file recording.h.
|
private |
Definition at line 465 of file recording.h.
|
private |
Definition at line 467 of file recording.h.
|
private |
Definition at line 466 of file recording.h.
|
private |
Definition at line 470 of file recording.h.
|
private |
Definition at line 467 of file recording.h.
|
private |
Definition at line 468 of file recording.h.