MythTV
master
|
#include <mythcommflag/TemplateFinder.h>
Public Member Functions | |
TemplateFinder (std::shared_ptr< PGMConverter > pgmc, std::shared_ptr< BorderDetector > bd, std::shared_ptr< EdgeDetector > ed, MythPlayer *player, std::chrono::seconds proglen, const QString &debugdir) | |
TemplateFinder (std::shared_ptr< PGMConverter > pgmc, std::shared_ptr< BorderDetector > bd, std::shared_ptr< EdgeDetector > ed, MythPlayer *player, int proglen, const QString &debugdir) | |
~TemplateFinder (void) override | |
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) const override |
const struct AVFrame * | getTemplate (int *prow, int *pcol, int *pwidth, int *pheight) const |
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) |
Private Member Functions | |
int | resetBuffers (int newwidth, int newheight) |
Private Attributes | |
std::shared_ptr< PGMConverter > | m_pgmConverter {nullptr} |
std::shared_ptr< BorderDetector > | m_borderDetector {nullptr} |
std::shared_ptr< EdgeDetector > | m_edgeDetector {nullptr} |
std::chrono::seconds | m_sampleTime {20min} |
int | m_frameInterval |
long long | m_endFrame {0} |
long long | m_nextFrame {0} |
ssize_t | m_width {-1} |
ssize_t | m_height {-1} |
unsigned int * | m_scores {nullptr} |
int | m_minContentRow {INT_MAX} |
int | m_minContentCol {INT_MAX} |
int | m_maxContentRow1 {INT_MAX} |
int | m_maxContentCol1 {INT_MAX} |
AVFrame | m_tmpl {} |
int | m_tmplRow {-1} |
int | m_tmplCol {-1} |
int | m_tmplWidth {-1} |
int | m_tmplHeight {-1} |
AVFrame | m_cropped {} |
int | m_cwidth {-1} |
int | m_cheight {-1} |
int | m_debugLevel {0} |
QString | m_debugDir |
QString | m_debugData |
QString | m_debugTmpl |
bool | m_debugTemplate {false} |
bool | m_debugEdgeCounts {false} |
bool | m_debugFrames {false} |
bool | m_tmplValid {false} |
bool | m_tmplDone {false} |
std::chrono::microseconds | m_analyzeTime {0us} |
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 30 of file TemplateFinder.h.
TemplateFinder::TemplateFinder | ( | std::shared_ptr< PGMConverter > | pgmc, |
std::shared_ptr< BorderDetector > | bd, | ||
std::shared_ptr< EdgeDetector > | ed, | ||
MythPlayer * | player, | ||
std::chrono::seconds | proglen, | ||
const QString & | debugdir | ||
) |
Definition at line 700 of file TemplateFinder.cpp.
|
inline |
Definition at line 39 of file TemplateFinder.h.
|
override |
Definition at line 766 of file TemplateFinder.cpp.
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 48 of file TemplateFinder.h.
|
override |
Definition at line 774 of file TemplateFinder.cpp.
|
overridevirtual |
Implements FrameAnalyzer.
Definition at line 864 of file TemplateFinder.cpp.
|
override |
Definition at line 984 of file TemplateFinder.cpp.
|
overridevirtual |
Reimplemented from FrameAnalyzer.
Definition at line 1029 of file TemplateFinder.cpp.
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 56 of file TemplateFinder.h.
Referenced by CommDetector2::PrintFullMap().
const struct AVFrame * TemplateFinder::getTemplate | ( | int * | prow, |
int * | pcol, | ||
int * | pwidth, | ||
int * | pheight | ||
) | const |
Definition at line 1043 of file TemplateFinder.cpp.
Referenced by CommDetector2::computeBreaks(), HistogramAnalyzer::MythPlayerInited(), TemplateMatcher::MythPlayerInited(), and BorderDetector::setLogoState().
|
private |
Definition at line 841 of file TemplateFinder.cpp.
Referenced by analyzeFrame().
|
private |
Definition at line 66 of file TemplateFinder.h.
Referenced by analyzeFrame(), MythPlayerInited(), and reportTime().
|
private |
Definition at line 67 of file TemplateFinder.h.
Referenced by analyzeFrame(), finished(), MythPlayerInited(), and reportTime().
|
private |
Definition at line 68 of file TemplateFinder.h.
Referenced by analyzeFrame().
|
private |
Definition at line 70 of file TemplateFinder.h.
Referenced by TemplateFinder().
|
private |
Definition at line 71 of file TemplateFinder.h.
Referenced by analyzeFrame(), and TemplateFinder().
|
private |
Definition at line 72 of file TemplateFinder.h.
Referenced by analyzeFrame(), and TemplateFinder().
|
private |
Definition at line 73 of file TemplateFinder.h.
Referenced by analyzeFrame().
|
private |
Definition at line 75 of file TemplateFinder.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 76 of file TemplateFinder.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 77 of file TemplateFinder.h.
Referenced by analyzeFrame(), finished(), MythPlayerInited(), and ~TemplateFinder().
|
private |
Definition at line 79 of file TemplateFinder.h.
Referenced by analyzeFrame(), and finished().
|
private |
Definition at line 80 of file TemplateFinder.h.
Referenced by analyzeFrame(), and finished().
|
private |
Definition at line 81 of file TemplateFinder.h.
Referenced by analyzeFrame(), and finished().
|
private |
Definition at line 82 of file TemplateFinder.h.
Referenced by analyzeFrame(), and finished().
|
private |
Definition at line 84 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), MythPlayerInited(), and ~TemplateFinder().
|
private |
Definition at line 85 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), and MythPlayerInited().
|
private |
Definition at line 86 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), and MythPlayerInited().
|
private |
Definition at line 87 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), and MythPlayerInited().
|
private |
Definition at line 88 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), and MythPlayerInited().
|
private |
Definition at line 90 of file TemplateFinder.h.
Referenced by analyzeFrame(), resetBuffers(), and ~TemplateFinder().
|
private |
Definition at line 91 of file TemplateFinder.h.
Referenced by resetBuffers().
|
private |
Definition at line 92 of file TemplateFinder.h.
Referenced by resetBuffers().
|
private |
Definition at line 95 of file TemplateFinder.h.
Referenced by analyzeFrame(), and TemplateFinder().
|
private |
Definition at line 96 of file TemplateFinder.h.
Referenced by analyzeFrame(), finished(), and TemplateFinder().
|
private |
Definition at line 97 of file TemplateFinder.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 98 of file TemplateFinder.h.
Referenced by finished(), and MythPlayerInited().
Definition at line 99 of file TemplateFinder.h.
Referenced by finished(), MythPlayerInited(), and TemplateFinder().
Definition at line 100 of file TemplateFinder.h.
Referenced by finished(), and TemplateFinder().
Definition at line 101 of file TemplateFinder.h.
Referenced by analyzeFrame(), and TemplateFinder().
Definition at line 102 of file TemplateFinder.h.
Referenced by finished(), getTemplate(), and MythPlayerInited().
Definition at line 103 of file TemplateFinder.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 104 of file TemplateFinder.h.
Referenced by analyzeFrame(), and reportTime().