TemplateMatcher Class Reference

#include <TemplateMatcher.h>

Inheritance diagram for TemplateMatcher:

FrameAnalyzer

List of all members.


Detailed Description

Definition at line 31 of file TemplateMatcher.h.


Public Member Functions

 TemplateMatcher (PGMConverter *pgmc, EdgeDetector *ed, TemplateFinder *tf, QString debugdir)
 ~TemplateMatcher (void)
const char * name (void) const
enum analyzeFrameResult nuppelVideoPlayerInited (NuppelVideoPlayer *nvp, 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
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
NuppelVideoPlayernvp
bool debug_matches
bool debug_removerunts
bool matches_done
struct timeval analyze_time

Constructor & Destructor Documentation

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

Definition at line 318 of file TemplateMatcher.cpp.

TemplateMatcher::~TemplateMatcher ( void   ) 

Definition at line 359 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::nuppelVideoPlayerInited ( NuppelVideoPlayer nvp,
long long  nframes 
) [virtual]

Reimplemented from FrameAnalyzer.

Definition at line 369 of file TemplateMatcher.cpp.

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

Implements FrameAnalyzer.

Definition at line 421 of file TemplateMatcher.cpp.

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

Reimplemented from FrameAnalyzer.

Definition at line 496 of file TemplateMatcher.cpp.

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

Reimplemented from FrameAnalyzer.

Definition at line 595 of file TemplateMatcher.cpp.

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

Definition at line 606 of file TemplateMatcher.cpp.

Referenced by CommDetector2::computeBreaks().

const FrameAnalyzer::FrameMap* TemplateMatcher::getBreaks ( void   )  const [inline]

Definition at line 50 of file TemplateMatcher.h.

Referenced by BlankFrameDetector::computeForLogoSurplus().

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

Definition at line 662 of file TemplateMatcher.cpp.

Referenced by CommDetector2::computeBreaks().

int TemplateMatcher::computeBreaks ( FrameMap breaks  ) 


Member Data Documentation

Definition at line 55 of file TemplateMatcher.h.

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

Definition at line 56 of file TemplateMatcher.h.

Referenced by analyzeFrame().

Definition at line 57 of file TemplateMatcher.h.

Referenced by nuppelVideoPlayerInited().

struct AVPicture* TemplateMatcher::tmpl [read, private]

Definition at line 58 of file TemplateMatcher.h.

int TemplateMatcher::tmplrow [private]

Definition at line 59 of file TemplateMatcher.h.

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

int TemplateMatcher::tmplcol [private]

Definition at line 59 of file TemplateMatcher.h.

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

Definition at line 60 of file TemplateMatcher.h.

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

Definition at line 60 of file TemplateMatcher.h.

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

unsigned short* TemplateMatcher::matches [private]

unsigned char* TemplateMatcher::match [private]

Definition at line 64 of file TemplateMatcher.h.

Referenced by finished(), nuppelVideoPlayerInited(), and ~TemplateMatcher().

float TemplateMatcher::fps [private]

Definition at line 66 of file TemplateMatcher.h.

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

Definition at line 68 of file TemplateMatcher.h.

Referenced by adjustForBlanks(), finished(), getBreaks(), and templateCoverage().

Definition at line 71 of file TemplateMatcher.h.

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

QString TemplateMatcher::debugdir [private]

Definition at line 72 of file TemplateMatcher.h.

QString TemplateMatcher::debugdata [private]

Definition at line 73 of file TemplateMatcher.h.

Referenced by finished(), and nuppelVideoPlayerInited().

Definition at line 74 of file TemplateMatcher.h.

Referenced by nuppelVideoPlayerInited().

Definition at line 75 of file TemplateMatcher.h.

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

Definition at line 76 of file TemplateMatcher.h.

Referenced by finished(), and TemplateMatcher().

Definition at line 77 of file TemplateMatcher.h.

Referenced by finished(), and nuppelVideoPlayerInited().

struct timeval TemplateMatcher::analyze_time [read, private]

Definition at line 78 of file TemplateMatcher.h.

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


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

Generated on Sat Dec 18 05:16:11 2010 for MythTV by  doxygen 1.5.5