Commit af9f3441 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

High MLD fix for MASA, Float code cleanup

[x] High MLD fix for MASA format in negative 10dB input case
[x] Float code cleanup in ivas_init_dec.c, ivas_mc_dec_reconfig, ivas_dirac_dec_render_sf
[x] Fix for LTV crash issue for 10dB case: stereo at 24.4 kbps, 32kHz in, 32kHz out, DTX on
parent 60b1c7b2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ int main(
        {
            renderConfig.directivity_fx[i * 3] = (Word16) ( renderConfig.directivity[i * 3] * ( 1u << 6 ) );
            renderConfig.directivity_fx[i * 3 + 1] = (Word16) ( renderConfig.directivity[i * 3 + 1] * ( 1u << 6 ) );
            renderConfig.directivity_fx[i * 3 + 2] = (Word16) ( renderConfig.directivity[i * 3 + 2] * ( 1u << 15 ) );
            renderConfig.directivity_fx[i * 3 + 2] = (Word16) ( renderConfig.directivity[i * 3 + 2] * ( (1u << 15)-1 ) );
        }
#endif // IVAS_FLOAT_FIXED

+2 −451

File changed.

Preview size limit exceeded, changes collapsed.

+12 −0
Original line number Diff line number Diff line
@@ -2146,10 +2146,22 @@ void ivas_dirac_dec_output_synthesis_cov_close_fx(
    DIRAC_OUTPUT_SYNTHESIS_COV_STATE *h_dirac_output_synthesis_state /* i/o: handle for the covariance synthesis state                                                              */
);

ivas_error ivas_init_decoder_front_fx(
    Decoder_Struct *st_ivas                                     /* i/o: IVAS decoder structure                  */
);

ivas_error ivas_init_decoder_fx(
    Decoder_Struct *st_ivas                                     /* i/o: IVAS decoder structure                  */
);

void destroy_core_dec_fx(
    DEC_CORE_HANDLE hCoreCoder                                  /* i/o: core decoder structure                  */
);

void ivas_destroy_dec_fx(
    Decoder_Struct *st_ivas                                     /* i/o: IVAS decoder structure                  */
);

ivas_error ivas_ism_dec_config_fx(
    Decoder_Struct *st_ivas,      /* i/o: IVAS decoder structure              */
    const ISM_MODE last_ism_mode, /* i/o: last ISM mode                       */
+5 −5
Original line number Diff line number Diff line
@@ -167,8 +167,8 @@ void ivas_sba_config_fx(
        ELSE
        {
            *nSCE = 0;
            *nCPE = shr( *nchan_transport, 2 );
            IF( NE_16( mult( 2, ( *nCPE ) ), *nchan_transport ) )
            *nCPE = shr( *nchan_transport, 1 );
            IF( NE_16( i_mult( 2, ( *nCPE ) ), *nchan_transport ) )
            {
                *nCPE = add( *nCPE, 1 );
            }
+0 −4
Original line number Diff line number Diff line
@@ -74,10 +74,6 @@ void stereo_tcx_dec_mode_switch_reconf_To_fixed_2(
  Word16 last_element_mode,
  const FRAME_MODE frameMode);

void fixed_to_float_stereo_tcx_core_dec(
  Decoder_State *st,
  Word16 *signal_out
);
// Float to Word32
Word32 float_to_fix( float number, Word32 Q );
// Word32 to Float
Loading