Lines Matching defs:bands
87 av_log(avctx, AV_LOG_ERROR, "Too many bands: %i\n", c->maxbands);
93 av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n",
209 Band *bands = c->bands;
213 memset(bands, 0, sizeof(*bands) * (c->maxbands + 1));
236 if(t == 4) bands[i].res[ch] = get_bits(&gb, 4);
237 else bands[i].res[ch] = av_clip(bands[i-1].res[ch] + t, 0, 17);
240 if(bands[i].res[0] || bands[i].res[1]){
242 if(c->MSS) bands[i].msf = get_bits1(&gb);
248 if(bands[i].res[ch]) bands[i].scfi[ch] = get_vlc2(&gb, scfi_vlc.table, MPC7_SCFI_BITS, 1);
252 if(bands[i].res[ch]){
253 bands[i].scf_idx[ch][2] = c->oldDSCF[ch][i];
254 bands[i].scf_idx[ch][0] = get_scale_idx(&gb, bands[i].scf_idx[ch][2]);
255 switch(bands[i].scfi[ch]){
257 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
258 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]);
261 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
262 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1];
265 bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0];
266 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]);
269 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0];
272 c->oldDSCF[ch][i] = bands[i].scf_idx[ch][2];
281 idx_to_quant(c, &gb, bands[i].res[ch], c->Q[ch] + off);