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

#include <HistogramAnalyzer.h>

Collaboration diagram for HistogramAnalyzer:
Collaboration graph
[legend]

Classes

struct  m_analyze_time
 

Public Types

typedef unsigned char Histogram[UCHAR_MAX+1]
 

Public Member Functions

 HistogramAnalyzer (PGMConverter *pgmc, BorderDetector *bd, const QString &debugdir)
 
 ~HistogramAnalyzer ()
 
enum FrameAnalyzer::analyzeFrameResult MythPlayerInited (MythPlayer *player, long long nframes)
 
void setLogoState (TemplateFinder *finder)
 
enum FrameAnalyzer::analyzeFrameResult analyzeFrame (const VideoFrame *frame, long long frameno)
 
int finished (long long nframes, bool final)
 
int reportTime (void) const
 
const float * getMeans (void) const
 
const unsigned char * getMedians (void) const
 
const float * getStdDevs (void) const
 
const HistogramgetHistograms (void) const
 
const unsigned char * getMonochromatics (void) const
 

Static Public Attributes

static const long long UNCACHED = -1
 

Private Attributes

PGMConverterm_pgmConverter {nullptr}
 
BorderDetectorm_borderDetector {nullptr}
 
TemplateFinderm_logoFinder {nullptr}
 
const struct AVFramem_logo {nullptr}
 
int m_logowidth {-1}
 
int m_logoheight {-1}
 
int m_logorr1 {-1}
 
int m_logocc1 {-1}
 
int m_logorr2 {-1}
 
int m_logocc2 {-1}
 
float * m_mean {nullptr}
 
unsigned char * m_median {nullptr}
 
float * m_stddev {nullptr}
 
int * m_frow {nullptr}
 
int * m_fcol {nullptr}
 
int * m_fwidth {nullptr}
 
int * m_fheight {nullptr}
 
Histogramm_histogram {nullptr}
 
unsigned char * m_monochromatic {nullptr}
 
int m_histval [UCHAR_MAX+1] {0}
 
unsigned char * m_buf {nullptr}
 
long long m_lastframeno {-1}
 
int m_debugLevel {0}
 
QString m_debugdata
 
bool m_debug_histval {false}
 
bool m_histval_done {false}
 

Detailed Description

Definition at line 17 of file HistogramAnalyzer.h.

Member Typedef Documentation

◆ Histogram

typedef unsigned char HistogramAnalyzer::Histogram[UCHAR_MAX+1]

Definition at line 35 of file HistogramAnalyzer.h.

Constructor & Destructor Documentation

◆ HistogramAnalyzer()

HistogramAnalyzer::HistogramAnalyzer ( PGMConverter pgmc,
BorderDetector bd,
const QString &  debugdir 
)

Definition at line 137 of file HistogramAnalyzer.cpp.

◆ ~HistogramAnalyzer()

HistogramAnalyzer::~HistogramAnalyzer ( )

Definition at line 162 of file HistogramAnalyzer.cpp.

Member Function Documentation

◆ MythPlayerInited()

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

◆ setLogoState()

void HistogramAnalyzer::setLogoState ( TemplateFinder finder)

Definition at line 249 of file HistogramAnalyzer.cpp.

Referenced by CommDetector2::CommDetector2().

◆ analyzeFrame()

enum FrameAnalyzer::analyzeFrameResult HistogramAnalyzer::analyzeFrame ( const VideoFrame frame,
long long  frameno 
)

◆ finished()

int HistogramAnalyzer::finished ( long long  nframes,
bool  final 
)

◆ reportTime()

int HistogramAnalyzer::reportTime ( void  ) const

◆ getMeans()

const float* HistogramAnalyzer::getMeans ( void  ) const
inline

Definition at line 37 of file HistogramAnalyzer.h.

◆ getMedians()

const unsigned char* HistogramAnalyzer::getMedians ( void  ) const
inline

Definition at line 38 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().

◆ getStdDevs()

const float* HistogramAnalyzer::getStdDevs ( void  ) const
inline

Definition at line 39 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().

◆ getHistograms()

const Histogram* HistogramAnalyzer::getHistograms ( void  ) const
inline

Definition at line 40 of file HistogramAnalyzer.h.

