Lines Matching refs:bands
183 Band *bands = c->bands; in mpc7_decode_frame() local
187 memset(bands, 0, sizeof(*bands) * (c->maxbands + 1)); in mpc7_decode_frame()
223 if(t == 4) bands[i].res[ch] = get_bits(&gb, 4); in mpc7_decode_frame()
224 else bands[i].res[ch] = bands[i-1].res[ch] + t; in mpc7_decode_frame()
225 if (bands[i].res[ch] < -1 || bands[i].res[ch] > 17) { in mpc7_decode_frame()
231 if(bands[i].res[0] || bands[i].res[1]){ in mpc7_decode_frame()
233 if(c->MSS) bands[i].msf = get_bits1(&gb); in mpc7_decode_frame()
239 … if(bands[i].res[ch]) bands[i].scfi[ch] = get_vlc2(&gb, scfi_vlc.table, MPC7_SCFI_BITS, 1); in mpc7_decode_frame()
243 if(bands[i].res[ch]){ in mpc7_decode_frame()
244 bands[i].scf_idx[ch][2] = c->oldDSCF[ch][i]; in mpc7_decode_frame()
245 bands[i].scf_idx[ch][0] = get_scale_idx(&gb, bands[i].scf_idx[ch][2]); in mpc7_decode_frame()
246 switch(bands[i].scfi[ch]){ in mpc7_decode_frame()
248 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]); in mpc7_decode_frame()
249 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]); in mpc7_decode_frame()
252 bands[i].scf_idx[ch][1] = get_scale_idx(&gb, bands[i].scf_idx[ch][0]); in mpc7_decode_frame()
253 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1]; in mpc7_decode_frame()
256 bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0]; in mpc7_decode_frame()
257 bands[i].scf_idx[ch][2] = get_scale_idx(&gb, bands[i].scf_idx[ch][1]); in mpc7_decode_frame()
260 bands[i].scf_idx[ch][2] = bands[i].scf_idx[ch][1] = bands[i].scf_idx[ch][0]; in mpc7_decode_frame()
263 c->oldDSCF[ch][i] = bands[i].scf_idx[ch][2]; in mpc7_decode_frame()
272 idx_to_quant(c, &gb, bands[i].res[ch], c->Q[ch] + off); in mpc7_decode_frame()