Lines Matching refs:nbits_spec
545 int nbits_fix, nbits_spec; in adjust_remain_bits_ldac() local
630 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
636 if (nbits_spec < nbits_avail) { in adjust_remain_bits_ldac()
642 else if (nbits_spec > nbits_avail) { in adjust_remain_bits_ldac()
651 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
655 if (nbits_spec > nbits_avail) { in adjust_remain_bits_ldac()
657 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
661 *p_nbits_spec = nbits_spec; in adjust_remain_bits_ldac()
675 int nbits_avail, nbits_side = 0, nbits_spec = 0; in alloc_bits_ldac() local
681 nbits_spec = encode_audio_block_a_ldac(p_ab, p_ab->nqus); in alloc_bits_ldac()
683 if (nbits_spec > nbits_avail) { in alloc_bits_ldac()
685 decrease_offset_low_ldac(p_ab, LDAC_UPPER_NOISE_LEVEL, &nbits_spec); in alloc_bits_ldac()
687 decrease_offset_high_ldac(p_ab, &nbits_spec); in alloc_bits_ldac()
689 decrease_offset_low_ldac(p_ab, LDAC_MAXGRADOS, &nbits_spec); in alloc_bits_ldac()
692 decrease_offset_low_ldac(p_ab, LDAC_MAXGRADOS, &nbits_spec); in alloc_bits_ldac()
695 while ((nbits_spec > nbits_avail) && (p_ab->nbands > LDAC_BAND_OFFSET)) { in alloc_bits_ldac()
702 nbits_spec = encode_audio_block_a_ldac(p_ab, p_ab->nqus); in alloc_bits_ldac()
706 if (nbits_spec < nbits_avail) { in alloc_bits_ldac()
708 increase_offset_low_ldac(p_ab, &nbits_spec); in alloc_bits_ldac()
710 increase_qu_low_0_ldac(p_ab, &nbits_spec); in alloc_bits_ldac()
713 increase_offset_low_ldac(p_ab, &nbits_spec); in alloc_bits_ldac()
715 increase_qu_low_ldac(p_ab, &nbits_spec); in alloc_bits_ldac()
720 adjust_remain_bits_ldac(p_ab, &nbits_spec, &p_ab->nadjqus); in alloc_bits_ldac()
722 if (nbits_spec > nbits_avail) { in alloc_bits_ldac()
726 p_ab->nbits_spec = nbits_spec; in alloc_bits_ldac()
727 p_ab->nbits_used = nbits_spec + nbits_side; in alloc_bits_ldac()