|
vdr 2.7.8
|
#include <menu.h>
Public Member Functions | |
| cReplayControl (bool PauseLive=false) | |
| virtual | ~cReplayControl () override |
| void | Stop (void) |
| virtual cOsdObject * | GetInfo (void) override |
| virtual const cRecording * | GetRecording (void) override |
| virtual eOSState | ProcessKey (eKeys Key) override |
| virtual void | Show (void) override |
| virtual void | Hide (void) override |
| bool | Visible (void) |
| virtual void | ClearEditingMarks (void) override |
| Public Member Functions inherited from cDvbPlayerControl | |
| cDvbPlayerControl (const char *FileName, bool PauseLive=false) | |
| virtual | ~cDvbPlayerControl () override |
| void | SetMarks (const cMarks *Marks) |
| bool | Active (void) |
| void | Stop (void) |
| void | Pause (void) |
| void | Play (void) |
| void | Forward (void) |
| void | Backward (void) |
| int | SkipFrames (int Frames) |
| void | SkipSeconds (int Seconds) |
| const cErrors * | GetErrors (void) |
| bool | GetIndex (int &Current, int &Total, bool SnapToIFrame=false) |
| bool | GetFrameNumber (int &Current, int &Total) |
| bool | GetReplayMode (bool &Play, bool &Forward, int &Speed) |
| void | Goto (int Index, bool Still=false) |
| Public Member Functions inherited from cControl | |
| cControl (cPlayer *Player, bool Hidden=false) | |
| virtual | ~cControl () override |
| virtual cString | GetHeader (void) |
| void | SetPlayer (cPlayer *Player) |
| double | FramesPerSecond (void) const |
| bool | GetIndex (int &Current, int &Total, bool SnapToIFrame=false) const |
| bool | GetFrameNumber (int &Current, int &Total) const |
| bool | GetReplayMode (bool &Play, bool &Forward, int &Speed) const |
| Public Member Functions inherited from cOsdObject | |
| cOsdObject (bool FastResponse=false) | |
| virtual | ~cOsdObject () |
| virtual bool | NeedsFastResponse (void) |
| bool | IsMenu (void) const |
Static Public Member Functions | |
| static void | DelTimeshiftTimer (void) |
| static void | SetRecording (const char *FileName) |
| static const char * | NowReplaying (void) |
| static const char * | LastReplayed (void) |
| static void | ClearLastReplayed (const char *FileName) |
| Static Public Member Functions inherited from cControl | |
| static void | Launch (cControl *Control) |
| static void | Attach (void) |
| static void | Shutdown (void) |
| static cControl * | Control (cMutexLock &MutexLock, bool Hidden=false) |
Private Member Functions | |
| void | TimeSearchDisplay (void) |
| void | TimeSearchProcess (eKeys Key) |
| void | TimeSearch (void) |
| void | ShowTimed (int Seconds=0) |
| void | ShowMode (void) |
| bool | ShowProgress (bool Initial) |
| void | MarkToggle (void) |
| void | MarkJump (bool Forward) |
| void | MarkMove (int Frames, bool MarkRequired) |
| void | ErrorJump (bool Forward) |
| void | EditCut (void) |
| void | EditTest (void) |
Private Attributes | |
| cSkinDisplayReplay * | displayReplay |
| cAdaptiveSkipper | adaptiveSkipper |
| cMarks | marks |
| bool | marksModified |
| bool | visible |
| bool | modeOnly |
| bool | shown |
| bool | displayFrames |
| int | lastErrors |
| int | lastCurrent |
| int | lastTotal |
| bool | lastPlay |
| bool | lastForward |
| int | lastSpeed |
| time_t | timeoutShow |
| cTimeMs | updateTimer |
| bool | timeSearchActive |
| bool | timeSearchHide |
| int | timeSearchTime |
| int | timeSearchPos |
Static Private Attributes | |
| static cTimer * | timeshiftTimer = NULL |
| static cReplayControl * | currentReplayControl = NULL |
| static cString | fileName |
Additional Inherited Members | |
| Protected Member Functions inherited from cOsdObject | |
| void | SetNeedsFastResponse (bool NeedsFastResponse) |
| Protected Attributes inherited from cControl | |
| cPlayer * | player |
| cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
Definition at line 5986 of file menu.c.
References adaptiveSkipper, cDvbPlayerControl::cDvbPlayerControl(), currentReplayControl, displayFrames, displayReplay, cRecording::FileName(), fileName, cRecording::FramesPerSecond(), cRecording::IsPesRecording(), lastCurrent, lastErrors, lastForward, lastPlay, lastSpeed, lastTotal, marks, marksModified, modeOnly, cStatus::MsgReplaying(), cRecording::Name(), cDevice::PrimaryDevice(), cDevice::SetKeepTracks(), cDvbPlayerControl::SetMarks(), SetTrackDescriptions(), Setup, shown, ShowTimed(), timeoutShow, timeSearchActive, and visible.
|
overridevirtual |
Definition at line 6010 of file menu.c.
References currentReplayControl, cDevice::PrimaryDevice(), cDevice::SetKeepTracks(), and Stop().
|
overridevirtual |
Clears any editing marks this player might be showing.
Deletion of the marks themselves is handled separately, calling this function merely tells the player to no longer display the marks, if it has any.
Reimplemented from cControl.
Definition at line 6069 of file menu.c.
References marks, cStatus::MsgMarksModified(), and cStateKey::Remove().
|
static |
Definition at line 6097 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
static |
Definition at line 6018 of file menu.c.
References isyslog, LOCK_TIMERS_WRITE, and timeshiftTimer.
Referenced by main().
|
private |
Definition at line 6428 of file menu.c.
References cCutter::EditedFileName(), EnoughFreeDiskSpaceForEdit(), fileName, Hide(), Interface, marks, mtError, mtInfo, RecordingsHandler, ruCut, ShowMode(), Skins, and tr.
Referenced by ProcessKey().
|
private |
Definition at line 6452 of file menu.c.
References cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::Goto(), cListObject::Index(), marks, cMark::Position(), SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
private |
Definition at line 6387 of file menu.c.
References cVector< T >::At(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetErrors(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::Goto(), cVector< T >::Size(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
|
overridevirtual |
Returns an OSD object that displays information about the currently played programme.
If no such information is available, NULL will be returned.
Reimplemented from cControl.
Definition at line 6468 of file menu.c.
References cOsdObject::cOsdObject(), LastReplayed(), and LOCK_RECORDINGS_READ.
|
overridevirtual |
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRecording.
Reimplemented from cControl.
Definition at line 6476 of file menu.c.
References LastReplayed(), and LOCK_RECORDINGS_READ.
|
overridevirtual |
Implements cControl.
Definition at line 6120 of file menu.c.
References displayReplay, lastForward, lastPlay, lastSpeed, marks, marksModified, modeOnly, cOsdObject::SetNeedsFastResponse(), timeoutShow, timeSearchActive, and visible.
Referenced by EditCut(), ProcessKey(), ShowTimed(), Stop(), TimeSearch(), and TimeSearchProcess().
|
static |
Definition at line 6089 of file menu.c.
References fileName, and LOCK_RECORDINGS_READ.
Referenced by cMenuRecordings::cMenuRecordings(), cRecordControl::cRecordControl(), GetInfo(), GetRecording(), main(), cMenuMain::ProcessKey(), cSetup::Save(), cMenuRecordings::Set(), and cMenuMain::Update().
|
private |
Definition at line 6324 of file menu.c.
References displayFrames, cDvbPlayerControl::Forward(), cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
private |
Definition at line 6349 of file menu.c.
References displayFrames, cDvbPlayerControl::Forward(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, marksModified, min(), cStatus::MsgMarksModified(), cDvbPlayerControl::Play(), cMark::Position(), cMark::SetPosition(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
|
private |
Definition at line 6299 of file menu.c.
References displayFrames, cDvbPlayerControl::Forward(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), lastCurrent, marks, marksModified, cStatus::MsgMarksModified(), cDvbPlayerControl::Play(), cStateKey::Remove(), Setup, and ShowTimed().
Referenced by ProcessKey().
|
static |
Definition at line 6084 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cSVDRPServer::CmdPLAY(), cMenuRecordings::Delete(), cRecording::IsInUse(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 6484 of file menu.c.
References cDvbPlayerControl::Active(), adaptiveSkipper, cDvbPlayerControl::Backward(), displayFrames, EditCut(), EditTest(), ErrorJump(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), Hide(), k_Release, k_Repeat, kBack, kBlue, kChanDn, kChanUp, kDown, kEditCut, kEditTest, kFastFwd, kFastRew, kGreen, kLeft, kMarkJumpBack, kMarkJumpForward, kMarkMoveBack, kMarkMoveForward, kMarkSkipBack, kMarkSkipForward, kMarkToggle, kNext, kNone, kOk, kPause, kPlay, kPlayPause, kPrev, kRed, kRight, kStop, kUp, kYellow, MarkJump(), MarkMove(), marks, marksModified, MarkToggle(), modeOnly, osContinue, osEnd, osRecordings, osUnknown, cDvbPlayerControl::Pause(), cDvbPlayerControl::Play(), RAWKEY, Setup, Show(), ShowMode(), shown, ShowProgress(), cDvbPlayerControl::SkipSeconds(), Stop(), timeoutShow, TimeSearch(), timeSearchActive, TimeSearchProcess(), and visible.
|
static |
Definition at line 6079 of file menu.c.
References fileName.
Referenced by cSVDRPServer::CmdPLAY(), cRecordControl::cRecordControl(), cSetup::Parse(), cRecordControls::PauseLiveVideo(), and cMenuRecordings::Play().
|
overridevirtual |
Reimplemented from cOsdObject.
Definition at line 6115 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 6139 of file menu.c.
References displayReplay, cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cOsd::IsOpen(), lastForward, lastPlay, lastSpeed, modeOnly, MODETIMEOUT, cDvbPlayerControl::Play(), Setup, Skins, timeoutShow, and visible.
Referenced by EditCut(), ProcessKey(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 6164 of file menu.c.
References displayFrames, displayReplay, fileName, cControl::FramesPerSecond(), cDvbPlayerControl::GetErrors(), cDvbPlayerControl::GetFrameNumber(), IndexToHMSF(), lastCurrent, lastErrors, lastTotal, LOCK_RECORDINGS_READ, marks, modeOnly, PROGRESSTIMEOUT, cOsdObject::SetNeedsFastResponse(), Setup, ShowMode(), cVector< T >::Size(), Skins, updateTimer, and visible.
Referenced by ProcessKey(), and ShowTimed().
|
private |
Definition at line 6103 of file menu.c.
References Hide(), modeOnly, shown, ShowProgress(), timeoutShow, and visible.
Referenced by cReplayControl(), MarkToggle(), and Show().
| void cReplayControl::Stop | ( | void | ) |
Definition at line 6030 of file menu.c.
References cDvbPlayerControl::Active(), ClearLastReplayed(), fileName, cRecordControls::GetRecordControl(), Hide(), cRecordControl::InstantId(), Interface, LOCK_RECORDINGS_WRITE, cStatus::MsgReplaying(), mtError, cMenuRecordings::SetRecording(), Setup, Skins, cDvbPlayerControl::Stop(), cRecordControl::Stop(), cRecordControl::Timer(), timeshiftTimer, and tr.
Referenced by ProcessKey(), and ~cReplayControl().
|
private |
Definition at line 6281 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 6209 of file menu.c.
References displayReplay, timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 6227 of file menu.c.
References displayReplay, cControl::FramesPerSecond(), cDvbPlayerControl::Goto(), Hide(), k0, k9, k_Flags, kDown, kFastFwd, kFastRew, kLeft, kOk, kPause, kPlay, kPlayPause, kRight, kUp, lastCurrent, lastTotal, min(), SecondsToFrames(), ShowMode(), cDvbPlayerControl::SkipSeconds(), STAY_SECONDS_OFF_END, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, and timeSearchTime.
Referenced by ProcessKey().
|
inline |
|
private |
Definition at line 304 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
staticprivate |
Definition at line 320 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 307 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 303 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 321 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), and Stop().
|
private |
Definition at line 309 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 308 of file menu.h.
Referenced by cReplayControl(), and ShowProgress().
|
private |
Definition at line 310 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 310 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 311 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 309 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 305 of file menu.h.
Referenced by ClearEditingMarks(), cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 306 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 307 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 307 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 312 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 314 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 314 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 315 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 315 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 302 of file menu.h.
Referenced by DelTimeshiftTimer(), and Stop().
|
private |
Definition at line 313 of file menu.h.
Referenced by ShowProgress().
|
private |
Definition at line 307 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().