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