Lines Matching refs:pstr_usac_conf
583 WORD32 ixheaacd_config(ia_bit_buf_struct *it_bit_buff, ia_usac_config_struct *pstr_usac_conf, in ixheaacd_config() argument
588 pstr_usac_conf->usac_sampling_frequency_index = in ixheaacd_config()
591 if (pstr_usac_conf->usac_sampling_frequency_index == 0x1f) { in ixheaacd_config()
592 pstr_usac_conf->usac_sampling_frequency = in ixheaacd_config()
595 if (pstr_usac_conf->usac_sampling_frequency > USAC_MAX_SAMPLE_RATE) { in ixheaacd_config()
605 pstr_usac_conf->usac_sampling_frequency = in ixheaacd_config()
606 sampling_rate_tbl[pstr_usac_conf->usac_sampling_frequency_index]; in ixheaacd_config()
609 if (pstr_usac_conf->usac_sampling_frequency == 0) { in ixheaacd_config()
616 pstr_usac_conf->core_sbr_framelength_index = in ixheaacd_config()
619 if (pstr_usac_conf->core_sbr_framelength_index > MAX_CORE_SBR_FRAME_LEN_IDX) { in ixheaacd_config()
627 pstr_usac_conf->channel_configuration_index = in ixheaacd_config()
629 if ((pstr_usac_conf->channel_configuration_index >= 3) && in ixheaacd_config()
630 (pstr_usac_conf->channel_configuration_index != 8)) { in ixheaacd_config()
638 if (pstr_usac_conf->channel_configuration_index == 0) { in ixheaacd_config()
642 (UWORD32 *)(&(pstr_usac_conf->num_out_channels)), in ixheaacd_config()
644 if (BS_MAX_NUM_OUT_CHANNELS < pstr_usac_conf->num_out_channels) { in ixheaacd_config()
647 for (i = 0; i < pstr_usac_conf->num_out_channels; i++) in ixheaacd_config()
648 pstr_usac_conf->output_channel_pos[i] = in ixheaacd_config()
655 err = ixheaacd_get_usac_chan_conf(pstr_usac_conf, pstr_usac_conf->channel_configuration_index, in ixheaacd_config()
662 it_bit_buff, &(pstr_usac_conf->str_usac_dec_config), in ixheaacd_config()
663 ixheaacd_sbr_ratio(pstr_usac_conf->core_sbr_framelength_index), chan, ec_flag); in ixheaacd_config()
670 &pstr_usac_conf->str_usac_dec_config, ec_flag); in ixheaacd_config()
677 VOID ixheaacd_conf_default(ia_usac_config_struct *pstr_usac_conf) { in ixheaacd_conf_default() argument
680 pstr_usac_conf->num_out_channels = 0; in ixheaacd_conf_default()
683 pstr_usac_conf->output_channel_pos[i] = BS_OUTPUT_CHANNEL_POS_NA; in ixheaacd_conf_default()
685 pstr_usac_conf->str_usac_dec_config.num_elements = 0; in ixheaacd_conf_default()
688 pstr_usac_conf->str_usac_dec_config.usac_element_type[i] = ID_USAC_INVALID; in ixheaacd_conf_default()