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

Function initFilterLuma1

source/NTSC.cpp:1139–1148  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1137// Filter Order: 2 -> poles for low pass
1138//===========================================================================
1139static real initFilterLuma1 (real z)
1140{
1141 static real x[LUMA_ZEROS + 1] = { 0,0,0};
1142 static real y[LUMA_POLES + 1] = { 0,0,0};
1143
1144 x[0] = x[1]; x[1] = x[2]; x[2] = z / LUMA_GAIN;
1145 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]);
1146
1147 return y[2];
1148}
1149
1150// Butterworth Lowpass digital filter
1151// Filter Order: 2 -> poles for low pass

Callers 1

initChromaPhaseTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected