Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:Np

196 		const FLAC__int32 Np = (FLAC__int32)(p / 2.0f * L) - 1;
201 if (Np > 0) {
202 for (n = 0; n <= Np; n++) {
203 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np));
204 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np));
215 FLAC__int32 Np, n, i;
223 Np = (FLAC__int32)(p / 2.0f * N);
227 for (i = 1; n < (start_n+Np) && n < L; n++, i++)
228 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * i / Np));
229 for (; n < (end_n-Np) && n < L; n++)
231 for (i = Np; n < end_n && n < L; n++, i--)
232 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * i / Np));