MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / initFilterChroma

Function initFilterChroma

source/NTSC.cpp:1111–1120  ·  view source on GitHub ↗

What filter is this ?? Filter Order: 2 -> poles for low pass ===========================================================================

Source from the content-addressed store, hash-verified

1109// Filter Order: 2 -> poles for low pass
1110//===========================================================================
1111static real initFilterChroma (real z)
1112{
1113 static real x[CHROMA_ZEROS + 1] = {0,0,0};
1114 static real y[CHROMA_POLES + 1] = {0,0,0};
1115
1116 x[0] = x[1]; x[1] = x[2]; x[2] = z / CHROMA_GAIN;
1117 y[0] = y[1]; y[1] = y[2]; y[2] = -x[0] + x[2] + (CHROMA_0*y[0]) + (CHROMA_1*y[1]); // inverted x[0]
1118
1119 return y[2];
1120}
1121
1122// Butterworth Lowpass digital filter
1123// Filter Order: 2 -> poles for low pass

Callers 1

initChromaPhaseTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected