summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-05 09:39:47 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-05 09:39:47 +0100
commita73c755a421cd3b20dd9923c863a74ec860ad9ed (patch)
tree908121f0038cce0125ac0473aaa6fe6a9aee4b63 /video.h
parent4810e07340050c6651262da3deda8cb565c01c71 (diff)
downloadvdr-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.h44
1 files changed, 40 insertions, 4 deletions
diff --git a/video.h b/video.h
index ecc6d74..11805af 100644
--- a/video.h
+++ b/video.h
@@ -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);
};