Searched refs:nd (Results 1 – 7 of 7) sorted by relevance
| /liblc3-latest/test/ |
| D | mdct.py | 42 self.nd = T.ND[dt][sr] 57 nd = self.nd 59 self.t[nd:nd+ns] = x 61 self.t[0:nd] = x[ns-nd:] 82 nd = self.nd 95 y[:nd] = t[ns-nd:ns] + self.t[2*ns-nd:] 96 y[nd:] = t[ns:2*ns-nd] 106 nd = T.ND[dt][sr] 118 (y_c[0], d_c) = lc3.mdct_forward(dt, sr, x, np.zeros(nd)) 135 nd = T.ND[dt][sr] [all …]
|
| D | mdct_py.c | 38 int ns = lc3_ns(dt, sr), nd = lc3_nd(dt, sr); in mdct_forward_py() local 41 CTYPES_CHECK("xd", to_1d_ptr(xd_obj, NPY_FLOAT, nd, &xd)); in mdct_forward_py() 42 d_obj = new_1d_ptr(NPY_FLOAT, nd, &d); in mdct_forward_py() 45 memcpy(d, xd, nd * sizeof(float)); in mdct_forward_py() 64 int ns = lc3_ns(dt, sr), nd = lc3_nd(dt, sr); in mdct_inverse_py() local 67 CTYPES_CHECK("xd", to_1d_ptr(xd_obj, NPY_FLOAT, nd, &xd)); in mdct_inverse_py() 68 d_obj = new_1d_ptr(NPY_FLOAT, nd, &d); in mdct_inverse_py() 71 memcpy(d, xd, nd * sizeof(float)); in mdct_inverse_py()
|
| D | ltpf_py.c | 100 int ns = lc3_ns(dt,sr), nd = 18 * (lc3_ns_4m[sr] / 4); in synthesize_py() local 102 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, nd+ns, &x)); in synthesize_py() 105 <pf, pitch_present ? &data : NULL, x, x + nd); in synthesize_py()
|
| D | ltpf.py | 545 nd = 18 * T.SRATE_KHZ[sr] 550 x_c = np.zeros(nd+ns) 568 x_c[:nd] = x_c[ns:] 569 x_c[nd:] = x 574 ok = ok and np.amax(np.abs(x_c[nd:] - y)) < 1e-2 618 nd = 18 * T.SRATE_KHZ[sr] 644 x = np.append(np.zeros(nd), X[i][0]) 649 x[ :nd-ns] = PREV[i][0][-nd+ns:] 650 x[nd-ns:nd] = PREV[i][1] 651 x[nd:nd+ns] = X[i][1] [all …]
|
| D | ctypes.h | 705 int nd = lc3_nd(dt, sr); in from_encoder() local 736 new_1d_copy(NPY_FLOAT, nd, enc->x + enc->xd_off)); in from_encoder() 763 int nd = lc3_nd(dt, sr); in to_encoder() local 787 enc->x + enc->xd_off, nd)); in to_encoder() 801 int nd = lc3_nd(dt, sr); in from_decoder() local 827 new_1d_copy(NPY_FLOAT, nd, dec->x + dec->xd_off)); in from_decoder() 858 int nd = lc3_nd(dt, sr); in to_decoder() local 877 dec->x + dec->xd_off, nd)); in to_decoder()
|
| /liblc3-latest/src/ |
| D | mdct.c | 212 int ns = lc3_ns(dt, sr), nd = lc3_nd(dt, sr); in mdct_window() local 215 const float *w2 = w1, *w3 = w2 + nd; in mdct_window() 217 const float *x0 = x + ns-nd, *x1 = x0; in mdct_window() 219 float *d0 = d, *d1 = d + nd; in mdct_window() 378 int n4 = lc3_ns(dt, sr) >> 1, nd = lc3_nd(dt, sr); in imdct_window() local 381 const float *x0 = d + nd-n4, *x1 = x0; in imdct_window() 382 float *y0 = y + nd-n4, *y1 = y0, *y2 = d + nd, *y3 = d; in imdct_window() 392 while (y1 < y + nd) { in imdct_window()
|
| D | lc3.c | 705 int nd = lc3_nd(dt, sr_pcm); in lc3_hr_setup_decoder() local 714 .xg_off = nh + ns + nd, in lc3_hr_setup_decoder()
|