vdr
1.7.27
|
Public Member Functions | |
cCuttingThread (const char *FromFileName, const char *ToFileName) | |
virtual | ~cCuttingThread () |
const char * | Error (void) |
Protected Member Functions | |
virtual void | Action (void) |
Private Attributes | |
const char * | error |
bool | isPesRecording |
cUnbufferedFile * | fromFile |
cUnbufferedFile * | toFile |
cFileName * | fromFileName |
cFileName * | toFileName |
cIndexFile * | fromIndex |
cIndexFile * | toIndex |
cMarks | fromMarks |
cMarks | toMarks |
off_t | maxVideoFileSize |
cCuttingThread::cCuttingThread | ( | const char * | FromFileName, |
const char * | ToFileName | ||
) |
Definition at line 36 of file cutter.c.
References cListBase::Count(), error, esyslog, cRecording::FramesPerSecond(), fromFile, fromFileName, fromIndex, fromMarks, isPesRecording, cRecording::IsPesRecording(), cMarks::Load(), maxVideoFileSize, cSetup::MaxVideoFileSize, MAXVIDEOFILESIZEPES, MEGABYTE, Setup, cThread::Start(), toFile, toFileName, toIndex, and toMarks.
cCuttingThread::~cCuttingThread | ( | ) | [virtual] |
Definition at line 60 of file cutter.c.
References cThread::Cancel(), fromFileName, fromIndex, toFileName, and toIndex.
void cCuttingThread::Action | ( | void | ) | [protected, virtual] |
A derived cThread class must implement the code it wants to execute as a separate thread in this function.
If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 69 of file cutter.c.
References cMarks::Add(), AssertFreeDiskSpace(), cFileName::Close(), error, esyslog, FileSize(), cList< T >::First(), fromFile, fromFileName, fromIndex, fromMarks, cIndexFile::Get(), cSetup::HardLinkCutter, HardLinkVideoFile(), isPesRecording, cIndexFile::Last(), cFileName::MaxFileSize(), MAXFRAMESIZE, MEGABYTE, cFileName::Name(), cList< T >::Next(), cFileName::NextFile(), cFileName::Number(), cFileName::Open(), cMark::Position(), ReadFrame(), ReadLink(), Recordings, cThread::Running(), cConfig< T >::Save(), cRemux::SetBrokenLink(), cThread::SetIOPriority(), cFileName::SetOffset(), cThread::SetPriority(), cUnbufferedFile::SetReadAhead(), Setup, cSetup::SplitEditedFiles, toFile, toFileName, toIndex, toMarks, cRecordings::TouchUpdate(), TsSetTeiOnBrokenPackets(), cIndexFile::Write(), and cUnbufferedFile::Write().
const char* cCuttingThread::Error | ( | void | ) | [inline] |
Definition at line 33 of file cutter.c.
References error.
Referenced by cCutter::Active(), and cCutter::Stop().
const char* cCuttingThread::error [private] |
Definition at line 21 of file cutter.c.
Referenced by Action(), cCuttingThread(), and Error().
cUnbufferedFile* cCuttingThread::fromFile [private] |
Definition at line 23 of file cutter.c.
Referenced by Action(), and cCuttingThread().
cFileName* cCuttingThread::fromFileName [private] |
Definition at line 24 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
cIndexFile* cCuttingThread::fromIndex [private] |
Definition at line 25 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
cMarks cCuttingThread::fromMarks [private] |
Definition at line 26 of file cutter.c.
Referenced by Action(), and cCuttingThread().
bool cCuttingThread::isPesRecording [private] |
Definition at line 22 of file cutter.c.
Referenced by Action(), and cCuttingThread().
off_t cCuttingThread::maxVideoFileSize [private] |
Definition at line 27 of file cutter.c.
Referenced by cCuttingThread().
cUnbufferedFile * cCuttingThread::toFile [private] |
Definition at line 23 of file cutter.c.
Referenced by Action(), and cCuttingThread().
cFileName * cCuttingThread::toFileName [private] |
Definition at line 24 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
cIndexFile * cCuttingThread::toIndex [private] |
Definition at line 25 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
cMarks cCuttingThread::toMarks [private] |
Definition at line 26 of file cutter.c.
Referenced by Action(), and cCuttingThread().