MythTV
master
|
#include <mythplayeroverlayui.h>
Public Slots | |
void | BrowsingChanged (bool Browsing) |
void | EditingChanged (bool Editing) |
Signals | |
void | OverlayStateChanged (MythOverlayState OverlayState) |
![]() | |
void | CheckCallbacks () |
void | SeekingSlow (int Count) |
void | SeekingComplete () |
void | SeekingDone () |
void | PauseChanged (bool Paused) |
void | RequestResetCaptions () |
void | SignalTracksChanged (uint Type) |
Public Member Functions | |
MythPlayerOverlayUI (MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags) | |
~MythPlayerOverlayUI () override=default | |
virtual void | UpdateSliderInfo (osdInfo &Info, bool PaddedFields=false) |
OSD * | GetOSD () |
void | LockOSD () |
void | UnlockOSD () |
![]() | |
MythPlayerUIBase (MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags) | |
MythRender * | GetRender () const |
![]() | |
MythPlayer (PlayerContext *Context, PlayerFlags Flags=kNoFlags) | |
~MythPlayer () override | |
virtual int | OpenFile (int Retries=4) |
virtual bool | InitVideo (void) |
virtual void | ReinitVideo (bool ForceUpdate) |
virtual void | InitFrameInterval () |
void | SetLength (std::chrono::seconds len) |
void | SetFramesPlayed (uint64_t played) |
void | SetEof (EofState eof) |
void | SetWatchingRecording (bool mode) |
void | SetKeyframeDistance (int keyframedistance) |
virtual void | SetVideoParams (int w, int h, double fps, float aspect, bool ForceUpdate, int ReferenceFrames, FrameScanType=kScan_Ignore, const QString &codecName=QString()) |
void | SetFileLength (std::chrono::seconds total, int frames) |
void | SetDuration (std::chrono::seconds duration) |
void | SetFrameRate (double fps) |
QSize | GetVideoBufferSize (void) const |
QSize | GetVideoSize (void) const |
float | GetVideoAspect (void) const |
float | GetFrameRate (void) const |
bool | IsAudioNeeded (void) |
int | GetFreeVideoFrames (void) const |
Returns the number of frames available for decoding onto. More... | |
int | GetFFRewSkip (void) const |
float | GetPlaySpeed (void) const |
AudioPlayer * | GetAudio (void) |
float | GetNextPlaySpeed (void) const |
std::chrono::seconds | GetLength (void) const |
uint64_t | GetTotalFrameCount (void) const |
uint64_t | GetCurrentFrameCount (void) const |
uint64_t | GetFramesPlayed (void) const |
virtual uint64_t | GetBookmark (void) |
QString | GetError (void) const |
QString | GetEncodingType (void) const |
QString | GetXDS (const QString &key) const |
bool | IsPaused (void) const |
bool | GetRawAudioState (void) const |
bool | GetLimitKeyRepeat (void) const |
EofState | GetEof (void) const |
bool | IsErrored (void) const |
bool | IsPlaying (std::chrono::milliseconds wait_in_msec=0ms, bool wait_for=true) const |
bool | AtNormalSpeed (void) const |
bool | IsReallyNearEnd (void) const |
Returns true iff really near end of recording. More... | |
bool | IsNearEnd (void) |
Returns true iff near end of recording. More... | |
bool | HasTVChainNext (void) const |
bool | IsWatchingInprogress (void) const |
virtual InteractiveTV * | GetInteractiveTV () |
MythVideoOutput * | GetVideoOutput (void) |
virtual bool | SwitchTitle (int) |
virtual bool | NextTitle (void) |
virtual bool | PrevTitle (void) |
virtual bool | SwitchAngle (int) |
virtual bool | NextAngle (void) |
virtual bool | PrevAngle (void) |
MythVideoFrame * | GetNextVideoFrame (void) |
Removes a frame from the available queue for decoding onto. More... | |
void | DeLimboFrame (MythVideoFrame *frame) |
virtual void | ReleaseNextVideoFrame (MythVideoFrame *buffer, std::chrono::milliseconds timecode, bool wrap=true) |
Places frame on the queue of frames ready for display. More... | |
void | DiscardVideoFrame (MythVideoFrame *buffer) |
Places frame in the available frames queue. More... | |
void | DiscardVideoFrames (bool KeyFrame, bool Flushed) |
Places frames in the available frames queue. More... | |
DecoderBase * | GetDecoder (void) |
Returns the stream decoder currently in use. More... | |
virtual bool | HasReachedEof (void) const |
void | SetDisablePassThrough (bool disabled) |
void | ForceSetupAudioStream (void) |
virtual bool | PrepareAudioSample (std::chrono::milliseconds &timecode) |
virtual CC708Reader * | GetCC708Reader (uint=0) |
virtual CC608Reader * | GetCC608Reader (uint=0) |
virtual SubtitleReader * | GetSubReader (uint=0) |
virtual TeletextReader * | GetTeletextReader (uint=0) |
void | EnableForcedSubtitles (bool enable) |
bool | ForcedSubtitlesFavored (void) const |
bool | GetAllowForcedSubtitles (void) const |
void | CheckTVChain () |
void | FileChangedCallback () |
virtual int | GetNumChapters (void) |
virtual int | GetCurrentChapter (void) |
virtual void | GetChapterTimes (QList< std::chrono::seconds > ×) |
virtual int | GetNumTitles (void) const |
virtual int | GetCurrentTitle (void) const |
virtual std::chrono::seconds | GetTitleDuration (int) const |
virtual QString | GetTitleName (int) const |
virtual int | GetNumAngles (void) const |
virtual int | GetCurrentAngle (void) const |
virtual QString | GetAngleName (int) const |
virtual bool | IsInStillFrame () const |
bool | PosMapFromEnc (uint64_t start, frm_pos_map_t &posMap, frm_pos_map_t &durMap) |
void | SaveTotalDuration (void) |
void | ResetTotalDuration (void) |
void | SaveTotalFrames (void) |
void | SetErrored (const QString &reason) |
Protected Slots | |
void | UpdateOSDMessage (const QString &Message) |
void | UpdateOSDMessage (const QString &Message, OSDTimeout Timeout) |
void | SetOSDStatus (const QString &Title, OSDTimeout Timeout) |
void | UpdateOSDStatus (osdInfo &Info, int Type, enum OSDTimeout Timeout) |
void | UpdateOSDStatus (const QString &Title, const QString &Desc, const QString &Value, int Type, const QString &Units, int Position, OSDTimeout Timeout) |
void | ChangeOSDPositionUpdates (bool Enable) |
void | UpdateOSDPosition () |
Update the OSD status/position window. More... | |
![]() | |
virtual void | InitialiseState () |
Protected Member Functions | |
virtual std::chrono::milliseconds | GetMillisecondsPlayed (bool HonorCutList) |
virtual std::chrono::milliseconds | GetTotalMilliseconds (bool HonorCutList) const |
std::chrono::seconds | GetSecondsPlayed (bool HonorCutList) |
std::chrono::seconds | GetTotalSeconds (bool HonorCutList) const |
![]() | |
void | OpenDummy (void) |
virtual long long | CalcMaxFFTime (long long ff, bool setjump=true) const |
CalcMaxFFTime(ffframes): forward ffframes forward. More... | |
long long | CalcRWTime (long long rw) const |
CalcRWTime(rw): rewind rw frames back. More... | |
std::chrono::milliseconds | TranslatePositionFrameToMs (uint64_t position, bool use_cutlist) const |
uint64_t | TranslatePositionMsToFrame (std::chrono::milliseconds position, bool use_cutlist) const |
uint64_t | TranslatePositionAbsToRel (uint64_t position) const |
uint64_t | TranslatePositionRelToAbs (uint64_t position) const |
float | ComputeSecs (uint64_t position, bool use_cutlist) const |
uint64_t | FindFrame (float offset, bool use_cutlist) const |
void | SetAutoCommercialSkip (CommSkipMode autoskip) |
void | SkipCommercials (int direction) |
void | SetCommBreakMap (const frm_dir_map_t &NewMap) |
CommSkipMode | GetAutoCommercialSkip (void) |
virtual void | ResetPlaying (bool resetframes=true) |
virtual void | StopPlaying (void) |
bool | PauseDecoder (void) |
void | UnpauseDecoder (void) |
bool | Pause (void) |
bool | Play (float speed=1.0, bool normal=true, bool unpauseaudio=true) |
virtual bool | FastForward (float seconds) |
virtual bool | Rewind (float seconds) |
virtual bool | JumpToFrame (uint64_t frame) |
void | JumpChapter (int chapter) |
virtual bool | PrebufferEnoughFrames (int min_buffers=0) |
void | SetBuffering (bool new_buffering) |
virtual void | VideoEnd (void) |
virtual void | DecoderStart (bool start_paused) |
virtual void | DecoderLoop (bool pause) |
virtual void | DecoderEnd (void) |
virtual void | DecoderPauseCheck (void) |
virtual void | AudioEnd (void) |
bool | GetEditMode (void) const |
bool | IsInDelete (uint64_t frame) |
bool | FlagIsSet (PlayerFlags arg) |
void | SetPlayingInfo (const ProgramInfo &pginfo) |
void | SetPlaying (bool is_playing) |
void | ResetErrored (void) |
void | PauseVideo (void) |
void | UnpauseVideo (void) |
void | PauseBuffer (void) |
void | UnpauseBuffer (void) |
virtual void | CreateDecoder (TestBufferVec &TestBuffer) |
void | SetDecoder (DecoderBase *dec) |
Sets the stream decoder, deleting any existing recorder. More... | |
const DecoderBase * | GetDecoder (void) const |
Returns the stream decoder currently in use. More... | |
virtual void | DoFFRewSkip (void) |
bool | DecoderGetFrame (DecodeType decodetype, bool unsafe=false) |
bool | DoGetFrame (DecodeType DecodeType) |
Get one frame from the decoder. More... | |
bool | UpdateFFRewSkip (float ffrewScale=1.0F) |
virtual void | ChangeSpeed (void) |
bool | DoFastForward (uint64_t frames, double inaccuracy) |
bool | DoRewind (uint64_t frames, double inaccuracy) |
void | DoJumpToFrame (uint64_t frame, double inaccuracy) |
void | WaitForSeek (uint64_t frame, uint64_t seeksnap_wanted) |
void | ClearAfterSeek (bool clearvideobuffers=true) |
This is to support seeking... More... | |
virtual bool | DoJumpChapter (int chapter) |
virtual int64_t | GetChapter (int chapter) |
void | WrapTimecode (std::chrono::milliseconds &timecode, TCTypes tc_type) |
void | SetFrameInterval (FrameScanType scan, double frame_period) |
Private Attributes | |
QTimer | m_positionUpdateTimer |
Additional Inherited Members | |
![]() | |
static const int | kNightModeBrightenssAdjustment = 10 |
static const int | kNightModeContrastAdjustment = 10 |
static const double | kInaccuracyNone = 0 |
static const double | kInaccuracyDefault = 0.1 |
static const double | kInaccuracyEditor = 0.5 |
static const double | kInaccuracyFull = -1.0 |
static const double | kSeekToEndOffset = 1.0 |
Definition at line 7 of file mythplayeroverlayui.h.
MythPlayerOverlayUI::MythPlayerOverlayUI | ( | MythMainWindow * | MainWindow, |
TV * | Tv, | ||
PlayerContext * | Context, | ||
PlayerFlags | Flags | ||
) |
Definition at line 13 of file mythplayeroverlayui.cpp.
|
overridedefault |
|
signal |
Referenced by BrowsingChanged(), EditingChanged(), and MythPlayerOverlayUI().
|
slot |
Definition at line 31 of file mythplayeroverlayui.cpp.
Referenced by OSD::LoadWindows().
|
slot |
Definition at line 37 of file mythplayeroverlayui.cpp.
Referenced by OSD::LoadWindows().
Definition at line 126 of file mythplayeroverlayui.cpp.
Referenced by TV::CalcPlayerSliderPosition(), SetOSDStatus(), and UpdateOSDPosition().
|
inline |
Definition at line 24 of file mythplayeroverlayui.h.
Referenced by TV::GetOSDL().
|
inline |
Definition at line 25 of file mythplayeroverlayui.h.
Referenced by TV::GetOSDL().
|
inline |
Definition at line 26 of file mythplayeroverlayui.h.
Referenced by TV::GetOSDL(), and TV::ReturnOSDLock().
|
protectedslot |
Definition at line 76 of file mythplayeroverlayui.cpp.
Referenced by MythPlayerAudioUI::ChangeMuteState(), MythPlayerCaptionsUI::ChangeTrack(), MythPlayerCaptionsUI::DisableCaptions(), MythPlayerCaptionsUI::EnableCaptions(), MythPlayerEditorUI::EnableEdit(), MythPlayerAudioUI::EnableUpmix(), MythPlayerVisualiserUI::EnableVisualiser(), MythDVDPlayer::GoToMenu(), MythPlayerEditorUI::HandleProgramEditorActions(), MythPlayerVideoUI::InitVideo(), MythPlayerOverlayUI(), MythPlayerUI::MythPlayerUI(), MythPlayerCaptionsUI::SetAllowForcedSubtitles(), MythPlayerCaptionsUI::SetCaptionsEnabled(), MythPlayerCaptionsUI::SetTrack(), and MythPlayerVideoUI::ToggleAdjustFill().
|
protectedslot |
Definition at line 81 of file mythplayeroverlayui.cpp.
|
protectedslot |
Definition at line 90 of file mythplayeroverlayui.cpp.
Referenced by MythPlayerEditorUI::DisableEdit(), MythPlayerEditorUI::EnableEdit(), and MythPlayerUI::EventLoop().
|
protectedslot |
Definition at line 101 of file mythplayeroverlayui.cpp.
Referenced by MythPlayerAudioUI::AdjustAudioTimecodeOffset(), MythPlayerCaptionsUI::AdjustSubtitleDelay(), MythPlayerCaptionsUI::AdjustSubtitleZoom(), MythPlayerAudioUI::ChangeVolume(), MythPlayerVideoUI::PictureAttributeChanged(), and UpdateOSDStatus().
|
protectedslot |
Definition at line 112 of file mythplayeroverlayui.cpp.
|
protectedslot |
Definition at line 43 of file mythplayeroverlayui.cpp.
Referenced by MythPlayerAudioUI::AdjustAudioTimecodeOffset(), MythPlayerCaptionsUI::AdjustSubtitleDelay(), MythPlayerCaptionsUI::AdjustSubtitleZoom(), MythPlayerAudioUI::ChangeVolume(), MythPlayerVideoUI::InitVideo(), MythPlayerVideoUI::PictureAttributeChanged(), and UpdateOSDPosition().
|
protectedslot |
Update the OSD status/position window.
This is triggered (roughly) once a second to update the osd_status window for the latest position, duration, time etc (when visible).
Definition at line 59 of file mythplayeroverlayui.cpp.
Referenced by MythPlayerOverlayUI(), and MythPlayerUI::MythPlayerUI().
|
protectedvirtual |
Reimplemented in MythDVDPlayer.
Definition at line 256 of file mythplayeroverlayui.cpp.
Referenced by GetSecondsPlayed().
|
protectedvirtual |
Reimplemented in MythDVDPlayer.
Definition at line 269 of file mythplayeroverlayui.cpp.
Referenced by GetTotalSeconds().
|
protected |
Definition at line 264 of file mythplayeroverlayui.cpp.
Referenced by UpdateSliderInfo().
|
protected |
Definition at line 275 of file mythplayeroverlayui.cpp.
Referenced by UpdateSliderInfo().
|
protected |
Definition at line 45 of file mythplayeroverlayui.h.
Referenced by MythPlayerUI::ChangeOSDDebug(), MythPlayerEditorUI::DisableEdit(), MythPlayerEditorUI::EnableEdit(), MythPlayerUI::EventLoop(), MythPlayerEditorUI::HandleProgramEditorActions(), MythPlayerOverlayUI(), MythPlayerUI::MythPlayerUI(), MythPlayerUI::RefreshPauseFrame(), MythPlayerVideoUI::ReinitOSD(), MythPlayerUI::RenderVideoFrame(), SetOSDStatus(), MythPlayerUI::UpdateOSDDebug(), UpdateOSDMessage(), UpdateOSDPosition(), UpdateOSDStatus(), and MythPlayerUI::VideoStart().
|
protected |
Definition at line 49 of file mythplayeroverlayui.h.
Referenced by MythPlayerUI::ChangeOSDDebug(), MythPlayerCaptionsUI::DisableCaptions(), MythPlayerEditorUI::DisableEdit(), MythPlayerCaptionsUI::DisableTeletext(), MythPlayerCaptionsUI::DoDisableForcedSubtitles(), MythPlayerCaptionsUI::DoEnableForcedSubtitles(), MythPlayerCaptionsUI::EnableCaptions(), MythPlayerEditorUI::EnableEdit(), MythPlayerCaptionsUI::EnableTeletext(), MythPlayerUI::EventLoop(), MythPlayerCaptionsUI::GetInteractiveTV(), MythPlayerEditorUI::HandleProgramEditorActions(), MythPlayerCaptionsUI::HandleTeletextAction(), MythPlayerUI::MythPlayerUI(), MythPlayerUI::PreProcessNormalFrame(), MythPlayerUI::RefreshPauseFrame(), MythPlayerVideoUI::ReinitOSD(), MythPlayerCaptionsUI::ResetTeletext(), MythPlayerCaptionsUI::SetCaptionsEnabled(), SetOSDStatus(), MythPlayerCaptionsUI::SetTeletextPage(), MythPlayerCaptionsUI::ToggleCaptionsByType(), MythPlayerUI::UpdateOSDDebug(), UpdateOSDMessage(), UpdateOSDPosition(), UpdateOSDStatus(), and MythPlayerUI::VideoStart().
Definition at line 51 of file mythplayeroverlayui.h.
Referenced by MythPlayerAudioUI::AdjustAudioTimecodeOffset(), MythPlayerCaptionsUI::AdjustSubtitleDelay(), MythPlayerCaptionsUI::AdjustSubtitleZoom(), BrowsingChanged(), MythPlayerAudioUI::ChangeVolume(), and EditingChanged().
Definition at line 52 of file mythplayeroverlayui.h.
Referenced by MythPlayerAudioUI::AdjustAudioTimecodeOffset(), MythPlayerCaptionsUI::AdjustSubtitleDelay(), MythPlayerCaptionsUI::AdjustSubtitleZoom(), BrowsingChanged(), MythPlayerAudioUI::ChangeVolume(), and EditingChanged().
Definition at line 54 of file mythplayeroverlayui.h.
Referenced by MythPlayerUI::EventLoop(), MythPlayerVideoUI::ReinitOSD(), and MythPlayerUI::ReinitVideo().
|
private |
Definition at line 58 of file mythplayeroverlayui.h.
Referenced by ChangeOSDPositionUpdates(), and MythPlayerOverlayUI().