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

#include <BlankFrameDetector.h>

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

Public Member Functions

 BlankFrameDetector (HistogramAnalyzer *ha, const QString &debugdir)
 
const char * name (void) const override
 
enum analyzeFrameResult MythPlayerInited (MythPlayer *player, long long nframes) override
 
enum analyzeFrameResult analyzeFrame (const VideoFrame *frame, long long frameno, long long *pNextFrame) override
 
int finished (long long nframes, bool final) override
 
int reportTime (void) const override
 
FrameMap GetMap (unsigned int index) const override
 
const FrameAnalyzer::FrameMapgetBlanks (void) const
 
int computeForLogoSurplus (const TemplateMatcher *templateMatcher)
 
int computeBreaks (FrameMap *breaks)
 
- Public Member Functions inherited from FrameAnalyzer
virtual ~FrameAnalyzer (void)=default
 

Static Public Member Functions

static int computeForLogoDeficit (const TemplateMatcher *templateMatcher)
 

Private Attributes

HistogramAnalyzerm_histogramAnalyzer
 
float m_fps {0.0F}
 
FrameAnalyzer::FrameMap m_blankMap
 
FrameAnalyzer::FrameMap m_breakMap
 
int m_debugLevel {0}
 

Additional Inherited Members

- Public Types inherited from FrameAnalyzer
enum  analyzeFrameResult { ANALYZE_OK, ANALYZE_ERROR, ANALYZE_FINISHED, ANALYZE_FATAL }
 
typedef QMap< long long, long long > FrameMap
 
- Static Public Attributes inherited from FrameAnalyzer
static const long long ANYFRAME = LLONG_MAX
 
static const long long NEXTFRAME = -1
 

Detailed Description

Definition at line 15 of file BlankFrameDetector.h.

Constructor & Destructor Documentation

◆ BlankFrameDetector()

BlankFrameDetector::BlankFrameDetector ( HistogramAnalyzer ha,
const QString &  debugdir 
)

Definition at line 373 of file BlankFrameDetector.cpp.

Member Function Documentation

◆ name()

const char* BlankFrameDetector::name ( void  ) const
inlineoverridevirtual

Implements FrameAnalyzer.

Definition at line 22 of file BlankFrameDetector.h.

◆ MythPlayerInited()

enum FrameAnalyzer::analyzeFrameResult BlankFrameDetector::MythPlayerInited ( MythPlayer player,
long long  nframes 
)
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 389 of file BlankFrameDetector.cpp.

◆ analyzeFrame()

enum FrameAnalyzer::analyzeFrameResult BlankFrameDetector::analyzeFrame ( const VideoFrame frame,
long long  frameno,
long long *  pNextFrame 
)
overridevirtual

Implements FrameAnalyzer.

Definition at line 407 of file BlankFrameDetector.cpp.

◆ finished()

int BlankFrameDetector::finished ( long long  nframes,
bool  final 
)
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 423 of file BlankFrameDetector.cpp.

◆ reportTime()

int BlankFrameDetector::reportTime ( void  ) const
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 648 of file BlankFrameDetector.cpp.

◆ GetMap()

FrameMap BlankFrameDetector::GetMap ( unsigned int  index) const
inlineoverridevirtual

Implements FrameAnalyzer.

Definition at line 30 of file BlankFrameDetector.h.

Referenced by CommDetector2::PrintFullMap().

◆ getBlanks()

const FrameAnalyzer::FrameMap* BlankFrameDetector::getBlanks ( void  ) const
inline

Definition at line 34 of file BlankFrameDetector.h.

Referenced by TemplateMatcher::adjustForBlanks().

◆ computeForLogoSurplus()

int BlankFrameDetector::computeForLogoSurplus ( const TemplateMatcher templateMatcher)

Definition at line 442 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

◆ computeForLogoDeficit()

int BlankFrameDetector::computeForLogoDeficit ( const TemplateMatcher templateMatcher)
static

Definition at line 620 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

◆ computeBreaks()

int BlankFrameDetector::computeBreaks ( FrameAnalyzer::FrameMap breaks)

Definition at line 631 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

Member Data Documentation

◆ m_histogramAnalyzer

HistogramAnalyzer* BlankFrameDetector::m_histogramAnalyzer
private

Definition at line 40 of file BlankFrameDetector.h.

Referenced by analyzeFrame(), finished(), MythPlayerInited(), and reportTime().

◆ m_fps

float BlankFrameDetector::m_fps {0.0F}
private

◆ m_blankMap

FrameAnalyzer::FrameMap BlankFrameDetector::m_blankMap
private

◆ m_breakMap

FrameAnalyzer::FrameMap BlankFrameDetector::m_breakMap
private

Definition at line 44 of file BlankFrameDetector.h.

Referenced by computeBreaks(), computeForLogoSurplus(), and GetMap().

◆ m_debugLevel

int BlankFrameDetector::m_debugLevel {0}
private

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