From a6bdefec8c76e9878b634119c56438a7673b0385 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 16:37:12 +0200 Subject: more TRUE/FALSE cleanup (nw) --- src/lib/util/vbiparse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/util/vbiparse.cpp') diff --git a/src/lib/util/vbiparse.cpp b/src/lib/util/vbiparse.cpp index 42249ab6794..bfd145dd99f 100644 --- a/src/lib/util/vbiparse.cpp +++ b/src/lib/util/vbiparse.cpp @@ -174,7 +174,7 @@ int vbi_parse_manchester_code(const uint16_t *source, int sourcewidth, int sourc flag" from a line of video data -------------------------------------------------*/ -int vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshift) +bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshift) { int histo[256] = { 0 }; int minval = 0xff; @@ -216,7 +216,7 @@ int vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshif { if (PRINTF_WHITE_FLAG) printf("White flag NOT detected; threshold too low\n"); - return FALSE; + return false; } /* @@ -240,7 +240,7 @@ int vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshif if (histo[x] > histo[peakval]) peakval = x; - /* return TRUE if it is above the 90% mark */ + /* return true if it is above the 90% mark */ result = (peakval > minval + 9 * (maxval - minval) / 10); if (PRINTF_WHITE_FLAG) printf("White flag %s: peak=%02X thresh=%02X\n", result ? "detected" : "NOT detected", peakval, minval + 9 * (maxval - minval) / 10); -- cgit v1.2.3-70-g09d2