Home
last modified time | relevance | path

Searched refs:nq (Results 1 – 5 of 5) sorted by relevance

/liblc3-3.5.0-3.4.0/src/
Dspec.c209 int g_int, float *x, uint16_t *xq, int *nq) in quantize() argument
214 *nq = ne; in quantize()
228 *nq = x0 || x1 ? ne : *nq - 2; in quantize()
240 int g_int, float *x, int nq) in unquantize() argument
245 for (i = 0; i < nq; i++) in unquantize()
385 const uint16_t *x, int nq, bool lsb_mode) in put_quantized() argument
397 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in put_quantized()
460 int nq, bool lsb_mode, float *xq, uint16_t *nf_seed) in get_quantized() argument
474 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in get_quantized()
559 lc3_bits_t *bits, int nbits, float *x, int nq) in get_residual() argument
[all …]
Dspec.h41 int g_idx, nq; member
/liblc3-3.5.0-3.4.0/test/
Dspec_py.c75 int g_int, nq; in quantize_py() local
91 quantize(dt, sr, g_int, x, __xq, &nq); in quantize_py()
93 for (int i = 0; i < nq; i++) in quantize_py()
96 return Py_BuildValue("ONi", x_obj, xq_obj, nq); in quantize_py()
104 int nq, nbits_budget; in compute_nbits_py() local
108 &nbytes, &xq_obj, &nq, &nbits_budget)) in compute_nbits_py()
123 dt, sr, nbytes, __xq, &nq, nbits_budget, &lsb_mode); in compute_nbits_py()
125 return Py_BuildValue("iii", nbits, nq, lsb_mode); in compute_nbits_py()
170 int nq; in estimate_noise_py() local
172 if (!PyArg_ParseTuple(args, "IIOIO", &dt, &bw, &xq_obj, &nq, &x_obj)) in estimate_noise_py()
[all …]
Dspec.py612 (xg, xq, nq) = analysis.quantize(g_int, x)
617 ok = ok and nq_c == nq
632 nq = ne // 2 + int(rng.random() * ne // 2)
634 nq = nq - nq % 2
635 if xq[nq-2] == 0 and xq[nq-1] == 0:
636 xq[nq-2] = 1
639 analysis.compute_nbits(nbytes, xq, nq, nbits_budget)
642 lc3.spec_compute_nbits(dt, sr, nbytes, xq, nq, 0)
645 lc3.spec_compute_nbits(dt, sr, nbytes, xq, nq, nbits_budget)
699 (xq, nq, _) = analysis.run(sr, nbytes, bwdet.get_nbits(),
[all …]
Dctypes.h584 new_scalar(NPY_INT, &side->nq)); in new_spec_side()
606 to_scalar(item, NPY_INT, &side->nq)); in to_spec_data()