Home
last modified time | relevance | path

Searched refs:x_obj (Results 1 – 8 of 8) sorted by relevance

/liblc3-latest/test/
Dspec_py.c31 PyObject *x_obj; in estimate_gain_py() local
35 &x_obj, &nbytes, &nbits_budget, &nbits_off, &g_off)) in estimate_gain_py()
43 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in estimate_gain_py()
76 PyObject *x_obj; in quantize_py() local
80 if (!PyArg_ParseTuple(args, "IIiO", &dt, &sr, &g_int, &x_obj)) in quantize_py()
89 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in quantize_py()
93 return Py_BuildValue("Oi", x_obj, nq); in quantize_py()
100 PyObject *x_obj; in compute_nbits_py() local
104 &nbytes, &x_obj, &nq, &nbits_budget)) in compute_nbits_py()
112 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in compute_nbits_py()
[all …]
Dltpf_py.c28 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, &ltpf_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, &ltpf_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()
Dsns_py.c118 PyObject *scf_q_obj, *x_obj; in spectral_shaping_py() local
123 if (!PyArg_ParseTuple(args, "IIOpO", &dt, &sr, &scf_q_obj, &inv, &x_obj)) in spectral_shaping_py()
132 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in spectral_shaping_py()
136 return Py_BuildValue("O", x_obj); in spectral_shaping_py()
141 PyObject *eb_obj, *x_obj; in analyze_py() local
148 &dt, &sr, &nbytes, &eb_obj, &att, &x_obj)) in analyze_py()
158 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in analyze_py()
162 return Py_BuildValue("ON", x_obj, new_sns_data(&data)); in analyze_py()
167 PyObject *data_obj, *x_obj; in synthesize_py() local
172 if (!PyArg_ParseTuple(args, "IIOO", &dt, &sr, &data_obj, &x_obj)) in synthesize_py()
[all …]
Dtns_py.c28 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()
41 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in compute_lpc_coeffs_py()
115 PyObject *x_obj; in analyze_py() local
122 &dt, &bw, &nn_flag, &nbytes, &x_obj)) in analyze_py()
130 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in analyze_py()
134 return Py_BuildValue("ON", x_obj, new_tns_data(&data)); in analyze_py()
139 PyObject *data_obj, *x_obj; in synthesize_py() local
144 if (!PyArg_ParseTuple(args, "IIOO", &dt, &bw, &data_obj, &x_obj)) in synthesize_py()
153 CTYPES_CHECK("x", x_obj = to_1d_ptr(x_obj, NPY_FLOAT, ne, &x)); in synthesize_py()
[all …]
Dmdct_py.c29 PyObject *x_obj, *xd_obj, *y_obj, *d_obj; in mdct_forward_py() local
32 if (!PyArg_ParseTuple(args, "IIOO", &dt, &sr, &x_obj, &xd_obj)) in mdct_forward_py()
40 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
58 if (!PyArg_ParseTuple(args, "IIOO", &dt, &sr, &x_obj, &xd_obj)) in mdct_inverse_py()
66 CTYPES_CHECK("x", to_1d_ptr(x_obj, NPY_FLOAT, ns, &x)); in mdct_inverse_py()
Dattdet_py.c28 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()
Denergy_py.c31 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()
Dctypes.h339 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()