Home
last modified time | relevance | path

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

/liblc3-latest/src/
Dlc3.c286 int nbytes, struct side_data *side) in analyze() argument
304 side->pitch_present = in analyze()
305 lc3_ltpf_analyse(dt, sr_pcm, &encoder->ltpf, xt, &side->ltpf); in analyze()
317 lc3_ltpf_disable(&side->ltpf); in analyze()
319 side->bw = lc3_bwdet_run(dt, sr, e); in analyze()
321 lc3_sns_analyze(dt, sr, nbytes, e, att, &side->sns, xf, xf); in analyze()
323 lc3_tns_analyze(dt, side->bw, nn_flag, nbytes, &side->tns, xf); in analyze()
326 nbytes, side->pitch_present, &side->tns, in analyze()
327 &encoder->spec, xf, &side->spec); in analyze()
338 const struct side_data *side, int nbytes, void *buffer) in encode() argument
[all …]
Dspec.h54 float *x, lc3_spec_side_t *side);
63 enum lc3_dt dt, enum lc3_srate sr, const lc3_spec_side_t *side);
74 int nbytes, const lc3_spec_side_t *side, float *x);
89 enum lc3_dt dt, enum lc3_srate sr, lc3_spec_side_t *side);
102 int nbytes, const lc3_spec_side_t *side, float *x);
Dspec.c824 float *x, struct lc3_spec_side *side) in lc3_spec_analyze() argument
850 quantize(dt, sr, g_int, x, &side->nq); in lc3_spec_analyze()
852 int nbits = compute_nbits(dt, sr, nbytes, x, &side->nq, 0, NULL); in lc3_spec_analyze()
863 quantize(dt, sr, g_adj, x, &side->nq); in lc3_spec_analyze()
865 side->g_idx = g_int + g_adj + g_off; in lc3_spec_analyze()
867 x, &side->nq, nbits_budget, &side->lsb_mode); in lc3_spec_analyze()
875 const struct lc3_spec_side *side) in lc3_spec_put_side() argument
879 lc3_put_bits(bits, LC3_MAX(side->nq >> 1, 1) - 1, nbits_nq); in lc3_spec_put_side()
880 lc3_put_bits(bits, side->lsb_mode, 1); in lc3_spec_put_side()
881 lc3_put_bits(bits, side->g_idx, 8); in lc3_spec_put_side()
[all …]
/liblc3-latest/test/
Dctypes.h489 static PyObject *new_tns_data(const struct lc3_tns_data *side) in new_tns_data() argument
494 new_scalar(NPY_INT, &side->nfilters)); in new_tns_data()
497 new_scalar(NPY_BOOL, &side->lpc_weighting)); in new_tns_data()
500 new_1d_copy(NPY_INT, 2, side->rc_order)); in new_tns_data()
503 new_2d_copy(NPY_INT, 2, 8, side->rc)); in new_tns_data()
509 static PyObject *to_tns_data(PyObject *obj, struct lc3_tns_data *side) in to_tns_data() argument
517 to_scalar(item, NPY_INT, &side->nfilters)); in to_tns_data()
521 to_scalar(item, NPY_BOOL, &side->lpc_weighting)); in to_tns_data()
526 item = to_1d_copy(item, NPY_INT, side->rc_order, 2)); in to_tns_data()
532 item = to_2d_copy(item, NPY_INT, side->rc, 2, 8)); in to_tns_data()
[all …]
Dtns.py435 (x, side) = lc3.tns_analyze(dt, sr, False, C.NBYTES[i0], C.X_S[i0][i])
436 ok = ok and side['nfilters'] == 1
437 ok = ok and side['rc_order'][0] == C.RC_ORDER[i0][i][0]
438 ok = ok and not np.any((side['rc'][0] + 8) - C.RC_I_1[i0][i])
439 ok = ok and lc3.tns_get_nbits(side) == C.NBITS_TNS[i0][i]
453 side = {
463 x = lc3.tns_synthesize(dt, sr, side, x)
470 side = {
478 x = lc3.tns_synthesize(dt, sr, side, x)
Dspec_py.c130 struct lc3_spec_side side = { 0 }; in analyze_py() local
146 lc3_spec_analyze(dt, sr, nbytes, pitch, &tns, &spec, x, &side); in analyze_py()
149 return Py_BuildValue("ON", x_obj, new_spec_side(&side)); in analyze_py()
Dspec.py827 (x, side) = lc3.spec_analyze(dt, sr, C.NBYTES[i0],
837 ok = ok and side['g_idx'] == C.GG_IND_ADJ[i0][i]
838 ok = ok and side['nq'] == nq
843 ok = ok and side['g_idx'] == C.GG_IND[i0][i]
844 ok = ok and side['nq'] == nq
846 ok = ok and side['lsb_mode'] == C.LSB_MODE[i0][i]
/liblc3-latest/
DREADME.md94 omitted. On the other side `dlc3` read from standard input when input output