MythTV  0.26-pre
Public Types | Public Member Functions | Static Public Attributes | Private Attributes
HistogramAnalyzer Class Reference

#include <HistogramAnalyzer.h>

List of all members.

Public Types

typedef unsigned char Histogram [UCHAR_MAX+1]

Public Member Functions

 HistogramAnalyzer (PGMConverter *pgmc, BorderDetector *bd, 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

PGMConverterpgmConverter
BorderDetectorborderDetector
TemplateFinderlogoFinder
struct AVPicturelogo
int logowidth
int logoheight
int logorr1
int logocc1
int logorr2
int logocc2
float * mean
unsigned char * median
float * stddev
intfrow
intfcol
intfwidth
intfheight
Histogramhistogram
unsigned char * monochromatic
int histval [UCHAR_MAX+1]
unsigned char * buf
long long lastframeno
int debugLevel
QString debugdata
bool debug_histval
bool histval_done
struct timeval analyze_time

Detailed Description

Definition at line 17 of file HistogramAnalyzer.h.


Member Typedef Documentation

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

Definition at line 35 of file HistogramAnalyzer.h.


Constructor & Destructor Documentation

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

Definition at line 138 of file HistogramAnalyzer.cpp.

Definition at line 188 of file HistogramAnalyzer.cpp.


Member Function Documentation

Definition at line 285 of file HistogramAnalyzer.cpp.

Referenced by CommDetector2::CommDetector2().

enum FrameAnalyzer::analyzeFrameResult HistogramAnalyzer::analyzeFrame ( const VideoFrame frame,
long long  frameno 
)
int HistogramAnalyzer::finished ( long long  nframes,
bool  final 
)
const float* HistogramAnalyzer::getMeans ( void  ) const [inline]

Definition at line 37 of file HistogramAnalyzer.h.

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

Definition at line 38 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().

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

Definition at line 39 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().

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

Definition at line 40 of file HistogramAnalyzer.h.

Referenced by SceneChangeDetector::finished().

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

Definition at line 41 of file HistogramAnalyzer.h.

Referenced by BlankFrameDetector::finished().


Member Data Documentation

const long long HistogramAnalyzer::UNCACHED = -1 [static]

Definition at line 28 of file HistogramAnalyzer.h.

Referenced by analyzeFrame().

Definition at line 44 of file HistogramAnalyzer.h.

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

Definition at line 45 of file HistogramAnalyzer.h.

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

Definition at line 47 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited(), and setLogoState().

Definition at line 48 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

Definition at line 49 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited().

Definition at line 49 of file HistogramAnalyzer.h.

Referenced by MythPlayerInited().

Definition at line 50 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

Definition at line 50 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

Definition at line 50 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

Definition at line 50 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and MythPlayerInited().

float* HistogramAnalyzer::mean [private]

Definition at line 53 of file HistogramAnalyzer.h.

Referenced by getMeans(), and ~HistogramAnalyzer().

unsigned char* HistogramAnalyzer::median [private]

Definition at line 54 of file HistogramAnalyzer.h.

Referenced by getMedians(), and ~HistogramAnalyzer().

float* HistogramAnalyzer::stddev [private]

Definition at line 55 of file HistogramAnalyzer.h.

Referenced by getStdDevs(), and ~HistogramAnalyzer().

Definition at line 56 of file HistogramAnalyzer.h.

Referenced by ~HistogramAnalyzer().

Definition at line 56 of file HistogramAnalyzer.h.

Referenced by ~HistogramAnalyzer().

Definition at line 57 of file HistogramAnalyzer.h.

Referenced by ~HistogramAnalyzer().

Definition at line 57 of file HistogramAnalyzer.h.

Referenced by ~HistogramAnalyzer().

Definition at line 58 of file HistogramAnalyzer.h.

Referenced by getHistograms(), and ~HistogramAnalyzer().

unsigned char* HistogramAnalyzer::monochromatic [private]

Definition at line 59 of file HistogramAnalyzer.h.

Referenced by getMonochromatics(), and ~HistogramAnalyzer().

int HistogramAnalyzer::histval[UCHAR_MAX+1] [private]

Definition at line 60 of file HistogramAnalyzer.h.

Referenced by analyzeFrame(), and HistogramAnalyzer().

unsigned char* HistogramAnalyzer::buf [private]
long long HistogramAnalyzer::lastframeno [private]

Definition at line 62 of file HistogramAnalyzer.h.

Referenced by analyzeFrame().

Definition at line 65 of file HistogramAnalyzer.h.

Referenced by HistogramAnalyzer().

QString HistogramAnalyzer::debugdata [private]

Definition at line 66 of file HistogramAnalyzer.h.

Referenced by finished(), and MythPlayerInited().

Definition at line 67 of file HistogramAnalyzer.h.

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

Definition at line 68 of file HistogramAnalyzer.h.

Referenced by finished(), and MythPlayerInited().

struct timeval HistogramAnalyzer::analyze_time [private]

Definition at line 69 of file HistogramAnalyzer.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends