MythTV
master
|
#include <mythcommflag/SceneChangeDetector.h>
Classes | |
struct | scenechange_data |
Public Types | |
using | SceneChangeData = std::array< scenechange_data, UCHAR_MAX+1 > |
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 > |
Public Member Functions | |
SceneChangeDetector (std::shared_ptr< 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 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 FrameAnalyzer::FrameMap * | getChanges (void) 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) |
Protected Member Functions | |
~SceneChangeDetector (void) override=default | |
Private Attributes | |
std::shared_ptr< HistogramAnalyzer > | m_histogramAnalyzer {nullptr} |
float | m_fps {0.0F} |
std::vector< SceneChangeData > | m_scData |
std::vector< uint16_t > | m_scDiff |
FrameAnalyzer::FrameMap | m_changeMap |
int | m_debugLevel {0} |
QString | m_debugData |
bool | m_debugSceneChange {false} |
bool | m_sceneChangeDone {false} |
Additional Inherited Members | |
Static Public Attributes inherited from FrameAnalyzer | |
static const long long | kAnyFrame = LLONG_MAX |
static const long long | kNextFrame = -1 |
Definition at line 17 of file SceneChangeDetector.h.
using SceneChangeDetector::SceneChangeData = std::array<scenechange_data,UCHAR_MAX + 1> |
Definition at line 42 of file SceneChangeDetector.h.
SceneChangeDetector::SceneChangeDetector | ( | std::shared_ptr< HistogramAnalyzer > | ha, |
const QString & | debugdir | ||
) |
Definition at line 95 of file SceneChangeDetector.cpp.
|
overrideprotecteddefault |
|
inlinevirtual |
Definition at line 21 of file SceneChangeDetector.h.
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 24 of file SceneChangeDetector.h.
|
override |
Definition at line 119 of file SceneChangeDetector.cpp.
|
overridevirtual |
Implements FrameAnalyzer.
Definition at line 141 of file SceneChangeDetector.cpp.
|
override |
Definition at line 157 of file SceneChangeDetector.cpp.
|
overridevirtual |
Reimplemented from FrameAnalyzer.
Definition at line 200 of file SceneChangeDetector.cpp.
|
inlineoverridevirtual |
Implements FrameAnalyzer.
Definition at line 32 of file SceneChangeDetector.h.
Referenced by CommDetector2::PrintFullMap().
|
inline |
Definition at line 36 of file SceneChangeDetector.h.
|
private |
Definition at line 48 of file SceneChangeDetector.h.
Referenced by analyzeFrame(), finished(), MythPlayerInited(), and reportTime().
|
private |
Definition at line 49 of file SceneChangeDetector.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 52 of file SceneChangeDetector.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 53 of file SceneChangeDetector.h.
Referenced by finished(), and MythPlayerInited().
|
private |
Definition at line 55 of file SceneChangeDetector.h.
Referenced by finished(), getChanges(), and GetMap().
|
private |
Definition at line 58 of file SceneChangeDetector.h.
Referenced by finished(), and SceneChangeDetector().
|
private |
Definition at line 59 of file SceneChangeDetector.h.
Referenced by finished().
Definition at line 60 of file SceneChangeDetector.h.
Referenced by finished(), and SceneChangeDetector().
Definition at line 61 of file SceneChangeDetector.h.
Referenced by finished().