Lines Matching refs:ptr_header_data
86 ia_sbr_header_data_struct *ptr_header_data, in ixheaacd_sbr_dec_reset() argument
95 WORD32 upsample_ratio_idx = ptr_header_data->sbr_ratio_idx; in ixheaacd_sbr_dec_reset()
97 WORD32 hbe_flag = ptr_header_data->hbe_flag; in ixheaacd_sbr_dec_reset()
98 WORD32 usac_flag = ptr_header_data->usac_flag; in ixheaacd_sbr_dec_reset()
100 if (ptr_header_data->is_usf_4) { in ixheaacd_sbr_dec_reset()
106 new_lsb = ptr_header_data->pstr_freq_band_data->sub_band_start; in ixheaacd_sbr_dec_reset()
109 ptr_header_data->pstr_freq_band_data->sub_band_end; in ixheaacd_sbr_dec_reset()
141 start_band = ptr_header_data->pstr_freq_band_data->qmf_sb_prev; in ixheaacd_sbr_dec_reset()
142 stop_band = ptr_header_data->pstr_freq_band_data->sub_band_start; in ixheaacd_sbr_dec_reset()
161 ptr_header_data->pstr_freq_band_data->freq_band_table, in ixheaacd_sbr_dec_reset()
162 ptr_header_data->pstr_freq_band_data->num_sf_bands, in ixheaacd_sbr_dec_reset()
163 ptr_header_data->is_usf_4); in ixheaacd_sbr_dec_reset()
204 ptr_header_data, audio_object_type); in ixheaacd_sbr_dec_reset()
207 ptr_header_data, in ixheaacd_sbr_dec_reset()
216 WORD32 ixheaacd_prepare_upsamp(ia_sbr_header_data_struct **ptr_header_data, in ixheaacd_prepare_upsamp() argument
224 ptr_header_data[lr]->pstr_freq_band_data->sub_band_start = in ixheaacd_prepare_upsamp()
226 ptr_header_data[lr]->pstr_freq_band_data->sub_band_end = in ixheaacd_prepare_upsamp()
236 ptr_header_data[lr]->sync_state = UPSAMPLING; in ixheaacd_prepare_upsamp()
264 ia_sbr_header_data_struct *ptr_header_data[MAXNRSBRCHANNELS]; in ixheaacd_applysbr() local
278 ptr_header_data[k] = self->pstr_sbr_header[k]; in ixheaacd_applysbr()
282 ptr_frame_data[k]->num_time_slots = ptr_header_data[0]->num_time_slots; in ixheaacd_applysbr()
301 ptr_header_data[k]->usac_flag = self->aot_usac_flag; in ixheaacd_applysbr()
303 ptr_header_data[k]->usac_independency_flag = self->usac_independency_flag; in ixheaacd_applysbr()
304 ptr_header_data[k]->hbe_flag = self->hbe_flag; in ixheaacd_applysbr()
305 ptr_header_data[k]->pvc_flag = self->pvc_flag; in ixheaacd_applysbr()
308 ptr_header_data[k]->usac_independency_flag = 0; in ixheaacd_applysbr()
309 ptr_header_data[k]->hbe_flag = 0; in ixheaacd_applysbr()
310 ptr_header_data[k]->pvc_flag = 0; in ixheaacd_applysbr()
314 initial_sync_state = ptr_header_data[0]->sync_state; in ixheaacd_applysbr()
330 prev_stereo = (ptr_header_data[0]->channel_mode == SBR_STEREO); in ixheaacd_applysbr()
332 if (ps_enable) prev_ps_flag = (ptr_header_data[0]->channel_mode == PS_STEREO); in ixheaacd_applysbr()
334 ptr_header_data[0]->err_flag_prev = ptr_header_data[0]->err_flag; in ixheaacd_applysbr()
338 ptr_header_data[0]->sync_state = UPSAMPLING; in ixheaacd_applysbr()
339 if (num_channels == 2) ptr_header_data[1]->sync_state = UPSAMPLING; in ixheaacd_applysbr()
368 ptr_header_data[1] = ptr_header_data[0]; in ixheaacd_applysbr()
413 ptr_header_data[k], it_bit_buff, stereo, ptr_sbr_dflt_header); in ixheaacd_applysbr()
416 (ptr_header_data[k]->pvc_mode != 0)) { in ixheaacd_applysbr()
420 ptr_header_data[k]->pvc_mode; in ixheaacd_applysbr()
421 if (ptr_header_data[k]->pvc_mode == 0) { in ixheaacd_applysbr()
428 err = ixheaacd_calc_frq_bnd_tbls(ptr_header_data[k], in ixheaacd_applysbr()
438 &(pstr_sbr_channel[lr]->str_sbr_dec), ptr_header_data[k], in ixheaacd_applysbr()
446 ptr_header_data[k]->sync_state = SBR_ACTIVE; in ixheaacd_applysbr()
453 ptr_header_data[k], it_bit_buff, stereo, ptr_sbr_dflt_header); in ixheaacd_applysbr()
456 (ptr_header_data[k]->pvc_mode != 0)) { in ixheaacd_applysbr()
460 ptr_header_data[k]->pvc_mode; in ixheaacd_applysbr()
461 if (ptr_header_data[k]->pvc_mode == 0) { in ixheaacd_applysbr()
469 err = ixheaacd_calc_frq_bnd_tbls(ptr_header_data[k], in ixheaacd_applysbr()
483 if (ptr_header_data[k]->status) { in ixheaacd_applysbr()
485 &(pstr_sbr_channel[lr]->str_sbr_dec), ptr_header_data[k], in ixheaacd_applysbr()
491 ptr_header_data[k]->status = 0; in ixheaacd_applysbr()
495 ptr_header_data[k]->sync_state = SBR_ACTIVE; in ixheaacd_applysbr()
500 if (err || (ptr_header_data[k]->sync_state == SBR_NOT_INITIALIZED)) { in ixheaacd_applysbr()
502 ixheaacd_prepare_upsamp(ptr_header_data, pstr_sbr_channel, lr1); in ixheaacd_applysbr()
505 if (frame_status && (ptr_header_data[k]->sync_state == SBR_ACTIVE)) { in ixheaacd_applysbr()
507 frame_status = ixheaacd_sbr_read_cpe(ptr_header_data[0], ptr_frame_data, in ixheaacd_applysbr()
522 ptr_header_data[k], ptr_frame_data[k], self->pstr_ps_stereo_dec, in ixheaacd_applysbr()
527 self->pstr_sbr_tables, ptr_header_data[k]); in ixheaacd_applysbr()
543 if (!frame_status || (ptr_header_data[0]->sync_state != SBR_ACTIVE) || in ixheaacd_applysbr()
544 ptr_header_data[0]->err_flag) { in ixheaacd_applysbr()
545 ptr_header_data[0]->err_flag = 1; in ixheaacd_applysbr()
547 if (ptr_header_data[0]->channel_mode == 0) { in ixheaacd_applysbr()
548 ptr_header_data[0]->channel_mode = stereo ? SBR_STEREO : SBR_MONO; in ixheaacd_applysbr()
557 if (ptr_header_data[0]->sync_state == SBR_NOT_INITIALIZED) { in ixheaacd_applysbr()
559 ixheaacd_prepare_upsamp(ptr_header_data, pstr_sbr_channel, lr1); in ixheaacd_applysbr()
563 if (ptr_header_data[0]->sync_state == SBR_ACTIVE) { in ixheaacd_applysbr()
566 ptr_header_data[0], ptr_frame_data[0], in ixheaacd_applysbr()
571 ptr_header_data[0], ptr_header_data[1], ptr_frame_data[0], in ixheaacd_applysbr()
581 if (ptr_header_data[0]->channel_mode == PS_STEREO && in ixheaacd_applysbr()
590 ptr_header_data[0]->pstr_freq_band_data->sub_band_start; in ixheaacd_applysbr()
593 ptr_header_data[1]->pstr_freq_band_data->sub_band_start; in ixheaacd_applysbr()
598 ptr_header_data[0]->err_flag) { in ixheaacd_applysbr()
599 ptr_header_data[0]->sync_state = SBR_NOT_INITIALIZED; in ixheaacd_applysbr()
602 ptr_header_data[0]->sync_state = SBR_ACTIVE; in ixheaacd_applysbr()
663 ptr_header_data[0], ptr_frame_data[0], in ixheaacd_applysbr()
667 (ptr_header_data[0]->sync_state == SBR_ACTIVE), low_pow_flag, in ixheaacd_applysbr()
676 ptr_header_data[0], ptr_frame_data[0], in ixheaacd_applysbr()
680 (ptr_header_data[0]->sync_state == SBR_ACTIVE), low_pow_flag, in ixheaacd_applysbr()
694 &pstr_sbr_channel[1]->str_sbr_dec, ptr_header_data[1], in ixheaacd_applysbr()
695 ptr_frame_data[1], (ptr_header_data[1]->sync_state == SBR_ACTIVE), in ixheaacd_applysbr()
702 core_sample_buf + slot_element + 1, ptr_header_data[1], in ixheaacd_applysbr()
704 NULL, NULL, (ptr_header_data[1]->sync_state == SBR_ACTIVE), in ixheaacd_applysbr()
712 core_sample_buf + slot_element + 1, ptr_header_data[1], in ixheaacd_applysbr()
714 NULL, NULL, (ptr_header_data[1]->sync_state == SBR_ACTIVE), in ixheaacd_applysbr()
729 if (sub_d((WORD16)ptr_header_data[0]->channel_mode, PS_STEREO) == 0) { in ixheaacd_applysbr()