MythTV  master
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SceneChangeDetector Class Reference

#include <SceneChangeDetector.h>

Inheritance diagram for SceneChangeDetector:
Inheritance graph
[legend]
Collaboration diagram for SceneChangeDetector:
Collaboration graph
[legend]

Classes

struct  scenechange_data
 

Public Types

typedef struct SceneChangeDetector::scenechange_data SceneChangeData[UCHAR_MAX+1]
 
- Public Types inherited from FrameAnalyzer
enum  analyzeFrameResult { ANALYZE_OK, ANALYZE_ERROR, ANALYZE_FINISHED, ANALYZE_FATAL }
 
typedef QMap< long long, long long > FrameMap
 

Public Member Functions

 SceneChangeDetector (HistogramAnalyzer *ha, const QString &debugdir)
 
virtual void deleteLater (void)
 
const char * name (void) const override
 
enum analyzeFrameResult MythPlayerInited (MythPlayer *player, long long nframes) override
 
enum analyzeFrameResult analyzeFrame (const VideoFrame *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 FrameAnalyzer::FrameMapgetChanges (void) const
 
- Public Member Functions inherited from FrameAnalyzer
virtual ~FrameAnalyzer (void)=default
 

Protected Member Functions

virtual ~SceneChangeDetector (void)=default
 

Private Attributes

HistogramAnalyzerm_histogramAnalyzer {nullptr}
 
float m_fps {0.0F}
 
SceneChangeDatam_scdata {nullptr}
 
unsigned short * m_scdiff {nullptr}
 
FrameAnalyzer::FrameMap m_changeMap
 
int m_debugLevel {0}
 
QString m_debugdata
 
bool m_debug_scenechange {false}
 
bool m_scenechange_done {false}
 

Additional Inherited Members

- Static Public Attributes inherited from FrameAnalyzer
static const long long ANYFRAME = LLONG_MAX
 
static const long long NEXTFRAME = -1
 

Detailed Description

Definition at line 17 of file SceneChangeDetector.h.

Member Typedef Documentation

◆ SceneChangeData

typedef struct SceneChangeDetector::scenechange_data SceneChangeDetector::SceneChangeData[UCHAR_MAX + 1]

Constructor & Destructor Documentation

◆ SceneChangeDetector()

SceneChangeDetector::SceneChangeDetector ( HistogramAnalyzer ha,
const QString &  debugdir 
)

Definition at line 96 of file SceneChangeDetector.cpp.

◆ ~SceneChangeDetector()

virtual SceneChangeDetector::~SceneChangeDetector ( void  )
protectedvirtualdefault

Member Function Documentation

◆ deleteLater()

void SceneChangeDetector::deleteLater ( void  )
virtual

Definition at line 118 of file SceneChangeDetector.cpp.

◆ name()

const char* SceneChangeDetector::name ( void  ) const
inlineoverridevirtual

Implements FrameAnalyzer.

Definition at line 24 of file SceneChangeDetector.h.

◆ MythPlayerInited()

enum FrameAnalyzer::analyzeFrameResult SceneChangeDetector::MythPlayerInited ( MythPlayer player,
long long  nframes 
)
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 125 of file SceneChangeDetector.cpp.

◆ analyzeFrame()

enum FrameAnalyzer::analyzeFrameResult SceneChangeDetector::analyzeFrame ( const VideoFrame frame,
long long  frameno,
long long *  pNextFrame 
)
overridevirtual

Implements FrameAnalyzer.

Definition at line 150 of file SceneChangeDetector.cpp.

◆ finished()

int SceneChangeDetector::finished ( long long  nframes,
bool  final 
)
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 166 of file SceneChangeDetector.cpp.

◆ reportTime()

int SceneChangeDetector::reportTime ( void  ) const
overridevirtual

Reimplemented from FrameAnalyzer.

Definition at line 211 of file SceneChangeDetector.cpp.

◆ GetMap()

FrameMap SceneChangeDetector::GetMap ( unsigned int  ) const
inlineoverridevirtual

Implements FrameAnalyzer.

Definition at line 32 of file SceneChangeDetector.h.

Referenced by CommDetector2::PrintFullMap().

◆ getChanges()

const FrameAnalyzer::FrameMap* SceneChangeDetector::getChanges ( void  ) const
inline

Definition at line 36 of file SceneChangeDetector.h.

Member Data Documentation

◆ m_histogramAnalyzer

HistogramAnalyzer* SceneChangeDetector::m_histogramAnalyzer {nullptr}
private

Definition at line 47 of file SceneChangeDetector.h.

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

◆ m_fps

float SceneChangeDetector::m_fps {0.0F}
private

Definition at line 48 of file SceneChangeDetector.h.

Referenced by finished(), and MythPlayerInited().

◆ m_scdata

SceneChangeData* SceneChangeDetector::m_scdata {nullptr}
private

Definition at line 51 of file SceneChangeDetector.h.

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

◆ m_scdiff

unsigned short* SceneChangeDetector::m_scdiff {nullptr}
private

Definition at line 52 of file SceneChangeDetector.h.

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

◆ m_changeMap

FrameAnalyzer::FrameMap SceneChangeDetector::m_changeMap
private

Definition at line 54 of file SceneChangeDetector.h.

Referenced by finished(), getChanges(), and GetMap().

◆ m_debugLevel

int SceneChangeDetector::m_debugLevel {0}
private

Definition at line 57 of file SceneChangeDetector.h.

Referenced by finished(), and SceneChangeDetector().

◆ m_debugdata

QString SceneChangeDetector::m_debugdata
private

Definition at line 58 of file SceneChangeDetector.h.

Referenced by finished().

◆ m_debug_scenechange

bool SceneChangeDetector::m_debug_scenechange {false}
private

Definition at line 59 of file SceneChangeDetector.h.

Referenced by finished(), and SceneChangeDetector().

◆ m_scenechange_done

bool SceneChangeDetector::m_scenechange_done {false}
private

Definition at line 60 of file SceneChangeDetector.h.

Referenced by finished().


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