Lines Matching refs:bnd
134 int blk, ch, bnd, i, j;
170 bnd = 0;
173 int band_size = s->cpl_band_sizes[bnd];
181 MAC_COEF(energy[blk][ch][bnd], v, v);
186 bnd++;
197 for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
198 cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy[blk][ch][bnd],
199 energy[blk][CPL_CH][bnd]);
228 for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
229 coord_diff += FFABS(cpl_coords[blk-1][ch][bnd] -
230 cpl_coords[blk ][ch][bnd]);
243 for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
258 energy_cpl = energy[blk][CPL_CH][bnd];
259 energy_ch = energy[blk][ch][bnd];
263 energy_cpl += energy[blk1][CPL_CH][bnd];
264 energy_ch += energy[blk1][ch][bnd];
268 cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy_ch, energy_cpl);
290 int bnd, min_exp, max_exp, master_exp;
297 for (bnd = 1; bnd < s->num_cpl_bands; bnd++) {
298 int exp = block->cpl_coord_exp[ch][bnd];
306 for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
307 block->cpl_coord_exp[ch][bnd] = av_clip(block->cpl_coord_exp[ch][bnd] -
313 for (bnd = 0; bnd < s->num_cpl_bands; bnd++) {
314 int cpl_exp = block->cpl_coord_exp[ch][bnd];
315 int cpl_mant = (fixed_cpl_coords[blk][ch][bnd] << (5 + cpl_exp + master_exp * 3)) >> 24;
321 block->cpl_coord_mant[ch][bnd] = cpl_mant;
337 int blk, bnd, i;
361 for (bnd = 0; bnd < block->num_rematrixing_bands; bnd++) {
363 int start = ff_ac3_rematrix_band_tab[bnd];
364 int end = FFMIN(nb_coefs, ff_ac3_rematrix_band_tab[bnd+1]);
379 block->rematrixing_flags[bnd] = 1;
381 block->rematrixing_flags[bnd] = 0;
385 block->rematrixing_flags[bnd] != block0->rematrixing_flags[bnd]) {