diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-03-05 09:39:47 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-03-05 09:39:47 +0100 |
commit | a73c755a421cd3b20dd9923c863a74ec860ad9ed (patch) | |
tree | 908121f0038cce0125ac0473aaa6fe6a9aee4b63 /video.h | |
parent | 4810e07340050c6651262da3deda8cb565c01c71 (diff) | |
download | vdr-plugin-markad-0.0.5.tar.gz vdr-plugin-markad-0.0.5.tar.bz2 |
Changed H264 handlingv0.0.5
Diffstat (limited to 'video.h')
-rw-r--r-- | video.h | 44 |
1 files changed, 40 insertions, 4 deletions
@@ -24,16 +24,52 @@ class cMarkAdLogo { private: -#define LOGOHEIGHT 100 +#define MAXFRAMES 25 + + enum + { + TOP_LEFT, + TOP_RIGHT, + BOTTOM_LEFT, + BOTTOM_RIGHT + }; + + int LOGOHEIGHT; // max. 100 + int LOGOWIDTH; // max. 288 + + struct area + { + uchar plane[28800]; + bool init; + int blackpixel; +// int cntfound; + } area[4]; + + int savedlastiframe; + int framecnt; + + int logostart; + int GX[3][3]; int GY[3][3]; - uchar *plane; - bool first; + + int counter; + + int logostate; MarkAdContext *macontext; + void CheckCorner(int corner); + void CheckCorners(int lastiframe); + void RestartLogoDetection(); + bool LogoVisible(); + + /* + void ResetLogoDetection(); + bool LogoFound(); + */ + void SaveLogo(int corner, int lastiframe); public: cMarkAdLogo(int RecvNumber, MarkAdContext *maContext); ~cMarkAdLogo(); - void SaveFrame(int LastIFrame); int Process(int LastIFrame); }; |