Lines Matching refs:usac_data
151 ia_usac_data_struct *usac_data, in ixheaacd_cplx_pred_data() argument
163 WORD32(*alpha_q_re)[SFB_NUM_MAX] = usac_data->alpha_q_re; in ixheaacd_cplx_pred_data()
164 WORD32(*alpha_q_im)[SFB_NUM_MAX] = usac_data->alpha_q_im; in ixheaacd_cplx_pred_data()
165 WORD32 *alpha_q_re_prev = usac_data->alpha_q_re_prev; in ixheaacd_cplx_pred_data()
166 WORD32 *alpha_q_im_prev = usac_data->alpha_q_im_prev; in ixheaacd_cplx_pred_data()
167 UWORD8(*cplx_pred_used)[SFB_NUM_MAX] = usac_data->cplx_pred_used; in ixheaacd_cplx_pred_data()
196 if (usac_data->usac_independency_flg) in ixheaacd_cplx_pred_data()
202 if (usac_data->usac_independency_flg) in ixheaacd_cplx_pred_data()
258 ia_usac_data_struct *usac_data, in ixheaacd_read_ms_mask() argument
264 UWORD8 *sfb_group = usac_data->group_dis[chn]; in ixheaacd_read_ms_mask()
266 UWORD8 *ms_used = usac_data->ms_used[chn]; in ixheaacd_read_ms_mask()
267 ia_sfb_info_struct *info = usac_data->pstr_sfb_info[chn]; in ixheaacd_read_ms_mask()
296 ixheaacd_cplx_pred_data(usac_data, pstr_core_coder, info->num_groups, in ixheaacd_read_ms_mask()
302 usac_data->alpha_q_re_prev[sfb] = 0; in ixheaacd_read_ms_mask()
303 usac_data->alpha_q_im_prev[sfb] = 0; in ixheaacd_read_ms_mask()
308 VOID ixheaacd_ms_stereo(ia_usac_data_struct *usac_data, WORD32 *r_spec, in ixheaacd_ms_stereo() argument
312 ia_sfb_info_struct *ptr_sfb_info = usac_data->pstr_sfb_info[chn]; in ixheaacd_ms_stereo()
313 UWORD8 *ms_used = usac_data->ms_used[chn]; in ixheaacd_ms_stereo()
466 ia_usac_data_struct *usac_data, WORD32 *l_spec, WORD32 *r_spec, in ixheaacd_cplx_pred_upmixing() argument
468 ia_sfb_info_struct *pstr_sfb_info = usac_data->pstr_sfb_info[chn]; in ixheaacd_cplx_pred_upmixing()
469 WORD32 *dmx_re = &usac_data->scratch_buffer[0]; in ixheaacd_cplx_pred_upmixing()
470 WORD32 *dmx_im = &usac_data->x_ac_dec[0]; in ixheaacd_cplx_pred_upmixing()
473 WORD32 *dmx_re_prev = usac_data->dmx_re_prev; in ixheaacd_cplx_pred_upmixing()
474 WORD32(*alpha_q_re)[SFB_NUM_MAX] = usac_data->alpha_q_re; in ixheaacd_cplx_pred_upmixing()
475 WORD32(*alpha_q_im)[SFB_NUM_MAX] = usac_data->alpha_q_im; in ixheaacd_cplx_pred_upmixing()
477 UWORD8(*cplx_pred_used)[SFB_NUM_MAX] = usac_data->cplx_pred_used; in ixheaacd_cplx_pred_upmixing()
511 usac_data->window_sequence[chn], in ixheaacd_cplx_pred_upmixing()
512 usac_data->window_shape[chn], in ixheaacd_cplx_pred_upmixing()
513 usac_data->window_shape_prev[chn]); in ixheaacd_cplx_pred_upmixing()
584 WORD32 ixheaacd_ics_info(ia_usac_data_struct *usac_data, WORD32 chn, in ixheaacd_ics_info() argument
594 UWORD8 *scf_group_ptr = usac_data->group_dis[chn]; in ixheaacd_ics_info()
598 win = usac_data->window_sequence[chn] = in ixheaacd_ics_info()
602 usac_data->pstr_sfb_info[chn] = in ixheaacd_ics_info()
603 usac_data->pstr_usac_winmap[usac_data->window_sequence[chn]]; in ixheaacd_ics_info()
605 usac_data->window_shape[chn] = (WORD32)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ics_info()
607 if (usac_data->pstr_usac_winmap[win]->islong) { in ixheaacd_ics_info()
625 ixheaacd_calc_grp_offset(usac_data->pstr_usac_winmap[win], in ixheaacd_ics_info()
626 &usac_data->group_dis[chn][0]); in ixheaacd_ics_info()
629 if (*max_sfb > usac_data->pstr_sfb_info[chn]->sfb_per_sbk) { in ixheaacd_ics_info()
630 *max_sfb = usac_data->pstr_sfb_info[chn]->sfb_per_sbk; in ixheaacd_ics_info()
637 WORD32 ixheaacd_core_coder_data(WORD32 id, ia_usac_data_struct *usac_data, in ixheaacd_core_coder_data() argument
669 ixheaacd_ics_info(usac_data, left, &pstr_core_coder->max_sfb[left], in ixheaacd_core_coder_data()
670 it_bit_buff, usac_data->window_sequence_last[left]); in ixheaacd_core_coder_data()
677 if (usac_data->window_sequence[left] == EIGHT_SHORT_SEQUENCE) in ixheaacd_core_coder_data()
690 usac_data->window_sequence[right] = usac_data->window_sequence[left]; in ixheaacd_core_coder_data()
691 usac_data->window_shape[right] = usac_data->window_shape[left]; in ixheaacd_core_coder_data()
692 memcpy(&usac_data->group_dis[right][0], &usac_data->group_dis[left][0], in ixheaacd_core_coder_data()
694 usac_data->pstr_sfb_info[right] = usac_data->pstr_sfb_info[left]; in ixheaacd_core_coder_data()
696 usac_data->pstr_sfb_info[right]->sfb_per_sbk) in ixheaacd_core_coder_data()
698 usac_data->pstr_sfb_info[right]->sfb_per_sbk; in ixheaacd_core_coder_data()
701 ixheaacd_read_ms_mask(usac_data, pstr_core_coder, it_bit_buff, left); in ixheaacd_core_coder_data()
710 usac_data->alpha_q_re_prev[k] = 0; in ixheaacd_core_coder_data()
711 usac_data->alpha_q_im_prev[k] = 0; in ixheaacd_core_coder_data()
715 if (usac_data->tw_mdct[elem_idx] == 1) { in ixheaacd_core_coder_data()
719 usac_data->tw_data_present[left] = in ixheaacd_core_coder_data()
721 usac_data->tw_data_present[right] = usac_data->tw_data_present[left]; in ixheaacd_core_coder_data()
722 if (usac_data->tw_data_present[left]) { in ixheaacd_core_coder_data()
724 usac_data->tw_ratio[left][k] = in ixheaacd_core_coder_data()
726 usac_data->tw_ratio[right][k] = usac_data->tw_ratio[left][k]; in ixheaacd_core_coder_data()
743 ixheaacd_read_tns_u(usac_data->pstr_sfb_info[0], in ixheaacd_core_coder_data()
744 &usac_data->pstr_tns[left][0], it_bit_buff); in ixheaacd_core_coder_data()
745 memcpy(&usac_data->pstr_tns[right][0], &usac_data->pstr_tns[left][0], in ixheaacd_core_coder_data()
781 ixheaacd_tw_buff_update(usac_data, chn, usac_data->str_tddec[chn]); in ixheaacd_core_coder_data()
784 if (!usac_data->td_frame_prev[chn]) { in ixheaacd_core_coder_data()
785 ixheaacd_fix2flt_data(usac_data, usac_data->str_tddec[chn], chn); in ixheaacd_core_coder_data()
788 for (k = 0; k < usac_data->ccfl; k++) { in ixheaacd_core_coder_data()
789 usac_data->time_sample_vector[chn][k] = in ixheaacd_core_coder_data()
790 (FLOAT32)((FLOAT32)usac_data->output_data_ptr[chn][k] * in ixheaacd_core_coder_data()
793 usac_data->present_chan = chn; in ixheaacd_core_coder_data()
795 ixheaacd_lpd_channel_stream(usac_data, &td_frame, it_bit_buff, in ixheaacd_core_coder_data()
796 usac_data->time_sample_vector[chn]); in ixheaacd_core_coder_data()
799 for (k = 0; k < usac_data->ccfl; k++) { in ixheaacd_core_coder_data()
800 usac_data->output_data_ptr[chn][k] = (WORD32)( in ixheaacd_core_coder_data()
801 usac_data->time_sample_vector[chn][k] * (FLOAT32)((WORD64)1 << 15)); in ixheaacd_core_coder_data()
804 usac_data->window_shape[chn] = WIN_SEL_0; in ixheaacd_core_coder_data()
806 ixheaacd_td_frm_dec(usac_data, chn, td_frame.mod[0]); in ixheaacd_core_coder_data()
808 for (k = 0; k < usac_data->ccfl; k++) { in ixheaacd_core_coder_data()
809 usac_data->time_sample_vector[chn][k] = in ixheaacd_core_coder_data()
810 (FLOAT32)((FLOAT32)usac_data->output_data_ptr[chn][k] * in ixheaacd_core_coder_data()
814 usac_data->window_shape_prev[chn] = usac_data->window_shape[chn]; in ixheaacd_core_coder_data()
815 usac_data->window_sequence_last[chn] = EIGHT_SHORT_SEQUENCE; in ixheaacd_core_coder_data()
818 memset(usac_data->coef_fix[chn], 0, in ixheaacd_core_coder_data()
819 LN2 * sizeof(*usac_data->coef_fix[0])); in ixheaacd_core_coder_data()
821 if (usac_data->str_tddec[chn] && usac_data->td_frame_prev[chn]) { in ixheaacd_core_coder_data()
822 ixheaacd_lpd_dec_update(usac_data->str_tddec[chn], usac_data, chn); in ixheaacd_core_coder_data()
833 usac_data, pstr_core_coder, &pstr_core_coder->max_sfb[ch], in ixheaacd_core_coder_data()
834 usac_data->window_sequence_last[chn], chn, in ixheaacd_core_coder_data()
835 usac_data->noise_filling_config[elem_idx], ch, it_bit_buff); in ixheaacd_core_coder_data()
844 usac_data->pstr_sfb_info[left], usac_data->coef_save[left], in ixheaacd_core_coder_data()
845 usac_data->coef_save[right], usac_data->dmx_re_prev, in ixheaacd_core_coder_data()
853 usac_data, usac_data->coef_fix[chn], pstr_core_coder->max_sfb[ch], in ixheaacd_core_coder_data()
854 usac_data->pstr_sfb_info[chn], usac_data->pstr_tns[chn]); in ixheaacd_core_coder_data()
863 ixheaacd_cplx_pred_upmixing(usac_data, usac_data->coef_fix[left], in ixheaacd_core_coder_data()
864 usac_data->coef_fix[right], pstr_core_coder, in ixheaacd_core_coder_data()
869 usac_data, usac_data->coef_fix[right], usac_data->coef_fix[left], in ixheaacd_core_coder_data()
879 usac_data, usac_data->coef_fix[chn], pstr_core_coder->max_sfb[ch], in ixheaacd_core_coder_data()
880 usac_data->pstr_sfb_info[chn], usac_data->pstr_tns[chn]); in ixheaacd_core_coder_data()
887 usac_data->pstr_sfb_info[left], usac_data->coef_fix[left], in ixheaacd_core_coder_data()
888 usac_data->coef_fix[right], usac_data->coef_save[left], in ixheaacd_core_coder_data()
889 usac_data->coef_save[right]); in ixheaacd_core_coder_data()
894 if (usac_data->tw_mdct[elem_idx]) { in ixheaacd_core_coder_data()
899 err_code = ixheaacd_fd_frm_dec(usac_data, ch); in ixheaacd_core_coder_data()
902 for (k = 0; k < usac_data->ccfl; k++) { in ixheaacd_core_coder_data()
903 usac_data->time_sample_vector[ch][k] = in ixheaacd_core_coder_data()
904 (FLOAT32)((FLOAT32)usac_data->output_data_ptr[ch][k] * in ixheaacd_core_coder_data()
909 usac_data->window_shape_prev[ch] = usac_data->window_shape[ch]; in ixheaacd_core_coder_data()
910 usac_data->window_sequence_last[ch] = usac_data->window_sequence[ch]; in ixheaacd_core_coder_data()
915 usac_data->td_frame_prev[chn] = pstr_core_coder->core_mode[ch]; in ixheaacd_core_coder_data()