vdr
1.7.31
|
Public Member Functions | |
cCuttingThread (const char *FromFileName, const char *ToFileName) | |
virtual | ~cCuttingThread () |
const char * | Error (void) |
![]() | |
cThread (const char *Description=NULL) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
cThread (const char *Description=NULL) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
Protected Member Functions | |
virtual void | Action (void) |
![]() | |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
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 |
Additional Inherited Members | |
![]() | |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
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.
|
virtual |
Definition at line 60 of file cutter.c.
References cThread::Cancel(), fromFileName, fromIndex, toFileName, and toIndex.
|
protectedvirtual |
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(), dsyslog, cIoThrottle::Engaged(), 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, cCondWait::SleepMs(), cSetup::SplitEditedFiles, toFile, toFileName, toIndex, toMarks, cRecordings::TouchUpdate(), TsSetTeiOnBrokenPackets(), cIndexFile::Write(), and cUnbufferedFile::Write().
|
inline |
Definition at line 33 of file cutter.c.
References error.
Referenced by cCutter::Active(), and cCutter::Stop().
|
private |
Definition at line 21 of file cutter.c.
Referenced by Action(), cCuttingThread(), and Error().
|
private |
Definition at line 23 of file cutter.c.
Referenced by Action(), and cCuttingThread().
|
private |
Definition at line 24 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
|
private |
Definition at line 25 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
|
private |
Definition at line 26 of file cutter.c.
Referenced by Action(), and cCuttingThread().
|
private |
Definition at line 22 of file cutter.c.
Referenced by Action(), and cCuttingThread().
|
private |
Definition at line 27 of file cutter.c.
Referenced by cCuttingThread().
|
private |
Definition at line 23 of file cutter.c.
Referenced by Action(), and cCuttingThread().
|
private |
Definition at line 24 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
|
private |
Definition at line 25 of file cutter.c.
Referenced by Action(), cCuttingThread(), and ~cCuttingThread().
|
private |
Definition at line 26 of file cutter.c.
Referenced by Action(), and cCuttingThread().