Lines Matching defs:bands
83 av_log(avctx, AV_LOG_ERROR, "Too many bands: %i\n", c->maxbands);
89 av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n",
202 Band *bands = c->bands;
206 memset(bands, 0, sizeof(*bands) * (c->maxbands + 1));
242 if(t == 4) bands[i].res[ch] = get_bits(&gb, 4);
243 else bands[i].res[ch] = bands[i-1].res[ch] + t;
244 if (bands[i].res[ch] < -1 || bands[i].res[ch] > 17) {
250 if(bands[i].res[0] || bands[i].res[1]){
252 if(c->MSS) bands[i].msf = get_bits1(&gb);
258 if(bands[i].res[ch]) bands[i].scfi[ch] = get_vlc2(&gb, scfi_vlc.table, MPC7_SCFI_BITS, 1);
262 if(bands[i].res[ch]){
263 bands[i].scf_idx[ch][2] = c->oldDSCF[ch][i];
264 bands[i].scf_idx[ch][0] = get_scale_idx(&gb, bands[i].scf_idx[ch][2]);
265 switch(bands[i].scfi[ch]){
267 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
268 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]);
271 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
272 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1];
275 bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0];
276 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]);
279 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0];
282 c->oldDSCF[ch][i] = bands[i].scf_idx[ch][2];
291 idx_to_quant(c, &gb, bands[i].res[ch], c->Q[ch] + off);