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
Collaboration diagram for BlankFrameDetector:
Collaboration graph

Public Member Functions

 BlankFrameDetector (std::shared_ptr< HistogramAnalyzer > ha, const QString &debugdir)
const char * name (void) const override
enum analyzeFrameResult MythPlayerInited (MythPlayer *player, long long nframes) override
enum analyzeFrameResult analyzeFrame (const MythVideoFrame *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
virtual enum analyzeFrameResult MythPlayerInited ([[maybe_unused]] MythPlayer *player, [[maybe_unused]] long long nframes)
virtual int finished ([[maybe_unused]] long long nframes, [[maybe_unused]] bool final)

Static Public Member Functions

static int computeForLogoDeficit (const TemplateMatcher *templateMatcher)

Private Attributes

std::shared_ptr< 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
using FrameMap = QMap< long long, long long >
- Static Public Attributes inherited from FrameAnalyzer
static const long long kAnyFrame = LLONG_MAX
static const long long kNextFrame = -1

Detailed Description

Definition at line 15 of file BlankFrameDetector.h.

Constructor & Destructor Documentation

◆ BlankFrameDetector()

BlankFrameDetector::BlankFrameDetector ( std::shared_ptr< HistogramAnalyzer ha,
const QString &  debugdir 

Definition at line 376 of file BlankFrameDetector.cpp.

Member Function Documentation

◆ name()

const char* BlankFrameDetector::name ( void  ) const

Implements FrameAnalyzer.

Definition at line 22 of file BlankFrameDetector.h.

◆ MythPlayerInited()

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

Definition at line 393 of file BlankFrameDetector.cpp.

◆ analyzeFrame()

enum FrameAnalyzer::analyzeFrameResult BlankFrameDetector::analyzeFrame ( const MythVideoFrame frame,
long long  frameno,
long long *  pNextFrame 

Implements FrameAnalyzer.

Definition at line 411 of file BlankFrameDetector.cpp.

◆ finished()

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

Definition at line 427 of file BlankFrameDetector.cpp.

◆ reportTime()

int BlankFrameDetector::reportTime ( void  ) const

Reimplemented from FrameAnalyzer.

Definition at line 649 of file BlankFrameDetector.cpp.

◆ GetMap()

FrameMap BlankFrameDetector::GetMap ( unsigned int  index) const

Implements FrameAnalyzer.

Definition at line 30 of file BlankFrameDetector.h.

Referenced by CommDetector2::PrintFullMap().

◆ getBlanks()

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

Definition at line 34 of file BlankFrameDetector.h.

Referenced by TemplateMatcher::adjustForBlanks().

◆ computeForLogoSurplus()

int BlankFrameDetector::computeForLogoSurplus ( const TemplateMatcher templateMatcher)

Definition at line 446 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

◆ computeForLogoDeficit()

int BlankFrameDetector::computeForLogoDeficit ( const TemplateMatcher templateMatcher)

Definition at line 623 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

◆ computeBreaks()

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

Definition at line 632 of file BlankFrameDetector.cpp.

Referenced by CommDetector2::computeBreaks().

Member Data Documentation

◆ m_histogramAnalyzer

std::shared_ptr<HistogramAnalyzer> BlankFrameDetector::m_histogramAnalyzer

Definition at line 40 of file BlankFrameDetector.h.

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

◆ m_fps

float BlankFrameDetector::m_fps {0.0F}

◆ m_blankMap

FrameAnalyzer::FrameMap BlankFrameDetector::m_blankMap

◆ m_breakMap

FrameAnalyzer::FrameMap BlankFrameDetector::m_breakMap

Definition at line 44 of file BlankFrameDetector.h.

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

◆ m_debugLevel

int BlankFrameDetector::m_debugLevel {0}

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