/liblc3-3.7.0-3.6.0/test/ |
D | mdct.py | 32 self.ns = T.NS[dt][sr] 35 self.t = np.zeros(2*self.ns) 47 ns = self.ns 50 self.t[nd:nd+ns] = x 52 self.t[0:nd] = x[ns-nd:] 72 ns = self.ns 85 y = np.empty(ns) 86 y[:nd] = t[ns-nd:ns] + self.t[2*ns-nd:] 87 y[nd:] = t[ns:2*ns-nd] 96 ns = T.NS[dt][sr] [all …]
|
D | mdct_py.c | 39 int ns = LC3_NS(dt, sr), nd = LC3_ND(dt, sr); in mdct_forward_py() local 41 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in mdct_forward_py() 44 y_obj = new_1d_ptr(NPY_FLOAT, ns, &y); in mdct_forward_py() 66 int ns = LC3_NS(dt, sr), nd = LC3_ND(dt, sr); in mdct_inverse_py() local 68 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in mdct_inverse_py() 71 y_obj = new_1d_ptr(NPY_FLOAT, ns, &y); in mdct_inverse_py()
|
D | ltpf_py.c | 39 int ns = LC3_NS(dt, sr), nt = LC3_NT(dt); in resample_py() local 43 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+nt, &x)); 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() 100 int ns = LC3_NS(dt,sr), nd = 18 * LC3_SRATE_KHZ(sr); in synthesize_py() local 102 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, nd+ns, &x)); in synthesize_py()
|
D | ltpf.py | 298 ns = T.NS[dt][sr] 307 self.x = np.zeros(ns) 361 ns = T.NS[dt][sr] 364 y = np.append(np.zeros(ns), self.y) 408 for k in range(n0, ns): 426 self.x = x[:ns] 427 self.y = np.append(self.y[ns:], y[:ns]) 429 return y[:ns] 444 ns = T.NS[dt][sr] 456 x = ((2 * rng.random(ns)) - 1) * (2 ** 15 - 1) [all …]
|
D | lc3_py.c | 64 int ns = LC3_NS(encoder->dt, encoder->sr); in encode_py() local 66 CTYPES_CHECK("x", pcm_obj = to_1d_ptr(pcm_obj, NPY_INT16, ns, &pcm)); in encode_py() 117 int ns = LC3_NS(decoder->dt, decoder->sr); in decode_py() local 118 pcm_obj = new_1d_ptr(NPY_INT16, ns, &pcm); in decode_py()
|
D | energy_py.c | 40 int ns = LC3_NS(dt, sr); in energy_compute_py() local 42 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in energy_compute_py()
|
D | attdet_py.c | 40 int ns = LC3_NS(dt, sr); in attdet_run_py() local 42 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+6, &x)); in attdet_run_py()
|
D | attdet.py | 123 ns = T.NS[dt][sr] 129 x_c = np.zeros(ns+6) 135 x = ((2 * rng.random(ns)) - 1) * (2 ** 8 - 1) 136 x[(ns * rng.random()).astype(int)] *= 2 ** 7
|
D | energy.py | 45 ns = T.NS[dt][sr] 56 x[15*ns//16:] *= 1e2;
|
D | ctypes.h | 704 int ns = LC3_NS(dt, sr); in from_encoder() local 729 new_1d_copy(NPY_INT16, nt+ns, in from_encoder() 733 new_1d_copy(NPY_FLOAT, ns, enc->x + enc->xs_off)); in from_encoder() 762 int ns = LC3_NS(dt, sr); in to_encoder() local 777 (int16_t *)enc->x + enc->xt_off - nt, ns+nt)); in to_encoder() 782 enc->x + enc->xs_off, ns)); in to_encoder() 800 int ns = LC3_NS(dt, sr); in from_decoder() local 830 new_1d_copy(NPY_FLOAT, ns, dec->x + dec->xg_off)); in from_decoder() 857 int ns = LC3_NS(dt, sr); in to_decoder() local 882 dec->x + dec->xg_off, ns)); in to_decoder()
|
D | decoder.py | 43 self.ns = T.NS[dt][sr] 84 x = np.append(x, np.zeros(self.ns - self.ne))
|
D | spec.py | 675 ns = T.NS[dt][sr] 691 x = rng.random(ns) * 1e4
|
/liblc3-3.7.0-3.6.0/src/ |
D | lc3.c | 162 int ns = LC3_NS(dt, sr); in load_s16() local 164 for (int i = 0; i < ns; i++, pcm += stride) in load_s16() 183 int ns = LC3_NS(dt, sr); in load_s24() local 185 for (int i = 0; i < ns; i++, pcm += stride) { in load_s24() 206 int ns = LC3_NS(dt, sr); in load_s24_3le() local 208 for (int i = 0; i < ns; i++, pcm += 3*stride) { in load_s24_3le() 233 int ns = LC3_NS(dt, sr); in load_float() local 235 for (int i = 0; i < ns; i++, pcm += stride) { in load_float() 253 int ns = LC3_NS(dt, sr_pcm); in analyze() local 268 memmove(xt - nt, xt + (ns-nt), nt * sizeof(*xt)); in analyze() [all …]
|
D | mdct.c | 210 int ns = LC3_NS(dt, sr), nd = LC3_ND(dt, sr); in mdct_window() local 212 const float *w0 = lc3_mdct_win[dt][sr], *w1 = w0 + ns; in mdct_window() 215 const float *x0 = x + ns-nd, *x1 = x0; in mdct_window() 216 float *y0 = y + ns/2, *y1 = y0; in mdct_window() 227 for (x1 += ns; x0 < x1; ) { in mdct_window() 431 int ns = LC3_NS(dt, sr); in lc3_mdct_forward() local 440 u.z = fft(u.z, ns/2, u.z, z); in lc3_mdct_forward() 443 if (ns != ns_dst) in lc3_mdct_forward() 444 rescale(y, ns_dst, sqrtf((float)ns_dst / ns)); in lc3_mdct_forward() 455 int ns = LC3_NS(dt, sr); in lc3_mdct_inverse() local [all …]
|
D | ltpf.c | 834 int ns = LC3_NS(dt, sr); in lc3_ltpf_synthesize() local 835 int nt = ns / (3 + dt); in lc3_ltpf_synthesize() 855 memcpy(ltpf->x, x + ns - (w-1), (w-1) * sizeof(float)); in lc3_ltpf_synthesize() 858 synthesize[sr](xh, nh, pitch/4, x0, x + nt, ns-nt, c, 0); in lc3_ltpf_synthesize()
|
/liblc3-3.7.0-3.6.0/tables/ |
D | mktables.py | 138 ns = np.array([ [ 60, 120, 180, 240, 360], [ 80, 160, 240, 320, 480] ]) 139 print_table(np.sqrt(2 / ns[0])) 140 print_table(np.sqrt(2 / ns[1]))
|