Commit 52613189 authored by vaclav's avatar vaclav
Browse files

simplification

parent 5d294408
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -246,10 +246,6 @@ ivas_error core_switching_post_dec_fx(
    HQ_DEC_HANDLE hHQ_core;
    ivas_error error;
    Word16 offset;
#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
    Word16 q_output_fx = Q11;
    move16();
#endif

    L_tmp = 0;
    move32();
@@ -452,7 +448,6 @@ ivas_error core_switching_post_dec_fx(
                {
#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
                    Scale_sig32( output_fx, st_fx->L_frame, Q10 - Q11 ); /* Q10 */
                    q_output_fx = Q4;
#else
                    Scale_sig32( output_fx, L_FRAME48k, Q10 - Q4 );                                         /* Q10 */
#endif
@@ -514,7 +509,7 @@ ivas_error core_switching_post_dec_fx(
                    {
                        st_fx->cldfbAna->cldfb_state_fx[offset - delta + i] =
#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], sub( Q10, q_output_fx ) ), alpha ); /* Q10 */
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], Q10 - Q11 ), alpha ); /* Q10 */
#else
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], Q10 - Q4 ), alpha ); /* Q10 */
#endif
@@ -567,7 +562,7 @@ ivas_error core_switching_post_dec_fx(
                    {
                        st_fx->cldfbAna->cldfb_state_fx[offset - delta + i] =
#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], sub( Q10, q_output_fx ) ), alpha ); /* Q10 */
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], Q10 - Q11 ), alpha ); /* Q10 */
#else
                            Mpy_32_16_1( L_shl( output_fx[st_fx->L_frame - delta + i], Q10 - Q4 ), alpha ); /* Q10 */
#endif
@@ -1079,7 +1074,7 @@ static void core_switch_lb_upsamp_fx(
    }

#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
    Scale_sig32( output + imult1616( no_col, st->cldfbSyn->no_channels ), sub( st->hTcxDec->L_frameTCX, imult1616( no_col, st->cldfbSyn->no_channels ) ), Q4 - Q10 ); /* Q4 */
    Scale_sig32( output + imult1616( no_col, st->cldfbSyn->no_channels ), sub( st->hTcxDec->L_frameTCX, imult1616( no_col, st->cldfbSyn->no_channels ) ), Q11 - Q10 ); /* Q11 */
#else
    Scale_sig32( output + imult1616( no_col, st->cldfbSyn->no_channels ), sub( L_FRAME48k, imult1616( no_col, st->cldfbSyn->no_channels ) ), 4 - 10 ); /* Q4 */
#endif
@@ -1087,7 +1082,11 @@ static void core_switch_lb_upsamp_fx(
    /* save synthesis - needed in case of core switching */
    IF( st->hTcxDec != NULL )
    {
#ifdef FIX_2280_REDUCTION_UNNECESSARY_SCALING
        Copy_Scale_sig_32_16( output, st->previoussynth_fx, st->hTcxDec->L_frameTCX, -Q4 ); /* Q0 */
#else
        Copy_Scale_sig_32_16( output, st->previoussynth_fx, st->hTcxDec->L_frameTCX, -Q4 );                                                            /* Q0 */
#endif
    }

    return;