/liblc3-3.7.0-3.6.0/src/ |
D | bits.h | 91 struct lc3_ac_symbol s[17]; member 169 const struct lc3_ac_model *model, unsigned s); 265 struct lc3_bits *bits, const struct lc3_ac_model *model, unsigned s) in lc3_put_symbol() argument 267 const struct lc3_ac_symbol *symbols = model->s; in lc3_put_symbol() 271 ac->low += range * symbols[s].low; in lc3_put_symbol() 272 ac->range = range * symbols[s].range; in lc3_put_symbol() 287 const struct lc3_ac_symbol *symbols = model->s; in lc3_get_symbol() 296 int s = 16; in lc3_get_symbol() local 298 if (ac->low < range * symbols[s].low) { in lc3_get_symbol() 299 s >>= 1; in lc3_get_symbol() [all …]
|
D | tns.c | 95 for (int s = 0; s < 3; s++) { in compute_lpc_coeffs() local 99 c[k][s] = dot(xs, xs + k, (xe - xs) - k); in compute_lpc_coeffs() 263 float s[8] = { 0 }; in forward_filtering() local 278 s0 = s[k]; in forward_filtering() 279 s[k] = s1; in forward_filtering() 304 float s[8] = { 0 }; in inverse_filtering() local 317 xi -= s[7] * rc[f][7]; in inverse_filtering() 319 xi -= s[k] * rc[f][k]; in inverse_filtering() 320 s[k+1] = s[k] + rc[f][k] * xi; in inverse_filtering() 322 s[0] = xi; in inverse_filtering() [all …]
|
D | spec.c | 316 int s = (a > 0) + (b > 0); in compute_nbits() local 317 nbits += s * 2048; in compute_nbits() 351 if (s && nbits <= nbits_budget) { in compute_nbits() 488 unsigned s = lc3_get_symbol(bits, lc3_spectrum_models + lut[k]); in get_quantized() local 490 if (lsb_mode && s >= 16) { in get_quantized() 491 s = lc3_get_symbol(bits, lc3_spectrum_models + lut[++k]); in get_quantized() 495 for ( ; s >= 16 && shl < 14; shl++) { in get_quantized() 500 s = lc3_get_symbol(bits, lc3_spectrum_models + lut[k]); in get_quantized() 503 if (s >= 16) in get_quantized() 508 int a = s % 4; in get_quantized() [all …]
|
D | lc3.c | 432 int32_t s = *xs >= 0 ? (int)(*xs + 0.5f) : (int)(*xs - 0.5f); in store_s16() local 433 *pcm = LC3_SAT16(s); in store_s16() 454 int32_t s = *xs >= 0 ? (int32_t)(ldexpf(*xs, 8) + 0.5f) in store_s24() local 456 *pcm = LC3_SAT24(s); in store_s24() 477 int32_t s = *xs >= 0 ? (int32_t)(ldexpf(*xs, 8) + 0.5f) in store_s24_3le() local 480 s = LC3_SAT24(s); in store_s24_3le() 481 pcm[0] = (s >> 0) & 0xff; in store_s24_3le() 482 pcm[1] = (s >> 8) & 0xff; in store_s24_3le() 483 pcm[2] = (s >> 16) & 0xff; in store_s24_3le() 504 float s = ldexpf(*xs, -15); in store_float() local [all …]
|
/liblc3-3.7.0-3.6.0/include/ |
D | lc3_cpp.h | 115 auto s = state_ptr( in Base() local 118 if (lc3_setup_encoder(dt_us_, sr_hz_, sr_pcm_hz_, s.get())) in Base() 119 states.push_back(std::move(s)); in Base() 128 for (auto &s : states) in Reset() 129 lc3_setup_encoder(dt_us_, sr_hz_, sr_pcm_hz_, s.get()); in Reset() 213 auto s = state_ptr( in Base() local 216 if (lc3_setup_decoder(dt_us_, sr_hz_, sr_pcm_hz_, s.get())) in Base() 217 states.push_back(std::move(s)); in Base() 226 for (auto &s : states) in Reset() 227 lc3_setup_decoder(dt_us_, sr_hz_, sr_pcm_hz_, s.get()); in Reset()
|
/liblc3-3.7.0-3.6.0/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-3.7.0-3.6.0/ |
D | Makefile | 64 $(patsubst %.s,%.o,$(filter %.s,$($(1)_src))) \ 119 $(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-3.7.0-3.6.0/test/ |
D | tns.py | 110 e = [ sum(x[S[s]:S[s+1]] ** 2) for s in range(3) ] 113 c = [ np.dot(x[S[s]:S[s+1]-k], x[S[s]+k:S[s+1]]) 114 for s in range(3) ]
|
D | ltpf.py | 218 s = [ np.dot( np.take(r, e-k0+4 + m), np.take(h, 4*m-d) ) \ 221 f = np.argmax(s[3:]) if e <= 32 else \ 222 -3 + np.argmax(s) if e < 127 else \ 223 -2 + 2*np.argmax(s[1:-1:2]) if e < 157 else 0 506 s = signal.chirp(t, f0=10, f1=3e3, t1=t[-1], method='logarithmic') 510 x = s[i*ns:(i+1)*ns] * (2 ** 15 - 1)
|
D | spec.py | 457 s = t + min(lev, 3) * 1024 460 T.AC_SPEC_CUMFREQ[T.AC_SPEC_LOOKUP[s]], 461 T.AC_SPEC_FREQ[T.AC_SPEC_LOOKUP[s]])
|
/liblc3-3.7.0-3.6.0/fuzz/ |
D | efuzz.cc | 43 for (auto &s: pcm) in encode() local 44 s = ConsumeInRange<T>(fdp, min, max); in encode()
|