Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
Unrelated to the rest of this pull request.  Can squash later.
  • Loading branch information
ifb committed Feb 14, 2021
1 parent 1cd9ca2 commit 71bfb27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tools/ld-chroma-decoder/comb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -212,19 +212,19 @@ Comb::FrameBuffer::FrameBuffer(const LdDecodeMetaData::VideoParameters &videoPar
inline qint32 Comb::FrameBuffer::getFieldID(qint32 lineNumber) const
{
bool isFirstField = ((lineNumber % 2) == 0);

return isFirstField ? firstFieldPhaseID : secondFieldPhaseID;
}

// NOTE: lineNumber is presumed to be starting at 1. (This lines up with how splitIQ calls it)
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;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/ld-chroma-decoder/palcolour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 71bfb27

Please sign in to comment.