Commit a870891b authored by emerit's avatar emerit
Browse files

Merge branch 'main' into 744-fix-sofa-to-rom-tables-and-binaural-binary-files

parents a7499c86 b2b43a4c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1676,7 +1676,12 @@ static bool parseCmdlIVAS_dec(
        return false;
    }

#ifdef FIX_807_VARIABLE_SPEED_DECODING
    if ( ( !arg->enableHeadRotation ) && ( !arg->enableExternalOrientation ) && ( !arg->tsmEnabled ) )
#else
    if ( ( !arg->enableHeadRotation ) && ( !arg->enableExternalOrientation ) )
#endif

    {
        arg->enable5ms = false;
    }
+2 −0
Original line number Diff line number Diff line
@@ -181,6 +181,8 @@
#define FIX_796_MCT_MODE_DIFF_JBM                       /* FhG: Issue 796: fix differences between JBM and non-JBM fOR MC */
#define LIB_REND_FIX_HRTFPARAMBIN_MEMLEAK               /* fix 755 */
#define FIX_803_SCE_MD_HANDLE                           /* VA: issue 803: Resolve "MD handle needed only for one SCE" */
#define FIX_812_DOUBLE_PREC_MCT                         /* FhG: Issue 812: Avoid double precision in MCT */
#define FIX_807_VARIABLE_SPEED_DECODING                 /* FhG: Issue 807: Resolve "Variable Speed Decoding broken" */

#define FIX_INV_DIFFUSE_WEIGHT                          /* Orange : Fix error in energy compensation in late binaural reverb*/
#define FIX_638_ENERGIE_IAC_ROM_TABLES                  /* Missing left/right and coherence late reverb tables in binary format*/

lib_dec/ivas_mct_dec.c

100644 → 100755
+8 −0
Original line number Diff line number Diff line
@@ -432,7 +432,11 @@ ivas_error create_mct_dec(
    hMCT->currBlockDataCnt = 0;

    /*Initialize bits required to signal channel-pair index*/
#ifdef FIX_812_DOUBLE_PREC_MCT
    hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( (float) hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) );
#else
    hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) );
#endif

    set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS );
    set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS );
@@ -593,7 +597,11 @@ ivas_error mct_dec_reconfigure(
        hMCT->currBlockDataCnt = 0;

        /*Initialize bits required to signal channel-pair index*/
#ifdef FIX_812_DOUBLE_PREC_MCT
        hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( (float) hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) );
#else
        hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) );
#endif

        set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS );
        set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS );

lib_enc/ivas_mct_enc.c

100644 → 100755
+4 −0
Original line number Diff line number Diff line
@@ -71,7 +71,11 @@ static void set_mct_enc_params(
        hMCT->currBlockDataCnt = 0;

        /*Initialize bits required to signal channel-pair index*/
#ifdef FIX_812_DOUBLE_PREC_MCT
        hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( (float) hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) );
#else
        hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) );
#endif

        set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS );