Lines Matching refs:n

184     struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n)  in resample_x64k_12k8()  argument
190 for (int i = 0; i < 5*n; i += 5) { in resample_x64k_12k8()
228 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_x192k_12k8() argument
234 for (int i = 0; i < 15*n; i += 15) { in resample_x192k_12k8()
273 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_8k_12k8() argument
275 resample_x64k_12k8(8, h_8k_12k8_q15, hp50, x, y, n); in resample_8k_12k8()
289 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_16k_12k8() argument
291 resample_x64k_12k8(4, h_16k_12k8_q15, hp50, x, y, n); in resample_16k_12k8()
305 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_32k_12k8() argument
307 resample_x64k_12k8(2, h_32k_12k8_q15, hp50, x, y, n); in resample_32k_12k8()
321 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_24k_12k8() argument
323 resample_x192k_12k8(8, h_24k_12k8_q15, hp50, x, y, n); in resample_24k_12k8()
337 struct lc3_ltpf_hp50_state *hp50, const int16_t *x, int16_t *y, int n) in resample_48k_12k8() argument
339 resample_x192k_12k8(4, h_48k_12k8_q15, hp50, x, y, n); in resample_48k_12k8()
351 LC3_HOT static void resample_6k4(const int16_t *x, int16_t *y, int n) in resample_6k4() argument
354 const int16_t *ye = y + n; in resample_6k4()
389 LC3_HOT static inline float dot(const int16_t *a, const int16_t *b, int n) in dot() argument
393 for (int i = 0; i < (n >> 4); i++) in dot()
412 const int16_t *a, const int16_t *b, int n, float *y, int nc) in correlate() argument
415 *(y++) = dot(a, b--, n); in correlate()
425 LC3_HOT static int argmax(const float *x, int n, float *x_max) in argmax() argument
430 for (int i = 1; i < n; i++) in argmax()
445 const float *x, int n, float w_incr, float *x_max) in argmax_weighted() argument
452 for (int i = 1; i < n; i++, w += w_incr) in argmax_weighted()
467 LC3_HOT static void interpolate(const int16_t *x, int n, int d, int16_t *y) in interpolate() argument
477 for (const int16_t *ye = y + n; y < ye; ) { in interpolate()
534 struct lc3_ltpf_analysis *ltpf, const int16_t *x, int n, int *tc) in detect_pitch() argument
543 correlate(x, x - r0, n, r, nr); in detect_pitch()
552 rm1 / sqrtf(dot(x, x, n) * dot(x1, x1, n)); in detect_pitch()
555 rm2 / sqrtf(dot(x, x, n) * dot(x2, x2, n)); in detect_pitch()
573 static int refine_pitch(const int16_t *x, int n, int tc, int *pitch) in refine_pitch() argument
581 correlate(x, x - (r0 - 4), n, r, nr + 8); in refine_pitch()
699 const float *x0, float *x, int n, in synthesize_template() argument
703 float g_incr = (float)((fade > 0) - (fade < 0)) / n; in synthesize_template()
731 for (int i = 0; i < n; i += w) in synthesize_template()
753 const float *x0, float *x, int n, const float *c, int fade) in synthesize_4()
755 synthesize_template(xh, nh, lag, x0, x, n, c, 4, fade); in synthesize_4()
759 const float *x0, float *x, int n, const float *c, int fade) in synthesize_6()
761 synthesize_template(xh, nh, lag, x0, x, n, c, 6, fade); in synthesize_6()
765 const float *x0, float *x, int n, const float *c, int fade) in synthesize_8()
767 synthesize_template(xh, nh, lag, x0, x, n, c, 8, fade); in synthesize_8()
771 const float *x0, float *x, int n, const float *c, int fade) in synthesize_12()
773 synthesize_template(xh, nh, lag, x0, x, n, c, 12, fade); in synthesize_12()