From 71bfb27acc83a71b37cbe76b52bdd21c02a3a45c Mon Sep 17 00:00:00 2001 From: Phillip Blucas Date: Sat, 13 Feb 2021 23:00:16 -0600 Subject: [PATCH] Cosmetics Unrelated to the rest of this pull request. Can squash later. --- tools/ld-chroma-decoder/comb.cpp | 10 +++++----- tools/ld-chroma-decoder/palcolour.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/ld-chroma-decoder/comb.cpp b/tools/ld-chroma-decoder/comb.cpp index d50207e8f..a422d60b0 100644 --- a/tools/ld-chroma-decoder/comb.cpp +++ b/tools/ld-chroma-decoder/comb.cpp @@ -196,9 +196,9 @@ Comb::FrameBuffer::FrameBuffer(const LdDecodeMetaData::VideoParameters &videoPar irescale = (videoParameters.white16bIre - videoParameters.black16bIre) / 100; } -/* +/* * The color burst frequency is 227.5 cycles per line, so it flips 180 degrees for each line. - * + * * The color burst *signal* is at 180 degrees, which is a greenish yellow. * * When SCH phase is 0 (properly aligned) the color burst is in phase with the leading edge of the HSYNC pulse. @@ -212,7 +212,7 @@ Comb::FrameBuffer::FrameBuffer(const LdDecodeMetaData::VideoParameters &videoPar inline qint32 Comb::FrameBuffer::getFieldID(qint32 lineNumber) const { bool isFirstField = ((lineNumber % 2) == 0); - + return isFirstField ? firstFieldPhaseID : secondFieldPhaseID; } @@ -220,11 +220,11 @@ inline qint32 Comb::FrameBuffer::getFieldID(qint32 lineNumber) const inline bool Comb::FrameBuffer::getLinePhase(qint32 lineNumber) const { qint32 fieldID = getFieldID(lineNumber); - bool isPositivePhaseOnEvenLines = (fieldID == 1) || (fieldID == 4); + bool isPositivePhaseOnEvenLines = (fieldID == 1) || (fieldID == 4); int fieldLine = (lineNumber / 2); bool isEvenLine = (fieldLine % 2) == 0; - + return isEvenLine ? isPositivePhaseOnEvenLines : !isPositivePhaseOnEvenLines; } diff --git a/tools/ld-chroma-decoder/palcolour.cpp b/tools/ld-chroma-decoder/palcolour.cpp index 9caa29dd2..e50f5d143 100644 --- a/tools/ld-chroma-decoder/palcolour.cpp +++ b/tools/ld-chroma-decoder/palcolour.cpp @@ -406,7 +406,7 @@ void PalColour::doYNR(double *Yline) // Compensate for 12-sample filter delay double a = hplinef[h + 12]; - // Clip the filter strength + // Clip the filter strength if (fabs(a) > nr_y) { a = (a > 0) ? nr_y : -nr_y; }