Lines Matching refs:p_state_enhaacplus_dec
183 ia_aac_dec_state_struct *p_state_enhaacplus_dec, in ixheaacd_updatebytesconsumed() argument
185 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_updatebytesconsumed()
187 if ((p_state_enhaacplus_dec->i_bytes_consumed == 0) && in ixheaacd_updatebytesconsumed()
189 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_updatebytesconsumed()
190 p_state_enhaacplus_dec->ui_in_bytes; in ixheaacd_updatebytesconsumed()
193 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_updatebytesconsumed()
194 p_state_enhaacplus_dec->ui_out_bytes = 0; in ixheaacd_updatebytesconsumed()
195 p_state_enhaacplus_dec->b_n_raw_data_blk = 0; in ixheaacd_updatebytesconsumed()
199 WORD32 ixheaacd_readifadts(ia_aac_dec_state_struct *p_state_enhaacplus_dec, in ixheaacd_readifadts() argument
205 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_readifadts()
210 p_state_enhaacplus_dec->p_config->ui_max_channels)) != 0) { in ixheaacd_readifadts()
211 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_readifadts()
214 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_readifadts()
215 p_state_enhaacplus_dec->ui_out_bytes = 0; in ixheaacd_readifadts()
221 p_state_enhaacplus_dec->b_n_raw_data_blk = in ixheaacd_readifadts()
1261 ia_aac_dec_state_struct *p_state_enhaacplus_dec; in ixheaacd_dec_init() local
1292 p_state_enhaacplus_dec = p_obj_exhaacplus_dec->p_state_aac; in ixheaacd_dec_init()
1294 p_state_enhaacplus_dec->aac_scratch_mem_v = in ixheaacd_dec_init()
1303 p_state_enhaacplus_dec->pstr_aac_tables = &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_dec_init()
1315 p_state_enhaacplus_dec->aac_persistent_mem_v = in ixheaacd_dec_init()
1324 p_state_enhaacplus_dec->aac_persistent_mem_v = (pVOID)( in ixheaacd_dec_init()
1337 p_state_enhaacplus_dec->aac_persistent_mem_v, channels); in ixheaacd_dec_init()
1339 p_state_enhaacplus_dec->sbr_persistent_mem_v = in ixheaacd_dec_init()
1340 (pVOID)((SIZE_T)((pWORD8)p_state_enhaacplus_dec->aac_persistent_mem_v + in ixheaacd_dec_init()
1346 p_state_enhaacplus_dec->sbr_persistent_mem_v, &persistent_used, in ixheaacd_dec_init()
1350 p_state_enhaacplus_dec->aac_persistent_mem_v; in ixheaacd_dec_init()
1351 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_init()
1352 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) in ixheaacd_dec_init()
1353 p_state_enhaacplus_dec->frame_len_flag = in ixheaacd_dec_init()
1356 p_state_enhaacplus_dec->ptr_overlap_buf = in ixheaacd_dec_init()
1359 p_state_enhaacplus_dec->bit_count = 0; in ixheaacd_dec_init()
1360 p_state_enhaacplus_dec->sync_status = 0; in ixheaacd_dec_init()
1361 p_state_enhaacplus_dec->bs_format = ADTS_BSFORMAT; in ixheaacd_dec_init()
1362 p_state_enhaacplus_dec->latm_initialized = 0; in ixheaacd_dec_init()
1363 p_state_enhaacplus_dec->frame_size = 0; in ixheaacd_dec_init()
1364 memset(&p_state_enhaacplus_dec->latm_struct_element, 0, in ixheaacd_dec_init()
1366 memset(&p_state_enhaacplus_dec->b_n_raw_data_blk, 0, in ixheaacd_dec_init()
1369 p_state_enhaacplus_dec->sbr_present_flag = 0; in ixheaacd_dec_init()
1372 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_init()
1375 memset(&p_state_enhaacplus_dec->ind_cc_info, 0, in ixheaacd_dec_init()
1378 p_state_enhaacplus_dec->last_frame_ok = 1; in ixheaacd_dec_init()
1403 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_init()
1404 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) in ixheaacd_dec_init()
1405 p_state_enhaacplus_dec->frame_len_flag = in ixheaacd_dec_init()
1409 p_state_enhaacplus_dec->aac_persistent_mem_v; in ixheaacd_dec_init()
1411 p_state_enhaacplus_dec->sbr_persistent_mem_v; in ixheaacd_dec_init()
1416 if (p_state_enhaacplus_dec->ui_in_bytes == 0) { in ixheaacd_dec_init()
1417 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_init()
1421 memset(&(p_state_enhaacplus_dec->eld_specific_config), 0, in ixheaacd_dec_init()
1427 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_init()
1428 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_dec_init()
1434 memset(&(p_state_enhaacplus_dec->eld_specific_config), 0, in ixheaacd_dec_init()
1441 p_state_enhaacplus_dec->i_bytes_consumed = header_bytes_consumed; in ixheaacd_dec_init()
1444 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1451 p_state_enhaacplus_dec->i_bytes_consumed = header_bytes_consumed; in ixheaacd_dec_init()
1455 p_state_enhaacplus_dec->i_bytes_consumed = header_bytes_consumed; in ixheaacd_dec_init()
1490 memcpy(p_state_enhaacplus_dec->header_ptr, in_buffer, in ixheaacd_dec_init()
1492 p_state_enhaacplus_dec->header_length = header_bytes_consumed; in ixheaacd_dec_init()
1499 if (p_state_enhaacplus_dec->dwnsmp_signal == 1 && in ixheaacd_dec_init()
1500 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) in ixheaacd_dec_init()
1503 if (p_state_enhaacplus_dec->sampling_rate == in ixheaacd_dec_init()
1504 p_state_enhaacplus_dec->extension_samp_rate) { in ixheaacd_dec_init()
1510 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_init()
1512 p_state_enhaacplus_dec->sampling_rate = in ixheaacd_dec_init()
1516 p_state_enhaacplus_dec->pstr_bit_buf = ixheaacd_create_bit_buf( in ixheaacd_dec_init()
1517 &p_state_enhaacplus_dec->str_bit_buf, (UWORD8 *)in_buffer, in ixheaacd_dec_init()
1520 p_state_enhaacplus_dec->pstr_bit_buf->xaac_jmp_buf = in ixheaacd_dec_init()
1521 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_init()
1523 p_state_enhaacplus_dec->ptr_bit_stream = in ixheaacd_dec_init()
1524 p_state_enhaacplus_dec->pstr_bit_buf; in ixheaacd_dec_init()
1526 if (p_state_enhaacplus_dec->s_adts_hdr_present) { // rajat in ixheaacd_dec_init()
1528 p_state_enhaacplus_dec->audio_object_type = 23; in ixheaacd_dec_init()
1531 if ((p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) || in ixheaacd_dec_init()
1532 (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD)) in ixheaacd_dec_init()
1533 if (p_state_enhaacplus_dec->s_adts_hdr_present) { in ixheaacd_dec_init()
1534 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_dec_init()
1535 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_samp_rate = 1; in ixheaacd_dec_init()
1536 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_crc_flag = 0; in ixheaacd_dec_init()
1537 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_flag_present = 0; in ixheaacd_dec_init()
1540 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_flag_present = 1; in ixheaacd_dec_init()
1544 p_state_enhaacplus_dec->frame_length = 480; in ixheaacd_dec_init()
1546 p_state_enhaacplus_dec->frame_length = 512; in ixheaacd_dec_init()
1554 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_init()
1556 p_state_enhaacplus_dec, in ixheaacd_dec_init()
1558 p_state_enhaacplus_dec->pstr_stream_sbr[0], channels, in ixheaacd_dec_init()
1559 p_state_enhaacplus_dec->aac_persistent_mem_v, in ixheaacd_dec_init()
1560 p_state_enhaacplus_dec->frame_length); in ixheaacd_dec_init()
1562 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_init()
1563 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1569 p_state_enhaacplus_dec->pstr_drc_dec = in ixheaacd_dec_init()
1570 &p_state_enhaacplus_dec->str_drc_dec_info; in ixheaacd_dec_init()
1571 ixheaacd_drc_dec_create(p_state_enhaacplus_dec->pstr_drc_dec, 127, 127); in ixheaacd_dec_init()
1573 p_state_enhaacplus_dec->pstr_drc_dec->cut_factor = in ixheaacd_dec_init()
1575 p_state_enhaacplus_dec->pstr_drc_dec->boost_factor = in ixheaacd_dec_init()
1577 p_state_enhaacplus_dec->pstr_drc_dec->target_ref_level = in ixheaacd_dec_init()
1579 p_state_enhaacplus_dec->pstr_drc_dec->prog_ref_level = in ixheaacd_dec_init()
1584 p_state_enhaacplus_dec->pstr_drc_dec->drc_on = 1; in ixheaacd_dec_init()
1585 p_state_enhaacplus_dec->pstr_drc_dec->heavy_mode = 1; in ixheaacd_dec_init()
1587 p_state_enhaacplus_dec->pstr_drc_dec->heavy_mode = 0; in ixheaacd_dec_init()
1588 if (p_state_enhaacplus_dec->pstr_drc_dec->target_ref_level > 127) in ixheaacd_dec_init()
1589 p_state_enhaacplus_dec->pstr_drc_dec->target_ref_level = 127; in ixheaacd_dec_init()
1590 if (p_state_enhaacplus_dec->pstr_drc_dec->target_ref_level < 0) { in ixheaacd_dec_init()
1591 if (p_state_enhaacplus_dec->pstr_drc_dec->cut_factor > 0 || in ixheaacd_dec_init()
1592 p_state_enhaacplus_dec->pstr_drc_dec->boost_factor > 0) in ixheaacd_dec_init()
1593 p_state_enhaacplus_dec->pstr_drc_dec->drc_on = 1; in ixheaacd_dec_init()
1595 p_state_enhaacplus_dec->pstr_drc_dec->drc_on = 0; in ixheaacd_dec_init()
1596 p_state_enhaacplus_dec->pstr_drc_dec->drc_dig_norm = 0; in ixheaacd_dec_init()
1597 p_state_enhaacplus_dec->pstr_drc_dec->target_ref_level = 108; in ixheaacd_dec_init()
1599 p_state_enhaacplus_dec->pstr_drc_dec->drc_on = 1; in ixheaacd_dec_init()
1600 p_state_enhaacplus_dec->pstr_drc_dec->drc_dig_norm = 1; in ixheaacd_dec_init()
1622 it_bit_buff = p_state_enhaacplus_dec->pstr_bit_buf; in ixheaacd_dec_init()
1627 if (p_state_enhaacplus_dec->ui_in_bytes == 0) { in ixheaacd_dec_init()
1628 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_init()
1632 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_init()
1633 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_dec_init()
1635 p_state_enhaacplus_dec->frame_size = in ixheaacd_dec_init()
1636 p_state_enhaacplus_dec->ui_in_bytes; in ixheaacd_dec_init()
1640 p_state_enhaacplus_dec->ui_in_bytes); in ixheaacd_dec_init()
1641 p_state_enhaacplus_dec->pstr_bit_buf->xaac_jmp_buf = in ixheaacd_dec_init()
1642 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_init()
1645 p_state_enhaacplus_dec->s_adts_hdr_present; in ixheaacd_dec_init()
1647 (WORD8)p_state_enhaacplus_dec->b_n_raw_data_blk; in ixheaacd_dec_init()
1648 it_bit_buff->protection_absent = p_state_enhaacplus_dec->protection_absent; in ixheaacd_dec_init()
1658 p_state_enhaacplus_dec->pstr_stream_sbr[i][0].no_elements = 0; in ixheaacd_dec_init()
1663 p_state_enhaacplus_dec->ptr_bit_stream, in ixheaacd_dec_init()
1664 &p_state_enhaacplus_dec->pstr_aac_dec_info[0]->byte_align_bits); in ixheaacd_dec_init()
1666 if (p_state_enhaacplus_dec->s_adts_hdr_present) { in ixheaacd_dec_init()
1669 if (p_state_enhaacplus_dec->b_n_raw_data_blk == 0) { in ixheaacd_dec_init()
1670 error = ixheaacd_readifadts(p_state_enhaacplus_dec, it_bit_buff, &adts); in ixheaacd_dec_init()
1674 p_state_enhaacplus_dec->protection_absent = adts.protection_absent; in ixheaacd_dec_init()
1676 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_init()
1677 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_dec_init()
1678 p_state_enhaacplus_dec->frame_size = adts.aac_frame_length; in ixheaacd_dec_init()
1680 p_state_enhaacplus_dec->frame_length = 480; in ixheaacd_dec_init()
1682 p_state_enhaacplus_dec->frame_length = 512; in ixheaacd_dec_init()
1687 if (p_state_enhaacplus_dec->bs_format == LOAS_BSFORMAT) { in ixheaacd_dec_init()
1702 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_init()
1712 it_bit_buff, &p_state_enhaacplus_dec->latm_struct_element, in ixheaacd_dec_init()
1713 p_state_enhaacplus_dec, in ixheaacd_dec_init()
1722 p_state_enhaacplus_dec->pstr_aac_dec_info[0]->byte_align_bits = in ixheaacd_dec_init()
1732 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1738 &aac_scratch_struct, p_state_enhaacplus_dec->aac_scratch_mem_v, in ixheaacd_dec_init()
1740 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_init()
1742 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_init()
1743 &p_state_enhaacplus_dec->ind_cc_info; in ixheaacd_dec_init()
1752 p_state_enhaacplus_dec->pstr_drc_dec, in ixheaacd_dec_init()
1753 p_state_enhaacplus_dec->audio_object_type, in ixheaacd_dec_init()
1754 p_state_enhaacplus_dec->ch_config, in ixheaacd_dec_init()
1755 p_state_enhaacplus_dec->eld_specific_config, in ixheaacd_dec_init()
1756 p_state_enhaacplus_dec->s_adts_hdr_present, in ixheaacd_dec_init()
1757 &p_state_enhaacplus_dec->drc_dummy); in ixheaacd_dec_init()
1777 if ((p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_LD) && in ixheaacd_dec_init()
1778 (p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_ELD)) in ixheaacd_dec_init()
1781 frame_size_1 = p_state_enhaacplus_dec->frame_length; in ixheaacd_dec_init()
1783 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->sampling_rate; in ixheaacd_dec_init()
1785 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->channels; in ixheaacd_dec_init()
1790 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1794 if (p_state_enhaacplus_dec->pstr_stream_sbr[0][0].no_elements) { in ixheaacd_dec_init()
1800 if (p_state_enhaacplus_dec->ui_input_over) { in ixheaacd_dec_init()
1804 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_dec_init()
1808 if (p_state_enhaacplus_dec->s_adts_hdr_present) { in ixheaacd_dec_init()
1814 p_state_enhaacplus_dec->b_n_raw_data_blk--; in ixheaacd_dec_init()
1820 if (!p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_init()
1821 p_state_enhaacplus_dec->pstr_stream_sbr[0][0].no_elements) { in ixheaacd_dec_init()
1827 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_init()
1830 p_state_enhaacplus_dec->sbr_persistent_mem_v, in ixheaacd_dec_init()
1831 p_state_enhaacplus_dec->ptr_overlap_buf, MAXNRSBRCHANNELS, (WORD)1, in ixheaacd_dec_init()
1833 p_state_enhaacplus_dec->str_sbr_config, in ixheaacd_dec_init()
1834 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_init()
1835 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1836 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_init()
1837 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_init()
1842 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_init()
1843 p_state_enhaacplus_dec->pstr_stream_sbr[0][0].no_elements) { in ixheaacd_dec_init()
1847 &sbr_scratch_struct, p_state_enhaacplus_dec->aac_scratch_mem_v, in ixheaacd_dec_init()
1848 time_data, 1, 1, p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_init()
1851 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx], in ixheaacd_dec_init()
1852 &p_state_enhaacplus_dec->pstr_stream_sbr[0][0], time_data, in ixheaacd_dec_init()
1856 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_flag_present, in ixheaacd_dec_init()
1857 p_state_enhaacplus_dec->audio_object_type) != SBRDEC_OK) { in ixheaacd_dec_init()
1858 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_init()
1872 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_init()
1873 p_state_enhaacplus_dec->pstr_bit_buf = it_bit_buff; in ixheaacd_dec_init()
1876 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_init()
1878 p_state_enhaacplus_dec, in ixheaacd_dec_init()
1879 p_state_enhaacplus_dec->pstr_stream_sbr[0], 2, in ixheaacd_dec_init()
1880 p_state_enhaacplus_dec->aac_persistent_mem_v, in ixheaacd_dec_init()
1881 p_state_enhaacplus_dec->frame_length); in ixheaacd_dec_init()
1883 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_init()
1884 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1888 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1889 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_init()
1892 p_state_enhaacplus_dec->sbr_persistent_mem_v, in ixheaacd_dec_init()
1893 p_state_enhaacplus_dec->ptr_overlap_buf, MAXNRSBRCHANNELS, 1, 1, in ixheaacd_dec_init()
1895 p_state_enhaacplus_dec->str_sbr_config, in ixheaacd_dec_init()
1896 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_init()
1898 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_init()
1899 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_init()
1900 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_init()
1908 if (p_state_enhaacplus_dec->audio_object_type >= ER_OBJECT_START && in ixheaacd_dec_init()
1909 (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_dec_init()
1910 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD)) in ixheaacd_dec_init()
1916 p_state_enhaacplus_dec->ptr_bit_stream->pstr_adts_crc_info; in ixheaacd_dec_init()
1943 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_init()
1989 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
1993 temp = p_state_enhaacplus_dec->aac_persistent_mem_v; in ixheaacd_dec_init()
1998 p_obj_exhaacplus_dec, p_state_enhaacplus_dec, channel, in ixheaacd_dec_init()
2001 p_state_enhaacplus_dec->aac_persistent_mem_v = temp; in ixheaacd_dec_init()
2002 p_state_enhaacplus_dec->last_frame_ok = 1; in ixheaacd_dec_init()
2004 p_state_enhaacplus_dec->num_channel_last = 0; in ixheaacd_dec_init()
2005 p_state_enhaacplus_dec->ui_init_done = 0; in ixheaacd_dec_init()
2006 p_state_enhaacplus_dec->ui_input_over = 0; in ixheaacd_dec_init()
2007 p_state_enhaacplus_dec->ptr_bit_stream = in ixheaacd_dec_init()
2008 p_state_enhaacplus_dec->pstr_bit_buf; in ixheaacd_dec_init()
2010 p_state_enhaacplus_dec->pstr_aac_dec_info[i] = 0; in ixheaacd_dec_init()
2012 p_state_enhaacplus_dec->pstr_aac_dec_info[i] = in ixheaacd_dec_init()
2014 p_state_enhaacplus_dec, in ixheaacd_dec_init()
2015 p_state_enhaacplus_dec->pstr_stream_sbr[i], channel, in ixheaacd_dec_init()
2016 (WORD8 *)p_state_enhaacplus_dec->aac_persistent_mem_v + in ixheaacd_dec_init()
2018 p_state_enhaacplus_dec->frame_length); in ixheaacd_dec_init()
2020 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[i]) { in ixheaacd_dec_init()
2021 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_init()
2025 p_state_enhaacplus_dec->str_sbr_dec_info[i] = ixheaacd_init_sbr( in ixheaacd_dec_init()
2028 p_state_enhaacplus_dec->sbr_persistent_mem_v, in ixheaacd_dec_init()
2029 p_state_enhaacplus_dec->ptr_overlap_buf, channel, ps_enable, 1, in ixheaacd_dec_init()
2031 p_state_enhaacplus_dec->str_sbr_config, in ixheaacd_dec_init()
2032 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_init()
2033 if (p_state_enhaacplus_dec->str_sbr_dec_info[i]) { in ixheaacd_dec_init()
2034 p_state_enhaacplus_dec->str_sbr_dec_info[i]->xaac_jmp_buf = in ixheaacd_dec_init()
2035 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_init()
2083 p_state_enhaacplus_dec->ui_init_done = 1; in ixheaacd_dec_init()
2087 p_state_enhaacplus_dec->b_n_raw_data_blk = 0; in ixheaacd_dec_init()
2096 VOID ixheaacd_fill_slot_order(ia_aac_dec_state_struct *p_state_enhaacplus_dec, in ixheaacd_fill_slot_order() argument
2101 WORD *p_slot_element = p_state_enhaacplus_dec->p_config->slot_element; in ixheaacd_fill_slot_order()
2102 WORD *p_element_type = p_state_enhaacplus_dec->p_config->element_type; in ixheaacd_fill_slot_order()
2104 p_state_enhaacplus_dec->p_config->element_instance_order; in ixheaacd_fill_slot_order()
2117 ia_aac_dec_state_struct *p_state_enhaacplus_dec) { in ixheaacd_fill_prog_config_slots() argument
2121 p_state_enhaacplus_dec, p_state_enhaacplus_dec->p_config->str_prog_config in ixheaacd_fill_prog_config_slots()
2123 p_state_enhaacplus_dec->p_config->str_prog_config.front_element_is_cpe, in ixheaacd_fill_prog_config_slots()
2124 p_state_enhaacplus_dec->p_config->str_prog_config in ixheaacd_fill_prog_config_slots()
2129 p_state_enhaacplus_dec, p_state_enhaacplus_dec->p_config->str_prog_config in ixheaacd_fill_prog_config_slots()
2131 p_state_enhaacplus_dec->p_config->str_prog_config.side_element_is_cpe, in ixheaacd_fill_prog_config_slots()
2132 p_state_enhaacplus_dec->p_config->str_prog_config.side_element_tag_select, in ixheaacd_fill_prog_config_slots()
2136 p_state_enhaacplus_dec, p_state_enhaacplus_dec->p_config->str_prog_config in ixheaacd_fill_prog_config_slots()
2138 p_state_enhaacplus_dec->p_config->str_prog_config.back_element_is_cpe, in ixheaacd_fill_prog_config_slots()
2139 p_state_enhaacplus_dec->p_config->str_prog_config.back_element_tag_select, in ixheaacd_fill_prog_config_slots()
2146 ia_aac_dec_state_struct *p_state_enhaacplus_dec; in ixheaacd_dec_execute() local
2186 p_state_enhaacplus_dec = p_obj_exhaacplus_dec->p_state_aac; in ixheaacd_dec_execute()
2187 p_state_enhaacplus_dec->aac_scratch_mem_v = in ixheaacd_dec_execute()
2190 it_bit_buff = p_state_enhaacplus_dec->pstr_bit_buf; in ixheaacd_dec_execute()
2193 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_execute()
2195 if (p_state_enhaacplus_dec->audio_object_type == AOT_USAC) { in ixheaacd_dec_execute()
2250 p_state_enhaacplus_dec->coup_ch_output = in ixheaacd_dec_execute()
2266 if (p_state_enhaacplus_dec->ui_in_bytes == 0) { in ixheaacd_dec_execute()
2267 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_execute()
2272 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_execute()
2276 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_execute()
2280 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_dec_execute()
2281 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_dec_execute()
2283 p_state_enhaacplus_dec->frame_size = p_state_enhaacplus_dec->ui_in_bytes; in ixheaacd_dec_execute()
2288 p_state_enhaacplus_dec->ui_in_bytes); in ixheaacd_dec_execute()
2289 it_bit_buff->xaac_jmp_buf = &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_execute()
2292 p_state_enhaacplus_dec->s_adts_hdr_present; in ixheaacd_dec_execute()
2294 (WORD8)p_state_enhaacplus_dec->b_n_raw_data_blk; in ixheaacd_dec_execute()
2295 it_bit_buff->protection_absent = p_state_enhaacplus_dec->protection_absent; in ixheaacd_dec_execute()
2297 if (p_state_enhaacplus_dec->s_adts_hdr_present) { in ixheaacd_dec_execute()
2298 if (p_state_enhaacplus_dec->b_n_raw_data_blk == 0) { in ixheaacd_dec_execute()
2301 error = ixheaacd_readifadts(p_state_enhaacplus_dec, it_bit_buff, &adts); in ixheaacd_dec_execute()
2305 if ((WORD32)p_state_enhaacplus_dec->sampling_rate != in ixheaacd_dec_execute()
2309 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_execute()
2317 if (p_state_enhaacplus_dec->bs_format == LOAS_BSFORMAT) { in ixheaacd_dec_execute()
2323 if (p_state_enhaacplus_dec->latm_initialized) in ixheaacd_dec_execute()
2325 p_state_enhaacplus_dec->latm_struct_element.layer_info[0][0] in ixheaacd_dec_execute()
2332 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_execute()
2335 if (p_state_enhaacplus_dec->i_bytes_consumed == 0) in ixheaacd_dec_execute()
2336 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_execute()
2352 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_execute()
2361 it_bit_buff, &p_state_enhaacplus_dec->latm_struct_element, in ixheaacd_dec_execute()
2362 p_state_enhaacplus_dec, in ixheaacd_dec_execute()
2366 if (!p_state_enhaacplus_dec->latm_initialized) { in ixheaacd_dec_execute()
2367 p_state_enhaacplus_dec->sampling_rate = in ixheaacd_dec_execute()
2368 p_state_enhaacplus_dec->latm_struct_element.layer_info[0][0] in ixheaacd_dec_execute()
2370 p_state_enhaacplus_dec->latm_initialized = 1; in ixheaacd_dec_execute()
2372 if (p_state_enhaacplus_dec->sampling_rate != curr_samp_rate) { in ixheaacd_dec_execute()
2373 p_state_enhaacplus_dec->i_bytes_consumed = 0; in ixheaacd_dec_execute()
2382 (p_state_enhaacplus_dec->p_config->ui_pce_found_in_hdr == 1 || in ixheaacd_dec_execute()
2383 p_state_enhaacplus_dec->p_config->ui_pce_found_in_hdr == 3)) { in ixheaacd_dec_execute()
2384 ixheaacd_fill_prog_config_slots(p_state_enhaacplus_dec); in ixheaacd_dec_execute()
2391 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_dec_execute()
2398 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD) { in ixheaacd_dec_execute()
2399 if (p_state_enhaacplus_dec->s_adts_hdr_present) in ixheaacd_dec_execute()
2400 p_state_enhaacplus_dec->frame_size = adts.aac_frame_length; in ixheaacd_dec_execute()
2403 if (p_state_enhaacplus_dec->pstr_drc_dec) { in ixheaacd_dec_execute()
2404 p_state_enhaacplus_dec->pstr_drc_dec->num_drc_elements = 0; in ixheaacd_dec_execute()
2406 p_state_enhaacplus_dec->pstr_drc_dec->state = 1; in ixheaacd_dec_execute()
2415 if (p_state_enhaacplus_dec->audio_object_type < ER_OBJECT_START || in ixheaacd_dec_execute()
2416 (p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_LD && in ixheaacd_dec_execute()
2417 p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_ELD)) { in ixheaacd_dec_execute()
2422 p_state_enhaacplus_dec->pstr_drc_dec, in ixheaacd_dec_execute()
2423 &p_state_enhaacplus_dec->drc_dummy); in ixheaacd_dec_execute()
2426 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_dec_execute()
2427 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_execute()
2428 p_state_enhaacplus_dec->b_n_raw_data_blk = 0; in ixheaacd_dec_execute()
2442 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_execute()
2443 &p_state_enhaacplus_dec->ind_cc_info; in ixheaacd_dec_execute()
2449 (WORD8 *)p_state_enhaacplus_dec->aac_scratch_mem_v + (8 * 1024), in ixheaacd_dec_execute()
2455 *)((WORD8 *)p_state_enhaacplus_dec->aac_scratch_mem_v + in ixheaacd_dec_execute()
2463 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2465 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2467 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx] = in ixheaacd_dec_execute()
2469 p_state_enhaacplus_dec, in ixheaacd_dec_execute()
2471 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx], in ixheaacd_dec_execute()
2474 (WORD8 *)p_state_enhaacplus_dec->aac_scratch_mem_v + (8 * 1024), in ixheaacd_dec_execute()
2475 p_state_enhaacplus_dec->frame_length in ixheaacd_dec_execute()
2478 if (!p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2479 p_state_enhaacplus_dec->i_bytes_consumed = 1; in ixheaacd_dec_execute()
2482 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->p_ind_channel_info = in ixheaacd_dec_execute()
2483 (WORD8 *)p_state_enhaacplus_dec->aac_scratch_mem_v + (8 * 1024) + in ixheaacd_dec_execute()
2489 actual_out_buffer = p_state_enhaacplus_dec->coup_ch_output; in ixheaacd_dec_execute()
2496 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements = 0; in ixheaacd_dec_execute()
2502 &aac_scratch_struct, p_state_enhaacplus_dec->aac_scratch_mem_v, in ixheaacd_dec_execute()
2504 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_execute()
2506 if(p_state_enhaacplus_dec->ch_config == 2 && channel == 1) in ixheaacd_dec_execute()
2516 p_state_enhaacplus_dec->pstr_drc_dec, in ixheaacd_dec_execute()
2517 p_state_enhaacplus_dec->audio_object_type, in ixheaacd_dec_execute()
2518 p_state_enhaacplus_dec->ch_config, in ixheaacd_dec_execute()
2519 p_state_enhaacplus_dec->eld_specific_config, in ixheaacd_dec_execute()
2520 p_state_enhaacplus_dec->s_adts_hdr_present, in ixheaacd_dec_execute()
2521 &p_state_enhaacplus_dec->drc_dummy); in ixheaacd_dec_execute()
2523 if (p_state_enhaacplus_dec->audio_object_type < ER_OBJECT_START || in ixheaacd_dec_execute()
2524 (p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_LD && in ixheaacd_dec_execute()
2525 p_state_enhaacplus_dec->audio_object_type != AOT_ER_AAC_ELD)) { in ixheaacd_dec_execute()
2529 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_execute()
2531 p_state_enhaacplus_dec->b_n_raw_data_blk = 0; in ixheaacd_dec_execute()
2537 num_ch = p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->channels; in ixheaacd_dec_execute()
2539 if (p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_dec_execute()
2540 p_state_enhaacplus_dec->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_dec_execute()
2541 frame_size = p_state_enhaacplus_dec->frame_length; in ixheaacd_dec_execute()
2546 p_state_enhaacplus_dec->pstr_aac_dec_info[ch_idx]->sampling_rate; in ixheaacd_dec_execute()
2551 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements = 0; in ixheaacd_dec_execute()
2554 if (p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements != 0) { in ixheaacd_dec_execute()
2559 if (p_state_enhaacplus_dec->ui_input_over) { in ixheaacd_dec_execute()
2562 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_dec_execute()
2564 p_state_enhaacplus_dec->num_of_out_samples * num_ch * sizeof(WORD16); in ixheaacd_dec_execute()
2571 if (p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements == 0 && in ixheaacd_dec_execute()
2572 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2573 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2577 if ((!p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) && in ixheaacd_dec_execute()
2578 p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0].no_elements) { in ixheaacd_dec_execute()
2581 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = ixheaacd_init_sbr( in ixheaacd_dec_execute()
2584 p_state_enhaacplus_dec->sbr_persistent_mem_v, in ixheaacd_dec_execute()
2585 p_state_enhaacplus_dec->ptr_overlap_buf, ps_enable ? 2 : channel, in ixheaacd_dec_execute()
2587 p_state_enhaacplus_dec->str_sbr_config, in ixheaacd_dec_execute()
2588 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_execute()
2589 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]) { in ixheaacd_dec_execute()
2590 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx]->xaac_jmp_buf = in ixheaacd_dec_execute()
2591 &(p_state_enhaacplus_dec->xaac_jmp_buf); in ixheaacd_dec_execute()
2596 if (p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] && in ixheaacd_dec_execute()
2597 p_state_enhaacplus_dec->pstr_stream_sbr[0][0].no_elements) { in ixheaacd_dec_execute()
2600 p_state_enhaacplus_dec->aac_scratch_mem_v, in ixheaacd_dec_execute()
2602 p_state_enhaacplus_dec->audio_object_type); in ixheaacd_dec_execute()
2605 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx], in ixheaacd_dec_execute()
2606 &p_state_enhaacplus_dec->pstr_stream_sbr[ch_idx][0], in ixheaacd_dec_execute()
2611 slot_ele, NULL, &p_state_enhaacplus_dec->str_drc_dec_info, in ixheaacd_dec_execute()
2612 p_state_enhaacplus_dec->eld_specific_config.ld_sbr_flag_present, in ixheaacd_dec_execute()
2613 p_state_enhaacplus_dec->audio_object_type) != SBRDEC_OK) { in ixheaacd_dec_execute()
2614 p_state_enhaacplus_dec->str_sbr_dec_info[ch_idx] = 0; in ixheaacd_dec_execute()
2631 p_state_enhaacplus_dec->num_channel_last = num_ch; in ixheaacd_dec_execute()
2632 p_state_enhaacplus_dec->num_of_out_samples = num_of_out_samples; in ixheaacd_dec_execute()
2650 p_state_enhaacplus_dec->num_of_out_samples * num_ch * sizeof(WORD16); in ixheaacd_dec_execute()
2661 p_state_enhaacplus_dec->ptr_bit_stream->pstr_adts_crc_info; in ixheaacd_dec_execute()
2671 p_state_enhaacplus_dec->frame_counter++; in ixheaacd_dec_execute()
2675 p_state_enhaacplus_dec->coup_ch_output, in ixheaacd_dec_execute()
2685 p_state_enhaacplus_dec->num_of_out_samples * 2 * sizeof(WORD16); in ixheaacd_dec_execute()
2697 p_state_enhaacplus_dec->num_of_out_samples * out_ch * sizeof(WORD16); in ixheaacd_dec_execute()
2713 if (p_state_enhaacplus_dec->s_adts_hdr_present) { in ixheaacd_dec_execute()
2719 p_state_enhaacplus_dec->b_n_raw_data_blk--; in ixheaacd_dec_execute()
2722 ixheaacd_updatebytesconsumed(p_state_enhaacplus_dec, it_bit_buff); in ixheaacd_dec_execute()
2724 if (p_state_enhaacplus_dec->bs_format == LOAS_BSFORMAT) in ixheaacd_dec_execute()
2725 p_state_enhaacplus_dec->i_bytes_consumed = in ixheaacd_dec_execute()