|
MythTV master
|
#include <mythcommflag/BlankFrameDetector.h>
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::FrameMap * | getBlanks (void) const |
| int | computeForLogoSurplus (const TemplateMatcher *templateMatcher) |
| int | computeBreaks (FrameMap *breaks) |
Public Member Functions inherited from FrameAnalyzer | |
| virtual | ~FrameAnalyzer (void)=default |
| virtual const char * | name (void) const =0 |
| virtual enum analyzeFrameResult | MythPlayerInited (MythPlayer *player, long long nframes) |
| virtual enum analyzeFrameResult | analyzeFrame (const MythVideoFrame *frame, long long frameno, long long *pNextFrame)=0 |
| virtual int | finished (long long nframes, bool final) |
| virtual int | reportTime (void) const |
| virtual FrameMap | GetMap (unsigned int) const =0 |
Static Public Member Functions | |
| static int | computeForLogoDeficit (const TemplateMatcher *templateMatcher) |
Private Attributes | |
| std::shared_ptr< HistogramAnalyzer > | m_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 : std::uint8_t { ANALYZE_OK , ANALYZE_ERROR , ANALYZE_FINISHED , ANALYZE_FATAL } |
| 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 |
Definition at line 15 of file BlankFrameDetector.h.
| BlankFrameDetector::BlankFrameDetector | ( | std::shared_ptr< HistogramAnalyzer > | ha, |
| const QString & | debugdir | ||
| ) |
Definition at line 388 of file BlankFrameDetector.cpp.
|
overridevirtual |
Implements FrameAnalyzer.
Definition at line 423 of file BlankFrameDetector.cpp.
| int BlankFrameDetector::computeBreaks | ( | FrameAnalyzer::FrameMap * | breaks | ) |
Definition at line 644 of file BlankFrameDetector.cpp.
Referenced by CommDetector2::computeBreaks().
|
static |
Definition at line 635 of file BlankFrameDetector.cpp.
Referenced by CommDetector2::computeBreaks().
| int BlankFrameDetector::computeForLogoSurplus | ( | const TemplateMatcher * | templateMatcher | ) |
Definition at line 458 of file BlankFrameDetector.cpp.
Referenced by CommDetector2::computeBreaks().
|
overridevirtual |
Reimplemented from FrameAnalyzer.
Definition at line 439 of file BlankFrameDetector.cpp.
|
inline |
Definition at line 34 of file BlankFrameDetector.h.
Referenced by TemplateMatcher::adjustForBlanks().
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 30 of file BlankFrameDetector.h.
Referenced by CommDetector2::PrintFullMap().
|
overridevirtual |
Reimplemented from FrameAnalyzer.
Definition at line 405 of file BlankFrameDetector.cpp.
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 22 of file BlankFrameDetector.h.
|
overridevirtual |
Reimplemented from FrameAnalyzer.
Definition at line 661 of file BlankFrameDetector.cpp.
|
private |
Definition at line 43 of file BlankFrameDetector.h.
Referenced by computeBreaks(), computeForLogoSurplus(), finished(), getBlanks(), and GetMap().
|
private |
Definition at line 44 of file BlankFrameDetector.h.
Referenced by computeBreaks(), computeForLogoSurplus(), and GetMap().
|
private |
Definition at line 47 of file BlankFrameDetector.h.
Referenced by BlankFrameDetector(), computeBreaks(), computeForLogoSurplus(), and finished().
|
private |
Definition at line 41 of file BlankFrameDetector.h.
Referenced by computeBreaks(), computeForLogoSurplus(), finished(), and MythPlayerInited().
|
private |
Definition at line 40 of file BlankFrameDetector.h.
Referenced by analyzeFrame(), finished(), MythPlayerInited(), and reportTime().