/liblc3-3.5.0-3.4.0/test/ |
D | spec_py.c | 28 PyObject *x_obj; in estimate_gain_py() local 37 &x_obj, &nbits_budget, &nbits_off, &g_off)) in estimate_gain_py() 45 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in estimate_gain_py() 71 PyObject *x_obj, *xq_obj; in quantize_py() local 77 if (!PyArg_ParseTuple(args, "IIiO", &dt, &sr, &g_int, &x_obj)) in quantize_py() 86 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in quantize_py() 96 return Py_BuildValue("ONi", x_obj, xq_obj, nq); in quantize_py() 130 PyObject *tns_obj, *spec_obj, *x_obj, *xq_obj; in analyze_py() local 140 &pitch, &tns_obj, &spec_obj, &x_obj)) in analyze_py() 150 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in analyze_py() [all …]
|
D | ltpf_py.c | 28 PyObject *hp50_obj, *x_obj, *y_obj; in resample_py() local 32 if (!PyArg_ParseTuple(args, "IIOOO", &dt, &sr, &hp50_obj, &x_obj, &y_obj)) in resample_py() 43 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+nt, &x)); in resample_py() 54 PyObject *ltpf_obj, *x_obj; in analyse_py() local 60 if (!PyArg_ParseTuple(args, "IIOO", &dt, &sr, <pf_obj, &x_obj)) in analyse_py() 69 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+nt, &x)); in analyse_py() 80 PyObject *ltpf_obj, *data_obj, *x_obj; in synthesize_py() local 89 &dt, &sr, &nbytes, <pf_obj, &data_obj, &x_obj)) in synthesize_py() 102 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, nd+ns, &x)); in synthesize_py() 108 return Py_BuildValue("O", x_obj); in synthesize_py()
|
D | tns_py.c | 28 PyObject *x_obj, *a_obj, *g_obj; in compute_lpc_coeffs_py() local 32 if (!PyArg_ParseTuple(args, "IIO", &dt, &bw, &x_obj)) in compute_lpc_coeffs_py() 40 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in compute_lpc_coeffs_py() 105 PyObject *x_obj; in analyze_py() local 112 if (!PyArg_ParseTuple(args, "IIpIO", &dt, &bw, &nn_flag, &nbytes, &x_obj)) in analyze_py() 120 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in analyze_py() 124 return Py_BuildValue("ON", x_obj, new_tns_data(&data)); in analyze_py() 129 PyObject *data_obj, *x_obj; in synthesize_py() local 134 if (!PyArg_ParseTuple(args, "IIOO", &dt, &bw, &data_obj, &x_obj)) in synthesize_py() 143 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in synthesize_py() [all …]
|
D | sns_py.c | 117 PyObject *scf_q_obj, *x_obj; in spectral_shaping_py() local 122 if (!PyArg_ParseTuple(args, "IIOpO", &dt, &sr, &scf_q_obj, &inv, &x_obj)) in spectral_shaping_py() 131 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in spectral_shaping_py() 135 return Py_BuildValue("O", x_obj); in spectral_shaping_py() 140 PyObject *eb_obj, *x_obj; in analyze_py() local 146 if (!PyArg_ParseTuple(args, "IIOpO", &dt, &sr, &eb_obj, &att, &x_obj)) in analyze_py() 156 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in analyze_py() 160 return Py_BuildValue("ON", x_obj, new_sns_data(&data)); in analyze_py() 165 PyObject *data_obj, *x_obj; in synthesize_py() local 170 if (!PyArg_ParseTuple(args, "IIOO", &dt, &sr, &data_obj, &x_obj)) in synthesize_py() [all …]
|
D | attdet_py.c | 28 PyObject *attdet_obj, *x_obj; in attdet_run_py() local 33 &dt, &sr, &nbytes, &attdet_obj, &x_obj)) in attdet_run_py() 42 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_INT16, ns+6, &x)); in attdet_run_py()
|
D | mdct_py.c | 28 PyObject *x_obj, *xd_obj, *y_obj, *d_obj; in mdct_forward_py() local 33 if (!PyArg_ParseTuple(args, "iiOO", &dt, &sr, &x_obj, &xd_obj)) in mdct_forward_py() 41 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in mdct_forward_py() 55 PyObject *x_obj, *xd_obj, *d_obj, *y_obj; in mdct_inverse_py() local 60 if (!PyArg_ParseTuple(args, "iiOO", &dt, &sr, &x_obj, &xd_obj)) in mdct_inverse_py() 68 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in mdct_inverse_py()
|
D | energy_py.c | 31 PyObject *x_obj, *e_obj; in energy_compute_py() local 34 if (!PyArg_ParseTuple(args, "IIO", &dt, &sr, &x_obj)) in energy_compute_py() 42 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in energy_compute_py()
|
D | ctypes.h | 339 PyObject *c_obj, *x_obj; in to_ltpf_synthesis() local 353 CTYPES_CHECK("ltpf.x", x_obj = to_1d_copy( in to_ltpf_synthesis() 355 PyDict_SetItemString(obj, "x", x_obj); in to_ltpf_synthesis()
|