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

#include <mythcommflag/CommDetector2.h>

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

Public Member Functions

 CommDetector2 (SkipType commDetectMethod, bool showProgress, bool fullSpeed, MythCommFlagPlayer *player, int chanid, QDateTime startts, QDateTime endts, QDateTime recstartts, 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 (std::ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const override
 
- Public Member Functions inherited from CommDetectorBase
 CommDetectorBase ()=default
 
void stop ()
 
void pause ()
 
void resume ()
 
virtual void recordingFinished ([[maybe_unused]] long long totalFileSize)
 

Private Member Functions

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

Private Attributes

SkipType m_commDetectMethod
 
bool m_showProgress {false}
 
bool m_fullSpeed {false}
 
MythCommFlagPlayerm_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 () override=default
 
- Protected Attributes inherited from CommDetectorBase
bool m_bPaused { false }
 
bool m_bStop { false }
 

Detailed Description

Definition at line 36 of file CommDetector2.h.

Constructor & Destructor Documentation

◆ CommDetector2()

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

Definition at line 273 of file CommDetector2.cpp.

◆ ~CommDetector2()

CommDetector2::~CommDetector2 ( )
overrideprivatedefault

Member Function Documentation

◆ go()

bool CommDetector2::go ( void  )
overridevirtual

Implements CommDetectorBase.

Definition at line 463 of file CommDetector2.cpp.

◆ GetCommercialBreakList()

void CommDetector2::GetCommercialBreakList ( frm_dir_map_t marks)
overridevirtual

Implements CommDetectorBase.

Definition at line 679 of file CommDetector2.cpp.

Referenced by go().

◆ recordingFinished()

void CommDetector2::recordingFinished ( long long  totalFileSize)
override

Definition at line 746 of file CommDetector2.cpp.

◆ requestCommBreakMapUpdate()

void CommDetector2::requestCommBreakMapUpdate ( void  )
overridevirtual

Reimplemented from CommDetectorBase.

Definition at line 755 of file CommDetector2.cpp.

◆ PrintFullMap()

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

Implements CommDetectorBase.

Definition at line 791 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 369 of file CommDetector2.cpp.

Referenced by go().

◆ computeBreaks()

int CommDetector2::computeBreaks ( long long  nframes)
private

Definition at line 413 of file CommDetector2.cpp.

Referenced by GetCommercialBreakList().

Member Data Documentation

◆ m_commDetectMethod

SkipType CommDetector2::m_commDetectMethod
private

Definition at line 59 of file CommDetector2.h.

Referenced by CommDetector2().

◆ m_showProgress

bool CommDetector2::m_showProgress {false}
private

Definition at line 60 of file CommDetector2.h.

Referenced by go(), and reportState().

◆ m_fullSpeed

bool CommDetector2::m_fullSpeed {false}
private

Definition at line 61 of file CommDetector2.h.

Referenced by go().

◆ m_player

MythCommFlagPlayer* CommDetector2::m_player {nullptr}
private

Definition at line 62 of file CommDetector2.h.

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

◆ m_startts

QDateTime CommDetector2::m_startts
private

Definition at line 63 of file CommDetector2.h.

◆ m_endts

QDateTime CommDetector2::m_endts
private

Definition at line 64 of file CommDetector2.h.

◆ m_recstartts

QDateTime CommDetector2::m_recstartts
private

Definition at line 65 of file CommDetector2.h.

Referenced by CommDetector2(), and go().

◆ m_recendts

QDateTime CommDetector2::m_recendts
private

Definition at line 66 of file CommDetector2.h.

Referenced by CommDetector2(), and go().

◆ m_isRecording

bool CommDetector2::m_isRecording {false}
private

Definition at line 69 of file CommDetector2.h.

Referenced by go(), and recordingFinished().

◆ m_sendBreakMapUpdates

bool CommDetector2::m_sendBreakMapUpdates {false}
private

Definition at line 70 of file CommDetector2.h.

Referenced by go(), and requestCommBreakMapUpdate().

◆ m_breakMapUpdateRequested

bool CommDetector2::m_breakMapUpdateRequested {false}
private

Definition at line 71 of file CommDetector2.h.

Referenced by go(), and requestCommBreakMapUpdate().

◆ m_finished

bool CommDetector2::m_finished {false}
private

Definition at line 72 of file CommDetector2.h.

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

◆ m_currentFrameNumber

long long CommDetector2::m_currentFrameNumber {0}
private

Definition at line 74 of file CommDetector2.h.

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

◆ m_frameAnalyzers

FrameAnalyzerList CommDetector2::m_frameAnalyzers
private

Definition at line 75 of file CommDetector2.h.

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

◆ m_currentPass

FrameAnalyzerList::iterator CommDetector2::m_currentPass
private

Definition at line 76 of file CommDetector2.h.

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

◆ m_finishedAnalyzers

FrameAnalyzerItem CommDetector2::m_finishedAnalyzers
private

Definition at line 77 of file CommDetector2.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_breaks

FrameAnalyzer::FrameMap CommDetector2::m_breaks
private

Definition at line 79 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 82 of file CommDetector2.h.

Referenced by CommDetector2(), and computeBreaks().

◆ m_blankFrameDetector

BlankFrameDetector* CommDetector2::m_blankFrameDetector {nullptr}
private

Definition at line 83 of file CommDetector2.h.

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

◆ m_sceneChangeDetector

SceneChangeDetector* CommDetector2::m_sceneChangeDetector {nullptr}
private

Definition at line 84 of file CommDetector2.h.

Referenced by CommDetector2(), and PrintFullMap().

◆ m_debugdir

QString CommDetector2::m_debugdir
private

Definition at line 86 of file CommDetector2.h.

Referenced by CommDetector2().


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