summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video.cpp7
-rw-r--r--video.h1
2 files changed, 2 insertions, 6 deletions
diff --git a/video.cpp b/video.cpp
index 2adebf4..af25320 100644
--- a/video.cpp
+++ b/video.cpp
@@ -171,6 +171,7 @@ int cMarkAdLogo::Detect(int lastiframe, int *logoiframe)
}
SUMA/=(LOGOWIDTH*LOGOHEIGHT);
+#if 0
if (SUMA>=100)
{
int maxval=(int) SUMA;
@@ -189,6 +190,7 @@ int cMarkAdLogo::Detect(int lastiframe, int *logoiframe)
}
SUMA/=(LOGOWIDTH*LOGOHEIGHT);
}
+#endif
int ret=NOCHANGE;
if (SUMA<100)
@@ -295,11 +297,6 @@ int cMarkAdLogo::Detect(int lastiframe, int *logoiframe)
{
if (area.status==LOGO)
{
- if ((area.counter==LOGO_MINCOUNT) && (area.rpixel<(area.mpixel*0.01)))
- {
- area.counter=LOGO_MAXCOUNT;
- }
-
if (area.counter>=LOGO_MAXCOUNT)
{
area.status=ret=NOLOGO;
diff --git a/video.h b/video.h
index 593165e..4dfa153 100644
--- a/video.h
+++ b/video.h
@@ -21,7 +21,6 @@
#define LOGO_DEFWIDTH 192
#define LOGO_MAXCOUNT 3
-#define LOGO_MINCOUNT 1
class cMarkAdLogo
{