Loading lib_com/bitstream_fx.c +8 −4 Original line number Diff line number Diff line Loading @@ -5281,10 +5281,14 @@ void evs_dec_previewFrame( { /* read the fec offset at which the partial copy is received */ ind = get_indice_preview( bitstream, bitstreamSize, sub( bitstreamSize, 5 ), 2 ); IF( ind == 0 ) *partialCopyOffset = 2; ELSE IF( EQ_32( ind, 1 ) ) *partialCopyOffset = 3; ELSE IF( EQ_32( ind, 2 ) ) *partialCopyOffset = 5; ELSE IF( EQ_32( ind, 3 ) ) *partialCopyOffset = 7; IF( ind == 0 ) *partialCopyOffset = 2; ELSE IF( EQ_32( ind, 1 ) ) *partialCopyOffset = 3; ELSE IF( EQ_32( ind, 2 ) ) *partialCopyOffset = 5; ELSE IF( EQ_32( ind, 3 ) ) *partialCopyOffset = 7; move16(); /* the last three bits in a packet is the RF frame type */ *partialCopyFrameType = get_indice_preview( bitstream, bitstreamSize, bitstreamSize - 3, 3 ); Loading lib_com/cng_exc_fx.c +359 −357 Original line number Diff line number Diff line Loading @@ -147,9 +147,11 @@ void CNG_exc_fx( move16(); } } ELSE{ ELSE { /* normal CNG update */ IF( *last_allow_cn_step == 0 ){ IF( *last_allow_cn_step == 0 ) { /**lp_ener = (float)(A2 * *Enew + (1-A2) * *lp_ener);*/ L_tmp_ener = Mult_32_16( *Enew, A2 ); L_tmp_ener = Madd_32_16( L_tmp_ener, *lp_ener, OmA2 ); Loading lib_com/hq2_core_com_fx.c +78 −76 Original line number Diff line number Diff line Loading @@ -334,8 +334,10 @@ void hq2_core_configure_fx( } ELSE /* (frame_length == SWB) */ { IF( is_transient ){ IF( LE_32( L_bwe_br, ACELP_13k20 ) ){ IF( is_transient ) { IF( LE_32( L_bwe_br, ACELP_13k20 ) ) { xcore_config_fx = &xcore_config_32kHz_013200bps_short; move16(); } Loading lib_com/ivas_qspherical_com_fx.c +55 −46 Original line number Diff line number Diff line Loading @@ -278,9 +278,12 @@ Word16 quantize_phi_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading Loading @@ -356,9 +359,12 @@ Word16 quantize_phi_enc_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading Loading @@ -677,9 +683,12 @@ Word16 quantize_phi_chan_compand_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading lib_com/ivas_stereo_td_bit_alloc_fx.c +26 −24 Original line number Diff line number Diff line Loading @@ -513,8 +513,10 @@ void tdm_bit_alloc( move16(); idx = sub( NB_RATE_POSS, 2 ); FOR( i = 0; i < NB_RATE_POSS; i++ ){ IF( LE_16( tmp_rate, fast_FCB_rates_2sfr[i] ) ){ FOR( i = 0; i < NB_RATE_POSS; i++ ) { IF( LE_16( tmp_rate, fast_FCB_rates_2sfr[i] ) ) { idx = i; move16(); BREAK; Loading Loading
lib_com/bitstream_fx.c +8 −4 Original line number Diff line number Diff line Loading @@ -5281,10 +5281,14 @@ void evs_dec_previewFrame( { /* read the fec offset at which the partial copy is received */ ind = get_indice_preview( bitstream, bitstreamSize, sub( bitstreamSize, 5 ), 2 ); IF( ind == 0 ) *partialCopyOffset = 2; ELSE IF( EQ_32( ind, 1 ) ) *partialCopyOffset = 3; ELSE IF( EQ_32( ind, 2 ) ) *partialCopyOffset = 5; ELSE IF( EQ_32( ind, 3 ) ) *partialCopyOffset = 7; IF( ind == 0 ) *partialCopyOffset = 2; ELSE IF( EQ_32( ind, 1 ) ) *partialCopyOffset = 3; ELSE IF( EQ_32( ind, 2 ) ) *partialCopyOffset = 5; ELSE IF( EQ_32( ind, 3 ) ) *partialCopyOffset = 7; move16(); /* the last three bits in a packet is the RF frame type */ *partialCopyFrameType = get_indice_preview( bitstream, bitstreamSize, bitstreamSize - 3, 3 ); Loading
lib_com/cng_exc_fx.c +359 −357 Original line number Diff line number Diff line Loading @@ -147,9 +147,11 @@ void CNG_exc_fx( move16(); } } ELSE{ ELSE { /* normal CNG update */ IF( *last_allow_cn_step == 0 ){ IF( *last_allow_cn_step == 0 ) { /**lp_ener = (float)(A2 * *Enew + (1-A2) * *lp_ener);*/ L_tmp_ener = Mult_32_16( *Enew, A2 ); L_tmp_ener = Madd_32_16( L_tmp_ener, *lp_ener, OmA2 ); Loading
lib_com/hq2_core_com_fx.c +78 −76 Original line number Diff line number Diff line Loading @@ -334,8 +334,10 @@ void hq2_core_configure_fx( } ELSE /* (frame_length == SWB) */ { IF( is_transient ){ IF( LE_32( L_bwe_br, ACELP_13k20 ) ){ IF( is_transient ) { IF( LE_32( L_bwe_br, ACELP_13k20 ) ) { xcore_config_fx = &xcore_config_32kHz_013200bps_short; move16(); } Loading
lib_com/ivas_qspherical_com_fx.c +55 −46 Original line number Diff line number Diff line Loading @@ -278,9 +278,12 @@ Word16 quantize_phi_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading Loading @@ -356,9 +359,12 @@ Word16 quantize_phi_enc_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading Loading @@ -677,9 +683,12 @@ Word16 quantize_phi_chan_compand_fx( { id_phi = add( id_phi, ( n % 2 ) ); } ELSE{ IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ){ IF( n % 2 ){ ELSE { IF( EQ_16( id_phi, add( shr( n, 1 ), ( n % 2 ) ) ) ) { IF( n % 2 ) { id_phi = sub( id_phi, 1 ); } ELSE Loading
lib_com/ivas_stereo_td_bit_alloc_fx.c +26 −24 Original line number Diff line number Diff line Loading @@ -513,8 +513,10 @@ void tdm_bit_alloc( move16(); idx = sub( NB_RATE_POSS, 2 ); FOR( i = 0; i < NB_RATE_POSS; i++ ){ IF( LE_16( tmp_rate, fast_FCB_rates_2sfr[i] ) ){ FOR( i = 0; i < NB_RATE_POSS; i++ ) { IF( LE_16( tmp_rate, fast_FCB_rates_2sfr[i] ) ) { idx = i; move16(); BREAK; Loading