Searched refs:nt (Results 1 – 5 of 5) sorted by relevance
| /liblc3-latest/test/ |
| D | ltpf_py.c | 39 int ns = lc3_ns(dt, sr), nt = lc3_nt(sr); in resample_py() local 43 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+nt, &x)); in resample_py() 46 resample_12k8[sr](&hp50, x + nt, y + (ny - n), n); in resample_py() 67 int ns = lc3_ns(dt, sr), nt = lc3_nt(sr); in analyse_py() local 69 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+nt, &x)); in analyse_py() 72 lc3_ltpf_analyse(dt, sr, <pf, x + nt, &data); in analyse_py()
|
| D | ltpf.py | 456 nt = (5 * T.SRATE_KHZ[sr]) // 4 462 x_c = np.zeros(nt) 470 x_c = np.append(x_c[-nt:], x.astype(np.int16)) 485 nt = (5 * T.SRATE_KHZ[sr]) // 4 491 x = np.append(np.zeros(nt), C.X_PCM[i0][0]) 498 x = np.append(x[-nt:], C.X_PCM[i0][1]) 510 nt = (5 * T.SRATE_KHZ[sr]) // 4 514 x_c = np.zeros(ns+nt) 528 x_c = np.append(x_c[-nt:], x.astype(np.int16)) 585 nt = (5 * T.SRATE_KHZ[sr]) // 4 [all …]
|
| D | ctypes.h | 706 int nt = lc3_nt(sr); in from_encoder() local 729 new_1d_copy(NPY_INT16, nt+ns, in from_encoder() 730 (int16_t *)enc->x + enc->xt_off - nt)); in from_encoder() 764 int nt = lc3_nt(sr); in to_encoder() local 777 (int16_t *)enc->x + enc->xt_off - nt, ns+nt)); in to_encoder()
|
| /liblc3-latest/src/ |
| D | ltpf.c | 892 int nt = ns / (1 + dt); in lc3_ltpf_synthesize() local 899 memcpy(x0[1], x + nt-(w-1), (w-1) * sizeof(float)); in lc3_ltpf_synthesize() 902 synthesize[sr](xh, nh, pitch/4, x0[0], x, nt, c, 1); in lc3_ltpf_synthesize() 904 synthesize[sr](xh, nh, ltpf->pitch/4, x0[0], x, nt, ltpf->c, -1); in lc3_ltpf_synthesize() 906 synthesize[sr](xh, nh, pitch/4, x0[0], x, nt, c, 0); in lc3_ltpf_synthesize() 908 synthesize[sr](xh, nh, ltpf->pitch/4, x0[0], x, nt, ltpf->c, -1); in lc3_ltpf_synthesize() 910 (x <= xh ? x + nh : x) - (w-1), x, nt, c, 1); in lc3_ltpf_synthesize() 915 if (active && ns > nt) in lc3_ltpf_synthesize() 916 synthesize[sr](xh, nh, pitch/4, x0[1], x + nt, ns-nt, c, 0); in lc3_ltpf_synthesize()
|
| D | lc3.c | 295 int nt = lc3_nt(sr_pcm); in analyze() local 307 memmove(xt - nt, xt + (ns-nt), nt * sizeof(*xt)); in analyze() 404 int nt = lc3_nt(sr_pcm); in lc3_hr_setup_encoder() local 410 .xt_off = nt, in lc3_hr_setup_encoder() 411 .xs_off = (nt + ns) / 2, in lc3_hr_setup_encoder() 412 .xd_off = (nt + ns) / 2 + ns, in lc3_hr_setup_encoder()
|