Home
last modified time | relevance | path

Searched refs:scf (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/embdrv/lc3/src/
Dsns.c155 const float *eb, bool att, float *scf) in compute_scale_factors() argument
295 scf[0] = (e[0] + e[4]) * 1.f/12 + in compute_scale_factors()
298 scf_sum = scf[0]; in compute_scale_factors()
301 scf[i] = (e[4*i-1] + e[4*i+4]) * 1.f/12 + in compute_scale_factors()
304 scf_sum += scf[i]; in compute_scale_factors()
307 scf[15] = (e[59] + e[63]) * 1.f/12 + in compute_scale_factors()
310 scf_sum += scf[15]; in compute_scale_factors()
313 scf[i] = 0.85f * (scf[i] - scf_sum * 1.f/16); in compute_scale_factors()
320 float s0, s1 = scf[0], s2 = scf[1], s3 = scf[2], s4 = scf[3]; in compute_scale_factors()
323 scf[0] = (sn += s3) * 1.f/3; in compute_scale_factors()
[all …]
/packages/modules/Bluetooth/system/embdrv/lc3/test/
Dsns.py53 def spectral_shaping(self, scf, inv, x): argument
57 scf_i = np.empty(4*len(scf))
58 scf_i[0 ] = scf[0]
59 scf_i[1 ] = scf[0]
60 scf_i[2:62:4] = scf[:15] + 1/8 * (scf[1:] - scf[:15])
61 scf_i[3:63:4] = scf[:15] + 3/8 * (scf[1:] - scf[:15])
62 scf_i[4:64:4] = scf[:15] + 5/8 * (scf[1:] - scf[:15])
63 scf_i[5:64:4] = scf[:15] + 7/8 * (scf[1:] - scf[:15])
64 scf_i[62 ] = scf[15 ] + 1/8 * (scf[15] - scf[14 ])
65 scf_i[63 ] = scf[15 ] + 3/8 * (scf[15] - scf[14 ])
[all …]
Dsns_py.c30 float *eb, *scf; in compute_scale_factors_py() local
42 scf_obj = new_1d_ptr(NPY_FLOAT, 16, &scf); in compute_scale_factors_py()
44 compute_scale_factors(dt, sr, eb, att, scf); in compute_scale_factors_py()
52 float *scf; in resolve_codebooks_py() local
58 CTYPES_CHECK("eb", to_1d_ptr(scf_obj, NPY_FLOAT, 16, &scf)); in resolve_codebooks_py()
60 resolve_codebooks(scf, &lfcb_idx, &hfcb_idx); in resolve_codebooks_py()
68 float *scf; in quantize_py() local
77 CTYPES_CHECK("scf", to_1d_ptr(scf_obj, NPY_FLOAT, 16, &scf)); in quantize_py()
84 quantize(scf, lfcb_idx, hfcb_idx, in quantize_py()
95 float *y, *scf; in unquantize_py() local
[all …]