Commit 8937e1e0 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning

parent 132d0801
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -96,7 +96,6 @@

#define FIX_2448_RENDERER_MSAN_ERROR                    /* FhG: basop issue 2448: fix MSAN error with MSA rendering */
#define FIX_2283_ISM_MD_DELAY                           /* Dolby: Fix ISM metadata delay round-off */
#define FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning /* FhG: Adjust non-diegetic panning law to harmonize codec levels with 3GPP reference software */
#define FIX_FLOAT_1518                                  /* FhG: fix issue 1518: loudness differences in OSBA decoding to mono or stereo output */
#define FIX_FLOAT_1533_BLEND_SUBFR2                     /* FhG: float issue 1533: correct blending in blend_subfr2() */

+0 −12
Original line number Diff line number Diff line
@@ -35,9 +35,7 @@
#include "prot_fx.h"
#include "ivas_prot_fx.h"
#include "ivas_cnst.h"
#ifdef FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning
#include "rom_com.h"
#endif
#include "wmc_auto.h"


@@ -323,19 +321,9 @@ void ivas_apply_non_diegetic_panning_fx(
)
{

#ifdef FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning
    Word16 pan = add( mult_r( non_diegetic_pan_gain_fx, 32 ), 32 ); // 0.5.Q15 = 16384                             // Q15
    v_multc_fx_16( input_f_fx, cos_table_129[pan], output_fx[1], output_frame );
    v_multc_fx_16( input_f_fx, cos_table_129[64 - pan], output_fx[0], output_frame );
#else
    Word16 pan_left_fx, pan_right_fx;

    pan_left_fx = add( mult( non_diegetic_pan_gain_fx, 16384 ), 16384 ); // 0.5.Q15 = 16384
    pan_right_fx = sub( 32767, pan_left_fx );

    v_multc_fx( input_f_fx, L_shl( L_deposit_l( pan_right_fx ), 16 ), output_fx[1], output_frame );
    v_multc_fx( input_f_fx, L_shl( L_deposit_l( pan_left_fx ), 16 ), output_fx[0], output_frame );
#endif


    return;