vdr
2.4.0
|
#include <menu.h>
Public Member Functions | |
cReplayControl (bool PauseLive=false) | |
virtual | ~cReplayControl () |
void | Stop (void) |
virtual cOsdObject * | GetInfo (void) |
virtual const cRecording * | GetRecording (void) |
virtual eOSState | ProcessKey (eKeys Key) |
virtual void | Show (void) |
virtual void | Hide (void) |
bool | Visible (void) |
virtual void | ClearEditingMarks (void) |
![]() | |
cDvbPlayerControl (const char *FileName, bool PauseLive=false) | |
virtual | ~cDvbPlayerControl () |
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) |
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) |
![]() | |
cControl (cPlayer *Player, bool Hidden=false) | |
virtual | ~cControl () |
virtual cString | GetHeader (void) |
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 |
![]() | |
cOsdObject (bool FastResponse=false) | |
virtual | ~cOsdObject () |
virtual bool | NeedsFastResponse (void) |
bool | IsMenu (void) const |
Static Public Member Functions | |
static void | SetRecording (const char *FileName) |
static const char * | NowReplaying (void) |
static const char * | LastReplayed (void) |
static void | ClearLastReplayed (const char *FileName) |
![]() | |
static void | Launch (cControl *Control) |
static void | Attach (void) |
static void | Shutdown (void) |
static cControl * | Control (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 | EditCut (void) |
void | EditTest (void) |
Private Attributes | |
cSkinDisplayReplay * | displayReplay |
cAdaptiveSkipper | adaptiveSkipper |
cMarks | marks |
bool | marksModified |
bool | visible |
bool | modeOnly |
bool | shown |
bool | displayFrames |
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 cReplayControl * | currentReplayControl = NULL |
static cString | fileName |
Additional Inherited Members | |
![]() | |
void | SetNeedsFastResponse (bool NeedsFastResponse) |
![]() | |
cPlayer * | player |
cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
Definition at line 5650 of file menu.c.
References cSetup::AdaptiveSkipInitial, adaptiveSkipper, currentReplayControl, displayFrames, displayReplay, cRecording::FileName(), fileName, cRecording::FramesPerSecond(), cAdaptiveSkipper::Initialize(), cRecording::IsPesRecording(), lastCurrent, 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.
|
virtual |
Definition at line 5673 of file menu.c.
References currentReplayControl, cDevice::PrimaryDevice(), cDevice::SetKeepTracks(), and Stop().
|
virtual |
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 5727 of file menu.c.
References cListBase::Del(), cList< T >::First(), cListBase::Lock(), marks, cStatus::MsgMarksModified(), and cStateKey::Remove().
|
static |
Definition at line 5755 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
private |
Definition at line 6040 of file menu.c.
References cRecordingsHandler::Add(), cInterface::Confirm(), cListBase::Count(), cCutter::EditedFileName(), fileName, cMarks::GetNumSequences(), cRecordingsHandler::GetUsage(), Hide(), Interface, marks, cSkins::Message(), mtError, mtInfo, RecordingsHandler, ruCut, ShowMode(), Skins, and tr.
Referenced by ProcessKey().
|
private |
Definition at line 6062 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().
|
virtual |
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 6078 of file menu.c.
References LastReplayed(), and LOCK_RECORDINGS_READ.
|
virtual |
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRecording.
Reimplemented from cControl.
Definition at line 6086 of file menu.c.
References LastReplayed(), and LOCK_RECORDINGS_READ.
|
virtual |
Implements cControl.
Definition at line 5778 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 5747 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 5977 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 6002 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 5952 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 5742 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cMenuRecordings::Delete(), cRecording::IsInUse(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 6094 of file menu.c.
References cDvbPlayerControl::Active(), adaptiveSkipper, cSetup::AdaptiveSkipPrevNext, cDvbPlayerControl::Backward(), displayFrames, EditCut(), EditTest(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cAdaptiveSkipper::GetValue(), Hide(), k_Release, k_Repeat, kBack, kBlue, 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 5737 of file menu.c.
References fileName.
Referenced by cSVDRPServer::CmdPLAY(), cRecordControl::cRecordControl(), cSetup::Parse(), cRecordControls::PauseLiveVideo(), and cMenuRecordings::Play().
|
virtual |
Reimplemented from cOsdObject.
Definition at line 5773 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 5797 of file menu.c.
References cSkins::Current(), displayReplay, cSkin::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 5822 of file menu.c.
References cSkins::Current(), displayFrames, displayReplay, cSkin::DisplayReplay(), fileName, cSkinDisplay::Flush(), cControl::FramesPerSecond(), cDvbPlayerControl::GetFrameNumber(), IndexToHMSF(), lastCurrent, lastTotal, LOCK_RECORDINGS_READ, marks, modeOnly, PROGRESSTIMEOUT, cTimeMs::Set(), cSkinDisplayReplay::SetCurrent(), cSkinDisplayReplay::SetMarks(), cOsdObject::SetNeedsFastResponse(), cSkinDisplayReplay::SetProgress(), cSkinDisplayReplay::SetRecording(), cSkinDisplayReplay::SetTotal(), Setup, ShowMode(), cSetup::ShowRemainingTime, Skins, cTimeMs::TimedOut(), updateTimer, and visible.
Referenced by ProcessKey(), and ShowTimed().
|
private |
Definition at line 5761 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 5681 of file menu.c.
References cDvbPlayerControl::Active(), ClearLastReplayed(), cInterface::Confirm(), cSetup::DelTimeshiftRec, fileName, cRecordControls::GetRecordControl(), Hide(), cRecordControl::InstantId(), Interface, isyslog, LOCK_RECORDINGS_WRITE, LOCK_TIMERS_WRITE, cSkins::Message(), cStatus::MsgReplaying(), mtError, cMenuRecordings::SetRecording(), Setup, Skins, cDvbPlayerControl::Stop(), cRecordControl::Stop(), cRecordControl::Timer(), cTimer::ToDescr(), and tr.
Referenced by ProcessKey(), and ~cReplayControl().
|
private |
Definition at line 5934 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 5862 of file menu.c.
References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 5880 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 295 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
staticprivate |
Definition at line 310 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 298 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 294 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 311 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), and Stop().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 300 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 300 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 301 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 296 of file menu.h.
Referenced by ClearEditingMarks(), cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 297 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 298 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 298 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 302 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 304 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 304 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 305 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 305 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 303 of file menu.h.
Referenced by ShowProgress().
|
private |
Definition at line 298 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().