CommBreakMap Class Reference

#include <commbreakmap.h>

List of all members.

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

Detailed Description

Definition at line 10 of file commbreakmap.h.


Constructor & Destructor Documentation

CommBreakMap::CommBreakMap ( void   ) 

Definition at line 8 of file commbreakmap.cpp.


Member Function Documentation

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  ) 
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().

bool CommBreakMap::IsInCommBreak ( uint64_t  frameNumber  )  const

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().


Member Data Documentation

QMutex CommBreakMap::commBreakMapLock [mutable, private]

Definition at line 41 of file commbreakmap.h.

Referenced by DoSkipCommercials(), GetSkipCommercials(), and SkipCommercials().

Definition at line 43 of file commbreakmap.h.

Referenced by AutoCommercialSkip(), CommBreakMap(), and DoSkipCommercials().

Definition at line 44 of file commbreakmap.h.

Referenced by AutoCommercialSkip(), and CommBreakMap().

Definition at line 45 of file commbreakmap.h.

Referenced by AutoCommercialSkip(), and DoSkipCommercials().

Definition at line 46 of file commbreakmap.h.

Referenced by AutoCommercialSkip(), and DoSkipCommercials().

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().

Definition at line 49 of file commbreakmap.h.

Referenced by AutoCommercialSkip(), HasMap(), LoadMap(), SetMap(), and SetTracker().

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().

Definition at line 52 of file commbreakmap.h.

Referenced by CommBreakMap(), and MergeShortCommercials().

frm_dir_map_t::Iterator CommBreakMap::commBreakIter [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:57 2012 for MythTV by  doxygen 1.6.3