Home
last modified time | relevance | path

Searched refs:len (Results 1 – 15 of 15) sorted by relevance

/liblc3-3.5.0-3.4.0/tables/
Dmktables.py95 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)):
Dfastmath.py36 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/
Denergy.py34 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)
Dencoder.py115 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):
Ddecoder.py63 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:
Dbitstream.py25 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)
Dtns.py112 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 …]
Dsns.py57 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 …]
Dspec.py50 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 …]
Dltpf.py53 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 …]
Dsetup.py21 if len(sys.argv) <= 1:
Dmdct.py54 n = len(t)
75 n = len(x)
Dattdet.py61 r = len(x) // mf
/liblc3-3.5.0-3.4.0/src/
Dbits.c81 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()
Dbits.h133 enum lc3_bits_mode mode, void *buffer, int len);