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

Function initFilterSignal

source/NTSC.cpp:1153–1162  ·  view source on GitHub ↗

Butterworth Lowpass digital filter Filter Order: 2 -> poles for low pass ===========================================================================

Source from the content-addressed store, hash-verified

1151// Filter Order: 2 -> poles for low pass
1152//===========================================================================
1153static real initFilterSignal (real z)
1154{
1155 static real x[SIGNAL_ZEROS + 1] = { 0,0,0 };
1156 static real y[SIGNAL_POLES + 1] = { 0,0,0 };
1157
1158 x[0] = x[1]; x[1] = x[2]; x[2] = z / SIGNAL_GAIN;
1159 y[0] = y[1]; y[1] = y[2]; y[2] = x[0] + x[2] + (2.f*x[1]) + (SIGNAL_0*y[0]) + (SIGNAL_1*y[1]);
1160
1161 return y[2];
1162}
1163
1164//===========================================================================
1165static void initPixelDoubleMasks (void)

Callers 1

initChromaPhaseTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected