ClassicLogoDetector Class Reference

#include <ClassicLogoDetector.h>

Inheritance diagram for ClassicLogoDetector:
LogoDetectorBase

List of all members.

Public Member Functions

 ClassicLogoDetector (ClassicCommDetector *commDetector, unsigned int width, unsigned int height, unsigned int commdetectborder, unsigned int xspacing, unsigned int yspacing)
virtual void deleteLater (void)
bool searchForLogo (MythPlayer *player)
bool doesThisFrameContainTheFoundLogo (unsigned char *frame)
bool pixelInsideLogo (unsigned int x, unsigned int y)
unsigned int getRequiredAvailableBufferForSearch ()

Protected Member Functions

virtual ~ClassicLogoDetector ()

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

Detailed Description

Definition at line 10 of file ClassicLogoDetector.h.


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 26 of file ClassicLogoDetector.cpp.

virtual ClassicLogoDetector::~ClassicLogoDetector (  )  [inline, protected, virtual]

Definition at line 25 of file ClassicLogoDetector.h.


Member Function Documentation

void ClassicLogoDetector::deleteLater ( void   )  [virtual]

Definition at line 63 of file ClassicLogoDetector.cpp.

bool ClassicLogoDetector::searchForLogo ( MythPlayer player  )  [virtual]

Implements LogoDetectorBase.

Definition at line 84 of file ClassicLogoDetector.cpp.

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

Implements LogoDetectorBase.

Definition at line 443 of file ClassicLogoDetector.cpp.

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

Implements LogoDetectorBase.

Definition at line 507 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 272 of file ClassicLogoDetector.cpp.

Referenced by searchForLogo(), and SetLogoMask().

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

Definition at line 314 of file ClassicLogoDetector.cpp.

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

Definition at line 391 of file ClassicLogoDetector.cpp.

Referenced by SetLogoMask().

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

Definition at line 516 of file ClassicLogoDetector.cpp.

Referenced by searchForLogo().


Member Data Documentation

Definition at line 33 of file ClassicLogoDetector.h.

Referenced by deleteLater(), and searchForLogo().

unsigned int ClassicLogoDetector::frameNumber [private]

Definition at line 34 of file ClassicLogoDetector.h.

Referenced by doesThisFrameContainTheFoundLogo().

Definition at line 35 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::xspacing [private]

Definition at line 36 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::yspacing [private]

Definition at line 36 of file ClassicLogoDetector.h.

unsigned int ClassicLogoDetector::commDetectBorder [private]

Definition at line 37 of file ClassicLogoDetector.h.

Referenced by DetectEdges().

Definition at line 39 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and searchForLogo().

Definition at line 40 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and searchForLogo().

Definition at line 42 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and doesThisFrameContainTheFoundLogo().

Definition at line 43 of file ClassicLogoDetector.h.

Referenced by ClassicLogoDetector(), and doesThisFrameContainTheFoundLogo().

unsigned char* ClassicLogoDetector::logoMaxValues [private]

Definition at line 47 of file ClassicLogoDetector.h.

Referenced by deleteLater().

unsigned char* ClassicLogoDetector::logoMinValues [private]

Definition at line 48 of file ClassicLogoDetector.h.

Referenced by deleteLater().

unsigned char* ClassicLogoDetector::logoFrame [private]

Definition at line 49 of file ClassicLogoDetector.h.

Referenced by deleteLater().

unsigned char* ClassicLogoDetector::logoMask [private]

Definition at line 50 of file ClassicLogoDetector.h.

Referenced by deleteLater(), DumpLogo(), and SetLogoMask().

unsigned char* ClassicLogoDetector::logoCheckMask [private]

Definition at line 51 of file ClassicLogoDetector.h.

Referenced by deleteLater(), and SetLogoMask().

unsigned char* ClassicLogoDetector::tmpBuf [private]

Definition at line 52 of file ClassicLogoDetector.h.

Referenced by deleteLater().

Definition at line 54 of file ClassicLogoDetector.h.

Referenced by doesThisFrameContainTheFoundLogo(), and searchForLogo().

unsigned int ClassicLogoDetector::logoFrameCount [private]

Definition at line 55 of file ClassicLogoDetector.h.

Referenced by SetLogoMask().

unsigned int ClassicLogoDetector::logoMinX [private]
unsigned int ClassicLogoDetector::logoMaxX [private]
unsigned int ClassicLogoDetector::logoMinY [private]
unsigned int ClassicLogoDetector::logoMaxY [private]

Definition at line 61 of file ClassicLogoDetector.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:56 2012 for MythTV by  doxygen 1.6.3