|
vdr 2.8.3
|
#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, bool *LockedOtherwise=NULL) |
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 6026 of file menu.c.
References cSetup::AdaptiveSkipInitial, adaptiveSkipper, cDvbPlayerControl::cDvbPlayerControl(), currentReplayControl, displayFrames, displayReplay, cRecording::FileName(), fileName, cRecording::FramesPerSecond(), cAdaptiveSkipper::Initialize(), cRecording::IsPesRecording(), lastCurrent, lastErrors, lastForward, lastPlay, lastSpeed, lastTotal, cMarks::Load(), marks, marksModified, modeOnly, cStatus::MsgReplaying(), cRecording::Name(), cDevice::PrimaryDevice(), cSetup::ProgressDisplayTime, cDevice::SetKeepTracks(), cDvbPlayerControl::SetMarks(), SetTrackDescriptions(), Setup, shown, ShowTimed(), timeoutShow, timeSearchActive, and visible.
Referenced by cRecordControls::PauseLiveVideo().
|
overridevirtual |
Definition at line 6050 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 6111 of file menu.c.
References cListBase::Del(), cList< T >::First(), cListBase::Lock(), marks, cStatus::MsgMarksModified(), and cStateKey::Remove().
|
static |
Definition at line 6139 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
static |
Definition at line 6058 of file menu.c.
References isyslog, LOCK_TIMERS_WRITE, timeshiftTimer, and cTimer::ToDescr().
Referenced by main().
|
private |
Definition at line 6474 of file menu.c.
References cRecordingsHandler::Add(), cInterface::Confirm(), cListBase::Count(), cCutter::EditedFileName(), EnoughFreeDiskSpaceForEdit(), fileName, cMarks::GetNumSequences(), cRecordingsHandler::GetUsage(), Hide(), Interface, marks, mtError, mtInfo, cSkins::QueueMessage(), RecordingsHandler, ruCut, ShowMode(), Skins, and tr.
Referenced by ProcessKey().
|
private |
Definition at line 6498 of file menu.c.
References cControl::FramesPerSecond(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cDvbPlayerControl::Goto(), cListObject::Index(), marks, cList< T >::Next(), cMark::Position(), SecondsToFrames(), Setup, and cSetup::SkipEdited.
Referenced by ProcessKey().
|
private |
Definition at line 6429 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 6514 of file menu.c.
References cMenuRecording::cMenuRecording(), 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 6522 of file menu.c.
References LastReplayed(), and LOCK_RECORDINGS_READ.
|
overridevirtual |
Implements cControl.
Definition at line 6162 of file menu.c.
References displayReplay, lastForward, lastPlay, lastSpeed, marks, marksModified, modeOnly, cMarks::Save(), cOsdObject::SetNeedsFastResponse(), timeoutShow, timeSearchActive, and visible.
Referenced by EditCut(), ProcessKey(), ShowTimed(), Stop(), TimeSearch(), and TimeSearchProcess().
|
static |
Definition at line 6131 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 6366 of file menu.c.
References cListBase::Count(), displayFrames, cDvbPlayerControl::Forward(), cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cMarks::GetPrev(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, cSetup::PauseOnMarkJump, SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
private |
Definition at line 6391 of file menu.c.
References displayFrames, cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, marksModified, min(), cStatus::MsgMarksModified(), cList< T >::Next(), cDvbPlayerControl::Play(), cMark::Position(), cList< T >::Prev(), cMark::SetPosition(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
|
private |
Definition at line 6341 of file menu.c.
References cMarks::Add(), cListBase::Del(), displayFrames, cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), lastCurrent, cListBase::Lock(), marks, marksModified, cStatus::MsgMarksModified(), cSetup::PauseOnMarkSet, cDvbPlayerControl::Play(), cStateKey::Remove(), Setup, and ShowTimed().
Referenced by ProcessKey().
|
static |
Definition at line 6126 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cSVDRPServer::CmdPLAY(), cMenuRecordings::Delete(), cRecording::IsInUse(), main(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 6530 of file menu.c.
References cDvbPlayerControl::Active(), adaptiveSkipper, cSetup::AdaptiveSkipPrevNext, cDvbPlayerControl::Backward(), displayFrames, EditCut(), EditTest(), ErrorJump(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cAdaptiveSkipper::GetValue(), 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, cSetup::MultiSpeedMode, osContinue, osEnd, osRecordings, osUnknown, cDvbPlayerControl::Pause(), cDvbPlayerControl::Play(), RAWKEY, Setup, Show(), ShowMode(), shown, ShowProgress(), cDvbPlayerControl::SkipSeconds(), cSetup::SkipSeconds, cSetup::SkipSecondsRepeat, Stop(), timeoutShow, TimeSearch(), timeSearchActive, TimeSearchProcess(), cMarks::Update(), and visible.
|
static |
Definition at line 6121 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 6157 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 6181 of file menu.c.
References cSkins::Current(), cSkin::DisplayReplay(), displayReplay, cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cOsd::IsOpen(), lastForward, lastPlay, lastSpeed, modeOnly, MODETIMEOUT, cDvbPlayerControl::Play(), cSkinDisplayReplay::SetMode(), Setup, cSetup::ShowReplayMode, Skins, timeoutShow, and visible.
Referenced by EditCut(), ProcessKey(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 6206 of file menu.c.
References cSkins::Current(), displayFrames, cSkin::DisplayReplay(), displayReplay, fileName, cSkinDisplay::Flush(), cControl::FramesPerSecond(), cDvbPlayerControl::GetErrors(), cDvbPlayerControl::GetFrameNumber(), IndexToHMSF(), lastCurrent, lastErrors, lastTotal, LOCK_RECORDINGS_READ, marks, modeOnly, PROGRESSTIMEOUT, cTimeMs::Set(), cSkinDisplayReplay::SetCurrent(), cSkinDisplayReplay::SetErrors(), cSkinDisplayReplay::SetMarks(), cOsdObject::SetNeedsFastResponse(), cSkinDisplayReplay::SetProgress(), cSkinDisplayReplay::SetRecording(), cSkinDisplayReplay::SetTotal(), Setup, ShowMode(), cSetup::ShowRemainingTime, cVector< T >::Size(), Skins, cTimeMs::TimedOut(), updateTimer, and visible.
Referenced by ProcessKey(), and ShowTimed().
|
private |
Definition at line 6145 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 6070 of file menu.c.
References cDvbPlayerControl::Active(), ClearLastReplayed(), cInterface::Confirm(), cSetup::DelTimeshiftRec, fileName, cRecordControls::GetRecordControl(), Hide(), cRecordControl::InstantId(), Interface, LOCK_DELETEDRECORDINGS_WRITE, LOCK_RECORDINGS_WRITE, cStatus::MsgReplaying(), mtError, cSkins::QueueMessage(), cMenuRecordings::SetRecording(), Setup, Skins, cDvbPlayerControl::Stop(), cRecordControl::Stop(), cRecordControl::Timer(), timeshiftTimer, and tr.
Referenced by ProcessKey(), and ~cReplayControl().
|
private |
Definition at line 6323 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 6251 of file menu.c.
References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 6269 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(), cSkinDisplayReplay::SetJump(), ShowMode(), cDvbPlayerControl::SkipSeconds(), STAY_SECONDS_OFF_END, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, and timeSearchTime.
Referenced by ProcessKey().
|
inline |
|
private |
Definition at line 310 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
staticprivate |
Definition at line 326 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 313 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 309 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 327 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), and Stop().
|
private |
Definition at line 315 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 314 of file menu.h.
Referenced by cReplayControl(), and ShowProgress().
|
private |
Definition at line 316 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 316 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 317 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 315 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 311 of file menu.h.
Referenced by ClearEditingMarks(), cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 312 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 313 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 313 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 318 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 320 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 320 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 321 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 321 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 308 of file menu.h.
Referenced by DelTimeshiftTimer(), and Stop().
|
private |
Definition at line 319 of file menu.h.
Referenced by ShowProgress().
|
private |
Definition at line 313 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().