00001 #ifndef _LOGODETECTORBASE_H_ 00002 #define _LOGODETECTORBASE_H_ 00003 00004 #include <QObject> 00005 00006 class MythPlayer; 00007 00008 class LogoDetectorBase : public QObject 00009 { 00010 Q_OBJECT 00011 00012 public: 00013 LogoDetectorBase(unsigned int w,unsigned int h) : 00014 foundLogo(false), width(w),height(h) {}; 00015 00016 virtual bool searchForLogo(MythPlayer* player) = 0; 00017 virtual bool doesThisFrameContainTheFoundLogo(unsigned char* frame) = 0; 00018 virtual bool pixelInsideLogo(unsigned int x, unsigned int y) = 0; 00019 virtual unsigned int getRequiredAvailableBufferForSearch() = 0; 00020 00021 signals: 00022 void haveNewInformation(unsigned int framenum, bool haslogo, 00023 float debugValue = 0.0); 00024 00025 protected: 00026 virtual ~LogoDetectorBase() {} 00027 00028 protected: 00029 bool foundLogo; 00030 unsigned int width, height; 00031 }; 00032 00033 #endif 00034 00035 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 00036
1.6.3