Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 9 of 9) sorted by relevance

/liblc3-latest/src/
Dltpf.c622 static int refine_pitch(const int16_t *x, int n, int tc, int *pitch) in refine_pitch() argument
652 *pitch = 4*e + f; in refine_pitch()
699 int tc, pitch = 0; in lc3_ltpf_analyse() local
707 data->pitch_index = refine_pitch(x_12k8, n_12k8, tc, &pitch); in lc3_ltpf_analyse()
710 interpolate(x_12k8 - (pitch >> 2), n_12k8, pitch & 3, v); in lc3_ltpf_analyse()
719 LC3_MAX(pitch, ltpf->pitch) - LC3_MIN(pitch, ltpf->pitch); in lc3_ltpf_analyse()
732 ltpf->pitch = pitch; in lc3_ltpf_analyse()
864 int pitch = in lc3_ltpf_synthesize() local
869 pitch = (pitch * lc3_ns(LC3_DT_10M, sr) + 64) / 128; in lc3_ltpf_synthesize()
885 c[ i] = g * lc3_ltpf_cden[sr][pitch & 3][(w-1)-i]; in lc3_ltpf_synthesize()
[all …]
Dltpf.h67 int lc3_ltpf_get_nbits(bool pitch);
Dspec.h53 bool pitch, const lc3_tns_data_t *tns, lc3_spec_analysis_t *spec,
Dspec.c822 bool pitch, const lc3_tns_data_t *tns, in lc3_spec_analyze() argument
834 lc3_bwdet_get_nbits(sr) - lc3_ltpf_get_nbits(pitch) - in lc3_spec_analyze()
/liblc3-latest/test/
Ddecoder.py62 pitch = b.read_bit()
66 if pitch:
73 return (x, bw, pitch)
75 def synthesize(self, x, bw, pitch, nbytes): argument
90 (x, bw, pitch) = self.decode(data)
92 x = self.synthesize(x, bw, pitch, len(data))
Dspec_py.c125 int nbytes, pitch; in analyze_py() local
134 &nbytes, &pitch, &tns_obj, &spec_obj, &x_obj)) in analyze_py()
146 lc3_spec_analyze(dt, sr, nbytes, pitch, &tns, &spec, x, &side); in analyze_py()
Dltpf.py151 self.pitch = 0
257 pitch = e + f/4
264 dp = abs(pitch - self.pitch)
270 pitch = 0
274 self.pitch = pitch
Dctypes.h279 PyDict_GetItemString(obj, "pitch"), NPY_INT, &ltpf->pitch)); in to_ltpf_analysis()
315 new_scalar(NPY_INT, &ltpf->pitch)); in from_ltpf_analysis()
347 PyDict_GetItemString(obj, "pitch"), NPY_INT, &ltpf->pitch)); in to_ltpf_synthesis()
370 new_scalar(NPY_INT, &ltpf->pitch)); in from_ltpf_synthesis()
/liblc3-latest/include/
Dlc3_private.h101 int pitch; member
144 int pitch; member