summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/vbiparse.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-12 09:11:35 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-12 09:12:35 +0100
commite71e37e54f3df6bcd77aaaec5aac18db082b81a2 (patch)
tree900a332ce2e57f975bb749da834da28122dfa9fd /src/lib/util/vbiparse.cpp
parent2131d9ad3a36ce2f8ddd536ac3267c79307a41d4 (diff)
Revert "using of IS_ENABLED in files used in tiny build (nw)"
This reverts commit 1efccdd38d4bac6ec44e13f0a6cdf877e3a1c7cb.
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 dc9c22f9176..bfd145dd99f 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 (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (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 (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (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 (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (PRINTF_WHITE_FLAG)
printf("White flag %s: peak=%02X thresh=%02X\n", result ? "detected" : "NOT detected", peakval, minval + 9 * (maxval - minval) / 10);
return result;