Go to the documentation of this file.
8 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
11 #include <QRecursiveMutex>
14 #include <QCoreApplication>
45 double video_frame_rate, uint64_t totalFrames,
48 double video_frame_rate, uint64_t totalFrames,
54 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
bool DoSkipCommercials(uint64_t &jumpToFrame, uint64_t framesPlayed, double video_frame_rate, uint64_t totalFrames, QString &comm_msg)
void SetTracker(uint64_t framesPlayed)
void MergeShortCommercials(double video_frame_rate)
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
CommSkipMode m_autocommercialskip
void GetMap(frm_dir_map_t &map) const
std::chrono::seconds m_commnotifyamount
void SetMap(const frm_dir_map_t &newMap, uint64_t framesPlayed)
QRecursiveMutex m_commBreakMapLock
uint64_t m_lastCommSkipStart
frm_dir_map_t::Iterator m_commBreakIter
void SetAutoCommercialSkip(CommSkipMode autoskip, uint64_t framesPlayed)
void LoadMap(PlayerContext *player_ctx, uint64_t framesPlayed)
QDateTime m_lastIgnoredManualSkip
bool IsInCommBreak(uint64_t frameNumber) const
int GetSkipCommercials(void) const
int m_lastCommSkipDirection
time_t m_lastCommSkipTime
std::chrono::seconds m_maxShortMerge
CommSkipMode GetAutoCommercialSkip(void) const
std::chrono::seconds m_maxskip
bool AutoCommercialSkip(uint64_t &jumpToFrame, uint64_t framesPlayed, double video_frame_rate, uint64_t totalFrames, QString &comm_msg)
frm_dir_map_t m_commBreakMap
std::chrono::seconds m_commrewindamount
void SkipCommercials(int direction)