Loading lib_com/options.h 100644 → 100755 +2 −1 Original line number Diff line number Diff line Loading @@ -175,6 +175,7 @@ #define MC_PARAMUPMIX_MODE /* Dlb: Contribution 39: Multichannel Parametric Upmix */ #define FIX_469_BRSWITCH_PUPMIX /* Dlb: Fix issue 469 for Param Upmix bitrate switching */ #define FIX_MASA_DELAY_PRINTOUT /* VA: issue 444: fix MASA decoder delay printout */ #define HODIRAC /* FhG: Contribution 32: Sector-based HO-DirAC method for SBA at high bitrates */ #define DIRAC_ALLOC_HARM /* VA: harmonize DirAC parameters allocation/deallocation */ Loading lib_dec/lib_dec.c +8 −0 Original line number Diff line number Diff line Loading @@ -1622,6 +1622,14 @@ ivas_error IVAS_DEC_GetDelay( nSamples[2] = (int16_t) roundf( (float) st_ivas->binaural_latency_ns * hDecoderConfig->output_Fs / 1000000000.f ); nSamples[0] = nSamples[1] + nSamples[2]; #ifdef FIX_MASA_DELAY_PRINTOUT if ( st_ivas->ivas_format == MASA_FORMAT ) { /* note: in MASA, all delay is compensated at the decoder by default, so subtract the encoder delay for print-out */ nSamples[1] -= NS2SA( hDecoderConfig->output_Fs, IVAS_ENC_DELAY_NS ); } #endif *timeScale = hDecoderConfig->output_Fs; return IVAS_ERR_OK; Loading Loading
lib_com/options.h 100644 → 100755 +2 −1 Original line number Diff line number Diff line Loading @@ -175,6 +175,7 @@ #define MC_PARAMUPMIX_MODE /* Dlb: Contribution 39: Multichannel Parametric Upmix */ #define FIX_469_BRSWITCH_PUPMIX /* Dlb: Fix issue 469 for Param Upmix bitrate switching */ #define FIX_MASA_DELAY_PRINTOUT /* VA: issue 444: fix MASA decoder delay printout */ #define HODIRAC /* FhG: Contribution 32: Sector-based HO-DirAC method for SBA at high bitrates */ #define DIRAC_ALLOC_HARM /* VA: harmonize DirAC parameters allocation/deallocation */ Loading
lib_dec/lib_dec.c +8 −0 Original line number Diff line number Diff line Loading @@ -1622,6 +1622,14 @@ ivas_error IVAS_DEC_GetDelay( nSamples[2] = (int16_t) roundf( (float) st_ivas->binaural_latency_ns * hDecoderConfig->output_Fs / 1000000000.f ); nSamples[0] = nSamples[1] + nSamples[2]; #ifdef FIX_MASA_DELAY_PRINTOUT if ( st_ivas->ivas_format == MASA_FORMAT ) { /* note: in MASA, all delay is compensated at the decoder by default, so subtract the encoder delay for print-out */ nSamples[1] -= NS2SA( hDecoderConfig->output_Fs, IVAS_ENC_DELAY_NS ); } #endif *timeScale = hDecoderConfig->output_Fs; return IVAS_ERR_OK; Loading