vdr
2.0.4
|
#include <recording.h>
Public Member Functions | |
bool | Load (const char *RecordingFileName, double FramesPerSecond=DEFAULTFRAMESPERSECOND, bool IsPesRecording=false) |
bool | Update (void) |
bool | Save (void) |
void | Align (void) |
void | Sort (void) |
void | Add (int Position) |
cMark * | Get (int Position) |
cMark * | GetPrev (int Position) |
cMark * | GetNext (int Position) |
cMark * | GetNextBegin (cMark *EndMark=NULL) |
cMark * | GetNextEnd (cMark *BeginMark) |
int | GetNumSequences (void) |
![]() | |
cConfig (void) | |
virtual | ~cConfig () |
const char * | FileName (void) |
bool | Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false) |
bool | Save (void) |
![]() | |
cMark * | Get (int Index) const |
cMark * | First (void) const |
cMark * | Last (void) const |
cMark * | Prev (const cMark *object) const |
cMark * | Next (const cMark *object) const |
![]() | |
virtual | ~cListBase () |
void | Add (cListObject *Object, cListObject *After=NULL) |
void | Ins (cListObject *Object, cListObject *Before=NULL) |
void | Del (cListObject *Object, bool DeleteObject=true) |
virtual void | Move (int From, int To) |
void | Move (cListObject *From, cListObject *To) |
cListObject * | Get (int Index) const |
int | Count (void) const |
void | Sort (void) |
Private Attributes | |
cString | recordingFileName |
cString | fileName |
double | framesPerSecond |
bool | isPesRecording |
time_t | nextUpdate |
time_t | lastFileTime |
time_t | lastChange |
Additional Inherited Members | |
![]() | |
cListBase (void) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
Definition at line 226 of file recording.h.
void cMarks::Add | ( | int | Position | ) |
Definition at line 1574 of file recording.c.
References cListBase::Add(), framesPerSecond, and Sort().
Referenced by cReplayControl::MarkToggle(), and cCuttingThread::ProcessSequence().
void cMarks::Align | ( | void | ) |
Definition at line 1550 of file recording.c.
References cList< cMark >::First(), framesPerSecond, cIndexFile::GetClosestIFrame(), IndexToHMSF(), isPesRecording, isyslog, cList< cMark >::Next(), and recordingFileName.
Referenced by Update().
cMark * cMarks::Get | ( | int | Position | ) |
Definition at line 1580 of file recording.c.
References cList< cMark >::First(), and cList< cMark >::Next().
Referenced by cReplayControl::EditTest(), cReplayControl::MarkMove(), and cReplayControl::MarkToggle().
cMark * cMarks::GetNext | ( | int | Position | ) |
Definition at line 1598 of file recording.c.
References cList< cMark >::First(), and cList< cMark >::Next().
Referenced by cReplayControl::EditTest(), and cReplayControl::MarkJump().
Returns the next "begin" mark after EndMark, skipping any marks at the same position as EndMark.
If EndMark is NULL, the first actual "begin" will be returned (if any).
Definition at line 1607 of file recording.c.
References cList< cMark >::First(), cList< cMark >::Next(), and cMark::Position().
Referenced by cCuttingThread::Action(), GetNumSequences(), and cCutter::Start().
Returns the next "end" mark after BeginMark, skipping any marks at the same position as BeginMark.
Definition at line 1623 of file recording.c.
References cList< cMark >::Next(), and cMark::Position().
Referenced by cCuttingThread::Action(), and GetNumSequences().
int cMarks::GetNumSequences | ( | void | ) |
Returns the actual number of sequences to be cut from the recording.
If there is only one actual "begin" mark, and it is positioned at index 0 (the beginning of the recording), and there is no "end" mark, the return value is 0, which means that the result is the same as the original recording.
Definition at line 1641 of file recording.c.
References GetNextBegin(), and GetNextEnd().
Referenced by cCuttingThread::cCuttingThread(), CutRecording(), and cReplayControl::EditCut().
cMark * cMarks::GetPrev | ( | int | Position | ) |
Definition at line 1589 of file recording.c.
References cList< cMark >::Last(), and cList< cMark >::Prev().
Referenced by cReplayControl::MarkJump().
bool cMarks::Load | ( | const char * | RecordingFileName, |
double | FramesPerSecond = DEFAULTFRAMESPERSECOND , |
||
bool | IsPesRecording = false |
||
) |
Definition at line 1498 of file recording.c.
References AddDirectory(), fileName, framesPerSecond, isPesRecording, lastChange, lastFileTime, MARKSFILESUFFIX, nextUpdate, recordingFileName, and Update().
Referenced by cCuttingThread::cCuttingThread(), cSVDRP::CmdEDIT(), cMenuEditRecording::cMenuEditRecording(), cReplayControl::cReplayControl(), CutRecording(), cMenuEditRecording::ProcessKey(), and cCutter::Start().
bool cMarks::Save | ( | void | ) |
Definition at line 1541 of file recording.c.
References fileName, lastFileTime, and LastModifiedTime().
Referenced by cReplayControl::Hide(), cMenuEditRecording::ProcessKey(), and cCuttingThread::ProcessSequence().
void cMarks::Sort | ( | void | ) |
Definition at line 1562 of file recording.c.
References cList< cMark >::First(), cList< cMark >::Next(), and swap().
bool cMarks::Update | ( | void | ) |
Definition at line 1510 of file recording.c.
References Align(), fileName, framesPerSecond, lastChange, lastFileTime, LastModifiedTime(), MarkFramesPerSecond, nextUpdate, and Sort().
Referenced by Load(), and cReplayControl::ProcessKey().
|
private |
Definition at line 229 of file recording.h.
|
private |
|
private |
Definition at line 231 of file recording.h.
|
private |
Definition at line 234 of file recording.h.
|
private |
Definition at line 233 of file recording.h.
|
private |
Definition at line 232 of file recording.h.
|
private |
Definition at line 228 of file recording.h.