MythTV
master
|
#include <commbreakmap.h>
Public Member Functions | |
CommBreakMap (void) | |
bool | HasMap (void) const |
CommSkipMode | GetAutoCommercialSkip (void) const |
void | SetAutoCommercialSkip (CommSkipMode autoskip, uint64_t framesPlayed) |
int | GetSkipCommercials (void) const |
void | SkipCommercials (int direction) |
void | ResetLastSkip (void) |
void | SetTracker (uint64_t framesPlayed) |
void | GetMap (frm_dir_map_t &map) const |
void | SetMap (const frm_dir_map_t &newMap, uint64_t framesPlayed) |
void | LoadMap (PlayerContext *player_ctx, uint64_t framesPlayed) |
bool | IsInCommBreak (uint64_t frameNumber) const |
bool | AutoCommercialSkip (uint64_t &jumpToFrame, uint64_t framesPlayed, double video_frame_rate, uint64_t totalFrames, QString &comm_msg) |
bool | DoSkipCommercials (uint64_t &jumpToFrame, uint64_t framesPlayed, double video_frame_rate, uint64_t totalFrames, QString &comm_msg) |
Private Member Functions | |
void | MergeShortCommercials (double video_frame_rate) |
Private Attributes | |
QRecursiveMutex | m_commBreakMapLock |
int | m_skipcommercials {0} |
CommSkipMode | m_autocommercialskip {kCommSkipOff} |
std::chrono::seconds | m_commrewindamount {0s} |
std::chrono::seconds | m_commnotifyamount {0s} |
int | m_lastCommSkipDirection {0} |
time_t | m_lastCommSkipTime {0} |
uint64_t | m_lastCommSkipStart {0} |
time_t | m_lastSkipTime {0 } |
bool | m_hascommbreaktable {false} |
QDateTime | m_lastIgnoredManualSkip |
std::chrono::seconds | m_maxskip {1h} |
std::chrono::seconds | m_maxShortMerge {0s} |
frm_dir_map_t | m_commBreakMap |
frm_dir_map_t::Iterator | m_commBreakIter |
Definition at line 22 of file commbreakmap.h.
CommBreakMap::CommBreakMap | ( | void | ) |
Definition at line 10 of file commbreakmap.cpp.
|
inline |
Definition at line 29 of file commbreakmap.h.
Referenced by MythPlayerUI::EventLoop(), and MythPlayerEditorUI::HandleProgramEditorActions().
CommSkipMode CommBreakMap::GetAutoCommercialSkip | ( | void | ) | const |
Definition at line 21 of file commbreakmap.cpp.
Referenced by MythPlayerUI::EventLoop().
void CommBreakMap::SetAutoCommercialSkip | ( | CommSkipMode | autoskip, |
uint64_t | framesPlayed | ||
) |
Definition at line 32 of file commbreakmap.cpp.
|
inline |
Definition at line 34 of file commbreakmap.h.
Referenced by MythPlayerUI::EventLoop().
void CommBreakMap::SkipCommercials | ( | int | direction | ) |
Definition at line 41 of file commbreakmap.cpp.
Referenced by MythPlayerUI::EventLoop(), and MythPlayerUI::StartPlaying().
void CommBreakMap::ResetLastSkip | ( | void | ) |
Definition at line 27 of file commbreakmap.cpp.
Referenced by MythPlayer::ClearAfterSeek().
void CommBreakMap::SetTracker | ( | uint64_t | framesPlayed | ) |
Definition at line 67 of file commbreakmap.cpp.
Referenced by AutoCommercialSkip(), MythPlayer::ClearAfterSeek(), DoSkipCommercials(), LoadMap(), SetAutoCommercialSkip(), and SetMap().
void CommBreakMap::GetMap | ( | frm_dir_map_t & | map | ) | const |
Definition at line 91 of file commbreakmap.cpp.
Referenced by MythPlayerEditorUI::HandleProgramEditorActions().
void CommBreakMap::SetMap | ( | const frm_dir_map_t & | newMap, |
uint64_t | framesPlayed | ||
) |
Definition at line 131 of file commbreakmap.cpp.
Referenced by MythPlayer::SetCommBreakMap().
void CommBreakMap::LoadMap | ( | PlayerContext * | player_ctx, |
uint64_t | framesPlayed | ||
) |
Definition at line 50 of file commbreakmap.cpp.
Referenced by MythPlayerUI::EventStart(), and MythPreviewPlayer::SeekForScreenGrab().
bool CommBreakMap::IsInCommBreak | ( | uint64_t | frameNumber | ) | const |
Definition at line 98 of file commbreakmap.cpp.
Referenced by MythPreviewPlayer::SeekForScreenGrab().
bool CommBreakMap::AutoCommercialSkip | ( | uint64_t & | jumpToFrame, |
uint64_t | framesPlayed, | ||
double | video_frame_rate, | ||
uint64_t | totalFrames, | ||
QString & | comm_msg | ||
) |
Definition at line 144 of file commbreakmap.cpp.
Referenced by MythPlayerUI::EventLoop().
bool CommBreakMap::DoSkipCommercials | ( | uint64_t & | jumpToFrame, |
uint64_t | framesPlayed, | ||
double | video_frame_rate, | ||
uint64_t | totalFrames, | ||
QString & | comm_msg | ||
) |
Definition at line 249 of file commbreakmap.cpp.
Referenced by MythPlayerUI::EventLoop().
|
private |
Definition at line 361 of file commbreakmap.cpp.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
|
mutableprivate |
Definition at line 57 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), GetAutoCommercialSkip(), GetMap(), IsInCommBreak(), LoadMap(), SetAutoCommercialSkip(), SetMap(), SetTracker(), and SkipCommercials().
|
private |
Definition at line 59 of file commbreakmap.h.
Referenced by DoSkipCommercials(), GetSkipCommercials(), and SkipCommercials().
|
private |
Definition at line 60 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), GetAutoCommercialSkip(), and SetAutoCommercialSkip().
|
private |
Definition at line 61 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
|
private |
Definition at line 62 of file commbreakmap.h.
Referenced by AutoCommercialSkip().
|
private |
Definition at line 63 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
|
private |
Definition at line 64 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
|
private |
Definition at line 65 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
|
private |
Definition at line 66 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and ResetLastSkip().
Definition at line 67 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), HasMap(), LoadMap(), SetMap(), and SetTracker().
|
private |
Definition at line 68 of file commbreakmap.h.
Referenced by DoSkipCommercials().
|
private |
Definition at line 69 of file commbreakmap.h.
Referenced by DoSkipCommercials().
|
private |
Definition at line 70 of file commbreakmap.h.
Referenced by MergeShortCommercials().
|
private |
Definition at line 71 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), GetMap(), IsInCommBreak(), LoadMap(), MergeShortCommercials(), SetMap(), and SetTracker().
|
private |
Definition at line 72 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), MergeShortCommercials(), and SetTracker().