summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/vbiparse.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-11 20:43:19 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-11 20:43:19 +0100
commit1efccdd38d4bac6ec44e13f0a6cdf877e3a1c7cb (patch)
treee1623d63666f8d559c392d316ca2192ab4116e5a /src/lib/util/vbiparse.cpp
parent2e49823a06c2955fdd2ca1b1903327730c2b32ef (diff)
using of IS_ENABLED in files used in tiny build (nw)
Diffstat (limited to 'src/lib/util/vbiparse.cpp')
-rw-r--r--src/lib/util/vbiparse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/util/vbiparse.cpp b/src/lib/util/vbiparse.cpp
index bfd145dd99f..dc9c22f9176 100644
--- a/src/lib/util/vbiparse.cpp
+++ b/src/lib/util/vbiparse.cpp
@@ -204,7 +204,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
break;
/* this is useful for debugging issues with white flag detection */
- if (PRINTF_WHITE_FLAG)
+ if (IS_ENABLED(PRINTF_WHITE_FLAG))
{
printf("Histo: min=%02X max=%02X\n", minval, maxval);
for (x = 0; x < 256; x++)
@@ -214,7 +214,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
/* ignore if we have no dynamic range */
if (maxval - minval < 10)
{
- if (PRINTF_WHITE_FLAG)
+ if (IS_ENABLED(PRINTF_WHITE_FLAG))
printf("White flag NOT detected; threshold too low\n");
return false;
}
@@ -242,7 +242,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
/* return true if it is above the 90% mark */
result = (peakval > minval + 9 * (maxval - minval) / 10);
- if (PRINTF_WHITE_FLAG)
+ if (IS_ENABLED(PRINTF_WHITE_FLAG))
printf("White flag %s: peak=%02X thresh=%02X\n", result ? "detected" : "NOT detected", peakval, minval + 9 * (maxval - minval) / 10);
return result;