Home
last modified time | relevance | path

Searched refs:attdet (Results 1 – 11 of 11) sorted by relevance

/liblc3-3.5.0-3.4.0/src/
Dattdet.c26 int nbytes, struct lc3_attdet_analysis *attdet, const int16_t *x) in lc3_attdet_run() argument
81 a[i] = LC3_MAX(attdet->an1 >> 2, attdet->en1); in lc3_attdet_run()
82 attdet->en1 = e[i], attdet->an1 = a[i]; in lc3_attdet_run()
88 int att = attdet->p_att >= 1 + (nblk >> 1) || p_att > 0; in lc3_attdet_run()
89 attdet->p_att = p_att; in lc3_attdet_run()
Dattdet.h41 int nbytes, lc3_attdet_analysis_t *attdet, const int16_t *x);
Dmakefile.mk18 $(SRC_DIR)/attdet.c \
Dmeson.build18 'attdet.c',
Dlc3.c263 bool att = lc3_attdet_run(dt, sr_pcm, nbytes, &encoder->attdet, xt); in analyze()
/liblc3-3.5.0-3.4.0/test/
Dattdet_py.c29 struct lc3_attdet_analysis attdet = { 0 }; in attdet_run_py() local
38 CTYPES_CHECK(NULL, attdet_obj = to_attdet_analysis(attdet_obj, &attdet)); in attdet_run_py()
44 int att = lc3_attdet_run(dt, sr, nbytes, &attdet, x+6); in attdet_run_py()
46 from_attdet_analysis(attdet_obj, &attdet); in attdet_run_py()
Dattdet.py110 attdet = AttackDetector(dt, sr)
117 ok = ok and f_att == attdet.is_enabled(nbytes)
126 attdet = AttackDetector(dt, sr)
140 f_att = attdet.run(100, x)
146 ok = ok and np.amax(np.abs(1 - state_c['en1']/attdet.en1)) < 2
147 ok = ok and np.amax(np.abs(1 - state_c['an1']/attdet.an1)) < 2
148 ok = ok and state_c['p_att'] == attdet.p_att
Drun.py18 import mdct, energy, bwdet, attdet
26 ( attdet , "Attack Detector" ),
Dencoder.py27 import attdet, ltpf
44 self.attdet = attdet.AttackDetector(dt, sr)
56 att = self.attdet.run(nbytes, x)
Dctypes.h199 PyObject *obj, struct lc3_attdet_analysis *attdet) in to_attdet_analysis() argument
204 PyDict_GetItemString(obj, "en1"), NPY_INT32, &attdet->en1)); in to_attdet_analysis()
207 PyDict_GetItemString(obj, "an1"), NPY_INT32, &attdet->an1)); in to_attdet_analysis()
210 PyDict_GetItemString(obj, "p_att"), NPY_INT, &attdet->p_att)); in to_attdet_analysis()
217 PyObject *obj, const struct lc3_attdet_analysis *attdet) in from_attdet_analysis() argument
222 new_scalar(NPY_INT32, &attdet->en1)); in from_attdet_analysis()
225 new_scalar(NPY_INT32, &attdet->an1)); in from_attdet_analysis()
228 new_scalar(NPY_INT, &attdet->p_att)); in from_attdet_analysis()
720 from_attdet_analysis(NULL, &enc->attdet)); in from_encoder()
766 PyDict_GetItemString(obj, "attdet"), &enc->attdet)); in to_encoder()
/liblc3-3.5.0-3.4.0/include/
Dlc3_private.h106 lc3_attdet_analysis_t attdet; member