Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:FLAC__real

49 void FLAC__window_bartlett(FLAC__real *window, const FLAC__int32 L)
68 void FLAC__window_bartlett_hann(FLAC__real *window, const FLAC__int32 L)
74 window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N+0.5f) + 0.38f * cos(2.0f * M_PI * ((float)n/(float)N+0.5f)));
77 void FLAC__window_blackman(FLAC__real *window, const FLAC__int32 L)
83 window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N));
87 void FLAC__window_blackman_harris_4term_92db_sidelobe(FLAC__real *window, const FLAC__int32 L)
93 window[n] = (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f * cos(6.0f * M_PI * n / N));
96 void FLAC__window_connes(FLAC__real *window, const FLAC__int32 L)
105 window[n] = (FLAC__real)(k * k);
109 void FLAC__window_flattop(FLAC__real *window, const FLAC__int32 L)
115 window[n] = (FLAC__real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.0f * M_PI * n / N) + 0.0322f * cos(8.0f * M_PI * n / N));
118 void FLAC__window_gauss(FLAC__real *window, const FLAC__int32 L, const FLAC__real stddev)
126 window[n] = (FLAC__real)exp(-0.5f * k * k);
130 void FLAC__window_hamming(FLAC__real *window, const FLAC__int32 L)
136 window[n] = (FLAC__real)(0.54f - 0.46f * cos(2.0f * M_PI * n / N));
139 void FLAC__window_hann(FLAC__real *window, const FLAC__int32 L)
145 window[n] = (FLAC__real)(0.5f - 0.5f * cos(2.0f * M_PI * n / N));
148 void FLAC__window_kaiser_bessel(FLAC__real *window, const FLAC__int32 L)
154 window[n] = (FLAC__real)(0.402f - 0.498f * cos(2.0f * M_PI * n / N) + 0.098f * cos(4.0f * M_PI * n / N) - 0.001f * cos(6.0f * M_PI * n / N));
157 void FLAC__window_nuttall(FLAC__real *window, const FLAC__int32 L)
163 window[n] = (FLAC__real)(0.3635819f - 0.4891775f*cos(2.0f*M_PI*n/N) + 0.1365995f*cos(4.0f*M_PI*n/N) - 0.0106411f*cos(6.0f*M_PI*n/N));
166 void FLAC__window_rectangle(FLAC__real *window, const FLAC__int32 L)
174 void FLAC__window_triangle(FLAC__real *window, const FLAC__int32 L)
192 void FLAC__window_tukey(FLAC__real *window, const FLAC__int32 L, const FLAC__real p)
206 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np));
207 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np));
213 void FLAC__window_welch(FLAC__real *window, const FLAC__int32 L)
221 window[n] = (FLAC__real)(1.0f - k * k);