Lines Matching defs:blk
630 static inline void decode_transform_coeffs_ch(AC3DecodeContext *s, int blk,
639 if (CONFIG_EAC3_DECODER && !blk)
642 s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin];
650 static inline void decode_transform_coeffs(AC3DecodeContext *s, int blk)
660 decode_transform_coeffs_ch(s, blk, ch, &m);
665 decode_transform_coeffs_ch(s, blk, CPL_CH, &m);
780 * @param[in] blk block number
790 static void decode_band_structure(GetBitContext *gbc, int blk, int eac3,
801 if (!blk)
839 static inline int spx_strategy(AC3DecodeContext *s, int blk)
887 decode_band_structure(bc, blk, s->eac3, 0,
974 static inline int coupling_strategy(AC3DecodeContext *s, int blk,
984 s->cpl_in_use[blk] = get_bits1(bc);
985 if (s->cpl_in_use[blk]) {
1026 decode_band_structure(bc, blk, s->eac3, 0, cpl_start_subband,
1044 static inline int coupling_coordinates(AC3DecodeContext *s, int blk)
1067 } else if (!blk) {
1090 static int decode_audio_block(AC3DecodeContext *s, int blk, int offset)
1130 } else if (blk == 0) {
1136 if (s->eac3 && (!blk || get_bits1(gbc))) {
1139 if ((ret = spx_strategy(s, blk)) < 0)
1156 if (s->eac3 ? s->cpl_strategy_exists[blk] : get_bits1(gbc)) {
1157 if ((ret = coupling_strategy(s, blk, bit_alloc_stages)) < 0)
1160 if (!blk) {
1165 s->cpl_in_use[blk] = s->cpl_in_use[blk-1];
1168 cpl_in_use = s->cpl_in_use[blk];
1172 if ((ret = coupling_coordinates(s, blk)) < 0)
1178 if ((s->eac3 && !blk) || get_bits1(gbc)) {
1187 } else if (!blk) {
1197 s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
1198 if (s->exp_strategy[blk][ch] != EXP_REUSE)
1205 if (s->exp_strategy[blk][ch] != EXP_REUSE) {
1220 group_size = 3 << (s->exp_strategy[blk][ch] - 1);
1222 if (blk > 0 && s->end_freq[ch] != prev)
1226 if (cpl_in_use && s->exp_strategy[blk][CPL_CH] != EXP_REUSE) {
1228 (3 << (s->exp_strategy[blk][CPL_CH] - 1));
1233 if (s->exp_strategy[blk][ch] != EXP_REUSE) {
1235 if (decode_exponents(s, gbc, s->exp_strategy[blk][ch],
1255 } else if (!blk) {
1263 if (!s->eac3 || !blk) {
1273 if (blk && s->snr_offset[ch] != snr) {
1283 if (blk && prev != s->fast_gain[ch])
1287 } else if (!s->eac3 && !blk) {
1299 if (blk && prev != s->fast_gain[ch])
1302 } else if (s->eac3 && !blk) {
1319 if (blk && (fl != s->bit_alloc_params.cpl_fast_leak ||
1325 } else if (!s->eac3 && !blk) {
1357 } else if (blk == 0) {
1404 decode_transform_coeffs(s, blk);
1491 int blk, ch, err, offset, ret;
1659 for (blk = 0; blk < s->num_blocks; blk++) {
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));