Lines Matching refs:ch_idx
1313 WORD ch_idx; in ixheaacd_dec_init() local
1425 for (ch_idx = 0; ch_idx < MAX_BS_ELEMENT; ch_idx++) { in ixheaacd_dec_init()
1426 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_init()
1604 for (ch_idx = 0; ch_idx < MAX_BS_ELEMENT; ch_idx++) { in ixheaacd_dec_init()
1608 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_init()
1616 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_init()
1780 ch_idx = 0; in ixheaacd_dec_init()
1785 if (ch_idx >= elements_number) { in ixheaacd_dec_init()
1796 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_init()
1801 &type, &ch_idx, 1, 2, in ixheaacd_dec_init()
1813 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1817 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1821 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1825 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1837 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->sampling_rate; in ixheaacd_dec_init()
1839 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->channels; in ixheaacd_dec_init()
1843 (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 2)) { in ixheaacd_dec_init()
1874 if (!p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_init()
1881 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_init()
1889 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1890 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_init()
1896 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_init()
1905 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx], in ixheaacd_dec_init()
1912 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_init()
1930 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_init()
1937 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_init()
1942 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1943 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_init()
1952 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1953 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_init()
1960 ch_idx++; in ixheaacd_dec_init()
1990 p_obj_exhaacplus_dec->aac_config.ui_n_channels = ch_idx; in ixheaacd_dec_init()
2003 if (ch_idx == 1) in ixheaacd_dec_init()
2115 ch_idx = 0; in ixheaacd_dec_init()
2116 while (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] >= 0 && in ixheaacd_dec_init()
2117 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] <= 3) { in ixheaacd_dec_init()
2118 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 0 || in ixheaacd_dec_init()
2119 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 3) in ixheaacd_dec_init()
2121 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 1) in ixheaacd_dec_init()
2123 ch_idx++; in ixheaacd_dec_init()
2126 if (ch_idx == 2 && num_channels_1 == 2) { in ixheaacd_dec_init()
2129 if (ch_idx == 1) { in ixheaacd_dec_init()
2146 (ch_idx == 1 || num_channels_1 <= 2)) { in ixheaacd_dec_init()
2510 WORD32 ch_idx = ch_idx1; in ixheaacd_dec_execute() local
2518 p_obj_exhaacplus_dec, ch_idx1, &ch_idx, &channel, in ixheaacd_dec_execute()
2538 slot_ele = p_obj_exhaacplus_dec->aac_config.slot_element[ch_idx]; in ixheaacd_dec_execute()
2540 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 2) { in ixheaacd_dec_execute()
2541 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_execute()
2543 if (p_obj_exhaacplus_dec->aac_config.element_instance_order[ch_idx] != in ixheaacd_dec_execute()
2560 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2562 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2564 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_execute()
2568 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx], in ixheaacd_dec_execute()
2574 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2578 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_execute()
2592 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements = 0; in ixheaacd_dec_execute()
2607 p_obj_exhaacplus_dec->aac_config.frame_status, &type, &ch_idx, 0, in ixheaacd_dec_execute()
2633 num_ch = p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->channels; in ixheaacd_dec_execute()
2642 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->sampling_rate; in ixheaacd_dec_execute()
2647 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements = 0; in ixheaacd_dec_execute()
2650 if (p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements != 0) { in ixheaacd_dec_execute()
2667 if (p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements == 0 && in ixheaacd_dec_execute()
2668 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2669 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2673 if ((!p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) && in ixheaacd_dec_execute()
2674 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements) { in ixheaacd_dec_execute()
2677 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_execute()
2685 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2686 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_execute()
2692 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_execute()
2701 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx], in ixheaacd_dec_execute()
2702 &p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0], in ixheaacd_dec_execute()
2710 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2730 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] != 2) in ixheaacd_dec_execute()