L_tmp=L_mac(-473117491/* 28.2f in Q24 */,19661/* 0.6f in Q15 */,extract_h(st_fx->lp_noise_32fx));// Q24
L_tmp=L_mac(-473117491/* 28.2f in Q24 */,19661/* 0.6f in Q15 */,loc_lp_noise);// Q24
relE_thres=round_fx(L_tmp);
}
relE_thres=s_max(relE_thres,-6400/* -25.0f in Q8 */);/* Q8 */
@@ -889,7 +942,7 @@ Word16 find_uv_ivas_fx( /* o : coding typ
test();
test();
test();
IF(((LT_16(add_sat(mean_voi3,corr_shift),add(22282/* 0.68 in Q15 */,mean_voi3_offset)))&&/* normalized correlation low */
if(((LT_16(add_sat(mean_voi3,corr_shift),add(22282/* 0.68 in Q15 */,mean_voi3_offset)))&&/* normalized correlation low */
(LT_16(add_sat(st_fx->voicing_fx[2],corr_shift),25887/* 0.79 in Q15 */))&&/* normalized correlation low on look-ahead - onset detection */
(LT_32(ee[0],640/* 10.0f in Q6 */))&&(GT_32(hp_E[0],E_min_th))&&/* energy concentrated in high frequencies provided that some energy is present in HF... */
(LT_32(ee[1],ee1_th))&&(GT_32(hp_E[1],E_min_th))&&/* ... biased towards look-ahead to detect onsets */
@@ -905,6 +958,25 @@ Word16 find_uv_ivas_fx( /* o : coding typ
move16();
}
}
#ifdef FIX_2349_HARM_FIND_UV
ELSEIF(st_fx->element_mode==EVS_MONO)
{
if(((LT_16(add_sat(mean_voi3,corr_shift),add(22774/* 0.695f in Q15 */,mean_voi3_offset)))&&/* normalized correlation low */
(LT_16(add_sat(st_fx->voicing_fx[2],corr_shift),25887/* 0.8 in Q15 */))&&/* normalized correlation low on look-ahead - onset detection */
(LT_32(ee[0],397/* 6.2f in Q6 */))&&(GT_32(hp_E[0],E_min_th))&&/* energy concentrated in high frequencies provided that some energy is present in HF... */
(LT_32(ee[1],397/* 6.2f in Q6 */))&&(GT_32(hp_E[1],E_min_th))&&/* ... biased towards look-ahead to detect onsets */
(tmp_offset_flag==0)&&/* Take care of voiced offsets */
/*( st_fx->music_hysteresis_fx == 0 ) && *//* ... and in segment after AUDIO frames */
(LE_32(dE1,245760/* 30.0f in Q13 */))&&/* Avoid on sharp energy spikes */
(LE_32(st_fx->old_dE1_fx,245760/* 30.0f in Q13 */))&&/* + one frame hysteresis */
(st_fx->spike_hyst<0))/* Avoid after sharp energy spikes followed by decay (e.g. castanets) */
||(flag_low_relE&&(LE_32(st_fx->old_dE1_fx,245760/* 30.0f in Q13 */))))/* low relative frame energy (only for SC-VBR) */
{
coder_type=UNVOICED;
move16();
}
}
#endif
ELSE
{
test();
@@ -917,7 +989,7 @@ Word16 find_uv_ivas_fx( /* o : coding typ
test();
test();
if(((LT_16(add_sat(mean_voi3,corr_shift),add(22774/* 0.695f in Q15 */,mean_voi3_offset)))&&/* normalized correlation low */
(LT_32(ee[0],397/* 6.2f in Q6 */))&&(GT_32(hp_E[0],E_min_th))&&/* energy concentrated in high frequencies provided that some energy is present in HF... */
(LT_32(ee[1],397/* 6.2f in Q16 */))&&(GT_32(hp_E[1],E_min_th))&&/* ... biased towards look-ahead to detect onsets */
(tmp_offset_flag==0)&&/* Take care of voiced offsets */
@@ -935,6 +1007,7 @@ Word16 find_uv_ivas_fx( /* o : coding typ