00001 #ifndef _LOGODETECTORBASE_H_ 00002 #define _LOGODETECTORBASE_H_ 00003 00004 #include "qobject.h" 00005 00006 class NuppelVideoPlayer; 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 ~LogoDetectorBase() {}; 00016 00017 virtual bool searchForLogo(NuppelVideoPlayer* nvp) = 0; 00018 virtual bool doesThisFrameContainTheFoundLogo(unsigned char* frame) = 0; 00019 virtual bool pixelInsideLogo(unsigned int x, unsigned int y) = 0; 00020 virtual unsigned int getRequiredAvailableBufferForSearch() = 0; 00021 00022 signals: 00023 void haveNewInformation(unsigned int framenum, bool haslogo, 00024 float debugValue = 0.0); 00025 00026 protected: 00027 bool foundLogo; 00028 unsigned int width, height; 00029 }; 00030 00031 #endif 00032 00033 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 00034
1.5.5