MythTV  master
Public Types | Public Member Functions | Static Public Attributes | List of all members
FrameAnalyzer Class Referenceabstract

#include <FrameAnalyzer.h>

Inheritance diagram for FrameAnalyzer:
Inheritance graph
[legend]

Public Types

enum  analyzeFrameResult { ANALYZE_OK, ANALYZE_ERROR, ANALYZE_FINISHED, ANALYZE_FATAL }
 
typedef QMap< long long, long long > FrameMap
 

Public Member Functions

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 VideoFrame *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 Attributes

static const long long ANYFRAME = LLONG_MAX
 
static const long long NEXTFRAME = -1
 

Detailed Description

Definition at line 27 of file FrameAnalyzer.h.

Member Typedef Documentation

◆ FrameMap

typedef QMap<long long, long long> FrameAnalyzer::FrameMap

Definition at line 44 of file FrameAnalyzer.h.

Member Enumeration Documentation

◆ analyzeFrameResult

Enumerator
ANALYZE_OK 
ANALYZE_ERROR 
ANALYZE_FINISHED 
ANALYZE_FATAL 

Definition at line 35 of file FrameAnalyzer.h.

Constructor & Destructor Documentation

◆ ~FrameAnalyzer()

virtual FrameAnalyzer::~FrameAnalyzer ( void  )
virtualdefault

Member Function Documentation

◆ name()

virtual const char* FrameAnalyzer::name ( void  ) const
pure virtual

◆ MythPlayerInited()

virtual enum analyzeFrameResult FrameAnalyzer::MythPlayerInited ( MythPlayer player,
long long  nframes 
)
inlinevirtual

Reimplemented in TemplateMatcher, TemplateFinder, SceneChangeDetector, and BlankFrameDetector.

Definition at line 46 of file FrameAnalyzer.h.

◆ analyzeFrame()

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

◆ finished()

virtual int FrameAnalyzer::finished ( long long  nframes,
bool  final 
)
inlinevirtual

Reimplemented in TemplateMatcher, TemplateFinder, SceneChangeDetector, and BlankFrameDetector.

Definition at line 62 of file FrameAnalyzer.h.

◆ reportTime()

virtual int FrameAnalyzer::reportTime ( void  ) const
inlinevirtual

Reimplemented in TemplateMatcher, TemplateFinder, SceneChangeDetector, and BlankFrameDetector.

Definition at line 67 of file FrameAnalyzer.h.

◆ GetMap()

virtual FrameMap FrameAnalyzer::GetMap ( unsigned int  ) const
pure virtual

Member Data Documentation

◆ ANYFRAME

const long long FrameAnalyzer::ANYFRAME = LLONG_MAX
static

Definition at line 57 of file FrameAnalyzer.h.

◆ NEXTFRAME

const long long FrameAnalyzer::NEXTFRAME = -1
static

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