Commit 7a59fe87 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

EVS BE fix

parent 81ce4929
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -332,12 +332,12 @@ void edst_fx(
        move32();
    }

    *q = sub( 31, *q );
    *q = sub( 15, *q );
    move16();
    BASOP_cfft( (cmplx *) complex_buf, len1, q, y );

    tmp = div_s( 4, length );                                         /*Q17 */
    tmp = round_fx( L_mult( tmp, 19302 /*0.75f * EVS_PI in Q13*/ ) ); /*Q15 */
    tmp = div_s( 1, length );                                                     /*Q15 */
    tmp = round_fx( L_shl( L_mult( tmp, 19302 /*0.75f * EVS_PI in Q13*/ ), 2 ) ); /*Q15 */
    FOR( i = 0; i < len1; i++ )
    {
        re = Msub_32_16( complex_buf[2 * i], complex_buf[( ( i * 2 ) + 1 )], tmp );                              /*Qq+1*/
@@ -348,7 +348,7 @@ void edst_fx(
        move32();
    } /*Q(q) */

    *q = sub( 31 + 2, *q );
    *q = sub( 15 + 2, *q );
    move16();

    return;
+1 −1
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ void bw_detect_fx(
                    in_win32[i] = L_mult( *pt++, *pt1-- );
                    move32();
                }
                edct_ivas_fx( in_win32, spect32, BWD_TOTAL_WIDTH, &Q_dct /*,st->element_mode*/ );
                edct_fx( in_win32, spect32, BWD_TOTAL_WIDTH, &Q_dct /*,st->element_mode*/ );

                FOR( i = 0; i < BWD_TOTAL_WIDTH; i++ )
                {
+2 −2
Original line number Diff line number Diff line
@@ -3235,7 +3235,7 @@ void QuantizeSpectrum_fx(

                    /* DCT */
                    Q = sub( 31, *spectrum_e );
                    edct_ivas_fx( spectrum, tmp_buf, L_frame, &Q );
                    edct_fx( spectrum, tmp_buf, L_frame, &Q );

                    /* scale by sqrt(L / NORM_MDCT_FACTOR) */
                    tmp1 = mult_r( shl( L_frame, 4 ), 26214 /*128.f / NORM_MDCT_FACTOR Q15*/ ); /* 4Q11 */
@@ -4489,7 +4489,7 @@ void coder_tcx_fx(
        Q = sub( Q, tmp2 );

        /* DCT */
        edct_ivas_fx( tmp_buf, spectrum, L_frame, &Q );
        edct_fx( tmp_buf, spectrum, L_frame, &Q );
        *spectrum_e = sub( 31, Q );
    }

+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ void core_signal_analysis_high_bitrate_fx(
                Q = sub( Q, tmp2 );

                /* DCT */
                edct_ivas_fx( tmp_buf, spectrum[frameno], L_subframe, &Q );
                edct_fx( tmp_buf, spectrum[frameno], L_subframe, &Q );
                *spectrum_e = sub( 31, Q );
            }
            ELSE