Loading lib_rend/lib_rend_fx.c +1 −11 Original line number Diff line number Diff line Loading @@ -583,29 +583,19 @@ static void audio_buffer_td_to_cldfb_fx( td_read_ptr += num_bands; #ifdef FIX_2283_Q_CLDFB /* scale re and im according to exp-q_cldfb */ { Word16 exp = *( cldfb_buffer.pq_fact ); Word16 noChannels = cldfbAna[ch]->no_channels; #ifdef FIX_2283_ACCU_CLDFB Word16 scale = sub( exp, q_cldfb ); FOR( Word16 j = 0; j < noChannels; j++ ) { re[j] = L_shl( re[j], scale ); /*Q(exp)*/ im[j] = L_shl( im[j], scale ); /*Q(exp)*/ } #else Word16 scale = sub( sub( exp, q_cldfb ), 1 ); FOR( Word16 j = 0; j < noChannels; j++ ) { re[j] = L_shl( re[j], scale ); /*Q(exp)*/ im[j] = L_shl( im[j], scale ); /*Q(exp)*/ } #endif } #endif FOR( int smplIdx = 0; smplIdx < num_bands; smplIdx++ ) { *cldfb_write_ptr = L_add( *cldfb_write_ptr, re[smplIdx] ); Loading Loading
lib_rend/lib_rend_fx.c +1 −11 Original line number Diff line number Diff line Loading @@ -583,29 +583,19 @@ static void audio_buffer_td_to_cldfb_fx( td_read_ptr += num_bands; #ifdef FIX_2283_Q_CLDFB /* scale re and im according to exp-q_cldfb */ { Word16 exp = *( cldfb_buffer.pq_fact ); Word16 noChannels = cldfbAna[ch]->no_channels; #ifdef FIX_2283_ACCU_CLDFB Word16 scale = sub( exp, q_cldfb ); FOR( Word16 j = 0; j < noChannels; j++ ) { re[j] = L_shl( re[j], scale ); /*Q(exp)*/ im[j] = L_shl( im[j], scale ); /*Q(exp)*/ } #else Word16 scale = sub( sub( exp, q_cldfb ), 1 ); FOR( Word16 j = 0; j < noChannels; j++ ) { re[j] = L_shl( re[j], scale ); /*Q(exp)*/ im[j] = L_shl( im[j], scale ); /*Q(exp)*/ } #endif } #endif FOR( int smplIdx = 0; smplIdx < num_bands; smplIdx++ ) { *cldfb_write_ptr = L_add( *cldfb_write_ptr, re[smplIdx] ); Loading