Lines Matching refs:max_ch
514 int i, ch, b, max_smr, max_ch, max_sb, current_frame_size, max_frame_size; in compute_bit_allocation() local
546 max_ch = -1; in compute_bit_allocation()
553 max_ch = ch; in compute_bit_allocation()
560 current_frame_size, max_frame_size, max_sb, max_ch, in compute_bit_allocation()
561 bit_alloc[max_ch][max_sb]); in compute_bit_allocation()
570 if (subband_status[max_ch][max_sb] == SB_NOTALLOCATED) { in compute_bit_allocation()
572 incr = 2 + nb_scale_factors[s->scale_code[max_ch][max_sb]] * 6; in compute_bit_allocation()
576 b = bit_alloc[max_ch][max_sb]; in compute_bit_allocation()
583 b = ++bit_alloc[max_ch][max_sb]; in compute_bit_allocation()
586 smr[max_ch][max_sb] = smr1[max_ch][max_sb] - quant_snr[alloc[b]]; in compute_bit_allocation()
589 subband_status[max_ch][max_sb] = SB_NOMORE; in compute_bit_allocation()
591 subband_status[max_ch][max_sb] = SB_ALLOCATED; in compute_bit_allocation()
594 subband_status[max_ch][max_sb] = SB_NOMORE; in compute_bit_allocation()