/liblc3-latest/src/ |
D | bits.h | 85 struct lc3_ac_symbol s[17]; member 163 const struct lc3_ac_model *model, unsigned s); 259 struct lc3_bits *bits, const struct lc3_ac_model *model, unsigned s) in lc3_put_symbol() argument 261 const struct lc3_ac_symbol *symbols = model->s; in lc3_put_symbol() 265 ac->low += range * symbols[s].low; in lc3_put_symbol() 266 ac->range = range * symbols[s].range; in lc3_put_symbol() 281 const struct lc3_ac_symbol *symbols = model->s; in lc3_get_symbol() 290 int s = 16; in lc3_get_symbol() local 292 if (ac->low < range * symbols[s].low) { in lc3_get_symbol() 293 s >>= 1; in lc3_get_symbol() [all …]
|
D | fastmath.h | 46 union { float f; int32_t s; } x = { .f = _x }; in lc3_ldexpf() member 48 if (x.s & LC3_IEEE754_EXP_MASK) in lc3_ldexpf() 49 x.s += exp << LC3_IEEE754_EXP_SHL; in lc3_ldexpf() 97 volatile union { float f; int32_t s; } v; in lc3_exp2f() member 100 int k = v.s; in lc3_exp2f() 107 union { float f; int32_t s; } y; in lc3_exp2f() member 117 y.s += (k >> 3) << LC3_IEEE754_EXP_SHL; in lc3_exp2f()
|
D | tns.c | 133 for (int s = 0; s < nsubdivisions; s++) { in compute_lpc_coeffs() local 137 c[k][s] = dot(xs, xs + k, (xe - xs) - k); in compute_lpc_coeffs() 310 float s[8] = { 0 }; in forward_filtering() local 325 s0 = s[k]; in forward_filtering() 326 s[k] = s1; in forward_filtering() 352 float s[8] = { 0 }; in inverse_filtering() local 365 xi -= s[7] * rc[f][7]; in inverse_filtering() 367 xi -= s[k] * rc[f][k]; in inverse_filtering() 368 s[k+1] = s[k] + rc[f][k] * xi; in inverse_filtering() 370 s[0] = xi; in inverse_filtering() [all …]
|
D | spec.c | 354 int s = (a != 0) + (b != 0); in compute_nbits() local 355 nbits += s * 2048; in compute_nbits() 389 if (s && nbits <= nbits_budget) { in compute_nbits() 526 unsigned s = lc3_get_symbol(bits, lc3_spectrum_models + lut[k]); in get_quantized() local 528 if (lsb_mode && s >= 16) { in get_quantized() 529 s = lc3_get_symbol(bits, lc3_spectrum_models + lut[++k]); in get_quantized() 533 for ( ; s >= 16 && shl < max_shl; shl++) { in get_quantized() 538 s = lc3_get_symbol(bits, lc3_spectrum_models + lut[k]); in get_quantized() 541 if (s >= 16) in get_quantized() 546 int a = s % 4; in get_quantized() [all …]
|
D | lc3.c | 481 int32_t s = *xs >= 0 ? (int)(*xs + 0.5f) : (int)(*xs - 0.5f); in store_s16() local 482 *pcm = LC3_SAT16(s); in store_s16() 503 int32_t s = *xs >= 0 ? (int32_t)(lc3_ldexpf(*xs, 8) + 0.5f) in store_s24() local 505 *pcm = LC3_SAT24(s); in store_s24() 526 int32_t s = *xs >= 0 ? (int32_t)(lc3_ldexpf(*xs, 8) + 0.5f) in store_s24_3le() local 529 s = LC3_SAT24(s); in store_s24_3le() 530 pcm[0] = (s >> 0) & 0xff; in store_s24_3le() 531 pcm[1] = (s >> 8) & 0xff; in store_s24_3le() 532 pcm[2] = (s >> 16) & 0xff; in store_s24_3le() 553 float s = lc3_ldexpf(*xs, -15); in store_float() local [all …]
|
/liblc3-latest/python/tools/ |
D | specgram.py | 62 s = signal.chirp(t, f0=10, f1=fs/2, t1=t[-1], phi=-90, method='linear') variable 69 y = np.empty(len(s) + frame_len) 71 for i in range(0, len(s), frame_len): 72 y[i:i+frame_len] = dec.decode(enc.encode(s[i:i+frame_len], frame_size)) 74 y[len(s):] = dec.decode(enc.encode(np.zeros(frame_len), frame_size)) 75 y = y[delay_len:len(s)+delay_len] 82 for (ax, s) in [(ax1, s), (ax2, y)]: 83 ax.specgram(s, Fs=fs, NFFT=NFFT, pad_to=4*NFFT, noverlap=NFFT//2,
|
/liblc3-latest/include/ |
D | lc3_cpp.h | 132 auto s = state_ptr((lc3_encoder_t) in Base() local 135 if (lc3_hr_setup_encoder(hrmode_, dt_us_, sr_hz_, sr_pcm_hz_, s.get())) in Base() 136 states.push_back(std::move(s)); in Base() 145 for (auto &s : states) in Reset() 146 lc3_hr_setup_encoder(hrmode_, dt_us_, sr_hz_, sr_pcm_hz_, s.get()); in Reset() 240 auto s = state_ptr((lc3_decoder_t) in Base() local 243 if (lc3_hr_setup_decoder(hrmode_, dt_us_, sr_hz_, sr_pcm_hz_, s.get())) in Base() 244 states.push_back(std::move(s)); in Base() 253 for (auto &s : states) in Reset() 254 lc3_hr_setup_decoder(hrmode_, dt_us_, sr_hz_, sr_pcm_hz_, s.get()); in Reset()
|
/liblc3-latest/tools/ |
D | wave.c | 27 #define __WAVE_ID(s) \ argument 28 (uint32_t)( s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24) )
|
/liblc3-latest/ |
D | Makefile | 86 $(patsubst %.s,%.o,$(filter %.s,$($(1)_src))) \ 139 $(BUILD_DIR)/%.o: %.s $(MAKEFILE_DEPS)
|
D | CONTRIBUTING.md | 27 This project follows [Google's Open Source Community
|
D | LICENSE | 81 Contribution(s) alone or by combination of their Contribution(s) 82 with the Work to which such Contribution(s) was submitted. If You
|
/liblc3-latest/test/ |
D | tns.py | 158 e = [ sum(x[S[s]:S[s+1]] ** 2) for s in range(len(S)-1) ] 161 c = [ np.dot(x[S[s]:S[s+1]-k], x[S[s]+k:S[s+1]]) 162 for s in range(len(S)-1) ]
|
D | ltpf.py | 221 s = [ np.dot( np.take(r, e-k0+4 + m), np.take(h, 4*m-d) ) \ 224 f = np.argmax(s[3:]) if e <= 32 else \ 225 -3 + np.argmax(s) if e < 127 else \ 226 -2 + 2*np.argmax(s[1:-1:2]) if e < 157 else 0 519 s = signal.chirp(t, f0=10, f1=2500, t1=t[-1], method='logarithmic') 523 x = s[i*ns:(i+1)*ns] * (2 ** 15 - 1)
|
D | spec.py | 502 s = t + min(lev, 3) * 1024 505 T.AC_SPEC_CUMFREQ[T.AC_SPEC_LOOKUP[s]], 506 T.AC_SPEC_FREQ[T.AC_SPEC_LOOKUP[s]])
|
/liblc3-latest/fuzz/ |
D | efuzz.cc | 43 for (auto &s: pcm) in encode() local 44 s = ConsumeInRange<T>(fdp, min, max); in encode()
|
/liblc3-latest/python/ |
D | LICENSE | 81 Contribution(s) alone or by combination of their Contribution(s) 82 with the Work to which such Contribution(s) was submitted. If You
|