Lines Matching refs:ptr_ps_dec
573 WORD16 ixheaacd_read_ps_data(ia_ps_dec_struct *ptr_ps_dec, in ixheaacd_read_ps_data() argument
583 if (!ptr_ps_dec) { in ixheaacd_read_ps_data()
592 ptr_ps_dec->enable_iid = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
593 if (ptr_ps_dec->enable_iid) { in ixheaacd_read_ps_data()
594 ptr_ps_dec->iid_mode = ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_read_ps_data()
597 if (ptr_ps_dec->iid_mode > 2) { in ixheaacd_read_ps_data()
598 ptr_ps_dec->iid_quant = 1; in ixheaacd_read_ps_data()
599 ptr_ps_dec->iid_mode -= 3; in ixheaacd_read_ps_data()
601 ptr_ps_dec->iid_quant = 0; in ixheaacd_read_ps_data()
604 ptr_ps_dec->enable_icc = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
605 if (ptr_ps_dec->enable_icc) { in ixheaacd_read_ps_data()
606 ptr_ps_dec->icc_mode = ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_read_ps_data()
609 ptr_ps_dec->enable_ext = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
611 if (ptr_ps_dec->icc_mode > 2) { in ixheaacd_read_ps_data()
612 ptr_ps_dec->icc_mode -= 3; in ixheaacd_read_ps_data()
616 if ((ptr_ps_dec->enable_iid && ptr_ps_dec->iid_mode > 2) || in ixheaacd_read_ps_data()
617 (ptr_ps_dec->enable_icc && ptr_ps_dec->icc_mode > 2)) { in ixheaacd_read_ps_data()
618 ptr_ps_dec->ps_data_present = 0; in ixheaacd_read_ps_data()
631 ptr_ps_dec->frame_class = (FLAG)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
635 if (ptr_ps_dec->frame_class == 0) { in ixheaacd_read_ps_data()
636 ptr_ps_dec->num_env = num_env_tab[temp]; in ixheaacd_read_ps_data()
638 ptr_ps_dec->num_env = (((1 + temp) << 8) >> 8); in ixheaacd_read_ps_data()
640 for (e = 1; e < ptr_ps_dec->num_env + 1; e++) { in ixheaacd_read_ps_data()
641 ptr_ps_dec->border_position[e] = in ixheaacd_read_ps_data()
646 if (ptr_ps_dec->enable_iid) { in ixheaacd_read_ps_data()
647 if (ptr_ps_dec->iid_quant) { in ixheaacd_read_ps_data()
655 for (e = 0; e < ptr_ps_dec->num_env; e++) { in ixheaacd_read_ps_data()
656 ptr_ps_dec->iid_dt[e] = (FLAG)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
658 if (ptr_ps_dec->iid_dt[e]) { in ixheaacd_read_ps_data()
664 for (b = 0; b < ixheaacd_num_bands[ptr_ps_dec->iid_mode]; b++) { in ixheaacd_read_ps_data()
665 ptr_ps_dec->iid_par_table[e][b] = in ixheaacd_read_ps_data()
671 if (ptr_ps_dec->enable_icc) { in ixheaacd_read_ps_data()
675 for (e = 0; e < ptr_ps_dec->num_env; e++) { in ixheaacd_read_ps_data()
676 ptr_ps_dec->icc_dt[e] = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_read_ps_data()
678 if (ptr_ps_dec->icc_dt[e]) { in ixheaacd_read_ps_data()
684 for (b = 0; b < ixheaacd_num_bands[ptr_ps_dec->icc_mode]; b++) { in ixheaacd_read_ps_data()
685 ptr_ps_dec->icc_par_table[e][b] = in ixheaacd_read_ps_data()
691 if (ptr_ps_dec->enable_ext) { in ixheaacd_read_ps_data()
702 ptr_ps_dec->ps_data_present = 1; in ixheaacd_read_ps_data()