Home
last modified time | relevance | path

Searched refs:ltpf (Results 1 – 13 of 13) sorted by relevance

/liblc3-latest/src/
Dltpf.c582 static bool detect_pitch(struct lc3_ltpf_analysis *ltpf, in detect_pitch() argument
589 int k0 = LC3_MAX( 0, ltpf->tc-4); in detect_pitch()
590 int nk = LC3_MIN(nr-1, ltpf->tc+4) - k0 + 1; in detect_pitch()
607 ltpf->tc = (t1sel ? t1 : t2); in detect_pitch()
609 *tc = r0 + ltpf->tc; in detect_pitch()
661 enum lc3_dt dt, enum lc3_srate sr, struct lc3_ltpf_analysis *ltpf, in lc3_ltpf_analyse() argument
666 int z_12k8 = sizeof(ltpf->x_12k8) / sizeof(*ltpf->x_12k8); in lc3_ltpf_analyse()
669 memmove(ltpf->x_12k8, ltpf->x_12k8 + n_12k8, in lc3_ltpf_analyse()
670 (z_12k8 - n_12k8) * sizeof(*ltpf->x_12k8)); in lc3_ltpf_analyse()
672 int16_t *x_12k8 = ltpf->x_12k8 + (z_12k8 - n_12k8); in lc3_ltpf_analyse()
[all …]
Dltpf.h54 lc3_ltpf_analysis_t *ltpf, const int16_t *x, lc3_ltpf_data_t *data);
100 lc3_ltpf_synthesis_t *ltpf, const lc3_ltpf_data_t *data,
Dmakefile.mk23 $(SRC_DIR)/ltpf.c \
Dlc3.c42 lc3_ltpf_data_t ltpf; member
305 lc3_ltpf_analyse(dt, sr_pcm, &encoder->ltpf, xt, &side->ltpf); in analyze()
317 lc3_ltpf_disable(&side->ltpf); in analyze()
361 lc3_ltpf_put_data(&bits, &side->ltpf); in encode()
595 lc3_ltpf_get_data(&bits, &side->ltpf); in decode()
649 lc3_ltpf_synthesize(dt, sr_pcm, nbytes, &decoder->ltpf, in synthesize()
650 side && side->pitch_present ? &side->ltpf : NULL, xh, xs); in synthesize()
Dmeson.build23 'ltpf.c',
/liblc3-latest/test/
Dctypes.h267 PyObject *obj, struct lc3_ltpf_analysis *ltpf) in to_ltpf_analysis() argument
270 const int n_12k8 = sizeof(ltpf->x_12k8) / sizeof(*ltpf->x_12k8); in to_ltpf_analysis()
271 const int n_6k4 = sizeof(ltpf->x_6k4) / sizeof(*ltpf->x_6k4); in to_ltpf_analysis()
276 PyDict_GetItemString(obj, "active"), NPY_BOOL, &ltpf->active)); in to_ltpf_analysis()
279 PyDict_GetItemString(obj, "pitch"), NPY_INT, &ltpf->pitch)); in to_ltpf_analysis()
282 PyDict_GetItemString(obj, "nc"), NPY_FLOAT, ltpf->nc, 2)); in to_ltpf_analysis()
286 PyDict_GetItemString(obj, "hp50"), &ltpf->hp50)); in to_ltpf_analysis()
289 PyDict_GetItemString(obj, "x_12k8"), NPY_INT16, ltpf->x_12k8, n_12k8)); in to_ltpf_analysis()
293 PyDict_GetItemString(obj, "x_6k4"), NPY_INT16, ltpf->x_6k4, n_6k4)); in to_ltpf_analysis()
297 PyDict_GetItemString(obj, "tc"), NPY_INT, &ltpf->tc)); in to_ltpf_analysis()
[all …]
Dltpf_py.c56 struct lc3_ltpf_analysis ltpf; in analyse_py() local
65 CTYPES_CHECK(NULL, ltpf_obj = to_ltpf_analysis(ltpf_obj, &ltpf)); in analyse_py()
72 lc3_ltpf_analyse(dt, sr, &ltpf, x + nt, &data); in analyse_py()
74 from_ltpf_analysis(ltpf_obj, &ltpf); in analyse_py()
81 struct lc3_ltpf_synthesis ltpf; in synthesize_py() local
95 CTYPES_CHECK(NULL, ltpf_obj = to_ltpf_synthesis(ltpf_obj, &ltpf)); in synthesize_py()
105 &ltpf, pitch_present ? &data : NULL, x, x + nd); in synthesize_py()
107 from_ltpf_synthesis(ltpf_obj, &ltpf); in synthesize_py()
Dencoder.py26 import attdet, ltpf
42 self.ltpf = ltpf.LtpfAnalysis(dt, sr)
55 pitch_present = self.ltpf.run(x)
61 self.ltpf.disable()
70 self.bwdet.get_nbits(), self.ltpf.get_nbits(),
90 self.ltpf.store(b)
Ddecoder.py26 import mdct, energy, bwdet, sns, tns, spec, ltpf
48 self.ltpf = ltpf.LtpfSynthesis(dt, sr)
67 self.ltpf.load(b)
69 self.ltpf.disable()
84 x = self.ltpf.run(x)
Drun.py19 import ltpf, sns, tns, spec, encoder, decoder
27 ( ltpf , "Long Term Postfilter" ),
Dltpf.py516 ltpf = LtpfAnalysis(dt, sr)
525 pitch_present = ltpf.run(x)
526 data = ltpf.get_data()
531 ok = ok and (not pitch_present or state_c['tc'] == ltpf.tc)
532 ok = ok and np.amax(np.abs(state_c['nc'][0] - ltpf.nc[0])) < 1e-1
536 ok = ok and lc3.ltpf_get_nbits(pitch_present) == ltpf.get_nbits()
Dspec.py23 import ltpf as m_ltpf
728 ltpf = m_ltpf.LtpfAnalysis(dt, sr)
744 pitch_present = ltpf.run(x)
750 ltpf.get_nbits(), sns.get_nbits(), tns.get_nbits(), x[:ne])
/liblc3-latest/include/
Dlc3_private.h120 lc3_ltpf_analysis_t ltpf; member
158 lc3_ltpf_synthesis_t ltpf; member