Searched refs:attdet (Results 1 – 11 of 11) sorted by relevance
/liblc3-3.5.0-3.4.0/src/ |
D | attdet.c | 26 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()
|
D | attdet.h | 41 int nbytes, lc3_attdet_analysis_t *attdet, const int16_t *x);
|
D | makefile.mk | 18 $(SRC_DIR)/attdet.c \
|
D | meson.build | 18 'attdet.c',
|
D | lc3.c | 263 bool att = lc3_attdet_run(dt, sr_pcm, nbytes, &encoder->attdet, xt); in analyze()
|
/liblc3-3.5.0-3.4.0/test/ |
D | attdet_py.c | 29 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()
|
D | attdet.py | 110 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
|
D | run.py | 18 import mdct, energy, bwdet, attdet 26 ( attdet , "Attack Detector" ),
|
D | encoder.py | 27 import attdet, ltpf 44 self.attdet = attdet.AttackDetector(dt, sr) 56 att = self.attdet.run(nbytes, x)
|
D | ctypes.h | 199 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/ |
D | lc3_private.h | 106 lc3_attdet_analysis_t attdet; member
|