MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CommDetector2 Class Reference

#include <CommDetector2.h>

Inheritance diagram for CommDetector2:
Inheritance graph
[legend]
Collaboration diagram for CommDetector2:
Collaboration graph
[legend]

Public Member Functions

 CommDetector2 (SkipType commDetectMethod, bool showProgress, bool fullSpeed, MythPlayer *player, int chanid, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, bool useDB)
 
bool go (void) override
 
void GetCommercialBreakList (frm_dir_map_t &marks) override
 
void recordingFinished (long long totalFileSize) override
 
void requestCommBreakMapUpdate (void) override
 
void PrintFullMap (ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const override
 
- Public Member Functions inherited from CommDetectorBase
 CommDetectorBase ()
 
void stop ()
 
void pause ()
 
void resume ()
 

Private Member Functions

virtual ~CommDetector2 ()=default
 
void reportState (int elapsedms, long long frameno, long long nframes, unsigned int passno, unsigned int npasses)
 
int computeBreaks (long long nframes)
 

Private Attributes

enum SkipTypes m_commDetectMethod
 
bool m_showProgress {false}
 
bool m_fullSpeed {false}
 
MythPlayerm_player {nullptr}
 
QDateTime m_startts
 
QDateTime m_endts
 
QDateTime m_recstartts
 
QDateTime m_recendts
 
bool m_isRecording {false}
 
bool m_sendBreakMapUpdates {false}
 
bool m_breakMapUpdateRequested {false}
 
bool m_finished {false}
 
long long m_currentFrameNumber {0}
 
FrameAnalyzerList m_frameAnalyzers
 
FrameAnalyzerList::iterator m_currentPass
 
FrameAnalyzerItem m_finishedAnalyzers
 
FrameAnalyzer::FrameMap m_breaks
 
TemplateFinderm_logoFinder {nullptr}
 
TemplateMatcherm_logoMatcher {nullptr}
 
BlankFrameDetectorm_blankFrameDetector {nullptr}
 
SceneChangeDetectorm_sceneChangeDetector {nullptr}
 
QString m_debugdir
 

Additional Inherited Members

- Signals inherited from CommDetectorBase
void statusUpdate (const QString &a)
 
void gotNewCommercialBreakList ()
 
void breathe ()
 
- Protected Member Functions inherited from CommDetectorBase
 ~CommDetectorBase ()=default
 
- Protected Attributes inherited from CommDetectorBase
bool m_bPaused
 
bool m_bStop
 

Detailed Description

Definition at line 37 of file CommDetector2.h.

Constructor & Destructor Documentation

◆ CommDetector2()

CommDetector2::CommDetector2 ( SkipType  commDetectMethod,
bool  showProgress,
bool  fullSpeed,
MythPlayer player,
int  chanid,
const QDateTime &  startts,
const QDateTime &  endts,
const QDateTime &  recstartts,
const QDateTime &  recendts,
bool  useDB 
)

Definition at line 305 of file CommDetector2.cpp.

◆ ~CommDetector2()

virtual CommDetector2::~CommDetector2 ( )
privatevirtualdefault

Member Function Documentation

◆ go()

bool CommDetector2::go ( void  )
overridevirtual

Implements CommDetectorBase.

Definition at line 516 of file CommDetector2.cpp.

◆ GetCommercialBreakList()

void CommDetector2::GetCommercialBreakList ( frm_dir_map_t marks)
overridevirtual

Implements CommDetectorBase.

Definition at line 738 of file CommDetector2.cpp.

Referenced by go().

◆ recordingFinished()

void CommDetector2::recordingFinished ( long long  totalFileSize)
overridevirtual

Reimplemented from CommDetectorBase.

Definition at line 810 of file CommDetector2.cpp.

◆ requestCommBreakMapUpdate()

void CommDetector2::requestCommBreakMapUpdate ( void  )
overridevirtual

Reimplemented from CommDetectorBase.

Definition at line 819 of file CommDetector2.cpp.

◆ PrintFullMap()

void CommDetector2::PrintFullMap ( ostream &  out,
const frm_dir_map_t comm_breaks,
bool  verbose 
) const
overridevirtual

Implements CommDetectorBase.

Definition at line 855 of file CommDetector2.cpp.

◆ reportState()

void CommDetector2::reportState ( int  elapsedms,
long long  frameno,
long long  nframes,
unsigned int  passno,
unsigned int  npasses 
)
private

Definition at line 424 of file CommDetector2.cpp.

Referenced by go().

◆ computeBreaks()

int CommDetector2::computeBreaks ( long long  nframes)
private

Definition at line 468 of file CommDetector2.cpp.

Referenced by GetCommercialBreakList().

Member Data Documentation

◆ m_commDetectMethod

enum SkipTypes CommDetector2::m_commDetectMethod
private

Definition at line 60 of file CommDetector2.h.

Referenced by CommDetector2().

◆ m_showProgress

bool CommDetector2::m_showProgress {false}
private

Definition at line 61 of file CommDetector2.h.

Referenced by go(), and reportState().

◆ m_fullSpeed

bool CommDetector2::m_fullSpeed {false}
private

Definition at line 62 of file CommDetector2.h.

Referenced by go().

◆ m_player

MythPlayer* CommDetector2::m_player {nullptr}
private

Definition at line 63 of file CommDetector2.h.

Referenced by CommDetector2(), GetCommercialBreakList(), and go().

◆ m_startts

QDateTime CommDetector2::m_startts
private

Definition at line 64 of file CommDetector2.h.

◆ m_endts

QDateTime CommDetector2::m_endts
private

Definition at line 65 of file CommDetector2.h.

◆ m_recstartts

QDateTime CommDetector2::m_recstartts
private

Definition at line 66 of file CommDetector2.h.

Referenced by CommDetector2(), and go().

◆ m_recendts

QDateTime CommDetector2::m_recendts
private

Definition at line 67 of file CommDetector2.h.

Referenced by CommDetector2(), and go().

◆ m_isRecording

bool CommDetector2::m_isRecording {false}
private

Definition at line 70 of file CommDetector2.h.

Referenced by go(), and recordingFinished().

◆ m_sendBreakMapUpdates

bool CommDetector2::m_sendBreakMapUpdates {false}
private

Definition at line 71 of file CommDetector2.h.

Referenced by go(), and requestCommBreakMapUpdate().

◆ m_breakMapUpdateRequested

bool CommDetector2::m_breakMapUpdateRequested {false}
private

Definition at line 72 of file CommDetector2.h.

Referenced by go(), and requestCommBreakMapUpdate().

◆ m_finished

bool CommDetector2::m_finished {false}
private

Definition at line 73 of file CommDetector2.h.

Referenced by computeBreaks(), GetCommercialBreakList(), and go().

◆ m_currentFrameNumber

long long CommDetector2::m_currentFrameNumber {0}
private

Definition at line 75 of file CommDetector2.h.

Referenced by GetCommercialBreakList(), go(), and requestCommBreakMapUpdate().

◆ m_frameAnalyzers

FrameAnalyzerList CommDetector2::m_frameAnalyzers
private

Definition at line 76 of file CommDetector2.h.

Referenced by CommDetector2(), GetCommercialBreakList(), and go().

◆ m_currentPass

FrameAnalyzerList::iterator CommDetector2::m_currentPass
private

Definition at line 77 of file CommDetector2.h.

Referenced by GetCommercialBreakList(), go(), and requestCommBreakMapUpdate().

◆ m_finishedAnalyzers

FrameAnalyzerItem CommDetector2::m_finishedAnalyzers
private

Definition at line 78 of file CommDetector2.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_breaks

FrameAnalyzer::FrameMap CommDetector2::m_breaks
private

Definition at line 80 of file CommDetector2.h.

Referenced by computeBreaks(), and GetCommercialBreakList().

◆ m_logoFinder

TemplateFinder* CommDetector2::m_logoFinder {nullptr}
private

◆ m_logoMatcher

TemplateMatcher* CommDetector2::m_logoMatcher {nullptr}
private

Definition at line 83 of file CommDetector2.h.

Referenced by CommDetector2(), and computeBreaks().

◆ m_blankFrameDetector

BlankFrameDetector* CommDetector2::m_blankFrameDetector {nullptr}
private

Definition at line 84 of file CommDetector2.h.

Referenced by CommDetector2(), computeBreaks(), and PrintFullMap().

◆ m_sceneChangeDetector

SceneChangeDetector* CommDetector2::m_sceneChangeDetector {nullptr}
private

Definition at line 85 of file CommDetector2.h.

Referenced by CommDetector2(), and PrintFullMap().

◆ m_debugdir

QString CommDetector2::m_debugdir
private

Definition at line 87 of file CommDetector2.h.

Referenced by CommDetector2().


The documentation for this class was generated from the following files: