#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 | |
| QMutex | commBreakMapLock |
| int | skipcommercials |
| CommSkipMode | autocommercialskip |
| int | commrewindamount |
| int | commnotifyamount |
| int | lastCommSkipDirection |
| time_t | lastCommSkipTime |
| uint64_t | lastCommSkipStart |
| time_t | lastSkipTime |
| bool | hascommbreaktable |
| QDateTime | lastIgnoredManualSkip |
| int | maxskip |
| int | maxShortMerge |
| frm_dir_map_t | commBreakMap |
| frm_dir_map_t::Iterator | commBreakIter |
Definition at line 10 of file commbreakmap.h.
| CommBreakMap::CommBreakMap | ( | void | ) |
Definition at line 8 of file commbreakmap.cpp.
| bool CommBreakMap::HasMap | ( | void | ) | const [inline] |
Definition at line 15 of file commbreakmap.h.
Referenced by MythPlayer::EventLoop(), and MythPlayer::HandleProgramEditorActions().
| CommSkipMode CommBreakMap::GetAutoCommercialSkip | ( | void | ) | const |
Definition at line 26 of file commbreakmap.cpp.
Referenced by MythPlayer::EventLoop().
| void CommBreakMap::SetAutoCommercialSkip | ( | CommSkipMode | autoskip, | |
| uint64_t | framesPlayed | |||
| ) |
Definition at line 37 of file commbreakmap.cpp.
| int CommBreakMap::GetSkipCommercials | ( | void | ) | const [inline] |
Definition at line 20 of file commbreakmap.h.
Referenced by MythPlayer::EventLoop().
| void CommBreakMap::SkipCommercials | ( | int | direction | ) |
Definition at line 46 of file commbreakmap.cpp.
Referenced by MythPlayer::EventLoop(), and MythPlayer::StartPlaying().
| void CommBreakMap::ResetLastSkip | ( | void | ) |
Definition at line 32 of file commbreakmap.cpp.
Referenced by MythPlayer::ClearAfterSeek().
| void CommBreakMap::SetTracker | ( | uint64_t | framesPlayed | ) |
Definition at line 73 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 97 of file commbreakmap.cpp.
Referenced by MythPlayer::HandleProgramEditorActions().
| void CommBreakMap::SetMap | ( | const frm_dir_map_t & | newMap, | |
| uint64_t | framesPlayed | |||
| ) |
Definition at line 138 of file commbreakmap.cpp.
Referenced by MythPlayer::SetCommBreakMap().
| void CommBreakMap::LoadMap | ( | PlayerContext * | player_ctx, | |
| uint64_t | framesPlayed | |||
| ) |
Definition at line 56 of file commbreakmap.cpp.
Referenced by MythPlayer::EventStart(), and MythPlayer::SeekForScreenGrab().
Definition at line 105 of file commbreakmap.cpp.
Referenced by MythPlayer::SeekForScreenGrab().
| bool CommBreakMap::AutoCommercialSkip | ( | uint64_t & | jumpToFrame, | |
| uint64_t | framesPlayed, | |||
| double | video_frame_rate, | |||
| uint64_t | totalFrames, | |||
| QString & | comm_msg | |||
| ) |
Definition at line 152 of file commbreakmap.cpp.
Referenced by MythPlayer::EventLoop().
| bool CommBreakMap::DoSkipCommercials | ( | uint64_t & | jumpToFrame, | |
| uint64_t | framesPlayed, | |||
| double | video_frame_rate, | |||
| uint64_t | totalFrames, | |||
| QString & | comm_msg | |||
| ) |
Definition at line 254 of file commbreakmap.cpp.
Referenced by MythPlayer::EventLoop().
| void CommBreakMap::MergeShortCommercials | ( | double | video_frame_rate | ) | [private] |
Definition at line 366 of file commbreakmap.cpp.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
QMutex CommBreakMap::commBreakMapLock [mutable, private] |
Definition at line 40 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), GetAutoCommercialSkip(), GetMap(), IsInCommBreak(), LoadMap(), SetAutoCommercialSkip(), SetMap(), SetTracker(), and SkipCommercials().
int CommBreakMap::skipcommercials [private] |
Definition at line 41 of file commbreakmap.h.
Referenced by DoSkipCommercials(), GetSkipCommercials(), and SkipCommercials().
CommSkipMode CommBreakMap::autocommercialskip [private] |
Definition at line 42 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), CommBreakMap(), GetAutoCommercialSkip(), and SetAutoCommercialSkip().
int CommBreakMap::commrewindamount [private] |
Definition at line 43 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), CommBreakMap(), and DoSkipCommercials().
int CommBreakMap::commnotifyamount [private] |
Definition at line 44 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and CommBreakMap().
int CommBreakMap::lastCommSkipDirection [private] |
Definition at line 45 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
time_t CommBreakMap::lastCommSkipTime [private] |
Definition at line 46 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
uint64_t CommBreakMap::lastCommSkipStart [private] |
Definition at line 47 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and DoSkipCommercials().
time_t CommBreakMap::lastSkipTime [private] |
Definition at line 48 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), and ResetLastSkip().
bool CommBreakMap::hascommbreaktable [private] |
Definition at line 49 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), HasMap(), LoadMap(), SetMap(), and SetTracker().
QDateTime CommBreakMap::lastIgnoredManualSkip [private] |
Definition at line 50 of file commbreakmap.h.
Referenced by CommBreakMap(), and DoSkipCommercials().
int CommBreakMap::maxskip [private] |
Definition at line 51 of file commbreakmap.h.
Referenced by CommBreakMap(), and DoSkipCommercials().
int CommBreakMap::maxShortMerge [private] |
Definition at line 52 of file commbreakmap.h.
Referenced by CommBreakMap(), and MergeShortCommercials().
frm_dir_map_t CommBreakMap::commBreakMap [private] |
Definition at line 53 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), GetMap(), IsInCommBreak(), LoadMap(), MergeShortCommercials(), SetMap(), and SetTracker().
frm_dir_map_t::Iterator CommBreakMap::commBreakIter [private] |
Definition at line 54 of file commbreakmap.h.
Referenced by AutoCommercialSkip(), DoSkipCommercials(), MergeShortCommercials(), and SetTracker().
1.6.3