Lines Matching defs:offset
710 static inline void do_imdct(AC3DecodeContext *s, int channels, int offset)
722 s->fdsp->vector_fmul_window_scaled(s->outptr[ch - 1], s->delay[ch - 1 + offset],
725 s->fdsp->vector_fmul_window(s->outptr[ch - 1], s->delay[ch - 1 + offset],
730 s->imdct_256.imdct_half(&s->imdct_256, s->delay[ch - 1 + offset], x);
734 s->fdsp->vector_fmul_window_scaled(s->outptr[ch - 1], s->delay[ch - 1 + offset],
737 s->fdsp->vector_fmul_window(s->outptr[ch - 1], s->delay[ch - 1 + offset],
740 memcpy(s->delay[ch - 1 + offset], s->tmp_output + 128, 128 * sizeof(FFTSample));
1090 static int decode_audio_block(AC3DecodeContext *s, int blk, int offset)
1269 /* snr offset */
1272 /* run at least last bit allocation stage if snr offset changes */
1307 /* E-AC-3 to AC-3 converter SNR offset */
1309 skip_bits(gbc, 10); // skip converter snr offset
1344 /* channel delta offset, len and bit allocation */
1453 do_imdct(s, s->channels, offset);
1476 do_imdct(s, s->out_channels, offset);
1491 int blk, ch, err, offset, ret;
1650 offset = s->frame_type == EAC3_FRAME_TYPE_DEPENDENT ? AC3_MAX_CHANNELS : 0;
1652 output[ch] = s->output[ch + offset];
1653 s->outptr[ch] = s->output[ch + offset];
1657 s->outptr[channel_map[ch]] = s->output_buffer[ch + offset];
1660 if (!err && decode_audio_block(s, blk, offset)) {
1666 memcpy(s->output_buffer[ch + offset] + AC3_BLOCK_SIZE*blk, output[ch], AC3_BLOCK_SIZE*sizeof(SHORTFLOAT));
1677 memcpy(s->output[ch + offset], output[ch], AC3_BLOCK_SIZE*sizeof(SHORTFLOAT));
1756 extended_channel_map[index] = offset + channel_map[extend++];
1768 extended_channel_map[index] = offset + channel_map[extend++];