vdr 2.7.4
|
#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) |
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) |
![]() | |
cControl (cPlayer *Player, bool Hidden=false) | |
virtual | ~cControl () |
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 |
![]() | |
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 (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 cReplayControl * | currentReplayControl = NULL |
static cString | fileName |
Additional Inherited Members | |
![]() | |
void | SetNeedsFastResponse (bool NeedsFastResponse) |
![]() | |
cPlayer * | player |
cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
Definition at line 5791 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.
|
virtual |
Definition at line 5815 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 5869 of file menu.c.
References marks, cStatus::MsgMarksModified(), and cStateKey::Remove().
|
static |
Definition at line 5897 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
private |
Definition at line 6228 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 6252 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 6187 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().
|
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 6268 of file menu.c.
References cOsdObject::cOsdObject(), 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 6276 of file menu.c.
References LastReplayed(), and LOCK_RECORDINGS_READ.
|
virtual |
Implements cControl.
Definition at line 5920 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 5889 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 6124 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 6149 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 6099 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 5884 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cMenuRecordings::Delete(), cRecording::IsInUse(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 6284 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 5879 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 5915 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 5939 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 5964 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 5903 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 5823 of file menu.c.
References cDvbPlayerControl::Active(), ClearLastReplayed(), fileName, cRecordControls::GetRecordControl(), Hide(), cRecordControl::InstantId(), Interface, isyslog, LOCK_RECORDINGS_WRITE, LOCK_TIMERS_WRITE, 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 6081 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 6009 of file menu.c.
References displayReplay, timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 6027 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 296 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
staticprivate |
Definition at line 312 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 295 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 313 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), and Stop().
|
private |
Definition at line 301 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 300 of file menu.h.
Referenced by cReplayControl(), and ShowProgress().
|
private |
Definition at line 302 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 302 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 303 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 301 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 297 of file menu.h.
Referenced by ClearEditingMarks(), cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 298 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 304 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 306 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 306 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 307 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 307 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 305 of file menu.h.
Referenced by ShowProgress().
|
private |
Definition at line 299 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().