/liblc3-latest/include/ |
D | lc3_private.h | 40 #define LC3_NS(dt_us, sr_hz) \ argument 41 ( (dt_us) * (sr_hz) / 1000 / 1000 ) 43 #define LC3_ND(dt_us, sr_hz) \ argument 44 ( LC3_NS(dt_us, sr_hz) / 2 + \ 45 LC3_NS((dt_us) == 7500 ? 2000 : 1250, sr_hz) ) 47 #define LC3_NH(dt_us, sr_hz) \ argument 49 LC3_NS(dt_us, sr_hz) - (LC3_NS(18000, sr_hz) % LC3_NS(dt_us, sr_hz)) ) ) 127 #define LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) \ argument 128 ( ( LC3_NS(dt_us, sr_hz) + LC3_NT(sr_hz) ) / 2 + \ 129 LC3_NS(dt_us, sr_hz) + LC3_ND(dt_us, sr_hz) ) [all …]
|
D | lc3.h | 265 LC3_EXPORT int lc3_hr_frame_samples(bool hrmode, int dt_us, int sr_hz); 267 LC3_EXPORT int lc3_frame_samples(int dt_us, int sr_hz); 279 bool hrmode, int dt_us, int sr_hz, int bitrate); 281 LC3_EXPORT int lc3_frame_bytes(int dt_us, int bitrate); 295 bool hrmode, int dt_us, int sr_hz, int nchannels, int bitrate); 297 LC3_EXPORT int lc3_frame_block_bytes(int dt_us, int nframes, int bitrate); 308 bool hrmode, int dt_us, int sr_hz, int nbytes); 310 LC3_EXPORT int lc3_resolve_bitrate(int dt_us, int nbytes); 319 LC3_EXPORT int lc3_hr_delay_samples(bool hrmode, int dt_us, int sr_hz); 321 LC3_EXPORT int lc3_delay_samples(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 54 : dt_us_(dt_us), in Base() 128 Encoder(int dt_us, int sr_hz, int sr_pcm_hz = 0, 130 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode) { in Base() argument 236 Decoder(int dt_us, int sr_hz, int sr_pcm_hz = 0, 238 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode) { in Base() argument
|
/liblc3-latest/test/ |
D | lc3_py.c | 32 int dt_us, sr_hz; in setup_encoder_py() local 34 if (!PyArg_ParseTuple(args, "ii", &dt_us, &sr_hz)) in setup_encoder_py() 37 CTYPES_CHECK("dt_us", LC3_CHECK_DT_US(dt_us)); in setup_encoder_py() 40 lc3_encoder_t encoder = lc3_setup_encoder(dt_us, sr_hz, 0, in setup_encoder_py() 41 malloc(lc3_encoder_size(dt_us, sr_hz))); in setup_encoder_py() 81 int dt_us, sr_hz; in setup_decoder_py() local 83 if (!PyArg_ParseTuple(args, "ii", &dt_us, &sr_hz)) in setup_decoder_py() 86 CTYPES_CHECK("dt_us", LC3_CHECK_DT_US(dt_us)); in setup_decoder_py() 89 lc3_decoder_t decoder = lc3_setup_decoder(dt_us, sr_hz, 0, in setup_decoder_py() 90 malloc(lc3_decoder_size(dt_us, sr_hz))); in setup_decoder_py()
|
/liblc3-latest/src/ |
D | lc3.c | 89 LC3_EXPORT int lc3_hr_frame_samples(bool hrmode, int dt_us, int sr_hz) in lc3_hr_frame_samples() argument 91 enum lc3_dt dt = resolve_dt(dt_us, hrmode); in lc3_hr_frame_samples() 100 LC3_EXPORT int lc3_frame_samples(int dt_us, int sr_hz) in lc3_frame_samples() argument 102 return lc3_hr_frame_samples(false, dt_us, sr_hz); in lc3_frame_samples() 109 bool hrmode, int dt_us, int sr_hz, int nchannels, int bitrate) in lc3_hr_frame_block_bytes() argument 111 enum lc3_dt dt = resolve_dt(dt_us, hrmode); in lc3_hr_frame_block_bytes() 125 LC3_EXPORT int lc3_frame_bock_bytes(int dt_us, int nchannels, int bitrate) in lc3_frame_bock_bytes() argument 127 return lc3_hr_frame_block_bytes(false, dt_us, 8000, nchannels, bitrate); in lc3_frame_bock_bytes() 131 bool hrmode, int dt_us, int sr_hz, int bitrate) in lc3_hr_frame_bytes() argument 133 return lc3_hr_frame_block_bytes(hrmode, dt_us, sr_hz, 1, bitrate); in lc3_hr_frame_bytes() [all …]
|
/liblc3-latest/python/ |
D | lc3.py | 105 lc3_hr_frame_samples = lambda hrmode, dt_us, sr_hz: lib.lc3_frame_samples( argument 106 dt_us, sr_hz 109 lambda hrmode, dt_us, sr_hz, num_channels, bitrate: num_channels 110 * lib.lc3_frame_bytes(dt_us, bitrate // 2) 113 lambda hrmode, dt_us, sr_hz, nbytes: lib.lc3_resolve_bitrate( 114 dt_us, nbytes 117 lc3_hr_delay_samples = lambda hrmode, dt_us, sr_hz: lib.lc3_delay_samples( argument 118 dt_us, sr_hz 258 lc3_hr_encoder_size = lambda hrmode, dt_us, sr_hz: lib.lc3_encoder_size( argument 259 dt_us, sr_hz [all …]
|
/liblc3-latest/fuzz/ |
D | dfuzz.cc | 31 int dt_us = fdp.PickValueInArray(dt_list); in LLVMFuzzerTestOneInput() local 40 Decoder dec(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode); in LLVMFuzzerTestOneInput()
|
D | efuzz.cc | 78 int dt_us = fdp.PickValueInArray(dt_list); in LLVMFuzzerTestOneInput() local 87 Encoder enc(dt_us, sr_hz, sr_pcm_hz, nchannels, hrmode); in LLVMFuzzerTestOneInput()
|