Commit 821f314a authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commi 1

parent 431dc52f
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3577,12 +3577,20 @@ Word16 div_l( Word32 L_num, Word16 den )

    if ( den == (Word16) 0 )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division by 0 in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }

    if ( ( L_num < (Word32) 0 ) || ( den < (Word16) 0 ) )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division Error in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }
+1 −1
Original line number Diff line number Diff line
@@ -509,7 +509,7 @@ void tdm_bit_alloc(
            IF( coder_type == INACTIVE )
            {
                Word32 res_fix = 0;
                res_fix = Mpy_32_32(644245094, ( element_brate_wo_meta - 500 ) );
                res_fix = Mpy_32_32(644245095, ( element_brate_wo_meta - 500 ) );
                res_fix = ( ( res_fix / 100 ) * 100 );
                *total_brate_sec = max( *total_brate_sec, res_fix );

+21 −22
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ void hf_synth_init_fx(

  return;
}

void hf_synth_reset_fx(
  ZERO_BWE_DEC_HANDLE hBWE_zero /* o  : zero BWE decoder handle */
)
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ void vlpc_2st_dec(

    FOR (i=0; i<M; i++)
    {

#ifdef FIX_SATURATION_725
        //#ifdef DEBUGGING  to be removed
        assert( abs_s( xq[i] ) <= 32 );                                           /* If xq > 32 for IVAS, we might need a different loop implementation */
+22 −4
Original line number Diff line number Diff line
@@ -625,9 +625,27 @@ void TDREND_SRC_REND_UpdateFiltersFromSpatialParams_fx(
        *Gain = extract_h( L_shl( Mpy_32_32( L_shl( L_mult( *SrcRend_p->SrcGain_p_fx, *SrcRend_p->DirGain_p_fx ), 1 ), L_shl( L_mult( *SrcRend_p->DistGain_p_fx, hBinRendererTd->Gain_fx ), 1 ) ), 1 ) );
        
        /* Delta for interpolation, in case the angular step exceeds MAX_ANGULAR_STEP */
        Word32 ele_tmp = Src_p->elev_prev_fx;
        IF( GT_32( ele_tmp, DEG_180_IN_Q22 ) )
        {
            ele_tmp = L_sub( ele_tmp, DEG_360_IN_Q22 );
        }
        ELSE IF( LT_32( ele_tmp, -DEG_180_IN_Q22 ) )
        {
            ele_tmp = L_add( ele_tmp, DEG_360_IN_Q22 );
        }
        elev_delta = L_sub( Elev, ele_tmp );

        elev_delta = L_sub( Elev, Src_p->elev_prev_fx );
        azim_delta = L_sub( Azim, Src_p->azim_prev_fx );
        Word32 azi_tmp = Src_p->azim_prev_fx;
        IF( GT_32( azi_tmp, DEG_180_IN_Q22 ) )
        {
            azi_tmp = L_sub( azi_tmp, DEG_360_IN_Q22 );
        }
        ELSE IF( LT_32( azi_tmp, -DEG_180_IN_Q22 ) )
        {
            azi_tmp = L_add( azi_tmp, DEG_360_IN_Q22 );
        }
        azim_delta = L_sub( Azim, azi_tmp );

        Src_p->elev_prev_fx = Elev;
        move32();
+1 −1

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

Loading