vdr 2.7.2
|
#include <cutter.h>
Public Member Functions | |
cCutter (const char *FileName) | |
~cCutter () | |
bool | Start (void) |
void | Stop (void) |
bool | Active (void) |
bool | Error (void) |
Static Public Member Functions | |
static cString | EditedFileName (const char *FileName) |
Private Attributes | |
cString | originalVersionName |
cString | editedVersionName |
cRecordingInfo | recordingInfo |
cCuttingThread * | cuttingThread |
bool | error |
cCutter::cCutter | ( | const char * | FileName | ) |
Sets up a new cutter for the given FileName, which must be the full path name of an existing recording directory.
Definition at line 680 of file cutter.c.
References cuttingThread, error, and originalVersionName.
bool cCutter::Active | ( | void | ) |
Returns true if the cutter is currently active.
Definition at line 747 of file cutter.c.
References cThread::Active(), cuttingThread, editedVersionName, cCuttingThread::Error(), error, cRecordingUserCommand::InvokeCommand(), originalVersionName, RUC_EDITEDRECORDING, and Stop().
Referenced by cRecordingsHandlerEntry::Active(), and CutRecording().
|
static |
Returns the full path name of the edited version of the recording with the given FileName.
This static function can be used independent of any cCutter object, to determine the file name beforehand. Returns NULL in case of error.
Definition at line 693 of file cutter.c.
References cRecording::FramesPerSecond(), cMarks::GetNextBegin(), cRecording::IsPesRecording(), cMarks::Load(), cRecording::PrefixFileName(), cRecording::SetStartTime(), and cRecording::Start().
Referenced by cMenuRecordingEdit::Action(), cRecordingsHandler::Add(), cReplayControl::EditCut(), EnoughFreeDiskSpaceForEdit(), and Start().
bool cCutter::Error | ( | void | ) |
Returns true if an error occurred while cutting the recording.
Definition at line 760 of file cutter.c.
References error.
Referenced by cRecordingsHandlerEntry::Active(), CutRecording(), and Stop().
bool cCutter::Start | ( | void | ) |
Starts the actual cutting process.
Returns true if successful. If Start() is called while the cutting process is already active, nothing happens and false will be returned.
Definition at line 705 of file cutter.c.
References cuttingThread, EditedFileName(), editedVersionName, error, cRecordingUserCommand::InvokeCommand(), MakeDirs(), originalVersionName, cRecordingInfo::Read(), recordingInfo, cVideoDirectory::RemoveVideoFile(), RUC_EDITINGRECORDING, cRecordingInfo::SetFileName(), SetRecordingTimerId(), Setup, cString::sprintf(), cSetup::SVDRPHostName, and cRecordingInfo::Write().
Referenced by cRecordingsHandlerEntry::Active(), and CutRecording().
void cCutter::Stop | ( | void | ) |
Stops an ongoing cutting process.
Definition at line 730 of file cutter.c.
References cThread::Active(), cuttingThread, editedVersionName, Error(), cCuttingThread::Error(), esyslog, isyslog, cReplayControl::NowReplaying(), SetRecordingTimerId(), and cControl::Shutdown().
Referenced by Active(), and ~cCutter().
|
private |
|
private |
|
private |
|
private |
|
private |