Lines Matching refs:pulse
1417 * Decode pulse data; reference: table 4.7.
1419 static int decode_pulses(Pulse *pulse, GetBitContext *gb,
1423 pulse->num_pulse = get_bits(gb, 2) + 1;
1427 pulse->pos[0] = swb_offset[pulse_swb];
1428 pulse->pos[0] += get_bits(gb, 5);
1429 if (pulse->pos[0] >= swb_offset[num_swb])
1431 pulse->amp[0] = get_bits(gb, 4);
1432 for (i = 1; i < pulse->num_pulse; i++) {
1433 pulse->pos[i] = get_bits(gb, 5) + pulse->pos[i - 1];
1434 if (pulse->pos[i] >= swb_offset[num_swb])
1436 pulse->amp[i] = get_bits(gb, 4);
1578 * @param pulse pointer to pulse data struct
1585 int pulse_present, const Pulse *pulse,
1781 for (i = 0; i < pulse->num_pulse; i++) {
1782 float co = coef_base[ pulse->pos[i] ];
1783 while (offsets[idx + 1] <= pulse->pos[i])
1786 float ico = -pulse->amp[i];
1791 coef_base[ pulse->pos[i] ] = cbrtf(fabsf(ico)) * ico * sf[idx];
1895 Pulse pulse;
1911 pulse.num_pulse = 0;
1935 if (decode_pulses(&pulse, gb, ics->swb_offset, ics->num_swb)) {
1957 &pulse, ics, sce->band_type) < 0)