Home
last modified time | relevance | path

Searched refs:dt_us (Results 1 – 5 of 5) sorted by relevance

/liblc3-3.5.0-3.4.0/include/
Dlc3_private.h33 #define __LC3_NS(dt_us, sr_hz) \ argument
34 ( (dt_us * sr_hz) / 1000 / 1000 )
36 #define __LC3_ND(dt_us, sr_hz) \ argument
37 ( (dt_us) == 7500 ? 23 * __LC3_NS(dt_us, sr_hz) / 30 \
38 : 5 * __LC3_NS(dt_us, sr_hz) / 8 )
43 #define __LC3_NH(dt_us, sr_hz) \ argument
44 ( ((3 - ((dt_us) >= 10000)) + 1) * __LC3_NS(dt_us, sr_hz) )
114 #define LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) \ argument
115 ( ( __LC3_NS(dt_us, sr_hz) + __LC3_NT(sr_hz) ) / 2 + \
116 __LC3_NS(dt_us, sr_hz) + __LC3_ND(dt_us, sr_hz) )
[all …]
Dlc3.h199 int lc3_frame_samples(int dt_us, int sr_hz);
207 int lc3_frame_bytes(int dt_us, int bitrate);
215 int lc3_resolve_bitrate(int dt_us, int nbytes);
223 int lc3_delay_samples(int dt_us, int sr_hz);
234 unsigned lc3_encoder_size(int dt_us, int sr_hz);
251 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
274 unsigned lc3_decoder_size(int dt_us, int sr_hz);
291 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
/liblc3-3.5.0-3.4.0/test/
Dlc3_py.c32 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-3.5.0-3.4.0/src/
Dlc3.c79 int lc3_frame_samples(int dt_us, int sr_hz) in lc3_frame_samples() argument
81 enum lc3_dt dt = resolve_dt(dt_us); in lc3_frame_samples()
93 int lc3_frame_bytes(int dt_us, int bitrate) in lc3_frame_bytes() argument
95 if (resolve_dt(dt_us) >= LC3_NUM_DT) in lc3_frame_bytes()
104 int nbytes = ((unsigned)bitrate * dt_us) / (1000*1000*8); in lc3_frame_bytes()
112 int lc3_resolve_bitrate(int dt_us, int nbytes) in lc3_resolve_bitrate() argument
114 if (resolve_dt(dt_us) >= LC3_NUM_DT) in lc3_resolve_bitrate()
123 int bitrate = ((unsigned)nbytes * (1000*1000*8) + dt_us/2) / dt_us; in lc3_resolve_bitrate()
131 int lc3_delay_samples(int dt_us, int sr_hz) in lc3_delay_samples() argument
133 enum lc3_dt dt = resolve_dt(dt_us); in lc3_delay_samples()
[all …]
Dltpf.c795 int dt_us = LC3_DT_US(dt); in lc3_ltpf_synthesize() local
807 int nbits = (nbytes*8 * 10000 + (dt_us/2)) / dt_us; in lc3_ltpf_synthesize()