Home
last modified time | relevance | path

Searched refs:p (Results 1 – 8 of 8) sorted by relevance

/liblc3-3.7.0-3.6.0/tables/
Dfastmath.py22 def fast_exp2(x, p): argument
24 p = p.astype(np.float32)
27 y = (((((p[0]*x) + p[1])*x + p[2])*x + p[3])*x + p[4])*x + 1
35 p = np.polyfit(x, ((2 ** (x/16)) - 1) / x, 4)
36 y = [ fast_exp2(x[i], p) for i in range(len(x)) ]
40 .format(p[0], p[1], p[2], p[3], p[4]))
57 def fast_log2(x, p): argument
59 p = p.astype(np.float32)
64 y = ((((p[0]*x) + p[1])*x + p[2])*x + p[3])*x + p[4]
71 p = np.polyfit(x, np.log2(x), 4)
[all …]
Dmktables.py183 p = (192 // k) * (k // sr)
184 q = p * (0.5 if sr == 8 else 1)
189 h = h.reshape((len(h) // p, p)).T
/liblc3-3.7.0-3.6.0/tools/
Ddlc3.c87 struct parameters p = { .bitdepth = 16 }; in parse_args() local
108 case 'b': p.bitdepth = atoi(optarg); break; in parse_args()
109 case 'r': p.srate_hz = atoi(optarg); 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()
147 struct parameters p = parse_args(argc, argv); in main() local
150 if (p.fname_in && (fp_in = fopen(p.fname_in, "rb")) == NULL) in main()
[all …]
Delc3.c81 struct parameters p = { .frame_ms = 10 }; in parse_args() local
102 case 'b': p.bitrate = atoi(optarg); break; in parse_args()
103 case 'm': p.frame_ms = atof(optarg); break; in parse_args()
104 case 'r': p.srate_hz = atoi(optarg); break; in parse_args()
111 if (!p.fname_in) in parse_args()
112 p.fname_in = arg; in parse_args()
113 else if (!p.fname_out) in parse_args()
114 p.fname_out = arg; in parse_args()
120 return p; in parse_args()
146 struct parameters p = parse_args(argc, argv); in main() local
[all …]
/liblc3-3.7.0-3.6.0/test/neon/
Dneon.h44 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-3.7.0-3.6.0/src/
Dltpf_arm.h48 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()
Dltpf.c183 LC3_HOT static inline void resample_x64k_12k8(const int p, const int16_t *h, in resample_x64k_12k8() argument
186 const int w = 2*(40 / p); in resample_x64k_12k8()
191 const int16_t *hn = h + (i % p) * w; in resample_x64k_12k8()
192 const int16_t *xn = x + (i / p); 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
230 const int w = 2*(120 / p); in resample_x192k_12k8()
235 const int16_t *hn = h + (i % p) * w; in resample_x192k_12k8()
236 const int16_t *xn = x + (i / p); in resample_x192k_12k8()
/liblc3-3.7.0-3.6.0/test/
Dltpf.py30 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) )
344 p = (p_e + p_f / 4) * T.SRATE_KHZ[self.sr] / 12.8
346 self.p_e[0] = int(p * 4 + 0.5) // 4
[all …]