Referenced by SceneChangeDetector::finished().

◆ getMonochromatics()

const unsigned char* HistogramAnalyzer::getMonochromatics ( void  ) const
inline

Definition at line 41 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().

Member Data Documentation

◆ UNCACHED

const long long HistogramAnalyzer::UNCACHED = -1
static

Definition at line 28 of file HistogramAnalyzer.h.

Referenced by analyzeFrame().

◆ m_pgmConverter

PGMConverter* HistogramAnalyzer::m_pgmConverter {nullptr}
private

Definition at line 44 of file HistogramAnalyzer.h.

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

◆ m_borderDetector

BorderDetector* HistogramAnalyzer::m_borderDetector {nullptr}
private

Definition at line 45 of file HistogramAnalyzer.h.

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

◆ m_logoFinder

TemplateFinder* HistogramAnalyzer::m_logoFinder {nullptr}
private

Definition at line 47 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited(), and setLogoState().

◆ m_logo

const struct AVFrame* HistogramAnalyzer::m_logo {nullptr}
private

Definition at line 48 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

◆ m_logowidth

int HistogramAnalyzer::m_logowidth {-1}
private

Definition at line 49 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited().

◆ m_logoheight

int HistogramAnalyzer::m_logoheight {-1}
private

Definition at line 50 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited().

◆ m_logorr1

int HistogramAnalyzer::m_logorr1 {-1}
private

Definition at line 51 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

◆ m_logocc1

int HistogramAnalyzer::m_logocc1 {-1}
private

Definition at line 52 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

◆ m_logorr2

int HistogramAnalyzer::m_logorr2 {-1}
private

Definition at line 53 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

◆ m_logocc2

int HistogramAnalyzer::m_logocc2 {-1}
private

Definition at line 54 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

◆ m_mean

float* HistogramAnalyzer::m_mean {nullptr}
private

◆ m_median

unsigned char* HistogramAnalyzer::m_median {nullptr}
private

◆ m_stddev

float* HistogramAnalyzer::m_stddev {nullptr}
private

◆ m_frow

int* HistogramAnalyzer::m_frow {nullptr}
private

Definition at line 60 of file HistogramAnalyzer.h.

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

◆ m_fcol

int* HistogramAnalyzer::m_fcol {nullptr}
private

Definition at line 61 of file HistogramAnalyzer.h.

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

◆ m_fwidth

int* HistogramAnalyzer::m_fwidth {nullptr}
private

Definition at line 62 of file HistogramAnalyzer.h.

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

◆ m_fheight

int* HistogramAnalyzer::m_fheight {nullptr}
private

Definition at line 63 of file HistogramAnalyzer.h.

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

◆ m_histogram

Histogram* HistogramAnalyzer::m_histogram {nullptr}
private

◆ m_monochromatic

unsigned char* HistogramAnalyzer::m_monochromatic {nullptr}
private

◆ m_histval

int HistogramAnalyzer::m_histval[UCHAR_MAX+1] {0}
private

Definition at line 66 of file HistogramAnalyzer.h.

Referenced by analyzeFrame().

◆ m_buf

unsigned char* HistogramAnalyzer::m_buf {nullptr}
private

Definition at line 67 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), MythPlayerInited(), and ~HistogramAnalyzer().

◆ m_lastframeno

long long HistogramAnalyzer::m_lastframeno {-1}
private

Definition at line 68 of file HistogramAnalyzer.h.

Referenced by analyzeFrame().

◆ m_debugLevel

int HistogramAnalyzer::m_debugLevel {0}
private

Definition at line 71 of file HistogramAnalyzer.h.

Referenced by HistogramAnalyzer().

◆ m_debugdata

QString HistogramAnalyzer::m_debugdata
private

Definition at line 72 of file HistogramAnalyzer.h.

Referenced by finished(), and MythPlayerInited().

◆ m_debug_histval

bool HistogramAnalyzer::m_debug_histval {false}
private

Definition at line 73 of file HistogramAnalyzer.h.

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

◆ m_histval_done

bool HistogramAnalyzer::m_histval_done {false}
private

Definition at line 74 of file HistogramAnalyzer.h.

Referenced by finished(), and MythPlayerInited().


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