/liblc3-latest/tools/ |
D | elc3.c | 85 struct parameters p = { .frame_ms = 10 }; in parse_args() local 106 case 'b': p.bitrate = atoi(optarg); break; in parse_args() 107 case 'm': p.frame_ms = atof(optarg); break; in parse_args() 108 case 'r': p.srate_hz = atoi(optarg); break; in parse_args() 109 case 'H': p.hrmode = true; break; in parse_args() 116 if (!p.fname_in) in parse_args() 117 p.fname_in = arg; in parse_args() 118 else if (!p.fname_out) in parse_args() 119 p.fname_out = arg; in parse_args() 125 return p; in parse_args() [all …]
|
D | dlc3.c | 89 struct parameters p = { .bitdepth = 16 }; in parse_args() local 110 case 'b': p.bitdepth = atoi(optarg); break; in parse_args() 111 case 'r': p.srate_hz = atoi(optarg); break; in parse_args() 118 if (!p.fname_in) in parse_args() 119 p.fname_in = arg; in parse_args() 120 else if (!p.fname_out) in parse_args() 121 p.fname_out = arg; in parse_args() 127 return p; in parse_args() 149 struct parameters p = parse_args(argc, argv); in main() local 152 if (p.fname_in && (fp_in = fopen(p.fname_in, "rb")) == NULL) in main() [all …]
|
/liblc3-latest/tables/ |
D | fastmath.py | 22 def fast_exp2(x, t, p): argument 24 p = p.astype(np.float32) 30 y = ((((p[0]*m) + p[1])*m + p[2])*m + p[3])*m + p[4] 38 p = np.polyfit(x, 2 ** x, 4) 42 y = [ fast_exp2(x[i], t, p) for i in range(len(x)) ] 48 print('{{ {:14.8e}, {:14.8e}, {:14.8e}, {:14.8e}, {:14.8e} }}'.format(*p)) 65 def fast_log2(x, p): argument 67 p = p.astype(np.float32) 72 y = ((((p[0]*x) + p[1])*x + p[2])*x + p[3])*x + p[4] 79 p = np.polyfit(x, np.log2(x), 4) [all …]
|
D | mktables.py | 185 p = (192 // k) * (k // sr) 186 q = p * (0.5 if sr == 8 else 1) 191 h = h.reshape((len(h) // p, p)).T
|
/liblc3-latest/test/neon/ |
D | neon.h | 44 static int16x4_t vld1_s16(const int16_t *p) in vld1_s16() argument 46 return (int16x4_t){ { p[0], p[1], p[2], p[3] } }; in vld1_s16() 141 static float32x2_t vld1_f32(const float *p) in vld1_f32() argument 143 return (float32x2_t){ { p[0], p[1] } }; in vld1_f32() 147 static float32x4_t vld1q_f32(const float *p) in vld1q_f32() argument 149 return (float32x4_t){ { p[0], p[1], p[2], p[3] } }; in vld1q_f32() 153 static float32x4_t vld1q_dup_f32(const float *p) in vld1q_dup_f32() argument 155 return (float32x4_t){ { p[0], p[0], p[0], p[0] } }; in vld1q_dup_f32() 159 static float32x2x2_t vld2_f32(const float *p) in vld2_f32() argument 161 return (float32x2x2_t){ .val[0] = { { p[0], p[2] } }, in vld2_f32() [all …]
|
/liblc3-latest/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 51 const int w = 40 / p; in arm_resample_x64k_12k8() 56 const int16x2_t *hn = h + (i % (2*p)) * (48 / p); in arm_resample_x64k_12k8() 57 const int16x2_t *xn = x + (i / (2*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 82 const int w = 120 / p; in arm_resample_x192k_12k8() 87 const int16x2_t *hn = h + (i % (2*p)) * (128 / p); in arm_resample_x192k_12k8() 88 const int16x2_t *xn = x + (i / (2*p)); in arm_resample_x192k_12k8()
|
D | fastmath.h | 87 static const float p[] = { in lc3_exp2f() local 109 y.f = ( p[0]) * x; in lc3_exp2f() 110 y.f = (y.f + p[1]) * x; in lc3_exp2f() 111 y.f = (y.f + p[2]) * x; in lc3_exp2f() 112 y.f = (y.f + p[3]) * x; in lc3_exp2f()
|
D | ltpf.c | 213 LC3_HOT static inline void resample_x64k_12k8(const int p, const int16_t *h, in resample_x64k_12k8() argument 216 const int w = 2*(40 / p); in resample_x64k_12k8() 221 const int16_t *hn = h + (i % p) * w; in resample_x64k_12k8() 222 const int16_t *xn = x + (i / p); in resample_x64k_12k8() 258 LC3_HOT static inline void resample_x192k_12k8(const int p, const int16_t *h, in resample_x192k_12k8() argument 261 const int w = 2*(120 / p); in resample_x192k_12k8() 266 const int16_t *hn = h + (i % p) * w; in resample_x192k_12k8() 267 const int16_t *xn = x + (i / p); in resample_x192k_12k8()
|
/liblc3-latest/test/ |
D | ltpf.py | 30 self.p = 192 // T.SRATE_KHZ[sr] 31 self.w = 240 // self.p 42 p = self.p 64 h = np.zeros(240 + p) 69 e = (15 * i) // p 70 f = (15 * i) % p 71 k = np.arange(-120, 120 + p, p) - f 72 u[2+i] = p * np.dot( x[e:e+w+1], np.take(h, k) ) 351 p = (p_e + p_f / 4) * T.SRATE_KHZ[self.sr] / 12.8 353 self.p_e[0] = int(p * 4 + 0.5) // 4 [all …]
|