Loading lib_dec/fd_cng_dec.c +1 −1 Original line number Diff line number Diff line Loading @@ -1360,7 +1360,7 @@ void generate_comfort_noise_dec_hf( { seed2 = &( hFdCngCom->seed3 ); c1 = (float) sqrt( hFdCngCom->coherence ); // VE!!!!! all occurences of "(float) sqrt()" should be replaced by "sqrtf()" c1 = (float) sqrt( hFdCngCom->coherence ); c2 = (float) sqrt( 1 - hFdCngCom->coherence ); } Loading lib_enc/ivas_stereo_dmx_evs.c +12 −12 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ static void calc_poc( } } // ISD /* ISD */ isd_cnt_l = 0; isd_cnt_h = 0; for ( i = 1; i <= freq_8k; i++ ) Loading Loading @@ -484,17 +484,17 @@ static void calc_poc( for ( j = 0; j < STEREO_DMX_EVS_SUBBAND_SIZE; j++, i++ ) { // Energy /* Energy */ tEl[n] += specLr[i] * specLr[i] + specLi[i] * specLi[i]; tEr[n] += specRr[i] * specRr[i] + specRi[i] * specRi[i]; // IPD /* IPD */ IPDr = specLr[i] * specRr[i] + specLi[i] * specRi[i]; IPDi = specLi[i] * specRr[i] - specLr[i] * specRi[i]; tPr += IPDr; tPi += IPDi; // ICCr /* ICCr */ Pn = (float) inv_sqrt( ( IPDr * IPDr + IPDi * IPDi ) + EPSILON ); IPDr *= Pn; IPDi *= Pn; Loading Loading @@ -575,7 +575,7 @@ static void calc_poc( { if ( ( hPHA->iccr_s < STEREO_DMX_EVS_ICCR_HYST_L ) || ( ( hPHA->iccr_s < STEREO_DMX_EVS_ICCR_HYST_H ) && ( hPHA->p_curr_taps[0] != NULL ) ) ) { // IPDn /* IPDn */ set_f( &( Pr[freq_ipd_max] ), 1.0f, ( nsbd - freq_ipd_max ) ); set_f( &( Pi[freq_ipd_max] ), 0.0f, ( nsbd - freq_ipd_max ) ); Loading Loading @@ -625,7 +625,7 @@ static void calc_poc( rfft( rfft_pha_buf, hPHA->rfft_ipd_coef, input_frame_pha, +1 ); mvr2r( rfft_pha_buf, hPHA->p_curr_taps[1], hPHA->pha_len ); // PHA L2R /* PHA L2R */ p_curr_taps = hPHA->p_curr_taps[0]; p_curr_taps[0] = rfft_pha_buf[0]; for ( i = 1; i < hPHA->pha_len; i++ ) Loading Loading @@ -1195,7 +1195,7 @@ void stereo_dmx_evs_enc( estimate_itd( &corr, hStereoDmxEVS->hPOC, hStereoDmxEVS->hPHA, data_f[0], data_f[1], &hStereoDmxEVS->itd, input_frame ); // poc /* poc */ if ( hStereoDmxEVS->itd ) { Loading @@ -1209,7 +1209,7 @@ void stereo_dmx_evs_enc( create_M_signal( data_f[0], data_f[1], dmx_poc_data, dmx_weight, input_frame, hStereoDmxEVS->s_wnd, hStereoDmxEVS->dmx_weight, hStereoDmxEVS->pre_dmx_energy, hStereoDmxEVS->aux_dmx_energy ); // pha /* pha */ pha_len = hStereoDmxEVS->hPHA->pha_len; fad_len = hStereoDmxEVS->hPHA->fad_len; Loading Loading @@ -1273,7 +1273,7 @@ void stereo_dmx_evs_enc( dmx_pha_data[n] += ( mem_prev[n] ) * fad_g[m]; } // prc switch /* prc switch */ curr_prc = hStereoDmxEVS->hPHA->curr_prc; if ( abs( (int16_t) hStereoDmxEVS->itd ) > hStereoDmxEVS->hPHA->prc_thres ) Loading Loading @@ -1543,10 +1543,10 @@ ivas_error stereo_dmx_evs_init_encoder( hStereoDmxEVS->hPHA->prev_pha = STEREO_DMX_EVS_PHA_IPD; hStereoDmxEVS->hPHA->pha_hys_cnt = 0; // Compute the forgetting factor /* Compute the forgetting factor */ a_min = 0.8576958985908941f; a_max = 0.9440608762859234f; itrh = (int16_t) ( ( 3000 * input_frame ) / ( input_Fs * STEREO_DMX_EVS_SUBBAND_SIZE ) ); // 3kHz itrh = (int16_t) ( ( 3000 * input_frame ) / ( input_Fs * STEREO_DMX_EVS_SUBBAND_SIZE ) ); /* 3kHz */ n0 = L_FRAME16k / ( 2 * STEREO_DMX_EVS_SUBBAND_SIZE ); a_step = ( a_min - a_max ) / ( n0 + 1 - itrh ); ipd_ff = hStereoDmxEVS->hPHA->ipd_ff; Loading @@ -1554,7 +1554,7 @@ ivas_error stereo_dmx_evs_init_encoder( { ipd_ff[n] = a_max; } for ( ; n < ( n0 + 1 ); n++ ) // 8kHz for ( ; n < ( n0 + 1 ); n++ ) /* 8kHz */ { ipd_ff[n] = a_max + ( n - itrh ) * a_step; } Loading Loading
lib_dec/fd_cng_dec.c +1 −1 Original line number Diff line number Diff line Loading @@ -1360,7 +1360,7 @@ void generate_comfort_noise_dec_hf( { seed2 = &( hFdCngCom->seed3 ); c1 = (float) sqrt( hFdCngCom->coherence ); // VE!!!!! all occurences of "(float) sqrt()" should be replaced by "sqrtf()" c1 = (float) sqrt( hFdCngCom->coherence ); c2 = (float) sqrt( 1 - hFdCngCom->coherence ); } Loading
lib_enc/ivas_stereo_dmx_evs.c +12 −12 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ static void calc_poc( } } // ISD /* ISD */ isd_cnt_l = 0; isd_cnt_h = 0; for ( i = 1; i <= freq_8k; i++ ) Loading Loading @@ -484,17 +484,17 @@ static void calc_poc( for ( j = 0; j < STEREO_DMX_EVS_SUBBAND_SIZE; j++, i++ ) { // Energy /* Energy */ tEl[n] += specLr[i] * specLr[i] + specLi[i] * specLi[i]; tEr[n] += specRr[i] * specRr[i] + specRi[i] * specRi[i]; // IPD /* IPD */ IPDr = specLr[i] * specRr[i] + specLi[i] * specRi[i]; IPDi = specLi[i] * specRr[i] - specLr[i] * specRi[i]; tPr += IPDr; tPi += IPDi; // ICCr /* ICCr */ Pn = (float) inv_sqrt( ( IPDr * IPDr + IPDi * IPDi ) + EPSILON ); IPDr *= Pn; IPDi *= Pn; Loading Loading @@ -575,7 +575,7 @@ static void calc_poc( { if ( ( hPHA->iccr_s < STEREO_DMX_EVS_ICCR_HYST_L ) || ( ( hPHA->iccr_s < STEREO_DMX_EVS_ICCR_HYST_H ) && ( hPHA->p_curr_taps[0] != NULL ) ) ) { // IPDn /* IPDn */ set_f( &( Pr[freq_ipd_max] ), 1.0f, ( nsbd - freq_ipd_max ) ); set_f( &( Pi[freq_ipd_max] ), 0.0f, ( nsbd - freq_ipd_max ) ); Loading Loading @@ -625,7 +625,7 @@ static void calc_poc( rfft( rfft_pha_buf, hPHA->rfft_ipd_coef, input_frame_pha, +1 ); mvr2r( rfft_pha_buf, hPHA->p_curr_taps[1], hPHA->pha_len ); // PHA L2R /* PHA L2R */ p_curr_taps = hPHA->p_curr_taps[0]; p_curr_taps[0] = rfft_pha_buf[0]; for ( i = 1; i < hPHA->pha_len; i++ ) Loading Loading @@ -1195,7 +1195,7 @@ void stereo_dmx_evs_enc( estimate_itd( &corr, hStereoDmxEVS->hPOC, hStereoDmxEVS->hPHA, data_f[0], data_f[1], &hStereoDmxEVS->itd, input_frame ); // poc /* poc */ if ( hStereoDmxEVS->itd ) { Loading @@ -1209,7 +1209,7 @@ void stereo_dmx_evs_enc( create_M_signal( data_f[0], data_f[1], dmx_poc_data, dmx_weight, input_frame, hStereoDmxEVS->s_wnd, hStereoDmxEVS->dmx_weight, hStereoDmxEVS->pre_dmx_energy, hStereoDmxEVS->aux_dmx_energy ); // pha /* pha */ pha_len = hStereoDmxEVS->hPHA->pha_len; fad_len = hStereoDmxEVS->hPHA->fad_len; Loading Loading @@ -1273,7 +1273,7 @@ void stereo_dmx_evs_enc( dmx_pha_data[n] += ( mem_prev[n] ) * fad_g[m]; } // prc switch /* prc switch */ curr_prc = hStereoDmxEVS->hPHA->curr_prc; if ( abs( (int16_t) hStereoDmxEVS->itd ) > hStereoDmxEVS->hPHA->prc_thres ) Loading Loading @@ -1543,10 +1543,10 @@ ivas_error stereo_dmx_evs_init_encoder( hStereoDmxEVS->hPHA->prev_pha = STEREO_DMX_EVS_PHA_IPD; hStereoDmxEVS->hPHA->pha_hys_cnt = 0; // Compute the forgetting factor /* Compute the forgetting factor */ a_min = 0.8576958985908941f; a_max = 0.9440608762859234f; itrh = (int16_t) ( ( 3000 * input_frame ) / ( input_Fs * STEREO_DMX_EVS_SUBBAND_SIZE ) ); // 3kHz itrh = (int16_t) ( ( 3000 * input_frame ) / ( input_Fs * STEREO_DMX_EVS_SUBBAND_SIZE ) ); /* 3kHz */ n0 = L_FRAME16k / ( 2 * STEREO_DMX_EVS_SUBBAND_SIZE ); a_step = ( a_min - a_max ) / ( n0 + 1 - itrh ); ipd_ff = hStereoDmxEVS->hPHA->ipd_ff; Loading @@ -1554,7 +1554,7 @@ ivas_error stereo_dmx_evs_init_encoder( { ipd_ff[n] = a_max; } for ( ; n < ( n0 + 1 ); n++ ) // 8kHz for ( ; n < ( n0 + 1 ); n++ ) /* 8kHz */ { ipd_ff[n] = a_max + ( n - itrh ) * a_step; } Loading