From bd2f9a57303165db325b014aa6735789790ddfed Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Wed, 17 Mar 2010 21:39:12 +0100 Subject: Reverted contrast changes --- video.cpp | 7 ++----- video.h | 1 - 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 { -- cgit v1.2.3