Lines Matching refs:ch

89   WORD32 ch, n;  in ixheaacd_mps_temp_process_scale_calc()  local
93 for (ch = 0; ch < 2; ch++) { in ixheaacd_mps_temp_process_scale_calc()
94 self->subband_var.tp_scale_last[ch] = 1.0f; in ixheaacd_mps_temp_process_scale_calc()
95 self->subband_var.nrg_diff_prev[ch] = 32768 * 32768; in ixheaacd_mps_temp_process_scale_calc()
105 for (ch = 0; ch < self->out_ch_count; ch++) in ixheaacd_mps_temp_process_scale_calc()
106 self->subband_var.nrg_diff_prev[ch] = self->subband_var.nrg_diff[ch]; in ixheaacd_mps_temp_process_scale_calc()
130 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process_scale_calc()
131 diff_energy[ch] = 0; in ixheaacd_mps_temp_process_scale_calc()
133 FLOAT32 diff_re = self->hyb_diff_out[ch][ts][n + 7].re; in ixheaacd_mps_temp_process_scale_calc()
134 FLOAT32 diff_im = self->hyb_diff_out[ch][ts][n + 7].im; in ixheaacd_mps_temp_process_scale_calc()
137 diff_energy[ch] += temp * ixheaacd_bp[n] * ixheaacd_bp[n] * in ixheaacd_mps_temp_process_scale_calc()
141 self->subband_var.nrg_diff[ch] = in ixheaacd_mps_temp_process_scale_calc()
142 (FLOAT32)(STP_LPF_COEFF1 * self->subband_var.nrg_diff[ch] + in ixheaacd_mps_temp_process_scale_calc()
143 (1.0 - STP_LPF_COEFF1) * diff_energy[ch]); in ixheaacd_mps_temp_process_scale_calc()
144 diff_energy[ch] /= (self->subband_var.nrg_diff_prev[ch] + ABS_THR); in ixheaacd_mps_temp_process_scale_calc()
151 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process_scale_calc()
152 scale[ch] = STP_DAMP + (1 - STP_DAMP) * scale[ch]; in ixheaacd_mps_temp_process_scale_calc()
155 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process_scale_calc()
156 scale[ch] = in ixheaacd_mps_temp_process_scale_calc()
157 min(max(scale[ch], (FLOAT32)(1.0 / STP_SCALE_LIMIT)), STP_SCALE_LIMIT); in ixheaacd_mps_temp_process_scale_calc()
160 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process_scale_calc()
161 scale[ch] = in ixheaacd_mps_temp_process_scale_calc()
162 (FLOAT32)(STP_LPF_COEFF2 * scale[ch] + in ixheaacd_mps_temp_process_scale_calc()
163 (1.0 - STP_LPF_COEFF2) * self->subband_var.tp_scale_last[ch]); in ixheaacd_mps_temp_process_scale_calc()
164 self->subband_var.tp_scale_last[ch] = scale[ch]; in ixheaacd_mps_temp_process_scale_calc()
170 WORD32 ch, n; in ixheaacd_mps_subbandtp() local
177 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_subbandtp()
182 no_scaling = !self->temp_shape_enable_ch_stp[ch]; in ixheaacd_mps_subbandtp()
186 self->hyb_dir_out[ch][ts][n].re += self->hyb_diff_out[ch][ts][n].re; in ixheaacd_mps_subbandtp()
187 self->hyb_dir_out[ch][ts][n].im += self->hyb_diff_out[ch][ts][n].im; in ixheaacd_mps_subbandtp()
192 (FLOAT32)(scale[ch] * ixheaacd_bp[ixheaacd_hybrid_to_qmf_map[n]]); in ixheaacd_mps_subbandtp()
193 self->hyb_dir_out[ch][ts][n].re += in ixheaacd_mps_subbandtp()
194 (self->hyb_diff_out[ch][ts][n].re * temp); in ixheaacd_mps_subbandtp()
195 self->hyb_dir_out[ch][ts][n].im += in ixheaacd_mps_subbandtp()
196 (self->hyb_diff_out[ch][ts][n].im * temp); in ixheaacd_mps_subbandtp()
199 temp = (FLOAT32)(scale[ch] * ixheaacd_bp[n + 3 - 10]); in ixheaacd_mps_subbandtp()
200 self->hyb_dir_out[ch][ts][n].re += in ixheaacd_mps_subbandtp()
201 (self->hyb_diff_out[ch][ts][n].re * temp); in ixheaacd_mps_subbandtp()
202 self->hyb_dir_out[ch][ts][n].im += in ixheaacd_mps_subbandtp()
203 (self->hyb_diff_out[ch][ts][n].im * temp); in ixheaacd_mps_subbandtp()
206 temp = (FLOAT32)(scale[ch]); in ixheaacd_mps_subbandtp()
207 self->hyb_dir_out[ch][ts][n].re += in ixheaacd_mps_subbandtp()
208 (self->hyb_diff_out[ch][ts][n].re * temp); in ixheaacd_mps_subbandtp()
209 self->hyb_dir_out[ch][ts][n].im += in ixheaacd_mps_subbandtp()
210 (self->hyb_diff_out[ch][ts][n].im * temp); in ixheaacd_mps_subbandtp()
217 WORD32 ch, ts, hyb; in ixheaacd_mps_temp_process() local
220 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process()
223 self->hyb_dir_out[ch][ts][hyb].re += self->hyb_diff_out[ch][ts][hyb].re; in ixheaacd_mps_temp_process()
224 self->hyb_dir_out[ch][ts][hyb].im += self->hyb_diff_out[ch][ts][hyb].im; in ixheaacd_mps_temp_process()
225 self->hyb_diff_out[ch][ts][hyb].re = 0; in ixheaacd_mps_temp_process()
226 self->hyb_diff_out[ch][ts][hyb].im = 0; in ixheaacd_mps_temp_process()
235 for (ch = 0; ch < self->out_ch_count; ch++) { in ixheaacd_mps_temp_process()
236 err = ixheaacd_sbr_dec_from_mps(&self->qmf_out_dir[ch][0][0].re, in ixheaacd_mps_temp_process()
237 self->p_sbr_dec[ch], self->p_sbr_frame[ch], in ixheaacd_mps_temp_process()
238 self->p_sbr_header[ch]); in ixheaacd_mps_temp_process()