Lines Matching defs:bands
103 av_log(avctx, AV_LOG_ERROR, "Too many bands: %i\n", c->maxbands);
109 av_log(avctx, AV_LOG_DEBUG, "IS: %d, MSS: %d, TG: %d, LFL: %d, bands: %d\n",
184 Band *bands = c->bands;
188 memset(bands, 0, sizeof(*bands) * (c->maxbands + 1));
224 if(t == 4) bands[i].res[ch] = get_bits(&gb, 4);
225 else bands[i].res[ch] = bands[i-1].res[ch] + t;
226 if (bands[i].res[ch] < -1 || bands[i].res[ch] > 17) {
232 if(bands[i].res[0] || bands[i].res[1]){
234 if(c->MSS) bands[i].msf = get_bits1(&gb);
240 if(bands[i].res[ch]) bands[i].scfi[ch] = get_vlc2(&gb, scfi_vlc.table, MPC7_SCFI_BITS, 1);
244 if(bands[i].res[ch]){
245 bands[i].scf_idx[ch][2] = c->oldDSCF[ch][i];
246 bands[i].scf_idx[ch][0] = get_scale_idx(&gb, bands[i].scf_idx[ch][2]);
247 switch(bands[i].scfi[ch]){
249 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
250 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]);
253 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]);
254 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1];
257 bands[i].scf_idx[ch][1] = 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][2] = bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0];
264 c->oldDSCF[ch][i] = bands[i].scf_idx[ch][2];
273 idx_to_quant(c, &gb, bands[i].res[ch], c->Q[ch] + off);