Home
last modified time | relevance | path

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

/liblc3-3.7.0-3.6.0/src/
Dspec.c211 int g_int, float *x, uint16_t *xq, int *nq) in quantize() argument
216 *nq = ne; in quantize()
230 *nq = x0 || x1 ? ne : *nq - 2; in quantize()
242 int g_int, float *x, int nq) in unquantize() argument
247 for (i = 0; i < nq; i++) in unquantize()
387 const uint16_t *x, int nq, bool lsb_mode) in put_quantized() argument
399 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in put_quantized()
462 int nq, bool lsb_mode, float *xq, uint16_t *nf_seed) in get_quantized() argument
476 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in get_quantized()
561 lc3_bits_t *bits, int nbits, float *x, int nq) in get_residual() argument
[all …]
Dspec.h41 int g_idx, nq; member
/liblc3-3.7.0-3.6.0/test/
Dspec_py.c76 int g_int, nq; in quantize_py() local
92 quantize(dt, sr, g_int, x, __xq, &nq); in quantize_py()
94 for (int i = 0; i < nq; i++) in quantize_py()
97 return Py_BuildValue("ONi", x_obj, xq_obj, nq); in quantize_py()
105 int nq, nbits_budget; in compute_nbits_py() local
109 &nbytes, &xq_obj, &nq, &nbits_budget)) in compute_nbits_py()
124 dt, sr, nbytes, __xq, &nq, nbits_budget, &lsb_mode); in compute_nbits_py()
126 return Py_BuildValue("iii", nbits, nq, lsb_mode); in compute_nbits_py()
171 int nq; in estimate_noise_py() local
173 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()