Searched refs:len (Results 1 – 15 of 15) sorted by relevance
/liblc3-3.5.0-3.4.0/tables/ |
D | mktables.py | 95 if len(t) % 4: 187 h = h.reshape((len(h) // p, p)).T 191 for i in range(0, len(h), 192 // k): 192 for j in range(0, len(h[i]), 10): 205 h = h.reshape(len(h) // 4, 4).T 209 for i in range(len(h)):
|
D | fastmath.py | 36 y = [ fast_exp2(x[i], p) for i in range(len(x)) ] 74 y = [ fast_log2(x[i], p) for i in range(len(x)) ]
|
/liblc3-3.5.0-3.4.0/test/ |
D | energy.py | 34 for i in range(len(self.I)-1) ] 36 e_lo = np.sum(e[:len(e) - [4, 2][self.dt]]) 37 e_hi = np.sum(e[len(e) - [4, 2][self.dt]:]) 39 return np.append(e, np.zeros(64-len(e))), (e_hi > 30*e_lo)
|
D | encoder.py | 115 for i in range(len(C.X_PCM[dt])): 134 for i in range(0, len(data), 20): 136 for x in data[i:min(i+20, len(data))] )) 179 sr_hz // 100, args.bitrate // 100, 1, int(args.dt * 100), 0, len(pcm)) 186 if len(pcm) % frame_samples > 0: 187 pcm = np.append(pcm, np.zeros(frame_samples - (len(pcm) % frame_samples))) 189 for i in range(0, len(pcm), frame_samples):
|
D | decoder.py | 63 self.tns.load(b, bw, len(data)) 74 x = self.spec.decode(b, bw, len(data)) 87 x = self.ltpf.run(x, len(data)) 95 x = self.synthesize(x, bw, pitch, len(data)) 107 for i in range(len(C.BYTES_AC[dt])): 170 if len(data) != 2:
|
D | bitstream.py | 25 self.bp_bw = len(data) - 1 36 for i in range(0, len(b), 20): 38 for x in b[i:min(i+20, len(b))] )) 76 val = len(cum_freqs) - 1 94 nbits = 8 * len(self.bytes) 172 nbits = 8 * len(self.bytes)
|
D | tns.py | 112 for k in range(len(r) if sum(e) > 0 else 0): 123 a = np.ones(len(r)) 125 for k in range(1, len(a)): 139 return a * np.power(gamma, np.arange(len(a))) 159 rc_order = len(rc_i) - np.argmin(rc_i[::-1] == 8) 165 y = np.empty(len(x)) 167 for i in range(len(x)): 188 self.nfilters = len(Tns.SUB_LIM[self.dt][bw]) 246 for i in range(len(x)): 260 self.nfilters = len(Tns.SUB_LIM[self.dt][bw]) [all …]
|
D | sns.py | 57 scf_i = np.empty(4*len(scf)) 67 n2 = 64 - min(len(x), 64) 77 y = np.empty(len(x)) 80 for b in range(len(g_sns)): 98 n2 = 64 - len(e) 106 e_s = np.zeros(len(e)) 119 e_p = np.fmax(e_p, noise_floor * np.ones(len(e))) 129 e_4 = np.zeros(len(e_l) // 4) 138 scf_a = np.zeros(len(scf)) 269 for i in range(len(G[j])) ] for j in range(4) ] [all …]
|
D | spec.py | 50 xq = np.append(xq[:lastnz], np.zeros(len(xq) - lastnz)) 79 e = [ np.sum(x[4*k:4*(k+1)] ** 2) for k in range(len(x) // 4) ] 132 lastnz = len(xq) - 2 * np.argmax(nz_pairs[-1::-1]) 151 if n > len(x) // 2: 254 nbits_ari = np.ceil(np.log2(len(x) / 2)).astype(int) 331 if n > len(x) // 2: 386 for i in range(len(self.xg)): 397 nbits_residual = min(bits.get_bits_left(), len(lsbs)) 447 levs = np.zeros(len(x), dtype=np.int) 452 if n > len(x) // 2: [all …]
|
D | ltpf.py | 53 if len(self.y) > 2*n + d: 55 if len(self.y) > n + d: 108 if len(self.y) > 2*n: 110 if len(self.y) > n: 187 rw = r * (1 - 0.5 * np.arange(len(r)) / (len(r) - 1)) 191 k1 = min(len(r)-1, tc+4) 308 self.y = np.zeros(max_pitch + len(self.C_D[0])) 370 l_n = len(c_n[0]) 371 l_d = len(c_d[0]) 481 u = y[-k:len(C.X_TILDE_12K8D[dt][0])-k] [all …]
|
D | setup.py | 21 if len(sys.argv) <= 1:
|
D | mdct.py | 54 n = len(t) 75 n = len(x)
|
D | attdet.py | 61 r = len(x) // mf
|
/liblc3-3.5.0-3.4.0/src/ |
D | bits.c | 81 enum lc3_bits_mode mode, void *buffer, int len) in lc3_setup_bits() argument 93 .start = (uint8_t *)buffer, .end = (uint8_t *)buffer + len, in lc3_setup_bits() 94 .p_fw = (uint8_t *)buffer, .p_bw = (uint8_t *)buffer + len, in lc3_setup_bits()
|
D | bits.h | 133 enum lc3_bits_mode mode, void *buffer, int len);
|