Commit 991b3b6e authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

enable FIX_FLOAT_1518 again

parent 07d60fb1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@
#define FIX_FLOAT_1493_MASA_ENCODE_STABILITY_IMPROVE    /* Nokia: float issue 1493: Improves float decision stability in MASA encoding by adjusting reduction code */

#define FIX_2432_ISM_SPIKES_16KHZ                       /* VA: basop issue 2432: fix spikes in ISM decoding at 16kHz output sampling rate */
//#define FIX_FLOAT_1518                                  /* FhG: fix issue 1518: loudness differences in OSBA decoding to mono or stereo output */
#define FIX_FLOAT_1518                                  /* FhG: fix issue 1518: loudness differences in OSBA decoding to mono or stereo output */

/* ##################### End NON-BE switches ########################### */

+16 −0
Original line number Diff line number Diff line
@@ -434,6 +434,22 @@ ivas_error ivas_dec(
            }
        }

        {
        	static FILE* f_foa = 0;
        	if (f_foa == 0)
        		f_foa = fopen("chans.raw","wb");
        
        	for (int16_t  j=0; j < 960;j++)
        	{
        		for ( int n = 0; n < 2; n++)
        		{
        			int16_t s1 = p_output[n][j];
        			fwrite(&s1,sizeof(int16_t),1,f_foa);
        		}
           }
        }


        if ( st_ivas->sba_dirac_stereo_flag )
        {
            ivas_agc_dec_process( st_ivas->hSpar->hAgcDec, &p_output[sba_ch_idx], &p_output[sba_ch_idx], st_ivas->hSpar->hMdDec->spar_md_cfg.nchan_transport, output_frame );
+15 −0
Original line number Diff line number Diff line
@@ -418,6 +418,21 @@ ivas_error ivas_enc(
        }
#endif

        {
        	static FILE* f_foa = 0;
        	if (f_foa == 0)
        		f_foa = fopen("chans_in.raw","wb");
        
        	for (int16_t  j=0; j < 960;j++)
        	{
        		for ( int n = 0; n < 1; n++)
        		{
        			int16_t s1 = data_f[n][j];
        			fwrite(&s1,sizeof(int16_t),1,f_foa);
        		}
           }
        }

        /* core-coding of transport channels */
        if ( st_ivas->nSCE == 1 )
        {