Lines Matching defs:pulses
260 static void convolute_with_sparse(float *out, const AMRFixed *pulses,
266 for (i = 0; i < pulses->n; i++)
267 for (j = pulses->x[i]; j < length; j++)
268 out[j] += pulses->y[i] * shape[j - pulses->x[i]];
309 static void decode_fixed_sparse(AMRFixed *fixed_sparse, const int16_t *pulses,
317 fixed_sparse->x[i] = 3 * (pulses[i] & 0xf) + i;
318 fixed_sparse->y[i] = pulses[i] & 0x10 ? -1 : 1;
324 fixed_sparse->x[2*i ] = 3 * ((pulses[i] >> 4) & 0xf) + i;
325 fixed_sparse->x[2*i + 1] = 3 * ( pulses[i] & 0xf) + i;
327 fixed_sparse->y[2*i ] = (pulses[i] & 0x100) ? -1.0: 1.0;
339 int offset = (pulses[0] & 0x200) ? 2 : 0;
340 int val = pulses[0];
352 int pulse_subset = (pulses[0] >> 8) & 1;
354 fixed_sparse->x[0] = ((pulses[0] >> 4) & 15) * 3 + pulse_subset;
355 fixed_sparse->x[1] = ( pulses[0] & 15) * 3 + pulse_subset + 1;
357 fixed_sparse->y[0] = pulses[0] & 0x200 ? -1 : 1;