/liblc3-latest/src/ |
D | tns.c | 130 for (int f = 0; f < nfilters; f++) { in compute_lpc_coeffs() local 140 r[f][0] = nsubdivisions; in compute_lpc_coeffs() 144 r[f][k] = e0 == 0 || e1 == 0 ? 0 : in compute_lpc_coeffs() 150 r[f][k] = e0 == 0 || e1 == 0 || e2 == 0 ? 0 : in compute_lpc_coeffs() 157 for (int f = 0; f < nfilters; f++) { in compute_lpc_coeffs() local 158 float *a0 = a[f], a1[9]; in compute_lpc_coeffs() 159 float err = r[f][0], rc; in compute_lpc_coeffs() 161 gain[f] = err; in compute_lpc_coeffs() 166 rc = -r[f][k]; in compute_lpc_coeffs() 168 rc -= a0[i] * r[f][k-i]; in compute_lpc_coeffs() [all …]
|
D | fastmath.h | 46 union { float f; int32_t s; } x = { .f = _x }; in lc3_ldexpf() member 51 return x.f; in lc3_ldexpf() 61 union { float f; uint32_t u; } x = { .f = _x }; in lc3_frexpf() member 69 return x.f; in lc3_frexpf() 97 volatile union { float f; int32_t s; } v; in lc3_exp2f() member 99 v.f = x + 0x1.8p20f; in lc3_exp2f() 101 x -= v.f - 0x1.8p20f; in lc3_exp2f() 107 union { float f; int32_t s; } y; in lc3_exp2f() member 109 y.f = ( p[0]) * x; in lc3_exp2f() 110 y.f = (y.f + p[1]) * x; in lc3_exp2f() [all …]
|
D | mdct.c | 419 LC3_HOT static void rescale(float *x, int n, float f) in rescale() argument 422 *(x++) *= f; *(x++) *= f; in rescale() 423 *(x++) *= f; *(x++) *= f; in rescale() 440 union { float *f; struct lc3_complex *z; } u = { .z = buffer }; in lc3_mdct_forward() member 442 mdct_window(dt, sr, x, d, u.f); in lc3_mdct_forward() 444 mdct_pre_fft(rot, u.f, u.z); in lc3_mdct_forward() 465 union { float *f; struct lc3_complex *z; } u = { .z = buffer }; in lc3_mdct_inverse() member 469 imdct_post_fft(rot, z, u.f); in lc3_mdct_inverse() 472 rescale(u.f, ns, sqrtf((float)ns / ns_src)); in lc3_mdct_inverse() 474 imdct_window(dt, sr, u.f, d, y); in lc3_mdct_inverse()
|
D | ltpf.c | 625 int e, f; in refine_pitch() local 635 float dm = interpolate_corr(re, f = 0); in refine_pitch() 643 dm = d, f = i; in refine_pitch() 646 dm = d, f = -i; in refine_pitch() 649 e -= (f < 0); in refine_pitch() 650 f += 4*(f < 0); in refine_pitch() 652 *pitch = 4*e + f; in refine_pitch() 653 return e < 127 ? 4*e + f - 128 : in refine_pitch() 654 e < 157 ? 2*e + (f >> 1) + 126 : e + 283; in refine_pitch()
|
D | spec.c | 88 union { float f; int32_t q16; } e[LC3_MAX_NE / 4]; in estimate_gain() member 133 e[i].f = x0 + x1 + x2 + x3; in estimate_gain() 141 e[i].q16 = lc3_db_q16(fmaxf(e[i].f + nf, 1e-10f)); in estimate_gain()
|
D | mdct_neon.h | 36 static const union { float f[2]; uint64_t u64; } in neon_fft_5() member
|
/liblc3-latest/test/ |
D | tns.py | 131 for f in range(self.nfilters): 132 rc_order = self.rc_order[f] 133 rc = self.rc[f] 150 def compute_lpc_coeffs(self, bw, f, x): argument 154 S = Tns.SUB_LIM[self.dt][bw][f] 245 for f in range(self.nfilters): 247 (pred_gain, a) = self.compute_lpc_coeffs(bw, f, x) 261 self.rc_order[f] = rc_order 262 self.rc[f] = rc_i 265 i0 = Tns.FREQ_LIM[self.dt][bw][f] [all …]
|
D | ltpf.py | 70 f = (15 * i) % p 71 k = np.arange(-120, 120 + p, p) - f 224 f = np.argmax(s[3:]) if e <= 32 else \ 228 e -= (f < 0) 229 f += 4*(f < 0) 231 self.pitch_index = 4*e + f - 128 if e < 127 else \ 232 2*e + f//2 + 126 if e < 157 else e + 283 235 e = f = 0 251 v = [ np.dot( np.take(x, i-k), np.take(h, 4*k-f) ) \ 257 pitch = e + f/4
|
D | attdet.py | 90 for (i, f) in enumerate(flags): 91 if f: p_att = i
|
/liblc3-latest/python/tools/ |
D | encoder.py | 86 for f in (f_wav, f_lc3): 87 if f is not sys.stdout.buffer: 88 f.close()
|
D | decoder.py | 94 for f in (f_lc3, f_wav): 95 if f is not sys.stdout.buffer: 96 f.close()
|
/liblc3-latest/test/neon/ |
D | neon.h | 252 float *f = (float *)&u; in vcreate_f32() local 253 return (float32x2_t){ { f[0] , f[1] } }; in vcreate_f32()
|
/liblc3-latest/python/ |
D | lc3.py | 69 … f"Invalid frame duration: {self.frame_duration_us} us ({self.frame_duration_us / 1000:.1f} ms)" 77 raise InvalidArgumentError(f"Invalid sample rate: {sample_rate_hz} Hz")
|