Butterworth Lowpass digital filter Filter Order: 2 -> poles for low pass ===========================================================================
| 1137 | // Filter Order: 2 -> poles for low pass |
| 1138 | //=========================================================================== |
| 1139 | static 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 |
no outgoing calls
no test coverage detected