ClassicLogoDetector Class Reference

#include <ClassicLogoDetector.h>

Inheritance diagram for ClassicLogoDetector:

LogoDetectorBase

List of all members.


Detailed Description

Definition at line 10 of file ClassicLogoDetector.h.


Public Member Functions

 ClassicLogoDetector (ClassicCommDetector *commDetector, unsigned int width, unsigned int height, unsigned int commdetectborder, unsigned int xspacing, unsigned int yspacing)
 ~ClassicLogoDetector ()
bool searchForLogo (NuppelVideoPlayer *nvp)
bool doesThisFrameContainTheFoundLogo (unsigned char *frame)
bool pixelInsideLogo (unsigned int x, unsigned int y)
unsigned int getRequiredAvailableBufferForSearch ()

Private Member Functions

void SetLogoMaskArea ()
void SetLogoMask (unsigned char *mask)
void DumpLogo (bool fromCurrentFrame, unsigned char *framePtr)
void DetectEdges (VideoFrame *frame, EdgeMaskEntry *edges, int edgeDiff)

Private Attributes

ClassicCommDetectorcommDetector
unsigned int frameNumber
bool previousFrameWasSceneChange
unsigned int xspacing
unsigned int yspacing
unsigned int commDetectBorder
int commDetectLogoSamplesNeeded
int commDetectLogoSampleSpacing
int commDetectLogoSecondsNeeded
double commDetectLogoGoodEdgeThreshold
double commDetectLogoBadEdgeThreshold
EdgeMaskEntryedgeMask
unsigned char * logoMaxValues
unsigned char * logoMinValues
unsigned char * logoFrame
unsigned char * logoMask
unsigned char * logoCheckMask
unsigned char * tmpBuf
int logoEdgeDiff
unsigned int logoFrameCount
unsigned int logoMinX
unsigned int logoMaxX
unsigned int logoMinY
unsigned int logoMaxY
bool logoInfoAvailable

Constructor & Destructor Documentation

ClassicLogoDetector::ClassicLogoDetector ( ClassicCommDetector commDetector,
unsigned int  width,
unsigned int  height,
unsigned int  commdetectborder,
unsigned int  xspacing,
unsigned int  yspacing 
)

Definition at line 23 of file ClassicLogoDetector.cpp.

ClassicLogoDetector::~ClassicLogoDetector (  ) 

Definition at line 63 of file ClassicLogoDetector.cpp.


Member Function Documentation

bool ClassicLogoDetector::searchForLogo ( NuppelVideoPlayer nvp  )  [virtual]

Implements LogoDetectorBase.

Definition at line 82 of file ClassicLogoDetector.cpp.

bool ClassicLogoDetector::doesThisFrameContainTheFoundLogo ( unsigned char *  frame  )  [virtual]

Implements LogoDetectorBase.

Definition at line 437 of file ClassicLogoDetector.cpp.

bool ClassicLogoDetector::pixelInsideLogo ( unsigned int  x,
unsigned int  y 
) [virtual]

Implements LogoDetectorBase.

Definition at line 501 of file ClassicLogoDetector.cpp.

unsigned int ClassicLogoDetector::getRequiredAvailableBufferForSearch (  )  [virtual]

Implements LogoDetectorBase.

Definition at line 58 of file ClassicLogoDetector.cpp.

void ClassicLogoDetector::SetLogoMaskArea (  )  [private]

Definition at line 268 of file ClassicLogoDetector.cpp.

Referenced by searchForLogo(), and SetLogoMask().

void ClassicLogoDetector::SetLogoMask ( unsigned char *  mask  )  [private]

Definition at line 310 of file ClassicLogoDetector.cpp.

void ClassicLogoDetector::DumpLogo ( bool  fromCurrentFrame,
unsigned char *  framePtr 
) [private]

Definition at line 387 of file ClassicLogoDetector.cpp.

Referenced by SetLogoMask().

void ClassicLogoDetector::DetectEdges ( VideoFrame frame,
EdgeMaskEntry edges,
int  edgeDiff 
) [private]

Definition at line 510 of file ClassicLogoDetector.cpp.

Referenced by searchForLogo().


Member Data Documentation

Definition at line 30 of file ClassicLogoDetector.h.

Referenced by searchForLogo(), and ~ClassicLogoDetector().

unsigned int ClassicLogoDetector::frameNumber [private]

Definition at line 31 of file ClassicLogoDetector.h.

Referenced by doesThisFrameContainTheFoundLogo().

Definition at line 32 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::xspacing [private]

Definition at line 33 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::yspacing [private]

Definition at line 33 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::commDetectBorder [private]

Definition at line 34 of file ClassicLogoDetector.h.

Referenced by DetectEdges().

Definition at line 36 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and searchForLogo().

Definition at line 37 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and searchForLogo().

Definition at line 39 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and doesThisFrameContainTheFoundLogo().

Definition at line 40 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and doesThisFrameContainTheFoundLogo().

unsigned char* ClassicLogoDetector::logoMaxValues [private]

Definition at line 44 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and ~ClassicLogoDetector().

unsigned char* ClassicLogoDetector::logoMinValues [private]

Definition at line 45 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and ~ClassicLogoDetector().

unsigned char* ClassicLogoDetector::logoFrame [private]

Definition at line 46 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and ~ClassicLogoDetector().

unsigned char* ClassicLogoDetector::logoMask [private]

unsigned char* ClassicLogoDetector::logoCheckMask [private]

Definition at line 48 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), SetLogoMask(), and ~ClassicLogoDetector().

unsigned char* ClassicLogoDetector::tmpBuf [private]

Definition at line 49 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and ~ClassicLogoDetector().

Definition at line 51 of file ClassicLogoDetector.h.

Referenced by doesThisFrameContainTheFoundLogo(), and searchForLogo().

unsigned int ClassicLogoDetector::logoFrameCount [private]

Definition at line 52 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and SetLogoMask().

unsigned int ClassicLogoDetector::logoMinX [private]

unsigned int ClassicLogoDetector::logoMaxX [private]

unsigned int ClassicLogoDetector::logoMinY [private]

unsigned int ClassicLogoDetector::logoMaxY [private]

Definition at line 58 of file ClassicLogoDetector.h.

Referenced by DumpLogo(), pixelInsideLogo(), searchForLogo(), and SetLogoMask().


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

Generated on Sat Dec 18 05:16:00 2010 for MythTV by  doxygen 1.5.5