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

Function initFilterLuma0

source/NTSC.cpp:1125–1134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1123// Filter Order: 2 -> poles for low pass
1124//===========================================================================
1125static real initFilterLuma0 (real z)
1126{
1127 static real x[LUMA_ZEROS + 1] = { 0,0,0 };
1128 static real y[LUMA_POLES + 1] = { 0,0,0 };
1129
1130 x[0] = x[1]; x[1] = x[2]; x[2] = z / LUMA_GAIN;
1131 y[0] = y[1]; y[1] = y[2]; y[2] = x[0] + x[2] + (2.f*x[1]) + (LUMA_0*y[0]) + (LUMA_1*y[1]);
1132
1133 return y[2];
1134}
1135
1136// Butterworth Lowpass digital filter
1137// Filter Order: 2 -> poles for low pass

Callers 1

initChromaPhaseTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected