/liblc3-3.5.0-3.4.0/tables/ |
D | mktables.py | 186 h = np.rint(np.append(LTPF_H12K8, 0.) * q * 2**15).astype(int) 187 h = h.reshape((len(h) // p, p)).T 188 h = np.flip(h, axis=0) 189 print('... Gain:', np.max(np.sum(np.abs(h), axis=1)) / 32768.) 191 for i in range(0, len(h), 192 // k): 192 for j in range(0, len(h[i]), 10): 195 h[i][j+0], h[i][j+1], h[i][j+2], h[i][j+3], h[i][j+4], 196 h[i][j+5], h[i][j+6], h[i][j+7], h[i][j+8], h[i][j+9])) 203 h = np.rint(np.append(LTPF_HI, 0.) * 2**15).astype(int) 205 h = h.reshape(len(h) // 4, 4).T [all …]
|
/liblc3-3.5.0-3.4.0/src/ |
D | ltpf_arm.h | 48 static inline void arm_resample_x64k_12k8(const int p, const int16x2_t *h, in arm_resample_x64k_12k8() argument 56 const int16x2_t *hn = h + (i % (2*p)) * (48 / p); in arm_resample_x64k_12k8() 79 static inline void arm_resample_x192k_12k8(const int p, const int16x2_t *h, in arm_resample_x192k_12k8() argument 87 const int16x2_t *hn = h + (i % (2*p)) * (128 / p); in arm_resample_x192k_12k8() 124 static const int16_t alignas(int32_t) h[2*8*12] = { in arm_resample_8k_12k8() 144 8, (const int16x2_t *)h, hp50, (int16x2_t *)x, y, n); in arm_resample_8k_12k8() 161 static const int16_t alignas(int32_t) h[2*4*24] = { in arm_resample_16k_12k8() 202 4, (const int16x2_t *)h, hp50, (int16x2_t *)x, y, n); in arm_resample_16k_12k8() 219 static const int16_t alignas(int32_t) h[2*2*48] = { in arm_resample_32k_12k8() 251 2, (const int16x2_t *)h, hp50, (int16x2_t *)x, y, n); in arm_resample_32k_12k8() [all …]
|
D | ltpf.c | 183 LC3_HOT static inline void resample_x64k_12k8(const int p, const int16_t *h, in resample_x64k_12k8() argument 191 const int16_t *hn = h + (i % p) * w; in resample_x64k_12k8() 227 LC3_HOT static inline void resample_x192k_12k8(const int p, const int16_t *h, in resample_x192k_12k8() argument 235 const int16_t *hn = h + (i % p) * w; in resample_x192k_12k8() 353 static const int16_t h[] = { 18477, 15424, 8105 }; in resample_6k4() local 357 *(y++) = (x[0] * h[0] + (x[-1] + x[1]) * h[1] in resample_6k4() 358 + (x[-2] + x[2]) * h[2]) >> 16; in resample_6k4() 473 const int16_t *h = h4_q15[d]; in interpolate() local 480 yn = (x0 = *(x++)) * h[0] + x1 * h[1] + x2 * h[2] + x3 * h[3]; in interpolate() 483 yn = (x3 = *(x++)) * h[0] + x0 * h[1] + x1 * h[2] + x2 * h[3]; in interpolate() [all …]
|
D | spec.c | 303 for (int i = 0, h = 0; h < 2; h++) { in compute_nbits() local 304 const uint8_t (*lut_coeff)[4] = lc3_spectrum_lookup[high_rate][h]; in compute_nbits() 306 for ( ; i < LC3_MIN(*n, (ne + 2) >> (1 - h)) in compute_nbits() 394 for (int i = 0, h = 0; h < 2; h++) { in put_quantized() local 395 const uint8_t (*lut_coeff)[4] = lc3_spectrum_lookup[high_rate][h]; in put_quantized() 397 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in put_quantized() 471 for (int i = 0, h = 0; h < 2; h++) { in get_quantized() local 472 const uint8_t (*lut_coeff)[4] = lc3_spectrum_lookup[high_rate][h]; in get_quantized() 474 for ( ; i < LC3_MIN(nq, (ne + 2) >> (1 - h)); i += 2) { in get_quantized()
|
D | ltpf_neon.h | 42 static const int16_t h[4][20] = { in neon_resample_16k_12k8() local 61 const int16_t *hn = h[i & 3]; in neon_resample_16k_12k8() 92 static const int16_t h[2][40] = { in neon_resample_32k_12k8() local 107 const int16_t *hn = h[i & 1]; in neon_resample_32k_12k8() 135 static const int16_t alignas(16) h[4][64] = { in neon_resample_48k_12k8() 170 const int16_t *hn = h[i & 3]; in neon_resample_48k_12k8()
|
D | meson.build | 38 install_headers('../include/lc3.h', '../include/lc3_private.h')
|
/liblc3-3.5.0-3.4.0/test/ |
D | ltpf.py | 64 h = np.zeros(240 + p) 65 h[-119:] = T.LTPF_H12K8[:119] 66 h[ :120] = T.LTPF_H12K8[119:] 72 u[2+i] = p * np.dot( x[e:e+w+1], np.take(h, k) ) 115 h = [ 0.1236796411180537, 0.2353512128364889, 0.2819382920909148, 118 self.y[:n] = [ np.dot(x[2*i:2*i+5], h) for i in range(self.n) ] 213 h = np.zeros(42) 214 h[-15:] = T.LTPF_H4[:15] 215 h[ :16] = T.LTPF_H4[15:] 218 s = [ np.dot( np.take(r, e-k0+4 + m), np.take(h, 4*m-d) ) \ [all …]
|
/liblc3-3.5.0-3.4.0/ |
D | README.md | 58 Refer to `elc3 -h` or `dlc3 -h` for options.
|