/liblc3-latest/src/ |
D | ltpf.c | 582 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 …]
|
D | ltpf.h | 54 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,
|
D | makefile.mk | 23 $(SRC_DIR)/ltpf.c \
|
D | lc3.c | 42 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()
|
D | meson.build | 23 'ltpf.c',
|
/liblc3-latest/test/ |
D | ctypes.h | 267 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, <pf->active)); in to_ltpf_analysis() 279 PyDict_GetItemString(obj, "pitch"), NPY_INT, <pf->pitch)); in to_ltpf_analysis() 282 PyDict_GetItemString(obj, "nc"), NPY_FLOAT, ltpf->nc, 2)); in to_ltpf_analysis() 286 PyDict_GetItemString(obj, "hp50"), <pf->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, <pf->tc)); in to_ltpf_analysis() [all …]
|
D | ltpf_py.c | 56 struct lc3_ltpf_analysis ltpf; in analyse_py() local 65 CTYPES_CHECK(NULL, ltpf_obj = to_ltpf_analysis(ltpf_obj, <pf)); in analyse_py() 72 lc3_ltpf_analyse(dt, sr, <pf, x + nt, &data); in analyse_py() 74 from_ltpf_analysis(ltpf_obj, <pf); in analyse_py() 81 struct lc3_ltpf_synthesis ltpf; in synthesize_py() local 95 CTYPES_CHECK(NULL, ltpf_obj = to_ltpf_synthesis(ltpf_obj, <pf)); in synthesize_py() 105 <pf, pitch_present ? &data : NULL, x, x + nd); in synthesize_py() 107 from_ltpf_synthesis(ltpf_obj, <pf); in synthesize_py()
|
D | encoder.py | 26 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)
|
D | decoder.py | 26 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)
|
D | run.py | 19 import ltpf, sns, tns, spec, encoder, decoder 27 ( ltpf , "Long Term Postfilter" ),
|
D | ltpf.py | 516 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()
|
D | spec.py | 23 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/ |
D | lc3_private.h | 120 lc3_ltpf_analysis_t ltpf; member 158 lc3_ltpf_synthesis_t ltpf; member
|