Home
last modified time | relevance | path

Searched refs:int (Results 1 – 17 of 17) sorted by relevance

/liblc3-latest/python/
Dlc3.py53 frame_duration_us: int, argument
54 sample_rate_hz: int, argument
55 num_channels: int, argument
57 pcm_sample_rate_hz: int | None = None,
142 def get_frame_samples(self) -> int:
153 def get_frame_bytes(self, bitrate: int) -> int: argument
170 def resolve_bitrate(self, num_bytes: int) -> int: argument
181 def get_delay_samples(self) -> int:
193 def _resolve_pcm_format(cls, bit_depth: int | None) -> tuple[
232 frame_duration_us: int, argument
[all …]
/liblc3-latest/test/
Dspec.py78 nbits = int(nbits_spec + nbits_off + 0.5)
90 bitrate = (8 * nbytes / (dt_ms * 1e-3)).astype(int)
138 g_min = np.ceil(g_min).astype(int) - g_off
171 mode = [ 0, 1 ][int(self.sr < T.SRATE_96K_HR and \
173 rate = [ 0, 512 ][int(self.sr < T.SRATE_96K_HR and \
211 nbits_lsb += int(a_lsb == 0 and x[n ] != 0)
212 nbits_lsb += int(b_lsb == 0 and x[n+1] != 0)
253 delta = np.fix(delta + 0.5).astype(int)
259 g_incr = int(factor * (1 + (nbits - nbits_spec) / delta))
283 return min(max(np.rint(8 - 16 * l_nf).astype(int), 0), 7)
[all …]
Dbitstream.py97 (8*self.bp_bw + 8 - int(math.log2(self.mask_bw)))
100 (25 - int(math.floor(math.log2(self.range))))
175 (8*self.bp_bw + 8 - int(math.log2(self.mask_bw)))
177 nbits_ac = 8 * self.bp + (25 - int(math.floor(math.log2(self.range))))
Dtns.py135 nbits_order = T.TNS_ORDER_BITS[int(lpc_weighting)][rc_order]
204 rc_i = np.rint(np.arcsin(rc) / delta).astype(int) + 8
284 T.TNS_ORDER_CUMFREQ[int(lpc_weighting)][rc_order-1],
285 T.TNS_ORDER_FREQ[int(lpc_weighting)][rc_order-1] )
323 T.TNS_ORDER_CUMFREQ[int(self.lpc_weighting)],
324 T.TNS_ORDER_FREQ[int(self.lpc_weighting)])
360 nbytes_lim = int((48 * T.DT_MS[dt]) // 8)
398 synthesis.nfilters = 1 + int(dt >= T.DT_5M and bw >= T.SRATE_32K)
Dattdet.py59 mf = int(16 * self.ms)
73 nb = int(self.ms / 2.5)
136 x[(ns * rng.random()).astype(int)] *= 2 ** 7
Dltpf.py33 self.n = ((T.DT_MS[dt] * 128) / 10).astype(int)
161 return 1 + 10 * int(self.pitch_present)
197 ti = int(nc[1] > 0.85 * nc[0])
312 max_pitch = np.ceil(max_pitch).astype(int)
353 self.p_e[0] = int(p * 4 + 0.5) // 4
354 self.p_f[0] = int(p * 4 + 0.5) - 4*self.p_e[0]
358 nbits = int(nbits * (1 - 0.4))
Dsns.py226 y3 = np.floor(x * proj_fac).astype(int)
289 y0 *= np.sign(t2_rot).astype(int)
290 y1 *= np.sign(t2_rot).astype(int)
291 y2 *= np.sign(t2_rot).astype(int)
292 y3 *= np.sign(t2_rot).astype(int)
395 y[pos] = [ yi, -yi ][int(ls)]
Ddecoder.py100 dec_c = lc3.setup_decoder(int(T.DT_MS[dt] * 1000), 16000)
Dbwdet.py86 1 + np.log2(self.sr).astype(int)
Dencoder.py108 enc_c = lc3.setup_encoder(int(T.DT_MS[dt] * 1000), 16000)
Dtables.py44 NS = np.array([(SRATE_KHZ * DT_MS[dt]).astype(int) for dt in range(NUM_DT) ])
Dappendix_c.py24 NBYTES = (32e3 * np.array([ 7.5e-3, 10e-3 ]) / 8).astype(int)
1683 NBYTES_ATT = (88e3 * np.array([ 7.5e-3, 10e-3 ]) / 8).astype(int)
/liblc3-latest/python/tools/
Dencoder.py37 '--bitrate', help='Bitrate in bps', type=int, required=True)
60 int(args.frame_duration)*1000, samplerate, nchannels, libpath=args.libpath)
71 int(args.frame_duration * 100), 0, stream_length))
Dspecgram.py39 '--bitrate', help='Bitrate (bps)', type=int, default=96000)
60 n = 10 * int(fs)
Ddecoder.py39 type=int, choices=[16, 24], default=16)
/liblc3-latest/tables/
Dfastmath.py28 e = int((x - m) * 8)
114 .format(int(np.ldexp(a, 15) + 0.5),
115 int(np.ldexp(b - a, 15) + 0.5)),
Dmktables.py190 h = np.rint(np.append(LTPF_H12K8, 0.) * q * 2**15).astype(int)
207 h = np.rint(np.append(LTPF_HI, 0.) * 2**15).astype(int)