• Home
  • Raw
  • Download

Lines Matching refs:p_ab

25 AB *p_ab,   in encode_audio_block_a_ldac()  argument
30 int nchs = p_ab->blk_nchs; in encode_audio_block_a_ldac()
33 int grad_mode = p_ab->grad_mode; in encode_audio_block_a_ldac()
34 int grad_qu_l = p_ab->grad_qu_l; in encode_audio_block_a_ldac()
35 int grad_qu_h = p_ab->grad_qu_h; in encode_audio_block_a_ldac()
36 int grad_os_l = p_ab->grad_os_l; in encode_audio_block_a_ldac()
37 int grad_os_h = p_ab->grad_os_h; in encode_audio_block_a_ldac()
38 int *p_grad = p_ab->a_grad; in encode_audio_block_a_ldac()
72 p_ac = p_ab->ap_ac[ich]; in encode_audio_block_a_ldac()
176 AB *p_ab, in encode_audio_block_b_ldac() argument
181 int nchs = p_ab->blk_nchs; in encode_audio_block_b_ldac()
182 int nqus = min_ldac(LDAC_MAXNADJQUS, p_ab->nqus); in encode_audio_block_b_ldac()
189 p_ac = p_ab->ap_ac[ich]; in encode_audio_block_b_ldac()
221 AB *p_ab, in decrease_offset_low_ldac() argument
226 int nqus = p_ab->nqus; in decrease_offset_low_ldac()
227 int grad_os_l = p_ab->grad_os_l; in decrease_offset_low_ldac()
228 int nbits_avail = p_ab->nbits_avail; in decrease_offset_low_ldac()
266 p_ab->grad_os_l = grad_os_l; in decrease_offset_low_ldac()
267 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in decrease_offset_low_ldac()
273 p_ab->grad_os_l = ++grad_os_l; in decrease_offset_low_ldac()
274 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in decrease_offset_low_ldac()
286 AB *p_ab, in decrease_offset_high_ldac() argument
290 int nqus = p_ab->nqus; in decrease_offset_high_ldac()
291 int grad_os_h = p_ab->grad_os_h; in decrease_offset_high_ldac()
292 int nbits_avail = p_ab->nbits_avail; in decrease_offset_high_ldac()
330 p_ab->grad_os_h = grad_os_h; in decrease_offset_high_ldac()
331 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in decrease_offset_high_ldac()
337 p_ab->grad_os_h = ++grad_os_h; in decrease_offset_high_ldac()
338 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in decrease_offset_high_ldac()
350 AB *p_ab, in increase_offset_low_ldac() argument
354 int nqus = p_ab->nqus; in increase_offset_low_ldac()
355 int grad_os_l = p_ab->grad_os_l; in increase_offset_low_ldac()
356 int nbits_avail = p_ab->nbits_avail; in increase_offset_low_ldac()
393 p_ab->grad_os_l = grad_os_l; in increase_offset_low_ldac()
394 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_offset_low_ldac()
400 p_ab->grad_os_l = ++grad_os_l; in increase_offset_low_ldac()
401 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_offset_low_ldac()
413 AB *p_ab, in increase_qu_low_ldac() argument
417 int nqus = p_ab->nqus; in increase_qu_low_ldac()
418 int grad_qu_l = p_ab->grad_qu_l; in increase_qu_low_ldac()
419 int grad_qu_h = p_ab->grad_qu_h; in increase_qu_low_ldac()
420 int nbits_avail = p_ab->nbits_avail; in increase_qu_low_ldac()
457 p_ab->grad_qu_l = grad_qu_l; in increase_qu_low_ldac()
458 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_qu_low_ldac()
464 p_ab->grad_qu_l = --grad_qu_l; in increase_qu_low_ldac()
465 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_qu_low_ldac()
476 AB *p_ab, in increase_qu_low_0_ldac() argument
480 int nqus = p_ab->nqus; in increase_qu_low_0_ldac()
481 int grad_qu_l = p_ab->grad_qu_l; in increase_qu_low_0_ldac()
482 int grad_qu_h = p_ab->grad_qu_h; in increase_qu_low_0_ldac()
483 int nbits_avail = p_ab->nbits_avail; in increase_qu_low_0_ldac()
520 p_ab->grad_qu_l = grad_qu_l; in increase_qu_low_0_ldac()
521 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_qu_low_0_ldac()
527 p_ab->grad_qu_l = --grad_qu_l; in increase_qu_low_0_ldac()
528 *p_nbits_spec = encode_audio_block_a_ldac(p_ab, nqus); in increase_qu_low_0_ldac()
539 AB *p_ab, in adjust_remain_bits_ldac() argument
546 int nbits_avail = p_ab->nbits_avail; in adjust_remain_bits_ldac()
550 int nchs = p_ab->blk_nchs; in adjust_remain_bits_ldac()
551 int nqus = min_ldac(LDAC_MAXNADJQUS, p_ab->nqus); in adjust_remain_bits_ldac()
552 int grad_mode = p_ab->grad_mode; in adjust_remain_bits_ldac()
553 int *p_grad = p_ab->a_grad; in adjust_remain_bits_ldac()
559 p_ac = p_ab->ap_ac[ich]; in adjust_remain_bits_ldac()
630 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
638 if (nadjqus > p_ab->nqus) { in adjust_remain_bits_ldac()
639 nadjqus = p_ab->nqus; in adjust_remain_bits_ldac()
646 if (nadjqus > p_ab->nqus) { in adjust_remain_bits_ldac()
647 nadjqus = p_ab->nqus; in adjust_remain_bits_ldac()
651 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
657 nbits_spec = nbits_fix + encode_audio_block_b_ldac(p_ab, nadjqus); in adjust_remain_bits_ldac()
673 AB *p_ab) in alloc_bits_ldac() argument
676 int nbits_ab = p_ab->nbits_ab; in alloc_bits_ldac()
678 nbits_side = encode_side_info_ldac(p_ab); in alloc_bits_ldac()
679 p_ab->nbits_avail = nbits_avail = nbits_ab - nbits_side; in alloc_bits_ldac()
681 nbits_spec = encode_audio_block_a_ldac(p_ab, p_ab->nqus); in alloc_bits_ldac()
684 if (p_ab->grad_mode == LDAC_MODE_0) { 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()
696 p_ab->nbands--; in alloc_bits_ldac()
697 p_ab->nqus = ga_nqus_ldac[p_ab->nbands]; in alloc_bits_ldac()
699 nbits_side = encode_side_info_ldac(p_ab); in alloc_bits_ldac()
700 p_ab->nbits_avail = nbits_avail = nbits_ab - nbits_side; in alloc_bits_ldac()
702 nbits_spec = encode_audio_block_a_ldac(p_ab, p_ab->nqus); in alloc_bits_ldac()
707 if (p_ab->grad_mode == LDAC_MODE_0) { 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()
719 p_ab->nadjqus = 0; in alloc_bits_ldac()
720 adjust_remain_bits_ldac(p_ab, &nbits_spec, &p_ab->nadjqus); in alloc_bits_ldac()
723 *p_ab->p_error_code = LDAC_ERR_BIT_ALLOCATION; 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()