MythTV  0.26-pre
Public Member Functions | Private Attributes
TemplateMatcher Class Reference

#include <TemplateMatcher.h>

Inheritance diagram for TemplateMatcher:
FrameAnalyzer

List of all members.

Public Member Functions

 TemplateMatcher (PGMConverter *pgmc, EdgeDetector *ed, TemplateFinder *tf, QString debugdir)
 ~TemplateMatcher (void)
const char * name (void) const
enum analyzeFrameResult MythPlayerInited (MythPlayer *player, long long nframes)
enum analyzeFrameResult analyzeFrame (const VideoFrame *frame, long long frameno, long long *pNextFrame)
int finished (long long nframes, bool final)
int reportTime (void) const
FrameMap GetMap (unsigned int) const
int templateCoverage (long long nframes, bool final) const
const FrameAnalyzer::FrameMapgetBreaks (void) const
int adjustForBlanks (const BlankFrameDetector *bf, long long nframes)
int computeBreaks (FrameMap *breaks)

Private Attributes

PGMConverterpgmConverter
EdgeDetectoredgeDetector
TemplateFindertemplateFinder
struct AVPicturetmpl
int tmplrow
int tmplcol
int tmplwidth
int tmplheight
unsigned short * matches
unsigned char * match
float fps
AVPicture cropped
FrameAnalyzer::FrameMap breakMap
int debugLevel
QString debugdir
QString debugdata
MythPlayerplayer
bool debug_matches
bool debug_removerunts
bool matches_done
struct timeval analyze_time

Detailed Description

Definition at line 31 of file TemplateMatcher.h.


Constructor & Destructor Documentation

TemplateMatcher::TemplateMatcher ( PGMConverter pgmc,
EdgeDetector ed,
TemplateFinder tf,
QString  debugdir 
)

Definition at line 327 of file TemplateMatcher.cpp.

Definition at line 367 of file TemplateMatcher.cpp.


Member Function Documentation

const char* TemplateMatcher::name ( void  ) const [inline, virtual]

Implements FrameAnalyzer.

Definition at line 40 of file TemplateMatcher.h.

enum FrameAnalyzer::analyzeFrameResult TemplateMatcher::MythPlayerInited ( MythPlayer player,
long long  nframes 
) [virtual]

Reimplemented from FrameAnalyzer.

Definition at line 377 of file TemplateMatcher.cpp.

enum FrameAnalyzer::analyzeFrameResult TemplateMatcher::analyzeFrame ( const VideoFrame frame,
long long  frameno,
long long *  pNextFrame 
) [virtual]

Implements FrameAnalyzer.

Definition at line 430 of file TemplateMatcher.cpp.

int TemplateMatcher::finished ( long long  nframes,
bool  final 
) [virtual]

Reimplemented from FrameAnalyzer.

Definition at line 505 of file TemplateMatcher.cpp.

int TemplateMatcher::reportTime ( void  ) const [virtual]

Reimplemented from FrameAnalyzer.

Definition at line 605 of file TemplateMatcher.cpp.

FrameMap TemplateMatcher::GetMap ( unsigned int  ) const [inline, virtual]

Implements FrameAnalyzer.

Definition at line 47 of file TemplateMatcher.h.

int TemplateMatcher::templateCoverage ( long long  nframes,
bool  final 
) const

Definition at line 616 of file TemplateMatcher.cpp.

Referenced by CommDetector2::computeBreaks().

Definition at line 51 of file TemplateMatcher.h.

Referenced by BlankFrameDetector::computeForLogoSurplus().

int TemplateMatcher::adjustForBlanks ( const BlankFrameDetector bf,
long long  nframes 
)

Definition at line 672 of file TemplateMatcher.cpp.

Referenced by CommDetector2::computeBreaks().

Definition at line 840 of file TemplateMatcher.cpp.

Referenced by CommDetector2::computeBreaks().


Member Data Documentation

Definition at line 56 of file TemplateMatcher.h.

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

Definition at line 57 of file TemplateMatcher.h.

Referenced by analyzeFrame().

Definition at line 58 of file TemplateMatcher.h.

Referenced by MythPlayerInited().

struct AVPicture* TemplateMatcher::tmpl [private]

Definition at line 59 of file TemplateMatcher.h.

Definition at line 60 of file TemplateMatcher.h.

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

Definition at line 60 of file TemplateMatcher.h.

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

Definition at line 61 of file TemplateMatcher.h.

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

Definition at line 61 of file TemplateMatcher.h.

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

unsigned short* TemplateMatcher::matches [private]

Definition at line 64 of file TemplateMatcher.h.

Referenced by ~TemplateMatcher().

unsigned char* TemplateMatcher::match [private]

Definition at line 65 of file TemplateMatcher.h.

Referenced by ~TemplateMatcher().

float TemplateMatcher::fps [private]

Definition at line 67 of file TemplateMatcher.h.

Referenced by adjustForBlanks(), finished(), and MythPlayerInited().

Definition at line 72 of file TemplateMatcher.h.

Referenced by finished(), templateCoverage(), and TemplateMatcher().

QString TemplateMatcher::debugdir [private]

Definition at line 73 of file TemplateMatcher.h.

QString TemplateMatcher::debugdata [private]

Definition at line 74 of file TemplateMatcher.h.

Referenced by finished(), and MythPlayerInited().

Definition at line 75 of file TemplateMatcher.h.

Referenced by MythPlayerInited().

Definition at line 76 of file TemplateMatcher.h.

Referenced by finished(), MythPlayerInited(), and TemplateMatcher().

Definition at line 77 of file TemplateMatcher.h.

Referenced by finished(), and TemplateMatcher().

Definition at line 78 of file TemplateMatcher.h.

Referenced by finished(), and MythPlayerInited().

struct timeval TemplateMatcher::analyze_time [private]

Definition at line 79 of file TemplateMatcher.h.

Referenced by analyzeFrame(), reportTime(), and TemplateMatcher().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends