diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/lib/util/vbiparse.c | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/lib/util/vbiparse.c')
-rw-r--r-- | src/lib/util/vbiparse.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/lib/util/vbiparse.c b/src/lib/util/vbiparse.c index 89a800fb683..7f530fe9a92 100644 --- a/src/lib/util/vbiparse.c +++ b/src/lib/util/vbiparse.c @@ -47,7 +47,7 @@ DEBUGGING ***************************************************************************/ -#define PRINTF_WHITE_FLAG 0 +#define PRINTF_WHITE_FLAG 0 @@ -55,8 +55,8 @@ CONSTANTS ***************************************************************************/ -#define MAX_SOURCE_WIDTH 1024 -#define MAX_CLOCK_DIFF 3 +#define MAX_SOURCE_WIDTH 1024 +#define MAX_CLOCK_DIFF 3 @@ -249,19 +249,19 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift) } /* - At this point, there are two approaches that have been tried: + At this point, there are two approaches that have been tried: - 1. Find the peak value and call it white if the peak is above - the 90% line + 1. Find the peak value and call it white if the peak is above + the 90% line - 2. Ignore the first and last 20% of the line and count how - many pixels are above some threshold (75% line was used). - Call it white if at least 80% of the pixels are above - the threshold. + 2. Ignore the first and last 20% of the line and count how + many pixels are above some threshold (75% line was used). + Call it white if at least 80% of the pixels are above + the threshold. - Both approaches agree 99% of the time, but the first tends to - be more correct when there is a discrepancy. - */ + Both approaches agree 99% of the time, but the first tends to + be more correct when there is a discrepancy. + */ /* determine where the peak is */ peakval = 0; @@ -403,4 +403,3 @@ void vbi_metadata_unpack(vbi_metadata *vbi, UINT32 *framenum, const UINT8 *sourc vbi->line18 = (source[10] << 16) | (source[11] << 8) | source[12]; vbi->line1718 = (source[13] << 16) | (source[14] << 8) | source[15]; } - |