/liblc3-latest/include/ |
D | lc3.h | 213 #define LC3_HR_CHECK_SR_HZ(hrmode, sr) \ argument 214 ( (hrmode) ? ((sr) == 48000) || ((sr) == 96000) : LC3_CHECK_SR_HZ(sr) ) 265 LC3_EXPORT int lc3_hr_frame_samples(bool hrmode, int dt_us, int sr_hz); 279 bool hrmode, int dt_us, int sr_hz, int bitrate); 295 bool hrmode, int dt_us, int sr_hz, int nchannels, int bitrate); 308 bool hrmode, int dt_us, int sr_hz, int nbytes); 319 LC3_EXPORT int lc3_hr_delay_samples(bool hrmode, int dt_us, int sr_hz); 333 LC3_EXPORT unsigned lc3_hr_encoder_size(bool hrmode, int dt_us, int sr_hz); 353 bool hrmode, int dt_us, int sr_hz, int sr_pcm_hz, void *mem); 381 LC3_EXPORT unsigned lc3_hr_decoder_size(bool hrmode, int dt_us, int sr_hz); [all …]
|
D | lc3_cpp.h | 53 Base(int dt_us, int sr_hz, int sr_pcm_hz, size_t nchannels, bool hrmode) in Base() argument 58 hrmode_(hrmode) { in Base() 129 size_t nchannels = 1, bool hrmode = false) 130 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode) { in Base() argument 237 size_t nchannels = 1, bool hrmode = false) 238 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode) { in Base() argument
|
/liblc3-latest/python/ |
D | lc3.py | 56 hrmode: bool = False, 61 self.hrmode = hrmode 73 [8000, 16000, 24000, 32000, 48000] if not self.hrmode else [48000, 96000] 102 if self.hrmode: 105 lc3_hr_frame_samples = lambda hrmode, dt_us, sr_hz: lib.lc3_frame_samples( argument 109 lambda hrmode, dt_us, sr_hz, num_channels, bitrate: num_channels 113 lambda hrmode, dt_us, sr_hz, nbytes: lib.lc3_resolve_bitrate( 117 lc3_hr_delay_samples = lambda hrmode, dt_us, sr_hz: lib.lc3_delay_samples( argument 147 self.hrmode, self.frame_duration_us, self.pcm_sample_rate_hz 160 self.hrmode, [all …]
|
/liblc3-latest/src/ |
D | lc3.c | 59 static enum lc3_dt resolve_dt(int us, bool hrmode) in resolve_dt() argument 63 !hrmode && us == 7500 ? LC3_DT_7M5 : in resolve_dt() 73 static enum lc3_srate resolve_srate(int hz, bool hrmode) in resolve_srate() argument 75 hrmode = LC3_PLUS_HR && hrmode; in resolve_srate() 77 return !hrmode && hz == 8000 ? LC3_SRATE_8K : in resolve_srate() 78 !hrmode && hz == 16000 ? LC3_SRATE_16K : in resolve_srate() 79 !hrmode && hz == 24000 ? LC3_SRATE_24K : in resolve_srate() 80 !hrmode && hz == 32000 ? LC3_SRATE_32K : in resolve_srate() 81 !hrmode && hz == 48000 ? LC3_SRATE_48K : in resolve_srate() 82 hrmode && hz == 48000 ? LC3_SRATE_48K_HR : in resolve_srate() [all …]
|
D | spec.c | 575 int nbits, bool hrmode, float *x, int n) in put_residual() argument 577 float xq_lim = hrmode ? 0.5f : 10.f/16; in put_residual() 580 for (int iter = 0; iter < (hrmode ? 20 : 1) && nbits > 0; iter++) { in put_residual() 606 int nbits, bool hrmode, float *x, int n) in get_residual() argument 608 float xq_off_1 = hrmode ? 0.25f : 5.f/16; in get_residual() 609 float xq_off_2 = hrmode ? 0.25f : 3.f/16; in get_residual() 611 for (int iter = 0; iter < (hrmode ? 20 : 1) && nbits > 0; iter++) { in get_residual() 638 int nbits, bool hrmode, const float *x, int n) in put_lsb() argument 642 float xq_off = hrmode ? 0.5f : 6.f/16; in put_lsb() 715 enum lc3_dt dt, enum lc3_bandwidth bw, bool hrmode, const float *x, int n) in estimate_noise() argument [all …]
|
/liblc3-latest/tools/ |
D | lc3bin.c | 46 int *frame_us, int *srate_hz, bool *hrmode, int *nchannels, int *nsamples) in lc3bin_read_header() argument 65 *hrmode = hdr_hrmode != 0; in lc3bin_read_header() 94 int frame_us, int srate_hz, bool hrmode, in lc3bin_write_header() argument 97 uint16_t hdr_hrmode = (hrmode != 0); in lc3bin_write_header() 102 (hrmode ? sizeof(hdr_hrmode) : 0), in lc3bin_write_header() 113 if (hrmode) in lc3bin_write_header()
|
D | elc3.c | 65 bool hrmode; member 109 case 'H': p.hrmode = true; break; in parse_args() 176 if (!LC3_HR_CHECK_SR_HZ(p.hrmode, srate_hz)) in main() 189 if (p.srate_hz && (!LC3_HR_CHECK_SR_HZ(p.hrmode, p.srate_hz) || in main() 198 p.hrmode, frame_us, srate_hz, nchannels, p.bitrate); in main() 201 p.hrmode, frame_us, srate_hz, block_bytes); in main() 207 frame_us, enc_srate_hz, p.hrmode, in main() 217 p.hrmode, frame_us, srate_hz); in main() 219 p.hrmode, frame_us, srate_hz); in main() 226 p.hrmode, frame_us, enc_srate_hz, srate_hz, in main() [all …]
|
D | dlc3.c | 164 bool hrmode; in main() local 167 &frame_us, &srate_hz, &hrmode, &nchannels, &nsamples) < 0) in main() 176 if (!LC3_HR_CHECK_SR_HZ(hrmode, srate_hz)) in main() 179 if (p.srate_hz && (!LC3_HR_CHECK_SR_HZ(hrmode, p.srate_hz) || in main() 199 int frame_samples = lc3_hr_frame_samples(hrmode, frame_us, pcm_srate_hz); in main() 201 lc3_hr_delay_samples(hrmode, frame_us, pcm_srate_hz); in main() 207 hrmode, frame_us, srate_hz, p.srate_hz, in main() 208 malloc(lc3_hr_decoder_size(hrmode, frame_us, pcm_srate_hz))); in main()
|
D | lc3bin.h | 38 int *frame_us, int *srate_hz, bool *hrmode, 61 int frame_us, int srate_hz, bool hrmode,
|
/liblc3-latest/python/tools/ |
D | specgram.py | 51 args.frame_duration, fs, hrmode=args.hrmode, libpath=args.libpath) 53 args.frame_duration, fs, hrmode=args.hrmode, libpath=args.libpath)
|
/liblc3-latest/fuzz/ |
D | dfuzz.cc | 34 bool hrmode = fdp.ConsumeBool(); in LLVMFuzzerTestOneInput() local 40 Decoder dec(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode); in LLVMFuzzerTestOneInput()
|
D | efuzz.cc | 81 bool hrmode = fdp.ConsumeBool(); in LLVMFuzzerTestOneInput() local 87 Encoder enc(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode); in LLVMFuzzerTestOneInput()
|
/liblc3-latest/test/ |
D | spec_py.c | 157 int hrmode, n; in estimate_noise_py() local 160 &dt, &bw, &hrmode, &x_obj, &n)) in estimate_noise_py() 170 int noise_factor = estimate_noise(dt, bw, hrmode, x, n); in estimate_noise_py()
|
D | spec.py | 761 def check_noise(rng, dt, bw, hrmode = False): argument 767 xq_off = [ 0.375, 0.5 ][hrmode] 776 nf_c = lc3.spec_estimate_noise(dt, bw, hrmode, x, nq)
|